aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 4bf32309dc2790f231ddd222884a19170565a1ba (plain)
1
2
3
4
5
6
7
8
9
10
11
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');"