<sys/proc.h>: Fix unused macro name (number == bit number) and comment.
[dragonfly.git] / games / phantasia / Makefile
blob1f23ed373e79ff9d042fbcef21eeebc38876a9c8
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 $
4 PROG= phantasia
5 MAN= phantasia.6
6 SRCS= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c
7 DPADD= ${LIBM}
8 LDADD= -lm
9 VARGAMES=
10 GAMESCURSES=
12 NXLDLIBS= -lm
14 DATAFILES= characs gold lastdead mess monsters motd scoreboard void
15 CLEANFILES= ${DATAFILES} cross-phantglobs.no map setup.nx setup.no \
16 stamp.setuprun
18 all: stamp.setuprun
20 build-tools: setup.nx
22 cross-phantglobs.no: phantglobs.c
23 ${NXCC} ${NXCFLAGS} -c ${.ALLSRC} -o ${.TARGET}
25 stamp.setuprun: monsters.asc setup.nx
26 ./setup.nx -m ${.CURDIR}/monsters.asc
27 touch ${.TARGET}
29 setup.nx: cross-phantglobs.no setup.no ${LIBM}
30 ${NXCC} ${NXCFLAGS} ${NXLDFLAGS} ${.ALLSRC} ${NXLDLIBS} -o ${.TARGET}
32 beforeinstall:
33 .for file in ${DATAFILES}
34 .if !exists(${DESTDIR}/var/games/phantasia/${file})
35 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 660 \
36 ${file} ${DESTDIR}/var/games/phantasia
37 .endif
38 .endfor
40 # Make Phantasia map. Change the map commands reflect your installation.
41 # PLOTDEVICE is used for plotting the map. Change as appropriate.
42 map: map.c
43 ${CC} -static -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
44 ./map | plot > /dev/tty
46 .include <bsd.prog.mk>