]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - warp/Makefile
Fix merge conflicts
[bsdgames-darwin.git] / warp / Makefile
1 # $NetBSD: Makefile,v 1.5 2020/11/11 20:04:02 christos Exp $
2
3 PROG= warp
4 SRCS= bang.c init.c intrp.c move.c object.c play.c score.c sig.c term.c \
5 them.c us.c util.c version.c warp.c weapon.c
6
7 CPPFLAGS+=-DHAVETERMLIB
8
9 CLEANFILES+=sm smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7
10 CLEANFILES+=warp.6
11 MAN= warp.6
12
13 FILES=smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7
14 FILESDIR=$(PREFIX)/share/games/warp
15
16 all: $(PROG) $(MAN) $(FILES)
17
18 $(PROG): $(SRCS)
19 $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRCS) -lncursesw -I$(ROOT)
20 $(STRIP) $(PROG)
21
22 install: $(PROG) $(MAN) $(FILES)
23 $(GINSTALL) -Dm2755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
24 $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
25 $(GINSTALL) -d $(DESTDIR)$(FILESDIR)
26 $(GINSTALL) -Dm644 $(FILES) $(DESTDIR)$(FILESDIR)
27
28 clean:
29 rm -f $(CLEANFILES) $(PROG)
30
31 warp.6:
32 cat warp.man > $@
33
34 smap.0: smp.0 sm
35 ./sm < smp.0 > $@
36
37 smap.1: smp.1 sm
38 ./sm < smp.1 > $@
39
40 smap.2: smp.2 sm
41 ./sm < smp.2 > $@
42
43 smap.3: smp.3 sm
44 ./sm < smp.3 > $@
45
46 smap.4: smp.4 sm
47 ./sm < smp.4 > $@
48
49 smap.5: smp.5 sm
50 ./sm < smp.5 > $@
51
52 smap.6: smp.6 sm
53 ./sm < smp.6 > $@
54
55 smap.7: smp.7 sm
56 ./sm < smp.7 > $@
57
58 sm: sm.c
59 clang -o $@ sm.c -I$(ROOT)
60
61 .PHONY: all clean install