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 $
6 SRCS
= main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c
7 DPADD
= ${LIBM} ${LIBNCURSES}
8 LDADD
= -lm
-lprivate_ncurses
10 CFLAGS
+= -I
${_SHLIBDIRPREFIX}/usr
/include/priv
/ncurses
11 LDFLAGS
+= ${PRIVATELIB_LDFLAGS}
14 DATAFILES
= characs gold lastdead mess monsters motd scoreboard void
16 CLEANFILES
= ${DATAFILES} cross-phantglobs.no map setup.nx setup.no \
23 cross-phantglobs.no
: phantglobs.c
24 ${NXCC} ${NXCFLAGS} -c
${.ALLSRC
} -o
${.TARGET
}
26 stamp.setuprun
: monsters.asc setup.nx
27 .
/setup.nx
-m
${.CURDIR
}/monsters.asc
30 setup.nx
: cross-phantglobs.no setup.no
${LIBM}
31 ${NXCC} ${NXCFLAGS} ${NXLDFLAGS} ${.ALLSRC
} ${NXLDLIBS} -o
${.TARGET
}
34 .for file in
${DATAFILES}
35 .if
!exists
(${DESTDIR}/var
/games
/phantasia
/${file})
36 ${INSTALL} -o
${BINOWN} -g
${BINGRP} -m
660 \
37 ${file} ${DESTDIR}/var
/games
/phantasia
41 # Make Phantasia map. Change the map commands reflect your installation.
42 # PLOTDEVICE is used for plotting the map. Change as appropriate.
44 ${CC} -static
-O
${.CURDIR
}/map.c
-lplot
-o
${.TARGET
}
45 .
/map | plot
> /dev
/tty
47 .
include <bsd.prog.mk
>