1# @(#)Makefile 8.1 (Berkeley) 05/31/93 2 3PROG= phantasia 4SRCS= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c 5DPADD= ${LIBM} ${LIBCURSES} ${LIBTERM} ${LIBCOMPAT} 6LDADD= -lm -lcurses -ltermlib -lcompat 7HIDEGAME=hidegame 8MAN6= phantasia.0 9CLEANFILES+=map setup setup.o 10 11all: setup phantasia ${MAN6} 12 13setup: phantglobs.o setup.o monsters.asc ${LIBM} 14 ${CC} phantglobs.o setup.o -o ${.TARGET} -lm 15 16beforeinstall: 17 ./setup -m ${.CURDIR}/monsters.asc 18 chown games.bin /var/games/phantasia/* 19 20# Make Phantasia map. Change the map commands reflect your installation. 21# PLOTDEVICE is used for plotting the map. Change as appropriate. 22 23map: map.c 24 ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET} 25 ./map | plot > /dev/tty 26 27phantasia.0: phantasia.6 28 tbl ${.CURDIR}/phantasia.6 | nroff -man > ${.TARGET} 29 30.include <bsd.prog.mk> 31