diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |