]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - warp/Makefile
Integrate Warp Kit into the NetBSD build
[bsdgames-darwin.git] / warp / Makefile
1 # $NetBSD: Makefile,v 1.2 2020/11/10 08:49:08 kamil Exp $
2
3 .include <bsd.own.mk>
4
5 PROG= warp
6
7 SRCS= bang.c init.c intrp.c move.c object.c play.c score.c sig.c term.c \
8 them.c us.c util.c version.c warp.c weapon.c
9
10 DPADD= ${LIBTERMLIB} ${LIBM} ${LIBCOMPAT}
11 LDADD= -ltermlib -lm -lcompat
12
13 CPPFLAGS+=-DHAVETERMLIB
14
15 CLEANFILES+=sm sm.lo smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7
16 CLEANFILES+=warp.6
17 HIDEGAME=hidegame
18 SETGIDGAME=yes
19 MAN= warp.6
20
21 warp.6:
22 ${_MKTARGET_CREATE}
23 cat ${.CURDIR}/warp.man > ${.TARGET}
24
25 DPSRCS+=smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7
26
27 smap.0: smp.0 sm
28 ${_MKTARGET_CREATE}
29 ./sm < ${.CURDIR}/smp.0 > ${.TARGET}
30
31 smap.1: smp.1 sm
32 ${_MKTARGET_CREATE}
33 ./sm < ${.CURDIR}/smp.1 > ${.TARGET}
34
35 smap.2: smp.2 sm
36 ${_MKTARGET_CREATE}
37 ./sm < ${.CURDIR}/smp.2 > ${.TARGET}
38
39 smap.3: smp.3 sm
40 ${_MKTARGET_CREATE}
41 ./sm < ${.CURDIR}/smp.3 > ${.TARGET}
42
43 smap.4: smp.4 sm
44 ${_MKTARGET_CREATE}
45 ./sm < ${.CURDIR}/smp.4 > ${.TARGET}
46
47 smap.5: smp.5 sm
48 ${_MKTARGET_CREATE}
49 ./sm < ${.CURDIR}/smp.5 > ${.TARGET}
50
51 smap.6: smp.6 sm
52 ${_MKTARGET_CREATE}
53 ./sm < ${.CURDIR}/smp.6 > ${.TARGET}
54
55 smap.7: smp.7 sm
56 ${_MKTARGET_CREATE}
57 ./sm < ${.CURDIR}/smp.7 > ${.TARGET}
58
59 sm: sm.lo
60 ${_MKTARGET_LINK}
61 ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
62
63 .if ${MKSHARE} != "no"
64 FILES=smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7
65 FILES+=warp.doc warp.news README
66 FILESDIR=/usr/share/games/warp
67 .endif
68
69 CFLAGS+= -Wno-error=old-style-definition -Wno-error=strict-prototypes
70 CFLAGS+= -Wno-error=comment -Wno-error=maybe-uninitialized
71 CFLAGS+= -Wno-error=discarded-qualifiers -Wno-error=dangling-else
72 CFLAGS+= -Wno-error=char-subscripts -Wno-error=parentheses
73 CFLAGS+= -Wno-error=unused-value -Wno-error=format-extra-args
74 CFLAGS+= -Wno-error=format-overflow= -Wno-error=builtin-declaration-mismatch
75 CFLAGS+= -Wno-error=format= -Wno-error=sign-compare -Wno-error=return-type
76 CFLAGS+= -Wno-error=unused-label -Wno-error=unused-variable
77 CFLAGS+= -Wno-error=format-nonliteral -Wno-error=implicit-fallthrough=
78
79 .include <bsd.prog.mk>