2024-11-05 16:34:07 -07:00
|
|
|
DESTDIR ?= $(HOME)
|
2010-07-19 17:23:30 -06:00
|
|
|
CFLAGS = -Wall
|
2010-07-06 13:53:17 -06:00
|
|
|
|
2024-11-26 15:37:30 -07:00
|
|
|
BINARIES = forftanks tanksd
|
2010-06-25 16:15:09 -06:00
|
|
|
|
2024-11-05 16:34:07 -07:00
|
|
|
all: $(BINARIES)
|
2010-07-27 15:45:40 -06:00
|
|
|
|
2024-11-05 16:34:07 -07:00
|
|
|
install: $(BINARIES)
|
|
|
|
install -d $(DESTDIR)$(PREFIX)/bin
|
|
|
|
install $(BINARIES) $(DESTDIR)$(PREFIX)/bin
|
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
|
|
|
|
2024-11-26 15:37:30 -07:00
|
|
|
tanksd: tanksd.go
|
|
|
|
go build $<
|
|
|
|
|
2010-07-06 13:53:17 -06:00
|
|
|
clean:
|
2010-07-27 15:36:27 -06:00
|
|
|
rm -f *.o next-round round-*.html
|
2024-11-05 16:34:07 -07:00
|
|
|
rm -f $(BINARIES)
|