]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - phantasia/Makefile
tweaks to pass DESTDIR to subprograms when it is defined in /etc/mk.conf
[bsdgames-darwin.git] / phantasia / Makefile
1 # $NetBSD: Makefile,v 1.17 1998/12/06 09:06:46 dbj Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
3
4 PROG= phantasia
5 SRCS= fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c
6
7 DPADD= ${LIBM} ${LIBCURSES}
8 LDADD= -lm -lcurses
9 HIDEGAME=hidegame
10 SETGIDGAME=yes
11 USETBL=
12 MAN= phantasia.6
13 CLEANFILES+=map setup setup.o host_phantglobs.o
14
15 all: setup phantasia
16
17 setup: host_phantglobs.o setup.o monsters.asc ${LIBM}
18 ${HOST_CC} host_phantglobs.o setup.o -o ${.TARGET} -lm
19
20 host_phantglobs.o: ${.CURDIR}/phantglobs.c
21 ${HOST_COMPILE.c} -o host_phantglobs.o ${.CURDIR}/phantglobs.c
22
23 setup.o: ${.CURDIR}/setup.c
24 ${HOST_COMPILE.c} ${.CURDIR}/setup.c
25
26 afterinstall:
27 DESTDIR=${DESTDIR} ./setup -m ${.CURDIR}/monsters.asc
28 chown games:games ${DESTDIR}/var/games/phantasia/*
29
30 # Make Phantasia map. Change the map commands reflect your installation.
31 # PLOTDEVICE is used for plotting the map. Change as appropriate.
32
33 map: map.c
34 ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
35 ./map | plot > /dev/tty
36
37 .include <bsd.prog.mk>