]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/Makefile
WARNsify...
[bsdgames-darwin.git] / hack / Makefile
1 # $NetBSD: Makefile,v 1.24 1997/10/19 16:56:41 christos Exp $
2 # @(#)Makefile 8.2 (Berkeley) 4/27/95
3
4 PROG= hack
5 CFLAGS+=-I.
6 SRCS+= hack.onames.h
7 SRCS+= alloc.c hack.Decl.c hack.apply.c hack.bones.c hack.c hack.cmd.c \
8 hack.do.c hack.do_name.c hack.do_wear.c hack.dog.c hack.eat.c \
9 hack.end.c hack.engrave.c hack.fight.c hack.invent.c hack.ioctl.c \
10 hack.lev.c hack.main.c hack.makemon.c hack.mhitu.c hack.mklev.c \
11 hack.mkmaze.c hack.mkobj.c hack.mkshop.c hack.mon.c hack.monst.c \
12 hack.o_init.c hack.objnam.c hack.options.c hack.pager.c hack.potion.c \
13 hack.pri.c hack.read.c hack.rip.c hack.rumors.c hack.save.c \
14 hack.search.c hack.shk.c hack.shknam.c hack.steal.c hack.termcap.c \
15 hack.timeout.c hack.topl.c hack.track.c hack.trap.c hack.tty.c \
16 hack.u_init.c hack.unix.c hack.vault.c hack.version.c hack.wield.c \
17 hack.wizard.c hack.worm.c hack.worn.c hack.zap.c rnd.c
18 MAN= hack.6
19 DPADD+= ${LIBTERM} ${LIBCOMPAT}
20 LDADD+= -ltermcap
21 HIDEGAME=hidegame
22 CLEANFILES+=hack.onames.h makedefs
23 FILES=help hh data
24 FILESDIR=/var/games/hackdir
25
26 ${PROG}: hack.onames.h
27
28 hack.onames.h: makedefs def.objects.h
29 ${.OBJDIR}/makedefs ${.CURDIR}/def.objects.h > hack.onames.h
30
31 .if !exists(${DESTDIR}${FILESDIR}/perm)
32 afterinstall: clobber
33 .endif
34
35 clobber:
36 ${INSTALL} -c -o games -g games -m 600 /dev/null \
37 ${DESTDIR}/var/games/hackdir/perm
38 ${INSTALL} -c -o games -g games -m 600 /dev/null \
39 ${DESTDIR}/var/games/hackdir/record
40 rm -f ${DESTDIR}/var/games/hackdir/bones*
41
42 .include <bsd.prog.mk>