-# $NetBSD: Makefile,v 1.12 1997/10/18 20:03:05 christos Exp $
+# $NetBSD: Makefile,v 1.21 2011/08/16 11:19:41 christos Exp $
# @(#)Makefile 5.12 (Berkeley) 5/30/93
# EXTRA
# NOLOG
# Turn off logging.
+.include <bsd.own.mk>
+
PROG= larn
MAN= larn.6
-CFLAGS+=-DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -DTERMIOS
+CPPFLAGS+=-DBSD -DVER=12 -DSUBVER=0 -DNONAP -DUIDSCORE -DTERMIOS
SRCS= main.c object.c create.c tok.c display.c global.c data.c io.c \
monster.c store.c diag.c help.c config.c nap.c bill.c scores.c \
- signal.c moreobj.c movem.c regen.c fortune.c savelev.c
-DPADD= ${LIBTERM}
-LDADD= -ltermcap
+ signal.c action.c moreobj.c movem.c regen.c fortune.c savelev.c
+DPADD= ${LIBTERMINFO}
+LDADD= -lterminfo
HIDEGAME=hidegame
+SETGIDGAME=yes
+
+.if ${MKSHARE} != "no"
DAT=larnmaze larnopts larn.help
FILES=${DAT:S@^@${.CURDIR}/datfiles/@g}
FILESDIR=/usr/share/games/larn
+.endif
+
+COPTS.display.c += -Wno-format-nonliteral
+COPTS.monster.c += -Wno-format-nonliteral
.include <bsd.prog.mk>