diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,11 +1,12 @@ -.SUFFIXES: .c .t .tc -LDFLAGS += -lsqlite3 +LDLIBS += -lsqlite3 +C = $(shell ls *.c) +H = $(shell ls *.h) +TPL = $(shell ls t/*.t | sed 's/$$/c/') -C = cforum.c ctl.c db.c err.c query.c -TPL = t/err.tc t/foot.tc t/front.tc t/head.tc t/post.tc t/user.tc +.SUFFIXES: .t .tc -cforum: $(C) $(TPL) - $(CC) $(CFLAGS) $(LDFLAGS) -o cforum $(C) +cforum: $(C) $(H) $(TPL) + $(CC) $(CFLAGS) $(LDFLAGS) $(LDLIBS) -o cforum $(C) .t.tc: mktpl/mktpl <$< mktpl/mktpl >$@ |