Make hack compile with gcc40: Remove previously deprecated, now
[dragonfly.git] / games / hack / Makefile
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.4 2005/05/07 18:02:35 corecode Exp $
4
5 PROG=   hack
6 SRCS=   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
18 MAN=    hack.6
19 DPADD=  ${LIBTERMCAP} ${LIBCOMPAT}
20 LDADD=  -ltermcap -lcompat
21 CFLAGS+= -I${.CURDIR} -I.
22 FILES=  rumors help hh data
23 FILESMODE_rumors=       440
24 FILESGRP=       ${BINGRP}
25 FILESDIR=       /var/games/hackdir
26 HIDEGAME=hidegame
27 CLEANFILES=hack.onames.h makedefs.nx makedefs.no
28
29 build-tools: makedefs.nx
30
31 hack.onames.h: makedefs.nx def.objects.h
32         ./makedefs.nx ${.CURDIR}/def.objects.h > hack.onames.h
33
34 beforeinstall:
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>