1 # $NetBSD: Makefile,v 1.7 1997/05/09 16:51:41 mycroft Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
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
10 CLEANFILES+=map setup setup.o host_phantglobs.o
14 setup: host_phantglobs.o setup.o monsters.asc ${LIBM}
15 ${HOST_CC} host_phantglobs.o setup.o -o ${.TARGET} -lm
17 host_phantglobs.o: ${.CURDIR}/phantglobs.c
18 ${HOST_COMPILE.c} -o host_phantglobs.o ${.CURDIR}/phantglobs.c
20 setup.o: ${.CURDIR}/setup.c
21 ${HOST_COMPILE.c} ${.CURDIR}/setup.c
24 ./setup -m ${.CURDIR}/monsters.asc
25 chown games:bin ${DESTDIR}/var/games/phantasia/*
27 # Make Phantasia map. Change the map commands reflect your installation.
28 # PLOTDEVICE is used for plotting the map. Change as appropriate.
31 ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
32 ./map | plot > /dev/tty
34 # XXX this rule shouldn't be here.
35 phantasia.cat6: phantasia.6
36 tbl ${.CURDIR}/phantasia.6 | nroff -man > ${.TARGET}
38 .include <bsd.prog.mk>