1 # @(#)Makefile 8.1 (Berkeley) 5/31/93
5 SRCS= alloc.c hack.Decl.c hack.apply.c hack.bones.c hack.c hack.cmd.c \
6 hack.do.c hack.do_name.c hack.do_wear.c hack.dog.c hack.eat.c \
7 hack.end.c hack.engrave.c hack.fight.c hack.invent.c hack.ioctl.c \
8 hack.lev.c hack.main.c hack.makemon.c hack.mhitu.c hack.mklev.c \
9 hack.mkmaze.c hack.mkobj.c hack.mkshop.c hack.mon.c hack.monst.c \
10 hack.o_init.c hack.objnam.c hack.options.c hack.pager.c hack.potion.c \
11 hack.pri.c hack.read.c hack.rip.c hack.rumors.c hack.save.c \
12 hack.search.c hack.shk.c hack.shknam.c hack.steal.c hack.termcap.c \
13 hack.timeout.c hack.topl.c hack.track.c hack.trap.c hack.tty.c \
14 hack.u_init.c hack.unix.c hack.vault.c hack.version.c hack.wield.c \
15 hack.wizard.c hack.worm.c hack.worn.c hack.zap.c rnd.c \
17 DPADD= ${LIBTERMCAP} ${LIBCOMPAT}
18 LDADD= -ltermcap -lcompat
19 CFLAGS+= -fwritable-strings -I${.CURDIR} -I.
21 CLEANFILES=hack.onames.h makedefs makedefs.o
25 hack.onames.h: makedefs def.objects.h
26 ./makedefs ${.CURDIR}/def.objects.h > hack.onames.h
29 ${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
32 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} /dev/null \
33 ${DESTDIR}/var/games/hackdir/perm
34 .if !exists(${DESTDIR}/var/games/hackdir/record)
35 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 460 /dev/null \
36 ${DESTDIR}/var/games/hackdir/record
38 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 440 ${.CURDIR}/rumors \
39 ${DESTDIR}/var/games/hackdir/rumors
40 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
41 ${.CURDIR}/help ${.CURDIR}/hh ${.CURDIR}/data \
42 ${DESTDIR}/var/games/hackdir
43 # rm -f ${DESTDIR}/var/games/hackdir/bones* \
44 # ${DESTDIR}/var/games/hackdir/save/*
46 .include <bsd.prog.mk>