1 # @(#)Makefile 8.1 (Berkeley) 5/31/93
4 SRCS= alloc.c hack.Decl.c hack.apply.c hack.bones.c hack.c hack.cmd.c \
5 hack.do.c hack.do_name.c hack.do_wear.c hack.dog.c hack.eat.c \
6 hack.end.c hack.engrave.c hack.fight.c hack.invent.c hack.ioctl.c \
7 hack.lev.c hack.main.c hack.makemon.c hack.mhitu.c hack.mklev.c \
8 hack.mkmaze.c hack.mkobj.c hack.mkshop.c hack.mon.c hack.monst.c \
9 hack.o_init.c hack.objnam.c hack.options.c hack.pager.c hack.potion.c \
10 hack.pri.c hack.read.c hack.rip.c hack.rumors.c hack.save.c \
11 hack.search.c hack.shk.c hack.shknam.c hack.steal.c hack.termcap.c \
12 hack.timeout.c hack.topl.c hack.track.c hack.trap.c hack.tty.c \
13 hack.u_init.c hack.unix.c hack.vault.c hack.version.c hack.wield.c \
14 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
23 hack.onames.h: makedefs def.objects.h
24 ./makedefs ${.CURDIR}/def.objects.h > hack.onames.h
27 ${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c
30 ${INSTALL} -c -o bin -g bin -m ${NOBINMODE} /dev/null \
31 ${DESTDIR}/var/games/hackdir/perm
32 ${INSTALL} -c -o bin -g ${BINGRP} -m 460 /dev/null \
33 ${DESTDIR}/var/games/hackdir/record
34 ${INSTALL} -c -o bin -g ${BINGRP} -m 440 ${.CURDIR}/rumors \
35 ${DESTDIR}/var/games/hackdir/rumors
36 ${INSTALL} -c -o bin -g bin -m ${NOBINMODE} \
37 ${.CURDIR}/help ${.CURDIR}/hh ${.CURDIR}/data \
38 ${DESTDIR}/var/games/hackdir
39 rm -f ${DESTDIR}/var/games/hackdir/bones* \
40 ${DESTDIR}/var/games/hackdir/save/*
42 .include <bsd.prog.mk>