]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - phantasia/Makefile
enable WARNS?=1 by default, & temporarily disable for the few unclean programs
[bsdgames-darwin.git] / phantasia / Makefile
1 # $NetBSD: Makefile,v 1.11 1997/10/12 14:21:49 lukem Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
3
4 WARNS= 0
5 PROG= phantasia
6 SRCS= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c
7 DPADD= ${LIBM} ${LIBCURSES} ${LIBTERM} ${LIBCOMPAT}
8 LDADD= -lm -lcurses -ltermlib -lcompat
9 HIDEGAME=hidegame
10 USETBL=
11 MAN= phantasia.6
12 CLEANFILES+=map setup setup.o host_phantglobs.o
13
14 all: setup phantasia
15
16 setup: host_phantglobs.o setup.o monsters.asc ${LIBM}
17 ${HOST_CC} host_phantglobs.o setup.o -o ${.TARGET} -lm
18
19 host_phantglobs.o: ${.CURDIR}/phantglobs.c
20 ${HOST_COMPILE.c} -o host_phantglobs.o ${.CURDIR}/phantglobs.c
21
22 setup.o: ${.CURDIR}/setup.c
23 ${HOST_COMPILE.c} ${.CURDIR}/setup.c
24
25 afterinstall:
26 ./setup -m ${.CURDIR}/monsters.asc
27 chown games:bin ${DESTDIR}/var/games/phantasia/*
28
29 # Make Phantasia map. Change the map commands reflect your installation.
30 # PLOTDEVICE is used for plotting the map. Change as appropriate.
31
32 map: map.c
33 ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
34 ./map | plot > /dev/tty
35
36 .include <bsd.prog.mk>