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