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