1 # $NetBSD: Makefile,v 1.20 2000/04/24 15:15:05 pk Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
4 .include <bsd.own.mk> # for UNPRIVILEGED
7 SRCS= fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c
9 DPADD= ${LIBM} ${LIBCURSES}
15 CLEANFILES+=map setup setup.o host_phantglobs.o
17 realall: setup phantasia
19 setup: host_phantglobs.o setup.o monsters.asc ${LIBM}
20 ${HOST_LINK.c} host_phantglobs.o setup.o -o ${.TARGET} -lm
22 host_phantglobs.o: ${.CURDIR}/phantglobs.c
23 ${HOST_COMPILE.c} -o host_phantglobs.o ${.CURDIR}/phantglobs.c
25 setup.o: ${.CURDIR}/setup.c
26 ${HOST_COMPILE.c} ${.CURDIR}/setup.c
29 DESTDIR=${DESTDIR} ./setup -m ${.CURDIR}/monsters.asc
30 .if !defined(UNPRIVILEGED)
31 chown games:games ${DESTDIR}/var/games/phantasia/*
34 # Make Phantasia map. Change the map commands reflect your installation.
35 # PLOTDEVICE is used for plotting the map. Change as appropriate.
38 ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
39 ./map | plot > /dev/tty
41 .include <bsd.prog.mk>