* Remove register keywords.
[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 $
313fa7d1 3# $DragonFly: src/games/phantasia/Makefile,v 1.4 2005/05/31 00:06:26 swildner 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
313fa7d1 14WARNS?= 6
984263bc
MD
15
16all: stamp.setuprun
17
1397f94a 18build-tools: setup.nx
984263bc 19
1397f94a
MD
20cross-phantglobs.no: phantglobs.c
21 ${NXCC} ${NXCFLAGS} -c ${.ALLSRC} -o ${.TARGET}
984263bc 22
1397f94a
MD
23stamp.setuprun: monsters.asc setup.nx
24 ./setup.nx -m ${.CURDIR}/monsters.asc
984263bc
MD
25 touch ${.TARGET}
26
1397f94a
MD
27setup.nx: cross-phantglobs.no setup.no ${LIBM}
28 ${NXCC} ${NXCFLAGS} ${NXLDFLAGS} ${.ALLSRC} ${NXLDLIBS} -o ${.TARGET}
984263bc
MD
29
30beforeinstall:
31.for file in ${DATAFILES}
32.if !exists(${DESTDIR}/var/games/phantasia/${file})
33 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 660 \
34 ${file} ${DESTDIR}/var/games/phantasia
35.endif
36.endfor
37
38# Make Phantasia map. Change the map commands reflect your installation.
39# PLOTDEVICE is used for plotting the map. Change as appropriate.
40map: map.c
41 ${CC} -static -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
42 ./map | plot > /dev/tty
43
44.include <bsd.prog.mk>