aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@inria.fr>2025-11-11 10:40:17 +0100
committerTristan Riehs <tristan.riehs@inria.fr>2025-11-11 10:40:17 +0100
commit80ecd9dcd3d3b75ef46a2f48a309b7458adeb58c (patch)
treec8580e0965e0953755170e5451d2065af8c151a1 /Makefile
parent5c94ef2db4afc33e0c91317e63723ae3333a41f1 (diff)
Change the database name
Also properly define it at compile-time. Later, it will likely be moved to "$HOME/.cache/ftag/ftag.sqlite3".
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2619f92..288082b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,9 @@
+export FTAG_ROOT := $(shell pwd)
+export __CFLAGS := -std=c99 -Wall -DFTAG_ROOT=\"$(FTAG_ROOT)\"
+export __LIBS := $(shell pkg-config --libs sqlite3)
+
export PROG ?= ftag
export CFLAGS ?= -O0 -g3
-export __CFLAGS := -std=c99 -Wall
-export __LIBS := $(shell pkg-config --libs sqlite3)
-export FTAG_ROOT := $(shell pwd)
all: $(PROG)