tanks/Makefile

33 lines
776 B
Makefile
Raw Normal View History

2010-07-27 13:17:44 -06:00
BINARIES = forftanks designer.cgi
2010-07-22 22:41:46 -06:00
HTML = forf.html procs.html intro.html designer.html
2010-07-27 15:45:40 -06:00
WWW = dirtbags.css grunge.png designer.js figures.js tanks.js nav.html.inc
2010-07-22 22:41:46 -06:00
2010-07-19 17:23:30 -06:00
CFLAGS = -Wall
2010-07-06 13:53:17 -06:00
2010-07-22 22:41:46 -06:00
all: $(BINARIES) $(HTML)
2010-06-25 16:15:09 -06:00
2010-07-27 15:45:40 -06:00
install:
install -d $(DESTDIR)/usr/bin
install run-tanks $(DESTDIR)/usr/bin
install forftanks $(DESTDIR)/usr/bin
2010-07-27 16:18:04 -06:00
install -d $(DESTDIR)/usr/lib/tanks
install designer.cgi $(DESTDIR)/usr/lib/tanks
install $(HTML) $(DESTDIR)/usr/lib/tanks
install $(WWW) $(DESTDIR)/usr/lib/tanks
2010-07-27 17:05:57 -06:00
cp -r examples $(DESTDIR)/usr/lib/tanks/examples
2010-07-27 15:45:40 -06:00
2010-07-27 13:17:44 -06:00
forftanks: forftanks.o ctanks.o forf.o
forftanks: LDFLAGS = -lm
2010-06-25 16:15:09 -06:00
2010-07-27 13:17:44 -06:00
forftanks.o: forf.h ctanks.h
2010-07-20 15:39:10 -06:00
forf.o: forf.c forf.h
ctanks.o: ctanks.h
2010-07-06 13:53:17 -06:00
2010-07-22 18:08:55 -06:00
%.html: %.html.m4
m4 $< > $@
2010-07-06 13:53:17 -06:00
clean:
2010-07-27 15:36:27 -06:00
rm -f *.o next-round round-*.html
2010-07-22 22:41:46 -06:00
rm -f $(BINARIES) $(HTML)