1994-09-04 04:03:31 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
|
|
|
|
|
|
|
PROG= phantasia
|
|
|
|
SRCS= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c
|
1994-09-11 21:32:28 +00:00
|
|
|
DPADD= ${LIBM} ${LIBCURSES} ${LIBTERMCAP} ${LIBCOMPAT}
|
|
|
|
LDADD= -lm -lcurses -ltermcap -lcompat
|
1998-01-16 09:43:47 +00:00
|
|
|
DATAFILES=characs gold lastdead mess monsters motd scoreboard void
|
1994-09-04 04:03:31 +00:00
|
|
|
HIDEGAME=hidegame
|
|
|
|
MAN6= phantasia.6
|
1998-01-16 09:43:47 +00:00
|
|
|
CLEANFILES=${DATAFILES} map setup setup.o stamp.setuprun
|
1994-09-04 04:03:31 +00:00
|
|
|
|
1998-01-16 09:43:47 +00:00
|
|
|
all: stamp.setuprun
|
1994-09-04 04:03:31 +00:00
|
|
|
|
1998-01-16 09:43:47 +00:00
|
|
|
stamp.setuprun: monsters.asc setup
|
|
|
|
./setup -m ${.CURDIR}/monsters.asc
|
|
|
|
touch ${.TARGET}
|
|
|
|
|
|
|
|
setup: phantglobs.o setup.o ${LIBM}
|
|
|
|
${CC} ${CFLAGS} phantglobs.o setup.o -o ${.TARGET} -lm
|
1994-09-04 04:03:31 +00:00
|
|
|
|
1995-05-30 03:37:36 +00:00
|
|
|
beforeinstall:
|
1998-01-16 09:43:47 +00:00
|
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 660 \
|
|
|
|
${DATAFILES} ${DESTDIR}/var/games/phantasia
|
1995-07-25 00:37:58 +00:00
|
|
|
|
1998-01-16 09:43:47 +00:00
|
|
|
# Make Phantasia map. Change the map commands reflect your installation.
|
1994-09-04 04:03:31 +00:00
|
|
|
# PLOTDEVICE is used for plotting the map. Change as appropriate.
|
|
|
|
map: map.c
|
|
|
|
${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
|
|
|
|
./map | plot > /dev/tty
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|