Sync usage with man page.
[netbsd-mini2440.git] / games / phantasia / Makefile
blob671b00beea03667bd002125369bc4c4484e33b18
1 # $NetBSD: Makefile,v 1.32 2003/11/16 14:14:18 lukem Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
4 .include <bsd.own.mk>
6 PROG= phantasia
7 SRCS= fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c
9 DPADD= ${LIBM} ${LIBCURSES}
10 LDADD= -lm -lcurses
11 HIDEGAME=hidegame
12 SETGIDGAME=yes
13 USETBL=
14 MAN= phantasia.6
16 FILESDIR=/var/games/phantasia
17 FILESOWN=games
18 FILESGRP=games
19 FILESMODE=0660
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})
25 FILES+=${file}
26 .endif
27 .endfor
29 CLEANFILES+=map setup setup.lo host_phantglobs.lo ${ALLFILES} files.stamp
31 realall: ${FILES}
33 ${FILES}: files.stamp
34 files.stamp: setup monsters.asc
35 ${_MKMSG_CREATE} ${FILES}
36 rm -f ${.TARGET}
37 ./setup -m ${.CURDIR}/monsters.asc
38 touch ${.TARGET}
40 setup: host_phantglobs.lo setup.lo ${LIBM}
41 ${_MKTARGET_LINK}
42 ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC:M*.lo} -lm
44 BUILDSYMLINKS+= phantglobs.c host_phantglobs.c
45 HOST_CPPFLAGS+= -I${.CURDIR}
47 # Make Phantasia map. Change the map commands reflect your installation.
48 # PLOTDEVICE is used for plotting the map. Change as appropriate.
50 map: map.c
51 ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
52 ./map | plot > /dev/tty
54 .include <bsd.prog.mk>