]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - hunt/huntd/Makefile
Time warp forward 34 years so that it compiles (but not work)
[bsdgames-darwin.git] / hunt / huntd / Makefile
index f3e7937c9d733087dd121e4827abb5004cfa121a..9bce5e39bb023d9235045f07f34095eb6ba78cdf 100644 (file)
@@ -1,8 +1,17 @@
-#      $NetBSD: Makefile,v 1.2 2014/03/29 20:32:04 dholland Exp $
+#      $NetBSD: Makefile,v 1.8 2019/09/29 23:44:59 mrg Exp $
 
 PROG=  huntd
 SRCS=  answer.c draw.c driver.c execute.c expl.c \
-       extern.c faketalk.c makemaze.c pathname.c shots.c terminal.c
+       extern.c makemaze.c shots.c support.c terminal.c
 MAN=   huntd.6
 
+CPPFLAGS+=-I${.CURDIR}/../include
+
+.include <bsd.own.mk>
+
+# Has fallthru comment that is missed
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
+COPTS.shots.c+=        -Wno-error=implicit-fallthrough
+.endif
+
 .include <bsd.prog.mk>