mirror of https://github.com/dirtbags/tanks.git
25 lines
413 B
Makefile
25 lines
413 B
Makefile
DESTDIR ?= $(HOME)
|
|
CFLAGS = -Wall
|
|
|
|
BINARIES = forftanks tanksd
|
|
|
|
all: $(BINARIES)
|
|
|
|
install: $(BINARIES)
|
|
install -d $(DESTDIR)$(PREFIX)/bin
|
|
install $(BINARIES) $(DESTDIR)$(PREFIX)/bin
|
|
|
|
forftanks: forftanks.o ctanks.o forf.o
|
|
forftanks: LDLIBS = -lm
|
|
|
|
forftanks.o: forf.h ctanks.h
|
|
forf.o: forf.c forf.h
|
|
ctanks.o: ctanks.h
|
|
|
|
tanksd: tanksd.go
|
|
go build $<
|
|
|
|
clean:
|
|
rm -f *.o next-round round-*.html
|
|
rm -f $(BINARIES)
|