2012-02-13 17:06:42 -07:00
|
|
|
VERSION := $(shell head -n 1 CHANGES | tr -d :)
|
2011-10-19 15:18:16 -06:00
|
|
|
|
2012-02-14 17:23:32 -07:00
|
|
|
CFLAGS = -DFNORD='"fnord/$(VERSION)"' -Wall -Werror
|
2011-08-16 14:36:11 -06:00
|
|
|
|
|
|
|
all: fnord fnord-cgi fnord-idx
|
|
|
|
|
2012-02-13 17:06:42 -07:00
|
|
|
fnord-cgi: CFLAGS += -DCGI
|
2012-02-13 22:49:10 -07:00
|
|
|
fnord-cgi: fnord.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(LDFLAGS) $<
|
2011-08-16 14:36:11 -06:00
|
|
|
|
2012-02-13 17:06:42 -07:00
|
|
|
fnord-idx: CFLAGS += -DDIR_LIST
|
2012-02-13 22:49:10 -07:00
|
|
|
fnord-idx: fnord.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(LDFLAGS) $<
|
2011-08-16 14:36:11 -06:00
|
|
|
|
|
|
|
clean:
|
2012-02-13 17:06:42 -07:00
|
|
|
rm -f *.[oa] fnord fnord-cgi fnord-idx
|