diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-18 02:10:30 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-18 02:10:30 +0200 |
commit | c1e3206968f9878f8b7883cc7c313cd930c86d04 (patch) | |
tree | f279f343bd27b6fd5d338636138f17c071290016 /Makefile | |
parent | 24bf14f6653ebf1c1ba79b9f212d35417bb6acbf (diff) | |
download | cforum-c1e3206968f9878f8b7883cc7c313cd930c86d04.tar.gz |
Add README, fix C89 compliance
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 >$@ |