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