1 # $NetBSD: Makefile,v 1.2 2020/11/10 08:49:08 kamil 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
23 cat ${.CURDIR}/warp.man > ${.TARGET}
25 DPSRCS+=smap.0 smap.1 smap.2 smap.3 smap.4 smap.5 smap.6 smap.7
29 ./sm < ${.CURDIR}/smp.0 > ${.TARGET}
33 ./sm < ${.CURDIR}/smp.1 > ${.TARGET}
37 ./sm < ${.CURDIR}/smp.2 > ${.TARGET}
41 ./sm < ${.CURDIR}/smp.3 > ${.TARGET}
45 ./sm < ${.CURDIR}/smp.4 > ${.TARGET}
49 ./sm < ${.CURDIR}/smp.5 > ${.TARGET}
53 ./sm < ${.CURDIR}/smp.6 > ${.TARGET}
57 ./sm < ${.CURDIR}/smp.7 > ${.TARGET}
61 ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
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
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=
79 .include <bsd.prog.mk>