aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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 >$@