11.38Srin# $NetBSD: Makefile,v 1.38 2023/10/07 12:15:52 rin 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.34SheDPADD= ${LIBM} ${LIBCURSES} ${LIBTERMINFO} 101.34SheLDADD= -lm -lcurses -lterminfo 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.27Slukem.if !exists(${DESTDIR}${FILESDIR}/${file}) 251.22SsimonbFILES+=${file} 261.22Ssimonb.endif 271.22Ssimonb.endfor 281.22Ssimonb 291.36SjmcneillCLEANFILES+=map mkdata setup.lo host_phantglobs.lo ${ALLFILES} files.stamp 301.22Ssimonb 311.23Slukemrealall: ${FILES} 321.22Ssimonb 331.33Slukem${FILES}: files.stamp 341.36Sjmcneillfiles.stamp: mkdata monsters.asc 351.32Slukem ${_MKMSG_CREATE} ${FILES} 361.33Slukem rm -f ${.TARGET} 371.36Sjmcneill ./mkdata -m ${.CURDIR}/monsters.asc 381.33Slukem touch ${.TARGET} 391.1Sjtc 401.36Sjmcneillmkdata: host_phantglobs.lo setup.lo ${LIBM} 411.31Slukem ${_MKTARGET_LINK} 421.32Slukem ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC:M*.lo} -lm 431.6Sthorpej 441.28SlukemBUILDSYMLINKS+= phantglobs.c host_phantglobs.c 451.28SlukemHOST_CPPFLAGS+= -I${.CURDIR} 461.1Sjtc 471.1Sjtc# Make Phantasia map. Change the map commands reflect your installation. 481.1Sjtc# PLOTDEVICE is used for plotting the map. Change as appropriate. 491.1Sjtc 501.1Sjtcmap: map.c 511.1Sjtc ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET} 521.1Sjtc ./map | plot > /dev/tty 531.1Sjtc 541.1Sjtc.include <bsd.prog.mk> 55