Home | History | Annotate | Line # | Download | only in phantasia
Makefile revision 1.23
      1  1.23    lukem #	$NetBSD: Makefile,v 1.23 2001/06/06 17:34:19 lukem 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.1      jtc 
     16  1.22   simonb FILESDIR=/var/games/phantasia
     17  1.22   simonb FILESOWN=games
     18  1.22   simonb FILESGRP=games
     19  1.22   simonb FILESMODE=0660
     20  1.22   simonb ALLFILES=gold lastdead mess monsters void motd characs scoreboard
     21  1.22   simonb FILES=gold lastdead mess monsters void motd
     22  1.22   simonb # don't overwrite existing characters or scorefile
     23  1.22   simonb .for file in characs scoreboard
     24  1.22   simonb .if !exists(${DESTDIR}/${FILESDIR}/${file})
     25  1.22   simonb FILES+=${file}
     26  1.22   simonb .endif
     27  1.22   simonb .endfor
     28  1.22   simonb 
     29  1.22   simonb CLEANFILES+=map setup setup.lo host_phantglobs.lo ${ALLFILES}
     30  1.22   simonb 
     31  1.23    lukem realall: ${FILES}
     32  1.22   simonb 
     33  1.22   simonb ${FILES}: setup
     34  1.22   simonb 	${.OBJDIR}/setup -m ${.CURDIR}/monsters.asc
     35   1.1      jtc 
     36  1.21     matt setup: host_phantglobs.lo setup.lo monsters.asc ${LIBM} 
     37  1.21     matt 	${HOST_LINK.c} host_phantglobs.lo setup.lo -o ${.TARGET} -lm
     38   1.6  thorpej 
     39  1.21     matt host_phantglobs.lo: ${.CURDIR}/phantglobs.c
     40  1.21     matt 	${HOST_COMPILE.c} -o host_phantglobs.lo ${.CURDIR}/phantglobs.c
     41   1.6  thorpej 
     42  1.21     matt setup.lo: ${.CURDIR}/setup.c
     43  1.21     matt 	${HOST_COMPILE.c} -o setup.lo ${.CURDIR}/setup.c
     44   1.1      jtc 
     45   1.1      jtc # Make Phantasia map.  Change the map commands reflect your installation.
     46   1.1      jtc # PLOTDEVICE is used for plotting the map.  Change as appropriate.
     47   1.1      jtc 
     48   1.1      jtc map: map.c
     49   1.1      jtc 	${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
     50   1.1      jtc 	./map | plot > /dev/tty
     51   1.1      jtc 
     52   1.1      jtc .include <bsd.prog.mk>
     53