Makefile revision 1.19
1# $NetBSD: Makefile,v 1.19 2000/01/23 22:11:49 mycroft Exp $ 2# @(#)Makefile 8.1 (Berkeley) 5/31/93 3 4.include <bsd.own.mk> # for UNPRIVILEGED 5 6PROG= phantasia 7SRCS= fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c 8 9DPADD= ${LIBM} ${LIBCURSES} 10LDADD= -lm -lcurses 11HIDEGAME=hidegame 12SETGIDGAME=yes 13USETBL= 14MAN= phantasia.6 15CLEANFILES+=map setup setup.o host_phantglobs.o 16 17realall: setup phantasia 18 19setup: host_phantglobs.o setup.o monsters.asc ${LIBM} 20 ${HOST_CC} host_phantglobs.o setup.o -o ${.TARGET} -lm 21 22host_phantglobs.o: ${.CURDIR}/phantglobs.c 23 ${HOST_COMPILE.c} -o host_phantglobs.o ${.CURDIR}/phantglobs.c 24 25setup.o: ${.CURDIR}/setup.c 26 ${HOST_COMPILE.c} ${.CURDIR}/setup.c 27 28afterinstall: 29 DESTDIR=${DESTDIR} ./setup -m ${.CURDIR}/monsters.asc 30.if !defined(UNPRIVILEGED) 31 chown games:games ${DESTDIR}/var/games/phantasia/* 32.endif 33 34# Make Phantasia map. Change the map commands reflect your installation. 35# PLOTDEVICE is used for plotting the map. Change as appropriate. 36 37map: map.c 38 ${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET} 39 ./map | plot > /dev/tty 40 41.include <bsd.prog.mk> 42