blob: 4d1b9924e926d6f0c4af7dd9d1dbfec6c7cbce74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# $FreeBSD$
PROG= phantasia
SRCS= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c
DPADD= ${LIBM} ${LIBCURSES} ${LIBCOMPAT}
LDADD= -lm -lcurses -lcompat
DATAFILES=characs gold lastdead mess monsters motd scoreboard void
HIDEGAME=hidegame
MAN= phantasia.6
CLEANFILES=${DATAFILES} cross-phantglobs.o map setup setup.o stamp.setuprun
all: stamp.setuprun
build-tools: setup
cross-phantglobs.o: phantglobs.c
${CC} ${CFLAGS} -c -o ${.TARGET} ${.ALLSRC}
stamp.setuprun: monsters.asc setup
./setup -m ${.CURDIR}/monsters.asc
touch ${.TARGET}
setup: cross-phantglobs.o setup.o ${LIBM}
${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC:M*.o} -lm
beforeinstall:
.for file in ${DATAFILES}
.if !exists(${DESTDIR}/var/games/phantasia/${file})
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 660 \
${file} ${DESTDIR}/var/games/phantasia
.endif
.endfor
# Make Phantasia map. Change the map commands reflect your installation.
# PLOTDEVICE is used for plotting the map. Change as appropriate.
map: map.c
${CC} -static -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
./map | plot > /dev/tty
.include <bsd.prog.mk>
|