1 # $NetBSD: Makefile,v 1.40 2006/02/25 11:56:51 simonb Exp $
2 # @(#)Makefile 8.2 (Berkeley) 4/27/95
8 DPSRCS
+=hack.onames.h hack.h
9 SRCS
+= alloc.c hack.Decl.c hack.apply.c hack.bones.c hack.c hack.cmd.c \
10 hack.do.c hack.do_name.c hack.do_wear.c hack.dog.c hack.eat.c \
11 hack.end.c hack.engrave.c hack.fight.c hack.invent.c hack.ioctl.c \
12 hack.lev.c hack.main.c hack.makemon.c hack.mhitu.c hack.mklev.c \
13 hack.mkmaze.c hack.mkobj.c hack.mkshop.c hack.mon.c hack.monst.c \
14 hack.o_init.c hack.objnam.c hack.options.c hack.pager.c hack.potion.c \
15 hack.pri.c hack.read.c hack.rip.c hack.rumors.c hack.save.c \
16 hack.search.c hack.shk.c hack.shknam.c hack.steal.c hack.termcap.c \
17 hack.timeout.c hack.topl.c hack.track.c hack.trap.c hack.tty.c \
18 hack.u_init.c hack.unix.c hack.vault.c hack.version.c hack.wield.c \
19 hack.wizard.c hack.worm.c hack.worn.c hack.zap.c rnd.c
25 CLEANFILES
+=makedefs makedefs.lo
27 FILESDIR
=/var
/games
/hackdir
29 CLEANFILES
+=hack.onames.h
30 hack.onames.h
: makedefs def.objects.h
32 .
/makedefs
${.CURDIR
}/def.objects.h
> hack.onames.h
36 ${HOST_LINK.c
} -o
${.TARGET
} ${.ALLSRC
}
41 COPTS.hack.bones.c
+= -Wno-shadow
42 COPTS.hack.do.c
+= -Wno-shadow
45 .if
!exists
(${DESTDIR}${FILESDIR}/perm
)
50 ${_MKMSG_INSTALL} ${DESTDIR}/var
/games
/hackdir
/perm
51 ${INSTALL_FILE} -o games
-g games
-m
660 /dev
/null \
52 ${DESTDIR}/var
/games
/hackdir
/perm
53 ${_MKMSG_INSTALL} ${DESTDIR}/var
/games
/hackdir
/record
54 ${INSTALL_FILE} -o games
-g games
-m
660 /dev
/null \
55 ${DESTDIR}/var
/games
/hackdir
/record
56 ${_MKMSG_REMOVE} "${DESTDIR}/var/games/hackdir/bones*"
57 rm -f
${DESTDIR}/var
/games
/hackdir
/bones
*
59 .
include <bsd.prog.mk
>