From f005928d63165d28b32851f04f29055a4d0cdad5 Mon Sep 17 00:00:00 2001 From: Vincent Douillet Date: Thu, 29 Aug 2024 17:46:14 +0200 Subject: get data dir from env variable --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7e84eea..0c485c0 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ LDFLAGS=-static $(LDFLAGS_DEPS) .if make(debug) || make(test) PWD!=pwd -CFLAGS+=-O0 -g -W -Wall -Wextra -DDATA_DIR='"$(PWD)/test-data"' -DTEMPLATE_DIR='"template"' +CFLAGS+=-O0 -g -W -Wall -Wextra -DTEMPLATE_DIR='"template"' .else CFLAGS+=-O2 .endif @@ -47,10 +47,10 @@ all: main .c.o: $(CC) -o $@ -c $< $(CFLAGS) -main: str.o mime.o url.o template.o file.o http.o download.o browse.o main.o +main: str.o config.o mime.o url.o template.o file.o http.o download.o browse.o main.o $(CC) -o $@ $> $(LDFLAGS) -test: str.o mime.o url.o template.o file.o http.o download.o browse.o test.o +test: str.o config.o mime.o url.o template.o file.o http.o download.o browse.o test.o $(CC) -o $@ $> $(LDFLAGS) env: env.o -- cgit v1.2.3