Makefile revision 1.26
11.26Sthorpej# $NetBSD: Makefile,v 1.26 2002/03/05 21:31:23 thorpej Exp $ 21.1Sjtc# @(#)Makefile 8.1 (Berkeley) 5/31/93 31.25Sgmcgarry 41.25Sgmcgarry.include <bsd.own.mk> 51.18Ssimonb 61.1SjtcPROG= phantasia 71.12SlukemSRCS= fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c 81.12Slukem 91.16SjtcDPADD= ${LIBM} ${LIBCURSES} 101.16SjtcLDADD= -lm -lcurses 111.1SjtcHIDEGAME=hidegame 121.13SmrgSETGIDGAME=yes 131.10SphilUSETBL= 141.2ScgdMAN= phantasia.6 151.1Sjtc 161.22SsimonbFILESDIR=/var/games/phantasia 171.22SsimonbFILESOWN=games 181.22SsimonbFILESGRP=games 191.22SsimonbFILESMODE=0660 201.22SsimonbALLFILES=gold lastdead mess monsters void motd characs scoreboard 211.22SsimonbFILES=gold lastdead mess monsters void motd 221.22Ssimonb# don't overwrite existing characters or scorefile 231.22Ssimonb.for file in characs scoreboard 241.22Ssimonb.if !exists(${DESTDIR}/${FILESDIR}/${file}) 251.22SsimonbFILES+=${file} 261.22Ssimonb.endif 271.22Ssimonb.endfor 281.22Ssimonb 291.22SsimonbCLEANFILES+=map setup setup.lo host_phantglobs.lo ${ALLFILES} 301.22Ssimonb 311.23Slukemrealall: ${FILES} 321.22Ssimonb 331.22Ssimonb${FILES}: setup 341.26Sthorpej ./setup -m ${.CURDIR}/monsters.asc 351.1Sjtc 361.21Smattsetup: host_phantglobs.lo setup.lo monsters.asc ${LIBM} 371.21Smatt ${HOST_LINK.c} host_phantglobs.lo setup.lo -o ${.TARGET} -lm 381.6Sthorpej 391.21Smatthost_phantglobs.lo: ${.CURDIR}/phantglobs.c 401.21Smatt ${HOST_COMPILE.c} -o host_phantglobs.lo ${.CURDIR}/phantglobs.c 411.6Sthorpej 421.21Smattsetup.lo: ${.CURDIR}/setup.c 431.21Smatt ${HOST_COMPILE.c} -o setup.lo ${.CURDIR}/setup.c 441.1Sjtc 451.1Sjtc# Make Phantasia map. Change the map commands reflect your installation. 461.1Sjtc# PLOTDEVICE is used for plotting the map. Change as appropriate. 471.1Sjtc 481.1Sjtcmap: map.c 491.1Sjtc ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET} 501.1Sjtc ./map | plot > /dev/tty 511.1Sjtc 521.1Sjtc.include <bsd.prog.mk> 53