1# @(#)Makefile 8.1 (Berkeley) 5/31/93 2# $FreeBSD: src/games/hack/Makefile,v 1.20.2.4 2002/08/07 16:31:41 ru Exp $ 3# $DragonFly: src/games/hack/Makefile,v 1.3 2004/03/22 20:57:31 dillon Exp $ 4 5PROG= hack 6SRCS= alloc.c hack.Decl.c hack.apply.c hack.bones.c hack.c hack.cmd.c \ 7 hack.do.c hack.do_name.c hack.do_wear.c hack.dog.c hack.eat.c \ 8 hack.end.c hack.engrave.c hack.fight.c hack.invent.c hack.ioctl.c \ 9 hack.lev.c hack.main.c hack.makemon.c hack.mhitu.c hack.mklev.c \ 10 hack.mkmaze.c hack.mkobj.c hack.mkshop.c hack.mon.c hack.monst.c \ 11 hack.o_init.c hack.objnam.c hack.options.c hack.pager.c hack.potion.c \ 12 hack.pri.c hack.read.c hack.rip.c hack.rumors.c hack.save.c \ 13 hack.search.c hack.shk.c hack.shknam.c hack.steal.c hack.termcap.c \ 14 hack.timeout.c hack.topl.c hack.track.c hack.trap.c hack.tty.c \ 15 hack.u_init.c hack.unix.c hack.vault.c hack.version.c hack.wield.c \ 16 hack.wizard.c hack.worm.c hack.worn.c hack.zap.c rnd.c \ 17 hack.onames.h 18MAN= hack.6 19DPADD= ${LIBTERMCAP} ${LIBCOMPAT} 20LDADD= -ltermcap -lcompat 21CFLAGS+= -fwritable-strings -I${.CURDIR} -I. 22FILES= rumors help hh data 23FILESMODE_rumors= 440 24FILESGRP= ${BINGRP} 25FILESDIR= /var/games/hackdir 26HIDEGAME=hidegame 27CLEANFILES=hack.onames.h makedefs.nx makedefs.no 28 29build-tools: makedefs.nx 30 31hack.onames.h: makedefs.nx def.objects.h 32 ./makedefs.nx ${.CURDIR}/def.objects.h > hack.onames.h 33 34beforeinstall: 35 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} /dev/null \ 36 ${DESTDIR}/var/games/hackdir/perm 37.if !exists(${DESTDIR}/var/games/hackdir/record) 38 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 460 /dev/null \ 39 ${DESTDIR}/var/games/hackdir/record 40.endif 41# rm -f ${DESTDIR}/var/games/hackdir/bones* \ 42# ${DESTDIR}/var/games/hackdir/save/* 43 44.include <bsd.prog.mk> 45