aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-18 02:10:30 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-18 02:10:30 +0200
commitc1e3206968f9878f8b7883cc7c313cd930c86d04 (patch)
treef279f343bd27b6fd5d338636138f17c071290016 /Makefile
parent24bf14f6653ebf1c1ba79b9f212d35417bb6acbf (diff)
downloadcforum-c1e3206968f9878f8b7883cc7c313cd930c86d04.tar.gz
Add README, fix C89 compliance
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5c1e856..fae0385 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+CFLAGS += -std=c89 -Wall -pedantic -Wno-parentheses
LDLIBS += -lsqlite3
C = $(shell ls *.c)
H = $(shell ls *.h)
@@ -8,6 +9,10 @@ TPL = $(shell ls t/*.t | sed 's/$$/c/')
cforum: $(C) $(H) $(TPL)
$(CC) $(CFLAGS) $(LDFLAGS) $(LDLIBS) -o cforum $(C)
+clean:
+ rm cforum
+ rm $(TPL)
+
.t.tc: mktpl/mktpl
<$< mktpl/mktpl >$@