# @(#)Makefile 8.1 (Berkeley) 5/31/93 # $FreeBSD: src/games/phantasia/Makefile,v 1.16.2.2 2002/08/07 16:31:42 ru Exp $ # $DragonFly: src/games/phantasia/Makefile,v 1.5 2006/10/08 16:22:36 pavalos Exp $ PROG= phantasia SRCS= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c DPADD= ${LIBM} ${LIBCURSES} ${LIBTERMCAP} ${LIBCOMPAT} LDADD= -lm -lcurses -ltermcap -lcompat NXLDLIBS= -lm DATAFILES=characs gold lastdead mess monsters motd scoreboard void HIDEGAME=hidegame MAN= phantasia.6 CLEANFILES=${DATAFILES} cross-phantglobs.no map setup.nx setup.no stamp.setuprun all: stamp.setuprun build-tools: setup.nx cross-phantglobs.no: phantglobs.c ${NXCC} ${NXCFLAGS} -c ${.ALLSRC} -o ${.TARGET} stamp.setuprun: monsters.asc setup.nx ./setup.nx -m ${.CURDIR}/monsters.asc touch ${.TARGET} setup.nx: cross-phantglobs.no setup.no ${LIBM} ${NXCC} ${NXCFLAGS} ${NXLDFLAGS} ${.ALLSRC} ${NXLDLIBS} -o ${.TARGET} beforeinstall: .for file in ${DATAFILES} .if !exists(${DESTDIR}/var/games/phantasia/${file}) ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 660 \ ${file} ${DESTDIR}/var/games/phantasia .endif .endfor # Make Phantasia map. Change the map commands reflect your installation. # PLOTDEVICE is used for plotting the map. Change as appropriate. map: map.c ${CC} -static -O ${.CURDIR}/map.c -lplot -o ${.TARGET} ./map | plot > /dev/tty .include