xref: /netbsd-src/games/phantasia/Makefile (revision f5d3fbbc6ff4a77159fb268d247bd94cb7d7e332)
1#	$NetBSD: Makefile,v 1.12 1997/10/13 02:18:06 lukem 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} ${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