]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - warp/Makefile
7e13a4cc51f7080b8e742eeba560519a9e0ac6b9
[bsdgames-darwin.git] / warp / Makefile
1 # $NetBSD: Makefile,v 1.3 2020/11/11 17:11:19 christos 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 BINGRP= games
22 BINMODE=2555
23
24 warp.6:
25 ${_MKTARGET_CREATE}
26 cat ${.CURDIR}/warp.man > ${.TARGET}
27
28 DPSRCS+=smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7
29
30 smap.0: smp.0 sm
31 ${_MKTARGET_CREATE}
32 ./sm < ${.CURDIR}/smp.0 > ${.TARGET}
33
34 smap.1: smp.1 sm
35 ${_MKTARGET_CREATE}
36 ./sm < ${.CURDIR}/smp.1 > ${.TARGET}
37
38 smap.2: smp.2 sm
39 ${_MKTARGET_CREATE}
40 ./sm < ${.CURDIR}/smp.2 > ${.TARGET}
41
42 smap.3: smp.3 sm
43 ${_MKTARGET_CREATE}
44 ./sm < ${.CURDIR}/smp.3 > ${.TARGET}
45
46 smap.4: smp.4 sm
47 ${_MKTARGET_CREATE}
48 ./sm < ${.CURDIR}/smp.4 > ${.TARGET}
49
50 smap.5: smp.5 sm
51 ${_MKTARGET_CREATE}
52 ./sm < ${.CURDIR}/smp.5 > ${.TARGET}
53
54 smap.6: smp.6 sm
55 ${_MKTARGET_CREATE}
56 ./sm < ${.CURDIR}/smp.6 > ${.TARGET}
57
58 smap.7: smp.7 sm
59 ${_MKTARGET_CREATE}
60 ./sm < ${.CURDIR}/smp.7 > ${.TARGET}
61
62 sm: sm.lo
63 ${_MKTARGET_LINK}
64 ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
65
66 .if ${MKSHARE} != "no"
67 FILES=smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7
68 FILES+=warp.doc warp.news README
69 FILESDIR=/usr/share/games/warp
70 .endif
71
72 CFLAGS+= -Wno-error=old-style-definition -Wno-error=strict-prototypes
73 CFLAGS+= -Wno-error=comment -Wno-error=maybe-uninitialized
74 CFLAGS+= -Wno-error=discarded-qualifiers -Wno-error=dangling-else
75 CFLAGS+= -Wno-error=char-subscripts -Wno-error=parentheses
76 CFLAGS+= -Wno-error=unused-value -Wno-error=format-extra-args
77 CFLAGS+= -Wno-error=format-overflow= -Wno-error=builtin-declaration-mismatch
78 CFLAGS+= -Wno-error=format= -Wno-error=sign-compare -Wno-error=return-type
79 CFLAGS+= -Wno-error=unused-label -Wno-error=unused-variable
80 CFLAGS+= -Wno-error=format-nonliteral -Wno-error=implicit-fallthrough=
81
82 .include <bsd.prog.mk>