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