Merge branch 'vendor/LDNS'
[dragonfly.git] / games / phantasia / Makefile
CommitLineData
984263bc
MD
1# @(#)Makefile 8.1 (Berkeley) 5/31/93
2# $FreeBSD: src/games/phantasia/Makefile,v 1.16.2.2 2002/08/07 16:31:42 ru Exp $
0ac6bf9d 3# $DragonFly: src/games/phantasia/Makefile,v 1.5 2006/10/08 16:22:36 pavalos Exp $
984263bc
MD
4
5PROG= phantasia
6SRCS= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c
7DPADD= ${LIBM} ${LIBCURSES} ${LIBTERMCAP} ${LIBCOMPAT}
8LDADD= -lm -lcurses -ltermcap -lcompat
1397f94a 9NXLDLIBS= -lm
984263bc
MD
10DATAFILES=characs gold lastdead mess monsters motd scoreboard void
11HIDEGAME=hidegame
12MAN= phantasia.6
1397f94a 13CLEANFILES=${DATAFILES} cross-phantglobs.no map setup.nx setup.no stamp.setuprun
984263bc
MD
14
15all: stamp.setuprun
16
1397f94a 17build-tools: setup.nx
984263bc 18
1397f94a
MD
19cross-phantglobs.no: phantglobs.c
20 ${NXCC} ${NXCFLAGS} -c ${.ALLSRC} -o ${.TARGET}
984263bc 21
1397f94a
MD
22stamp.setuprun: monsters.asc setup.nx
23 ./setup.nx -m ${.CURDIR}/monsters.asc
984263bc
MD
24 touch ${.TARGET}
25
1397f94a
MD
26setup.nx: cross-phantglobs.no setup.no ${LIBM}
27 ${NXCC} ${NXCFLAGS} ${NXLDFLAGS} ${.ALLSRC} ${NXLDLIBS} -o ${.TARGET}
984263bc
MD
28
29beforeinstall:
30.for file in ${DATAFILES}
31.if !exists(${DESTDIR}/var/games/phantasia/${file})
32 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 660 \
33 ${file} ${DESTDIR}/var/games/phantasia
34.endif
35.endfor
36
37# Make Phantasia map. Change the map commands reflect your installation.
38# PLOTDEVICE is used for plotting the map. Change as appropriate.
39map: map.c
40 ${CC} -static -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
41 ./map | plot > /dev/tty
42
43.include <bsd.prog.mk>