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