]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - warp/Makefile
no need for -lcompat
[bsdgames-darwin.git] / warp / Makefile
1 # $NetBSD: Makefile,v 1.4 2020/11/11 19:54:53 christos Exp $
2
3 .include <bsd.own.mk>
4
5 PROG= warp
6 DBG=-g
7
8 SRCS= bang.c init.c intrp.c move.c object.c play.c score.c sig.c term.c \
9 them.c us.c util.c version.c warp.c weapon.c
10
11 DPADD= ${LIBTERMLIB} ${LIBM}
12 LDADD= -ltermlib -lm
13
14 CPPFLAGS+=-DHAVETERMLIB
15
16 CLEANFILES+=sm sm.lo smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7
17 CLEANFILES+=warp.6
18 HIDEGAME=hidegame
19 SETGIDGAME=yes
20 MAN= warp.6
21
22 warp.6:
23 ${_MKTARGET_CREATE}
24 cat ${.CURDIR}/warp.man > ${.TARGET}
25
26 DPSRCS+=smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7
27
28 smap.0: smp.0 sm
29 ${_MKTARGET_CREATE}
30 ./sm < ${.CURDIR}/smp.0 > ${.TARGET}
31
32 smap.1: smp.1 sm
33 ${_MKTARGET_CREATE}
34 ./sm < ${.CURDIR}/smp.1 > ${.TARGET}
35
36 smap.2: smp.2 sm
37 ${_MKTARGET_CREATE}
38 ./sm < ${.CURDIR}/smp.2 > ${.TARGET}
39
40 smap.3: smp.3 sm
41 ${_MKTARGET_CREATE}
42 ./sm < ${.CURDIR}/smp.3 > ${.TARGET}
43
44 smap.4: smp.4 sm
45 ${_MKTARGET_CREATE}
46 ./sm < ${.CURDIR}/smp.4 > ${.TARGET}
47
48 smap.5: smp.5 sm
49 ${_MKTARGET_CREATE}
50 ./sm < ${.CURDIR}/smp.5 > ${.TARGET}
51
52 smap.6: smp.6 sm
53 ${_MKTARGET_CREATE}
54 ./sm < ${.CURDIR}/smp.6 > ${.TARGET}
55
56 smap.7: smp.7 sm
57 ${_MKTARGET_CREATE}
58 ./sm < ${.CURDIR}/smp.7 > ${.TARGET}
59
60 sm: sm.lo
61 ${_MKTARGET_LINK}
62 ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
63
64 .if ${MKSHARE} != "no"
65 FILES=smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7
66 FILES+=warp.doc warp.news README
67 FILESDIR=/usr/share/games/warp
68 .endif
69
70 .include <bsd.prog.mk>