Makefile revision 1.28
1# $NetBSD: Makefile,v 1.28 2003/10/18 07:40:27 lukem Exp $ 2# @(#)Makefile 8.1 (Berkeley) 5/31/93 3 4.include <bsd.own.mk> 5 6PROG= phantasia 7SRCS= fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c 8 9DPADD= ${LIBM} ${LIBCURSES} 10LDADD= -lm -lcurses 11HIDEGAME=hidegame 12SETGIDGAME=yes 13USETBL= 14MAN= phantasia.6 15 16FILESDIR=/var/games/phantasia 17FILESOWN=games 18FILESGRP=games 19FILESMODE=0660 20ALLFILES=gold lastdead mess monsters void motd characs scoreboard 21FILES=gold lastdead mess monsters void motd 22# don't overwrite existing characters or scorefile 23.for file in characs scoreboard 24.if !exists(${DESTDIR}${FILESDIR}/${file}) 25FILES+=${file} 26.endif 27.endfor 28 29CLEANFILES+=map setup setup.lo host_phantglobs.lo ${ALLFILES} 30 31realall: ${FILES} 32 33${FILES}: setup 34 ./setup -m ${.CURDIR}/monsters.asc 35 36setup: host_phantglobs.lo setup.lo monsters.asc ${LIBM} 37 ${HOST_LINK.c} host_phantglobs.lo setup.lo -o ${.TARGET} -lm 38 39BUILDSYMLINKS+= phantglobs.c host_phantglobs.c 40HOST_CPPFLAGS+= -I${.CURDIR} 41 42# Make Phantasia map. Change the map commands reflect your installation. 43# PLOTDEVICE is used for plotting the map. Change as appropriate. 44 45map: map.c 46 ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET} 47 ./map | plot > /dev/tty 48 49.include <bsd.prog.mk> 50