aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 16 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1cabe1f..b609203 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
+include conf.mk
+
PREFIX ?= /usr/local/
CFLAGS += -pedantic -Wall -Wextra -Wmissing-prototypes \
- -Wstrict-prototypes -Wwrite-strings
+ -Wstrict-prototypes -Wwrite-strings ${EXTRAFLAGS}
NIMITOKI = nimitoki.c nimitoki.h
@@ -19,15 +21,25 @@ ${NIMITOKI}: makenimitoki
makenimitoki: makenimitoki.o
${CC} ${CFLAGS} -o $@ makenimitoki.o
-nimisewi: nimisewi.o nimitoki.o
- ${CC} ${CFLAGS} -o $@ nimisewi.o nimitoki.o
+nimisewi: main.o nimisewi.o nimitoki.o
+ ${CC} ${CFLAGS} -o $@ main.o nimisewi.o nimitoki.o
+
+cgi: nimitoki.o cgi.o nimisewi.o
+ ${CC} ${CFLAGS} -o nimisewi.cgi cgi.o nimisewi.o nimitoki.o
+
+cgi_gemini: nimitoki.o nimisewi.o cgi_gemini.o
+ ${CC} ${CFLAGS} -o nimisewi.cgi cgi_gemini.o nimisewi.o nimitoki.o
clean:
- find . \( -name "*.o" -o -name nimisewi -o -name makenimitoki \) -delete
+ find . \( -name "*.o" \
+ -o -name nimisewi \
+ -o -name nimisewi.cgi \
+ -o -name makenimitoki \) -delete
distclean:
find . \( -name "*.o" \
-o -name nimisewi \
+ -o -name nimisewi.cgi \
-o -name makenimitoki \
-o -name nimitoki.c \
-o -name nimitoki.h \) -delete