aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4bf3230
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+.SUFFIXES: .c .t .tc
+LDFLAGS += -lsqlite3
+
+cforum: cforum.c front.c front.tc
+ $(CC) $(CFLAGS) $(LDFLAGS) -o cforum cforum.c
+
+.t.tc: maketpl
+ <$< ./maketpl >$@
+
+db:
+ sqlite3 db "CREATE TABLE settings(key UNIQUE, value);"
+ sqlite3 db "INSERT INTO settings values('name', 'C Forum');" \ No newline at end of file