1 # $NetBSD: Makefile,v 1.26 2002/03/05 21:31:23 thorpej Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
7 SRCS= fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c
9 DPADD= ${LIBM} ${LIBCURSES}
16 FILESDIR=/var/games/phantasia
20 ALLFILES=gold lastdead mess monsters void motd characs scoreboard
21 FILES=gold lastdead mess monsters void motd
22 # don't overwrite existing characters or scorefile
23 .for file in characs scoreboard
24 .if !exists(${DESTDIR}/${FILESDIR}/${file})
29 CLEANFILES+=map setup setup.lo host_phantglobs.lo ${ALLFILES}
34 ./setup -m ${.CURDIR}/monsters.asc
36 setup: host_phantglobs.lo setup.lo monsters.asc ${LIBM}
37 ${HOST_LINK.c} host_phantglobs.lo setup.lo -o ${.TARGET} -lm
39 host_phantglobs.lo: ${.CURDIR}/phantglobs.c
40 ${HOST_COMPILE.c} -o host_phantglobs.lo ${.CURDIR}/phantglobs.c
42 setup.lo: ${.CURDIR}/setup.c
43 ${HOST_COMPILE.c} -o setup.lo ${.CURDIR}/setup.c
45 # Make Phantasia map. Change the map commands reflect your installation.
46 # PLOTDEVICE is used for plotting the map. Change as appropriate.
49 ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
50 ./map | plot > /dev/tty
52 .include <bsd.prog.mk>