]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - phantasia/Makefile
Use afterinstall, not beforeinstall.
[bsdgames-darwin.git] / phantasia / Makefile
1 # $NetBSD: Makefile,v 1.7 1997/05/09 16:51:41 mycroft Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
3
4 PROG= phantasia
5 SRCS= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c
6 DPADD= ${LIBM} ${LIBCURSES} ${LIBTERM} ${LIBCOMPAT}
7 LDADD= -lm -lcurses -ltermlib -lcompat
8 HIDEGAME=hidegame
9 MAN= phantasia.6
10 CLEANFILES+=map setup setup.o host_phantglobs.o
11
12 all: setup phantasia
13
14 setup: host_phantglobs.o setup.o monsters.asc ${LIBM}
15 ${HOST_CC} host_phantglobs.o setup.o -o ${.TARGET} -lm
16
17 host_phantglobs.o: ${.CURDIR}/phantglobs.c
18 ${HOST_COMPILE.c} -o host_phantglobs.o ${.CURDIR}/phantglobs.c
19
20 setup.o: ${.CURDIR}/setup.c
21 ${HOST_COMPILE.c} ${.CURDIR}/setup.c
22
23 afterinstall:
24 ./setup -m ${.CURDIR}/monsters.asc
25 chown games:bin ${DESTDIR}/var/games/phantasia/*
26
27 # Make Phantasia map. Change the map commands reflect your installation.
28 # PLOTDEVICE is used for plotting the map. Change as appropriate.
29
30 map: map.c
31 ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
32 ./map | plot > /dev/tty
33
34 # XXX this rule shouldn't be here.
35 phantasia.cat6: phantasia.6
36 tbl ${.CURDIR}/phantasia.6 | nroff -man > ${.TARGET}
37
38 .include <bsd.prog.mk>