aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 512b6133ef00d303602f8d02f5313c2015a15b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.SUFFIXES: .c .t .tc
LDFLAGS += -lsqlite3

C = cforum.c err.c front.c query.c
TPL = t/err.tc t/foot.tc t/front.tc t/head.tc

cforum: $(C) $(TPL)
	$(CC) $(CFLAGS) $(LDFLAGS) -o cforum $(C)

.t.tc: maketpl
	<$< ./maketpl >$@

db:
	sqlite3 db "CREATE TABLE settings(key UNIQUE, value);"
	sqlite3 db "INSERT INTO settings values('name', 'C Forum');"