diff options
| author | Tristan Riehs <tristan.riehs@inria.fr> | 2025-12-28 23:38:02 +0100 |
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@inria.fr> | 2025-12-28 23:38:02 +0100 |
| commit | 6b584537838dbce9d3d75b93228544cee6e2f805 (patch) | |
| tree | 0d720ba7c021f6ab32f050466e03f40fc43e2f45 /Makefile | |
| parent | 3c0115f2147d194b13a327b5e93d30cfdb7dfd4e (diff) | |
Re-organize makefiles
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -1,9 +1,14 @@ -export FTAG_ROOT := $(shell pwd) -export __CFLAGS := -std=c99 -Wall -DFTAG_ROOT=\"$(FTAG_ROOT)\" -D_POSIX_C_SOURCE=200809L -export __LIBS := $(shell pkg-config --libs sqlite3) - +export FTAG_ROOT ?= $(shell pwd) export PROG ?= ftag export CFLAGS ?= -O0 -g3 +export LDFLAGS ?= +export LIBS ?= + +export __CFLAGS := -std=c99 -Wall \ + -DFTAG_ROOT=\"$(FTAG_ROOT)\" \ + -D_POSIX_C_SOURCE=200809L \ + $(shell pkg-config --cflags sqlite3) +export __LIBS := $(shell pkg-config --libs sqlite3) all: $(PROG) @@ -12,6 +17,5 @@ $(PROG): clean: make -C src clean - rm -f $(PROG) .PHONY: all clean |
