1 # $NetBSD: Makefile,v 1.3 2020/11/11 17:11:19 christos Exp $
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
10 DPADD= ${LIBTERMLIB} ${LIBM} ${LIBCOMPAT}
11 LDADD= -ltermlib -lm -lcompat
13 CPPFLAGS+=-DHAVETERMLIB
15 CLEANFILES+=sm sm.lo smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7
26 cat ${.CURDIR}/warp.man > ${.TARGET}
28 DPSRCS+=smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7
32 ./sm < ${.CURDIR}/smp.0 > ${.TARGET}
36 ./sm < ${.CURDIR}/smp.1 > ${.TARGET}
40 ./sm < ${.CURDIR}/smp.2 > ${.TARGET}
44 ./sm < ${.CURDIR}/smp.3 > ${.TARGET}
48 ./sm < ${.CURDIR}/smp.4 > ${.TARGET}
52 ./sm < ${.CURDIR}/smp.5 > ${.TARGET}
56 ./sm < ${.CURDIR}/smp.6 > ${.TARGET}
60 ./sm < ${.CURDIR}/smp.7 > ${.TARGET}
64 ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
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
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=
82 .include <bsd.prog.mk>