2014-07-28 16:32:25 -06:00
|
|
|
BINARIES = forftanks upload.cgi
|
2014-07-28 07:54:43 -06:00
|
|
|
HTML = forf.html procs.html intro.html designer.html debugger.html
|
|
|
|
WWW = style.css grunge.png designer.js figures.js tanks.js nav.html.inc jstanks.js
|
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
|
|
|
|
2018-08-07 12:21:52 -06:00
|
|
|
DESTDIR = /opt/tanks
|
|
|
|
|
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:
|
2018-08-07 12:21:52 -06:00
|
|
|
install -d $(DESTDIR)/bin
|
|
|
|
install go.sh $(DESTDIR)/bin
|
|
|
|
install round.sh $(DESTDIR)/bin
|
|
|
|
install forftanks $(DESTDIR)/bin
|
|
|
|
|
|
|
|
install -d $(DESTDIR)/www
|
|
|
|
install designer.cgi $(DESTDIR)/www
|
|
|
|
install $(HTML) $(DESTDIR)/www
|
|
|
|
install $(WWW) $(DESTDIR)/www
|
|
|
|
|
|
|
|
install -d $(DESTDIR)/examples
|
|
|
|
cp -r examples $(DESTDIR)/examples
|
2010-07-27 15:45:40 -06:00
|
|
|
|
2010-07-27 13:17:44 -06:00
|
|
|
forftanks: forftanks.o ctanks.o forf.o
|
2012-07-16 16:53:33 -06:00
|
|
|
forftanks: LDLIBS = -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
|
|
|
|
2014-07-29 09:17:12 -06:00
|
|
|
%.html: %.html.m4 nav.html.inc
|
2010-07-22 18:08:55 -06:00
|
|
|
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)
|