From c1e3206968f9878f8b7883cc7c313cd930c86d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 18 Sep 2021 02:10:30 +0200 Subject: Add README, fix C89 compliance --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') 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 >$@ -- cgit v1.2.3