aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2021-06-02 17:00:39 +0000
committerla-ninpre <leobrekalini@gmail.com>2021-06-02 17:00:39 +0000
commite7e4e22b69a0c9965c2d4f96903ae647165e99d3 (patch)
tree206e0ffd324751e51850184dc21929382a3af4e4 /Makefile
parent44c234cfdf8588e5c53a9534cc2ee1c627682f7c (diff)
downloadnimisewi_c-0.0.3.tar.gz
nimisewi_c-0.0.3.zip
major refactoringv0.0.3
added options to compile cgi for http and gemini FossilOrigin-Name: 393d793150423ffe6680f109ef6b0524fd8e2e3501766a6761aa63276e90d90e
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