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