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.6 2006/10/08 16:22:35 pavalos Exp $
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 \
21 CFLAGS
+= -I
${.CURDIR
} -I.
22 FILES
= rumors help hh data
25 FILESDIR
= /var
/games
/hackdir
27 CLEANFILES
=hack.onames.h makedefs.nx makedefs.no
29 build-tools
: makedefs.nx
31 hack.onames.h
: makedefs.nx def.objects.h
32 .
/makedefs.nx
${.CURDIR
}/def.objects.h
> hack.onames.h
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
41 # rm -f ${DESTDIR}/var/games/hackdir/bones* \
42 # ${DESTDIR}/var/games/hackdir/save/*
44 .
include <bsd.prog.mk
>