1 1.12 lukem # $NetBSD: Makefile,v 1.12 1997/10/13 02:18:06 lukem Exp $ 2 1.1 jtc # @(#)Makefile 8.1 (Berkeley) 5/31/93 3 1.1 jtc 4 1.1 jtc PROG= phantasia 5 1.12 lukem SRCS= fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c 6 1.12 lukem 7 1.1 jtc DPADD= ${LIBM} ${LIBCURSES} ${LIBTERM} ${LIBCOMPAT} 8 1.1 jtc LDADD= -lm -lcurses -ltermlib -lcompat 9 1.1 jtc HIDEGAME=hidegame 10 1.10 phil USETBL= 11 1.2 cgd MAN= phantasia.6 12 1.6 thorpej CLEANFILES+=map setup setup.o host_phantglobs.o 13 1.1 jtc 14 1.2 cgd all: setup phantasia 15 1.1 jtc 16 1.6 thorpej setup: host_phantglobs.o setup.o monsters.asc ${LIBM} 17 1.6 thorpej ${HOST_CC} host_phantglobs.o setup.o -o ${.TARGET} -lm 18 1.6 thorpej 19 1.6 thorpej host_phantglobs.o: ${.CURDIR}/phantglobs.c 20 1.6 thorpej ${HOST_COMPILE.c} -o host_phantglobs.o ${.CURDIR}/phantglobs.c 21 1.6 thorpej 22 1.6 thorpej setup.o: ${.CURDIR}/setup.c 23 1.6 thorpej ${HOST_COMPILE.c} ${.CURDIR}/setup.c 24 1.1 jtc 25 1.9 cjs afterinstall: 26 1.9 cjs ./setup -m ${.CURDIR}/monsters.asc 27 1.5 jtk chown games:bin ${DESTDIR}/var/games/phantasia/* 28 1.1 jtc 29 1.1 jtc # Make Phantasia map. Change the map commands reflect your installation. 30 1.1 jtc # PLOTDEVICE is used for plotting the map. Change as appropriate. 31 1.1 jtc 32 1.1 jtc map: map.c 33 1.1 jtc ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET} 34 1.1 jtc ./map | plot > /dev/tty 35 1.1 jtc 36 1.1 jtc .include <bsd.prog.mk> 37