eris/Makefile

17 lines
340 B
Makefile
Raw Normal View History

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-13 22:49:10 -07:00
CFLAGS = -DFNORD='"fnord/$(VERSION)"'
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