summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-01-12 18:14:17 +0100
committerVincent Douillet <vincent@vdouillet.fr>2024-01-12 18:26:22 +0100
commit760031b4a74d70bdeaab4ce9aedfe772acd05bd3 (patch)
tree443a456770d5db052a3dfe3d2f1a8e5f66604ccb /Makefile
parent43f65c76152017420ce723b4d4ef4230ff072818 (diff)
browse: build download url for files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d269beb..2b4d51c 100644
--- a/Makefile
+++ b/Makefile
@@ -30,11 +30,13 @@ CC=cc
CFLAGS_DEPS != pkg-config --cflags kcgi kcgi-html
LDFLAGS_DEPS != pkg-config --libs kcgi kcgi-html
-CFLAGS=-O2 -DLOG_INFO $(CFLAGS_DEPS)
+CFLAGS=-DLOG_INFO $(CFLAGS_DEPS)
LDFLAGS=-static $(LDFLAGS_DEPS)
.if make(debug)
-CFLAGS+=-g -W -Wall -Wextra -DTEMPLATE_DIR='"template"'
+CFLAGS+=-O0 -g -W -Wall -Wextra -DTEMPLATE_DIR='"template"'
+.else
+CFLAGS+=-O2
.endif
debug: main
@@ -44,7 +46,7 @@ all: main
.c.o:
$(CC) -o $@ -c $< $(CFLAGS)
-main: util.o url.o http.o download.o browse.o main.o
+main: util.o url.o http.o file.o download.o browse.o main.o
$(CC) -o $@ $> $(LDFLAGS)
env: env.o