Home | History | Annotate | Line # | Download | only in phantasia
Makefile revision 1.37.34.1
      1  1.37.34.1    martin #	$NetBSD: Makefile,v 1.37.34.1 2023/10/08 14:35:20 martin Exp $
      2        1.1       jtc #	@(#)Makefile	8.1 (Berkeley) 5/31/93
      3       1.25  gmcgarry 
      4       1.25  gmcgarry .include <bsd.own.mk>
      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.34        he DPADD=	${LIBM} ${LIBCURSES} ${LIBTERMINFO}
     10       1.34        he LDADD=	-lm -lcurses -lterminfo
     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.27     lukem .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.36  jmcneill CLEANFILES+=map mkdata setup.lo host_phantglobs.lo ${ALLFILES} files.stamp
     30       1.22    simonb 
     31       1.23     lukem realall: ${FILES}
     32       1.22    simonb 
     33       1.33     lukem ${FILES}: files.stamp
     34       1.36  jmcneill files.stamp: mkdata monsters.asc
     35       1.32     lukem 	${_MKMSG_CREATE} ${FILES}
     36       1.33     lukem 	rm -f ${.TARGET}
     37       1.36  jmcneill 	./mkdata -m ${.CURDIR}/monsters.asc
     38       1.33     lukem 	touch ${.TARGET}
     39        1.1       jtc 
     40       1.36  jmcneill mkdata: host_phantglobs.lo setup.lo ${LIBM} 
     41       1.31     lukem 	${_MKTARGET_LINK}
     42       1.32     lukem 	${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC:M*.lo} -lm
     43        1.6   thorpej 
     44       1.28     lukem BUILDSYMLINKS+=	phantglobs.c host_phantglobs.c
     45       1.28     lukem HOST_CPPFLAGS+=	-I${.CURDIR}
     46        1.1       jtc 
     47        1.1       jtc # Make Phantasia map.  Change the map commands reflect your installation.
     48        1.1       jtc # PLOTDEVICE is used for plotting the map.  Change as appropriate.
     49        1.1       jtc 
     50        1.1       jtc map: map.c
     51        1.1       jtc 	${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
     52        1.1       jtc 	./map | plot > /dev/tty
     53        1.1       jtc 
     54        1.1       jtc .include <bsd.prog.mk>
     55