1994-09-04 04:03:31 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
1999-12-10 21:13:42 +00:00
|
|
|
# $FreeBSD$
|
1994-09-04 04:03:31 +00:00
|
|
|
|
|
|
|
PROG= phantasia
|
|
|
|
SRCS= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c
|
2000-09-16 03:52:06 +00:00
|
|
|
DPADD= ${LIBM} ${LIBCURSES} ${LIBCOMPAT}
|
|
|
|
LDADD= -lm -lcurses -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-09-02 15:22:11 +00:00
|
|
|
CLEANFILES=${DATAFILES} cross-phantglobs.o 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-07-07 01:43:54 +00:00
|
|
|
build-tools: setup
|
|
|
|
|
1998-09-02 15:22:11 +00:00
|
|
|
cross-phantglobs.o: phantglobs.c
|
|
|
|
${CC} ${CFLAGS} -c -o ${.TARGET} ${.ALLSRC}
|
|
|
|
|
1998-01-16 09:43:47 +00:00
|
|
|
stamp.setuprun: monsters.asc setup
|
|
|
|
./setup -m ${.CURDIR}/monsters.asc
|
|
|
|
touch ${.TARGET}
|
|
|
|
|
1998-09-02 15:22:11 +00:00
|
|
|
setup: cross-phantglobs.o setup.o ${LIBM}
|
|
|
|
${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC:M*.o} -lm
|
1994-09-04 04:03:31 +00:00
|
|
|
|
1995-05-30 03:37:36 +00:00
|
|
|
beforeinstall:
|
1999-12-10 21:13:42 +00:00
|
|
|
.for file in ${DATAFILES}
|
|
|
|
.if !exists(${DESTDIR}/var/games/phantasia/${file})
|
1998-01-16 09:43:47 +00:00
|
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 660 \
|
1999-12-10 21:13:42 +00:00
|
|
|
${file} ${DESTDIR}/var/games/phantasia
|
|
|
|
.endif
|
|
|
|
.endfor
|
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
|
1998-08-20 21:45:46 +00:00
|
|
|
${CC} -static -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
|
1994-09-04 04:03:31 +00:00
|
|
|
./map | plot > /dev/tty
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|