diff options
| author | Tristan Riehs <tristan.riehs@inria.fr> | 2026-02-08 12:26:09 +0100 |
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@inria.fr> | 2026-02-08 12:31:04 +0100 |
| commit | 9aaa28b5b92b6f53e83dc2348272c87e70ea72cd (patch) | |
| tree | ad2abe028b828a4744a35998720657b2ba080b6b | |
| parent | 643ba8fedaa3a9622888793604024da8c1af25a6 (diff) | |
Add some build-time variables
| -rw-r--r-- | Makefile | 25 |
1 files changed, 18 insertions, 7 deletions
@@ -1,11 +1,19 @@ -export FTAG_ROOT ?= $(shell pwd)/ftag_root -export PROG ?= ftag -export CFLAGS ?= -O0 -g3 -export LDFLAGS ?= -export LIBS ?= +# Temporary development value, real default will be /usr/local +export PREFIX ?= $(shell pwd)/ftag_prefix +# Temporary development value, real default will be $HOME/.cache/ftag +export FTAG_CACHE_DIR ?= $(shell pwd)/ftag_cache +# Temporary development value, real default will be $HOME/.config/ftag +export FTAG_CONFIG_DIR ?= $(shell pwd)/ftag_config + +export PROG ?= ftag +export CFLAGS ?= -O0 -g3 +export LDFLAGS ?= +export LIBS ?= + + export __CFLAGS := -std=c99 -Wall \ - -DFTAG_ROOT=\"$(FTAG_ROOT)\" \ + -DFTAG_PREFIX=\"$(PREFIX)\" \ -D_POSIX_C_SOURCE=200809L \ $(shell pkg-config --cflags sqlite3) export __LIBS := $(shell pkg-config --libs sqlite3) @@ -16,7 +24,10 @@ $(PROG): make -C src mv src/$(PROG) ./ +install: $(PROG) + true + clean: make -C src clean -.PHONY: all clean +.PHONY: all clean install |
