Makefile revision 1.10
1#	$NetBSD: Makefile,v 1.10 1997/06/30 19:33:34 phil Exp $
2#	@(#)Makefile	8.1 (Berkeley) 5/31/93
3
4PROG=	phantasia
5SRCS=	main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c
6DPADD=	${LIBM} ${LIBCURSES} ${LIBTERM} ${LIBCOMPAT}
7LDADD=	-lm -lcurses -ltermlib -lcompat
8HIDEGAME=hidegame
9USETBL=
10MAN=	phantasia.6
11CLEANFILES+=map setup setup.o host_phantglobs.o
12
13all: setup phantasia
14
15setup: host_phantglobs.o setup.o monsters.asc ${LIBM} 
16	${HOST_CC} host_phantglobs.o setup.o -o ${.TARGET} -lm
17
18host_phantglobs.o: ${.CURDIR}/phantglobs.c
19	${HOST_COMPILE.c} -o host_phantglobs.o ${.CURDIR}/phantglobs.c
20
21setup.o: ${.CURDIR}/setup.c
22	${HOST_COMPILE.c} ${.CURDIR}/setup.c
23
24afterinstall: 
25	./setup -m ${.CURDIR}/monsters.asc
26	chown games:bin ${DESTDIR}/var/games/phantasia/*
27
28# Make Phantasia map.  Change the map commands reflect your installation.
29# PLOTDEVICE is used for plotting the map.  Change as appropriate.
30
31map: map.c
32	${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
33	./map | plot > /dev/tty
34
35.include <bsd.prog.mk>
36