Expand PMF_FN_* macros.
[netbsd-mini2440.git] / games / hack / Makefile
blob9b534b9d79a6c4818370eb22736284e78e77f17a
1 # $NetBSD: Makefile,v 1.40 2006/02/25 11:56:51 simonb Exp $
2 # @(#)Makefile 8.2 (Berkeley) 4/27/95
4 .include <bsd.own.mk>
6 PROG= hack
7 CPPFLAGS+=-I.
8 DPSRCS+=hack.onames.h hack.h
9 SRCS+= alloc.c hack.Decl.c hack.apply.c hack.bones.c hack.c hack.cmd.c \
10 hack.do.c hack.do_name.c hack.do_wear.c hack.dog.c hack.eat.c \
11 hack.end.c hack.engrave.c hack.fight.c hack.invent.c hack.ioctl.c \
12 hack.lev.c hack.main.c hack.makemon.c hack.mhitu.c hack.mklev.c \
13 hack.mkmaze.c hack.mkobj.c hack.mkshop.c hack.mon.c hack.monst.c \
14 hack.o_init.c hack.objnam.c hack.options.c hack.pager.c hack.potion.c \
15 hack.pri.c hack.read.c hack.rip.c hack.rumors.c hack.save.c \
16 hack.search.c hack.shk.c hack.shknam.c hack.steal.c hack.termcap.c \
17 hack.timeout.c hack.topl.c hack.track.c hack.trap.c hack.tty.c \
18 hack.u_init.c hack.unix.c hack.vault.c hack.version.c hack.wield.c \
19 hack.wizard.c hack.worm.c hack.worn.c hack.zap.c rnd.c
20 MAN= hack.6
21 DPADD+= ${LIBTERMCAP}
22 LDADD+= -ltermcap
23 HIDEGAME=hidegame
24 SETGIDGAME=yes
25 CLEANFILES+=makedefs makedefs.lo
26 FILES=help hh data
27 FILESDIR=/var/games/hackdir
29 CLEANFILES+=hack.onames.h
30 hack.onames.h: makedefs def.objects.h
31 ${_MKTARGET_CREATE}
32 ./makedefs ${.CURDIR}/def.objects.h > hack.onames.h
34 makedefs: makedefs.lo
35 ${_MKTARGET_LINK}
36 ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
38 hack.h: hack.onames.h
40 .if defined(HAVE_PCC)
41 COPTS.hack.bones.c+= -Wno-shadow
42 COPTS.hack.do.c+= -Wno-shadow
43 .endif
45 .if !exists(${DESTDIR}${FILESDIR}/perm)
46 afterinstall: clobber
47 .endif
49 clobber:
50 ${_MKMSG_INSTALL} ${DESTDIR}/var/games/hackdir/perm
51 ${INSTALL_FILE} -o games -g games -m 660 /dev/null \
52 ${DESTDIR}/var/games/hackdir/perm
53 ${_MKMSG_INSTALL} ${DESTDIR}/var/games/hackdir/record
54 ${INSTALL_FILE} -o games -g games -m 660 /dev/null \
55 ${DESTDIR}/var/games/hackdir/record
56 ${_MKMSG_REMOVE} "${DESTDIR}/var/games/hackdir/bones*"
57 rm -f ${DESTDIR}/var/games/hackdir/bones*
59 .include <bsd.prog.mk>