]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - robots/Makefile
fish: remove modulo bias from random number generation
[bsdgames-darwin.git] / robots / Makefile
1 # $NetBSD: Makefile,v 1.16 2010/02/06 23:45:25 he Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
3
4 PROG= robots
5 CPPFLAGS+=-DMAX_PER_UID=5
6 SRCS= auto.c extern.c init_field.c main.c make_level.c move.c move_robs.c \
7 play_level.c query.c rnd_pos.c score.c flush_in.c
8 MAN= robots.6
9
10 all: $(PROG)
11
12 $(PROG): $(SRCS)
13 $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw -I$(ROOT)
14 $(STRIP) $(PROG)
15
16 install: $(PROG) $(MAN)
17 $(GINSTALL) -Dm2755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
18 $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
19 $(GINSTALL) -d $(DESTDIR)/$(LOCALSTATEDIR)/games
20
21 clean:
22 rm -f $(CLEANFILES) $(PROG)
23
24 .PHONY: all clean install