Makefile revision 1.32
11.32Slukem#	$NetBSD: Makefile,v 1.32 2003/11/16 14:14:18 lukem 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.27Slukem.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.32Slukem${FILES}: setup monsters.asc
341.32Slukem	${_MKMSG_CREATE} ${FILES}
351.26Sthorpej	./setup -m ${.CURDIR}/monsters.asc
361.1Sjtc
371.32Slukemsetup: host_phantglobs.lo setup.lo ${LIBM} 
381.31Slukem	${_MKTARGET_LINK}
391.32Slukem	${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC:M*.lo} -lm
401.6Sthorpej
411.28SlukemBUILDSYMLINKS+=	phantglobs.c host_phantglobs.c
421.28SlukemHOST_CPPFLAGS+=	-I${.CURDIR}
431.1Sjtc
441.1Sjtc# Make Phantasia map.  Change the map commands reflect your installation.
451.1Sjtc# PLOTDEVICE is used for plotting the map.  Change as appropriate.
461.1Sjtc
471.1Sjtcmap: map.c
481.1Sjtc	${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
491.1Sjtc	./map | plot > /dev/tty
501.1Sjtc
511.1Sjtc.include <bsd.prog.mk>
52