]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/Makefile
rework to use the newer _MKMSGCREATE (et al) macros
[bsdgames-darwin.git] / hack / Makefile
1 # $NetBSD: Makefile,v 1.37 2003/10/19 04:45:01 lukem Exp $
2 # @(#)Makefile 8.2 (Berkeley) 4/27/95
3
4 .include <bsd.own.mk>
5
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+= ${LIBTERM} ${LIBCOMPAT}
22 LDADD+= -ltermcap
23 HIDEGAME=hidegame
24 SETGIDGAME=yes
25 CLEANFILES+=makedefs
26 FILES=help hh data
27 FILESDIR=/var/games/hackdir
28
29 CLEANFILES+=hack.onames.h
30 hack.onames.h: makedefs def.objects.h
31 ${_MKMSGCREATE}
32 ${_MKCMD}\
33 ./makedefs ${.CURDIR}/def.objects.h > hack.onames.h
34
35 makedefs: makedefs.c
36 ${_MKMSGLINK}
37 ${_MKCMD}\
38 ${HOST_LINK.c} -o makedefs ${.CURDIR}/makedefs.c
39
40 hack.h: hack.onames.h
41
42 .if !exists(${DESTDIR}${FILESDIR}/perm)
43 afterinstall: clobber
44 .endif
45
46 clobber:
47 ${_MKMSGINSTALL.m} ${DESTDIR}/var/games/hackdir/perm
48 ${_MKCMD}\
49 ${INSTALL_FILE} -o games -g games -m 660 /dev/null \
50 ${DESTDIR}/var/games/hackdir/perm
51 ${_MKMSGINSTALL.m} ${DESTDIR}/var/games/hackdir/record
52 ${_MKCMD}\
53 ${INSTALL_FILE} -o games -g games -m 660 /dev/null \
54 ${DESTDIR}/var/games/hackdir/record
55 ${_MKMSG} " remove ${DESTDIR}/var/games/hackdir/bones*"
56 ${_MKCMD}\
57 rm -f ${DESTDIR}/var/games/hackdir/bones*
58
59 .include <bsd.prog.mk>