aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@inria.fr>2026-04-26 12:07:39 +0200
committerTristan Riehs <tristan.riehs@inria.fr>2026-04-26 12:07:39 +0200
commit2991c0b3560781344488680625954aa3ef0893c6 (patch)
treeb5bc2048e83453e8c7b5a2d2677161c4cc4847f2 /Makefile
parentd2fb6a8aac6abe5bfe4b4ea7f2528d119afbc8c6 (diff)
Create a "utils" module
Also put configuration macros in a dedicated header. In the future the configuration will be read at execution time.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c20fb08..adec8b4 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ export __LIBS := $(shell pkg-config --libs sqlite3)
all: $(PROG)
-$(PROG): src/main.o src/system.o
+$(PROG): src/main.o src/system.o src/utils.o
$(CC) -o $@ $^ $(__LIBS) $(LDFLAGS) $(LIBS)
# Create cache and config directories at compile time since they will be used by
# the user who compiled ftag
@@ -35,8 +35,9 @@ $(PROG): src/main.o src/system.o
mkdir -p $(FTAG_CACHE_DIR)
mkdir -p $(FTAG_CONFIG_DIR)
-src/main.o: src/main.c src/system.h
+src/main.o: src/main.c src/system.h src/utils.h
src/system.o: src/system.c src/system.h
+src/utils.o: src/utils.c src/system.h src/utils.h
.c.o:
$(CC) $(__CFLAGS) $(CFLAGS) -o $@ -c $<