1# @(#)Makefile 8.1 (Berkeley) 5/31/93 2# $FreeBSD: src/games/phantasia/Makefile,v 1.16.2.2 2002/08/07 16:31:42 ru Exp $ 3# $DragonFly: src/games/phantasia/Makefile,v 1.5 2006/10/08 16:22:36 pavalos Exp $ 4 5PROG= phantasia 6SRCS= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c 7DPADD= ${LIBM} ${LIBCURSES} ${LIBTERMCAP} ${LIBCOMPAT} 8LDADD= -lm -lcurses -ltermcap -lcompat 9NXLDLIBS= -lm 10DATAFILES=characs gold lastdead mess monsters motd scoreboard void 11HIDEGAME=hidegame 12MAN= phantasia.6 13CLEANFILES=${DATAFILES} cross-phantglobs.no map setup.nx setup.no stamp.setuprun 14 15all: stamp.setuprun 16 17build-tools: setup.nx 18 19cross-phantglobs.no: phantglobs.c 20 ${NXCC} ${NXCFLAGS} -c ${.ALLSRC} -o ${.TARGET} 21 22stamp.setuprun: monsters.asc setup.nx 23 ./setup.nx -m ${.CURDIR}/monsters.asc 24 touch ${.TARGET} 25 26setup.nx: cross-phantglobs.no setup.no ${LIBM} 27 ${NXCC} ${NXCFLAGS} ${NXLDFLAGS} ${.ALLSRC} ${NXLDLIBS} -o ${.TARGET} 28 29beforeinstall: 30.for file in ${DATAFILES} 31.if !exists(${DESTDIR}/var/games/phantasia/${file}) 32 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 660 \ 33 ${file} ${DESTDIR}/var/games/phantasia 34.endif 35.endfor 36 37# Make Phantasia map. Change the map commands reflect your installation. 38# PLOTDEVICE is used for plotting the map. Change as appropriate. 39map: map.c 40 ${CC} -static -O ${.CURDIR}/map.c -lplot -o ${.TARGET} 41 ./map | plot > /dev/tty 42 43.include <bsd.prog.mk> 44