1 1.29 dbj # $NetBSD: Makefile,v 1.29 1998/12/06 09:06:45 dbj Exp $ 2 1.18 tls # @(#)Makefile 8.2 (Berkeley) 4/27/95 3 1.29 dbj 4 1.29 dbj .include <bsd.own.mk> 5 1.1 cgd 6 1.1 cgd PROG= hack 7 1.25 lukem CPPFLAGS+=-I. 8 1.5 mycroft SRCS+= hack.onames.h 9 1.5 mycroft SRCS+= alloc.c hack.Decl.c hack.apply.c hack.bones.c hack.c hack.cmd.c \ 10 1.1 cgd hack.do.c hack.do_name.c hack.do_wear.c hack.dog.c hack.eat.c \ 11 1.1 cgd hack.end.c hack.engrave.c hack.fight.c hack.invent.c hack.ioctl.c \ 12 1.1 cgd hack.lev.c hack.main.c hack.makemon.c hack.mhitu.c hack.mklev.c \ 13 1.1 cgd hack.mkmaze.c hack.mkobj.c hack.mkshop.c hack.mon.c hack.monst.c \ 14 1.1 cgd hack.o_init.c hack.objnam.c hack.options.c hack.pager.c hack.potion.c \ 15 1.1 cgd hack.pri.c hack.read.c hack.rip.c hack.rumors.c hack.save.c \ 16 1.1 cgd hack.search.c hack.shk.c hack.shknam.c hack.steal.c hack.termcap.c \ 17 1.1 cgd hack.timeout.c hack.topl.c hack.track.c hack.trap.c hack.tty.c \ 18 1.1 cgd hack.u_init.c hack.unix.c hack.vault.c hack.version.c hack.wield.c \ 19 1.1 cgd hack.wizard.c hack.worm.c hack.worn.c hack.zap.c rnd.c 20 1.15 cgd MAN= hack.6 21 1.14 cgd DPADD+= ${LIBTERM} ${LIBCOMPAT} 22 1.24 christos LDADD+= -ltermcap 23 1.1 cgd HIDEGAME=hidegame 24 1.26 mrg SETGIDGAME=yes 25 1.7 mycroft CLEANFILES+=hack.onames.h makedefs 26 1.20 mycroft FILES=help hh data 27 1.19 christos FILESDIR=/var/games/hackdir 28 1.9 mycroft 29 1.1 cgd hack.onames.h: makedefs def.objects.h 30 1.12 pk ${.OBJDIR}/makedefs ${.CURDIR}/def.objects.h > hack.onames.h 31 1.28 wrstuden 32 1.28 wrstuden makedefs: makedefs.c 33 1.28 wrstuden ${HOST_LINK.c} -o makedefs ${.CURDIR}/makedefs.c 34 1.25 lukem 35 1.25 lukem hack.h: hack.onames.h 36 1.25 lukem 37 1.25 lukem alloc.o hack.Decl.o hack.apply.o hack.bones.o hack.o hack.cmd.o hack.do.o \ 38 1.25 lukem hack.do_name.o hack.do_wear.o hack.dog.o hack.eat.o hack.end.o \ 39 1.25 lukem hack.engrave.o hack.fight.o hack.invent.o hack.ioctl.o hack.lev.o \ 40 1.25 lukem hack.main.o hack.makemon.o hack.mhitu.o hack.mklev.o hack.mkmaze.o \ 41 1.25 lukem hack.mkobj.o hack.mkshop.o hack.mon.o hack.monst.o hack.o_init.o \ 42 1.25 lukem hack.objnam.o hack.options.o hack.pager.o hack.potion.o hack.pri.o \ 43 1.25 lukem hack.read.o hack.rip.o hack.rumors.o hack.save.o hack.search.o hack.shk.o \ 44 1.25 lukem hack.shknam.o hack.steal.o hack.termcap.o hack.timeout.o hack.topl.o \ 45 1.25 lukem hack.track.o hack.trap.o hack.tty.o hack.u_init.o hack.unix.o hack.vault.o \ 46 1.25 lukem hack.version.o hack.wield.o hack.wizard.o hack.worm.o hack.worn.o \ 47 1.25 lukem hack.zap.o rnd.o: hack.h 48 1.1 cgd 49 1.19 christos .if !exists(${DESTDIR}${FILESDIR}/perm) 50 1.22 mycroft afterinstall: clobber 51 1.19 christos .endif 52 1.19 christos 53 1.19 christos clobber: 54 1.27 mrg ${INSTALL} -c -o games -g games -m 660 /dev/null \ 55 1.1 cgd ${DESTDIR}/var/games/hackdir/perm 56 1.27 mrg ${INSTALL} -c -o games -g games -m 660 /dev/null \ 57 1.1 cgd ${DESTDIR}/var/games/hackdir/record 58 1.1 cgd rm -f ${DESTDIR}/var/games/hackdir/bones* 59 1.1 cgd 60 1.1 cgd .include <bsd.prog.mk> 61