diff options
| author | Vincent Douillet <vincent@vdouillet.fr> | 2024-08-29 17:46:14 +0200 | 
|---|---|---|
| committer | Vincent Douillet <vincent@vdouillet.fr> | 2024-08-29 21:53:35 +0200 | 
| commit | f005928d63165d28b32851f04f29055a4d0cdad5 (patch) | |
| tree | 5386f28a558046dbe6e93b439f5e026441224c56 /Makefile | |
| parent | 4be89075c5bb5793f8c79da8f8df1accc1f0168f (diff) | |
get data dir from env variable
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 | 
1 files changed, 3 insertions, 3 deletions
@@ -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  | 
