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