]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/Makefile
I wish the socket API didn't require casts. Easy to mess them up.
[bsdgames-darwin.git] / hack / Makefile
1 # $NetBSD: Makefile,v 1.45 2011/08/24 17:39:32 plunky 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.terminfo.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+= ${LIBTERMINFO}
22 LDADD+= -lterminfo
23 HIDEGAME=hidegame
24 SETGIDGAME=yes
25 CLEANFILES+=makedefs makedefs.lo
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 ${_MKTARGET_CREATE}
32 ./makedefs ${.CURDIR}/def.objects.h > hack.onames.h
33
34 makedefs: makedefs.lo
35 ${_MKTARGET_LINK}
36 ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
37
38 hack.h: hack.onames.h
39
40 COPTS.hack.mon.c+= -Wno-format-nonliteral
41 COPTS.hack.rip.c+= -Wno-format-nonliteral
42
43 .if !exists(${DESTDIR}${FILESDIR}/perm)
44 afterinstall: clobber
45 .endif
46
47 clobber:
48 ${_MKMSG_INSTALL} ${DESTDIR}/var/games/hackdir/perm
49 ${INSTALL_FILE} -o games -g games -m 660 /dev/null \
50 ${DESTDIR}/var/games/hackdir/perm
51 ${_MKMSG_INSTALL} ${DESTDIR}/var/games/hackdir/record
52 ${INSTALL_FILE} -o games -g games -m 660 /dev/null \
53 ${DESTDIR}/var/games/hackdir/record
54 ${_MKMSG_REMOVE} "${DESTDIR}/var/games/hackdir/bones*"
55 rm -f ${DESTDIR}/var/games/hackdir/bones*
56
57 .include <bsd.prog.mk>