Makefile revision 1.4
1# $NetBSD: Makefile,v 1.4 1995/03/24 03:58:22 cgd Exp $ 2# @(#)Makefile 8.1 (Berkeley) 5/31/93 3 4PROG= phantasia 5SRCS= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c 6DPADD= ${LIBM} ${LIBCURSES} ${LIBTERM} ${LIBCOMPAT} 7LDADD= -lm -lcurses -ltermlib -lcompat 8HIDEGAME=hidegame 9MAN= phantasia.6 10CLEANFILES+=map setup setup.o 11 12all: setup phantasia 13 14setup: phantglobs.o setup.o monsters.asc ${LIBM} 15 ${CC} phantglobs.o setup.o -o ${.TARGET} -lm 16 17beforeinstall: 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 24map: 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. 29phantasia.cat6: phantasia.6 30 tbl ${.CURDIR}/phantasia.6 | nroff -man > ${.TARGET} 31 32.include <bsd.prog.mk> 33