Make hack compile with gcc40: Remove previously deprecated, now
[dragonfly.git] / games / hack / Makefile
CommitLineData
984263bc
MD
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 $
79362cff 3# $DragonFly: src/games/hack/Makefile,v 1.4 2005/05/07 18:02:35 corecode Exp $
984263bc
MD
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
79362cff 21CFLAGS+= -I${.CURDIR} -I.
984263bc
MD
22FILES= rumors help hh data
23FILESMODE_rumors= 440
24FILESGRP= ${BINGRP}
25FILESDIR= /var/games/hackdir
26HIDEGAME=hidegame
1397f94a 27CLEANFILES=hack.onames.h makedefs.nx makedefs.no
984263bc 28
1397f94a 29build-tools: makedefs.nx
984263bc 30
1397f94a
MD
31hack.onames.h: makedefs.nx def.objects.h
32 ./makedefs.nx ${.CURDIR}/def.objects.h > hack.onames.h
984263bc
MD
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>