1 # $NetBSD: Makefile,v 1.33 2002/03/05 21:29:56 thorpej Exp $
2 # @(#)Makefile 8.2 (Berkeley) 4/27/95
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
21 DPADD+= ${LIBTERM} ${LIBCOMPAT}
25 CLEANFILES+=hack.onames.h makedefs
27 FILESDIR=/var/games/hackdir
29 hack.onames.h: makedefs def.objects.h
30 ./makedefs ${.CURDIR}/def.objects.h > hack.onames.h
33 ${HOST_LINK.c} -o makedefs ${.CURDIR}/makedefs.c
37 alloc.o hack.Decl.o hack.apply.o hack.bones.o hack.o hack.cmd.o hack.do.o \
38 hack.do_name.o hack.do_wear.o hack.dog.o hack.eat.o hack.end.o \
39 hack.engrave.o hack.fight.o hack.invent.o hack.ioctl.o hack.lev.o \
40 hack.main.o hack.makemon.o hack.mhitu.o hack.mklev.o hack.mkmaze.o \
41 hack.mkobj.o hack.mkshop.o hack.mon.o hack.monst.o hack.o_init.o \
42 hack.objnam.o hack.options.o hack.pager.o hack.potion.o hack.pri.o \
43 hack.read.o hack.rip.o hack.rumors.o hack.save.o hack.search.o hack.shk.o \
44 hack.shknam.o hack.steal.o hack.termcap.o hack.timeout.o hack.topl.o \
45 hack.track.o hack.trap.o hack.tty.o hack.u_init.o hack.unix.o hack.vault.o \
46 hack.version.o hack.wield.o hack.wizard.o hack.worm.o hack.worn.o \
47 hack.zap.o rnd.o: hack.h
49 .if !exists(${DESTDIR}${FILESDIR}/perm)
54 ${INSTALL_FILE} -o games -g games -m 660 /dev/null \
55 ${DESTDIR}/var/games/hackdir/perm
56 ${INSTALL_FILE} -o games -g games -m 660 /dev/null \
57 ${DESTDIR}/var/games/hackdir/record
58 rm -f ${DESTDIR}/var/games/hackdir/bones*
60 .include <bsd.prog.mk>