1 # $NetBSD: Makefile,v 1.5 1996/06/01 19:47:19 jtk 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 11 12 all: setup phantasia 13 14 setup: phantglobs.o setup.o monsters.asc ${LIBM} 15 ${CC} phantglobs.o setup.o -o ${.TARGET} -lm 16 17 beforeinstall: 18 ./setup -m ${.CURDIR}/monsters.asc 19 chown games:bin ${DESTDIR}/var/games/phantasia/* 20 21 # Make Phantasia map. Change the map commands reflect your installation. 22 # PLOTDEVICE is used for plotting the map. Change as appropriate. 23 24 map: map.c 25 ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET} 26 ./map | plot > /dev/tty 27 28 # XXX this rule shouldn't be here. 29 phantasia.cat6: phantasia.6 30 tbl ${.CURDIR}/phantasia.6 | nroff -man > ${.TARGET} 31 32 .include <bsd.prog.mk> 33