head	1.21;
access;
symbols
	RELENG_4_11_0_RELEASE:1.16.2.2
	RELENG_4_11:1.16.2.2.0.10
	RELENG_4_11_BP:1.16.2.2
	RELENG_4_10_0_RELEASE:1.16.2.2
	RELENG_4_10:1.16.2.2.0.8
	RELENG_4_10_BP:1.16.2.2
	RELENG_4_9_0_RELEASE:1.16.2.2
	RELENG_4_9:1.16.2.2.0.6
	RELENG_4_9_BP:1.16.2.2
	RELENG_4_8_0_RELEASE:1.16.2.2
	RELENG_4_8:1.16.2.2.0.4
	RELENG_4_8_BP:1.16.2.2
	RELENG_4_7_0_RELEASE:1.16.2.2
	RELENG_4_7:1.16.2.2.0.2
	RELENG_4_7_BP:1.16.2.2
	RELENG_4_6_2_RELEASE:1.16.2.1
	RELENG_4_6_1_RELEASE:1.16.2.1
	RELENG_4_6_0_RELEASE:1.16.2.1
	RELENG_4_6:1.16.2.1.0.6
	RELENG_4_6_BP:1.16.2.1
	RELENG_4_5_0_RELEASE:1.16.2.1
	RELENG_4_5:1.16.2.1.0.4
	RELENG_4_5_BP:1.16.2.1
	RELENG_4_4_0_RELEASE:1.16.2.1
	RELENG_4_4:1.16.2.1.0.2
	RELENG_4_4_BP:1.16.2.1
	RELENG_4_3_0_RELEASE:1.16
	RELENG_4_3:1.16.0.4
	RELENG_4_3_BP:1.16
	RELENG_4_2_0_RELEASE:1.16
	RELENG_4_1_1_RELEASE:1.16
	PRE_SMPNG:1.16
	RELENG_4_1_0_RELEASE:1.16
	RELENG_3_5_0_RELEASE:1.15
	RELENG_4_0_0_RELEASE:1.16
	RELENG_4:1.16.0.2
	RELENG_4_BP:1.16
	RELENG_3_4_0_RELEASE:1.15
	RELENG_3_3_0_RELEASE:1.15
	RELENG_3_2_PAO:1.15.0.4
	RELENG_3_2_PAO_BP:1.15
	RELENG_3_2_0_RELEASE:1.15
	RELENG_3_1_0_RELEASE:1.15
	RELENG_3:1.15.0.2
	RELENG_3_BP:1.15
	RELENG_2_2_8_RELEASE:1.9.2.1
	RELENG_3_0_0_RELEASE:1.15
	RELENG_2_2_7_RELEASE:1.9.2.1
	RELENG_2_2_6_RELEASE:1.9.2.1
	RELENG_2_2_5_RELEASE:1.9
	RELENG_2_2_2_RELEASE:1.9
	RELENG_2_2_1_RELEASE:1.9
	RELENG_2_2_0_RELEASE:1.9
	bsd_44_lite_2:1.1.1.2
	CSRG:1.1.1
	RELENG_2_1_7_RELEASE:1.8.4.3
	RELENG_2_1_6_1_RELEASE:1.8.4.3
	RELENG_2_1_6_RELEASE:1.8.4.3
	RELENG_2_2:1.9.0.2
	RELENG_2_2_BP:1.9
	RELENG_2_1_5_RELEASE:1.8.4.3
	RELENG_2_1_0_RELEASE:1.8
	RELENG_2_1_0:1.8.0.4
	RELENG_2_1_0_BP:1.8
	RELENG_2_0_5_RELEASE:1.8
	RELENG_2_0_5:1.8.0.2
	RELENG_2_0_5_BP:1.8
	RELENG_2_0_5_ALPHA:1.7
	RELEASE_2_0:1.6
	BETA_2_0:1.6
	ALPHA_2_0:1.6.0.2
	games:1.1.1.1;
locks; strict;
comment	@# @;


1.21
date	2002.10.21.07.40.19;	author markm;	state dead;
branches;
next	1.20;

1.20
date	2002.07.29.09.40.07;	author ru;	state Exp;
branches;
next	1.19;

1.19
date	2001.03.26.14.20.58;	author ru;	state Exp;
branches;
next	1.18;

1.18
date	2001.03.20.18.08.40;	author ru;	state Exp;
branches;
next	1.17;

1.17
date	2000.09.16.03.52.04;	author ache;	state Exp;
branches;
next	1.16;

1.16
date	99.12.10.21.13.39;	author billf;	state Exp;
branches
	1.16.2.1;
next	1.15;

1.15
date	98.09.02.15.22.10;	author bde;	state Exp;
branches;
next	1.14;

1.14
date	98.08.20.21.44.36;	author jb;	state Exp;
branches;
next	1.13;

1.13
date	98.07.07.01.43.54;	author bde;	state Exp;
branches;
next	1.12;

1.12
date	98.01.16.09.43.47;	author bde;	state Exp;
branches;
next	1.11;

1.11
date	98.01.05.17.28.01;	author eivind;	state Exp;
branches;
next	1.10;

1.10
date	97.01.01.04.19.41;	author bde;	state Exp;
branches;
next	1.9;

1.9
date	95.07.25.00.30.51;	author bde;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	95.05.30.03.36.55;	author rgrimes;	state Exp;
branches
	1.8.4.1;
next	1.7;

1.7
date	94.11.28.11.12.29;	author ats;	state Exp;
branches;
next	1.6;

1.6
date	94.09.19.05.41.09;	author swallace;	state Exp;
branches;
next	1.5;

1.5
date	94.09.11.21.32.12;	author rgrimes;	state Exp;
branches;
next	1.4;

1.4
date	94.09.08.19.19.46;	author jkh;	state Exp;
branches;
next	1.3;

1.3
date	94.09.08.04.15.34;	author jkh;	state Exp;
branches;
next	1.2;

1.2
date	94.09.08.04.11.45;	author jkh;	state Exp;
branches;
next	1.1;

1.1
date	94.09.04.04.03.04;	author jkh;	state Exp;
branches
	1.1.1.1;
next	;

1.16.2.1
date	2001.04.25.09.28.59;	author ru;	state Exp;
branches;
next	1.16.2.2;

1.16.2.2
date	2002.08.07.16.31.42;	author ru;	state Exp;
branches;
next	1.16.2.3;

1.16.2.3
date	2012.11.17.07.22.46;	author svnexp;	state Exp;
branches;
next	;

1.9.2.1
date	98.03.01.17.41.31;	author jkh;	state Exp;
branches;
next	;

1.8.4.1
date	96.05.29.22.27.09;	author jkh;	state Exp;
branches;
next	1.8.4.2;

1.8.4.2
date	96.06.05.02.38.06;	author jkh;	state Exp;
branches;
next	1.8.4.3;

1.8.4.3
date	96.06.23.07.52.14;	author jkh;	state Exp;
branches;
next	;

1.1.1.1
date	94.09.04.04.03.05;	author jkh;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	97.03.12.03.41.26;	author peter;	state Exp;
branches;
next	;


desc
@@


1.21
log
@Deorbit complete. We dont build these anymore, so into the attic they go.
@
text
@#	@@(#)Makefile	8.1 (Berkeley) 5/31/93
# $FreeBSD: src/games/phantasia/Makefile,v 1.20 2002/07/29 09:40:07 ru Exp $

PROG=	phantasia
SRCS=	main.c fight.c io.c interplayer.c gamesupport.c misc.c phantglobs.c
DPADD=	${LIBM} ${LIBCURSES} ${LIBCOMPAT}
LDADD=	-lm -lcurses -lcompat
DATAFILES=characs gold lastdead mess monsters motd scoreboard void
HIDEGAME=hidegame
MAN=	phantasia.6
CLEANFILES=${DATAFILES} cross-phantglobs.o map setup setup.o stamp.setuprun

all: stamp.setuprun

build-tools: setup

cross-phantglobs.o: phantglobs.c
	${CC} ${CFLAGS} -c -o ${.TARGET} ${.ALLSRC}

stamp.setuprun: monsters.asc setup
	./setup -m ${.CURDIR}/monsters.asc
	touch ${.TARGET}

setup: cross-phantglobs.o setup.o ${LIBM}
	${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC:M*.o} -lm

beforeinstall:
.for file in ${DATAFILES}
.if !exists(${DESTDIR}/var/games/phantasia/${file})
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 660 \
	    ${file} ${DESTDIR}/var/games/phantasia
.endif
.endfor

# Make Phantasia map.  Change the map commands reflect your installation.
# PLOTDEVICE is used for plotting the map.  Change as appropriate.
map: map.c
	${CC} -static -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
	./map | plot > /dev/tty

.include <bsd.prog.mk>
@


1.20
log
@Drop support for COPY, -c has been the default mode of install(1)
for a long time now.

Approved by:	bde
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.19
log
@- Backout botched attempt to intoduce MANSECT feature.
- MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/games/phantasia/Makefile,v 1.18 2001/03/20 18:08:40 ru Exp $
d30 1
a30 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 660 \
@


1.18
log
@Set the default manual section for games/ to 6.
@
text
@d2 1
a2 1
# $FreeBSD: src/games/phantasia/Makefile,v 1.17 2000/09/16 03:52:04 ache Exp $
d10 1
@


1.17
log
@Remove unneded -ltermcap or -lmytinfo
@
text
@d2 1
a2 1
# $FreeBSD: src/games/phantasia/Makefile,v 1.16 1999/12/10 21:13:39 billf Exp $
a9 1
MAN6=	phantasia.6
@


1.16
log
@1. Don't overwrite scorefiles if they already exist.

PR:		bin/13068
Submitted by:	Dominic Mitchell <Dom.Mitchell@@palmerharvey.co.uk>

2. Sprinkle $FreeBSD$ around.
@
text
@d2 1
a2 1
# $FreeBSD$
d6 2
a7 2
DPADD=	${LIBM} ${LIBCURSES} ${LIBTERMCAP} ${LIBCOMPAT}
LDADD=	-lm -lcurses -ltermcap -lcompat
@


1.16.2.1
log
@MFC: MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/games/phantasia/Makefile,v 1.16 1999/12/10 21:13:39 billf Exp $
d10 1
a10 1
MAN=	phantasia.6
@


1.16.2.2
log
@MFC: Drop support for COPY.
@
text
@d2 1
a2 1
# $FreeBSD$
d30 1
a30 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 660 \
@


1.16.2.3
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/games/phantasia/Makefile 101469 2002-08-07 16:32:02Z ru $
@


1.15
log
@Keep build-tools objects separate from `all' objects so that my
cross-builds work.
@
text
@d2 1
d28 2
d31 3
a33 1
	    ${DATAFILES} ${DESTDIR}/var/games/phantasia
@


1.14
log
@Make the build tools static to avoid trying to use the shared loader
before it is installed.

This upsets Bruce because the host boostrap build forces tools to be
static anyway. He says I'm abusing NOTOOLS in src/Makefile by using
it to do a aout->elf transition build. One day I'll find a place to
install host tools like these to allow a true cross build.
@
text
@d10 1
a10 1
CLEANFILES=${DATAFILES} map setup setup.o stamp.setuprun
d16 3
d23 2
a24 2
setup: phantglobs.o setup.o ${LIBM}
	${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} phantglobs.o setup.o -lm
@


1.13
log
@Added a `build-tools' target for internal tools.

Honor LDFLAGS for building internal tools.
@
text
@d21 1
a21 1
	${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} phantglobs.o setup.o -lm
d30 1
a30 1
	${CC} -O ${.CURDIR}/map.c -lplot -o ${.TARGET}
@


1.12
log
@Fixed long lines in install rule.  Fixed other bogons while I was here:
- removed vestigal rule for a Lite1 `.0' manpage.
- don't duplicate defaults in the `all' dependencies.
- removed bogus dependency of `setup' on monsters.asc.
- compile `setup' with the usual CFLAGS.
- create monster files at build time, not at install time.
- don't be so repetitive in the install rule.
- fixed too-global replacement of `install' by ${INSTALL}.

Long lines made disgustingly longer by: previous commit.
@
text
@d14 2
d21 1
a21 1
	${CC} ${CFLAGS} phantglobs.o setup.o -o ${.TARGET} -lm
@


1.11
log
@Fix phantasia.

Noticed by:	max
@
text
@d7 1
d10 1
a10 2
CLEANFILES+=map setup setup.o
CLEANFILES+= characs gold lastdead mess monsters motd scoreboard void
d12 1
a12 1
all: setup phantasia ${MAN6}
d14 6
a19 2
setup: phantglobs.o setup.o monsters.asc ${LIBM}
	${CC} phantglobs.o setup.o -o ${.TARGET} -lm
d22 2
a23 9
	./setup -m ${.CURDIR}/monsters.asc
	${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} gold ${DESTDIR}/var/games/phantasia
	${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} lastdead ${DESTDIR}/var/games/phantasia
	${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} mess ${DESTDIR}/var/games/phantasia
	${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} monsters ${DESTDIR}/var/games/phantasia
	${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} motd ${DESTDIR}/var/games/phantasia
	${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} characs ${DESTDIR}/var/games/phantasia
	${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} scoreboard ${DESTDIR}/var/games/phantasia
	${INSTALL} ${COPY} -m 660 -o ${BINOWN} -g ${BINGRP} void ${DESTDIR}/var/games/phantasia
d25 1
a25 1
# Make Phantasia map.  Change the map commands reflect your ${INSTALL}ation.
a26 1

a29 3

phantasia.0: phantasia.6
	tbl ${.CURDIR}/phantasia.6 | nroff -man > ${.TARGET}
@


1.10
log
@Use ${COPY} instead of -c for installing non-source files.
@
text
@d19 8
a26 8
	${INSTALL} ${COPY} -m 660 -o games -g bin gold ${DESTDIR}/var/games/phantasia
	${INSTALL} ${COPY} -m 660 -o games -g bin lastdead ${DESTDIR}/var/games/phantasia
	${INSTALL} ${COPY} -m 660 -o games -g bin mess ${DESTDIR}/var/games/phantasia
	${INSTALL} ${COPY} -m 660 -o games -g bin monsters ${DESTDIR}/var/games/phantasia
	${INSTALL} ${COPY} -m 660 -o games -g bin motd ${DESTDIR}/var/games/phantasia
	${INSTALL} ${COPY} -m 660 -o games -g bin characs ${DESTDIR}/var/games/phantasia
	${INSTALL} ${COPY} -m 660 -o games -g bin scoreboard ${DESTDIR}/var/games/phantasia
	${INSTALL} ${COPY} -m 660 -o games -g bin void ${DESTDIR}/var/games/phantasia
@


1.9
log
@Change `install' to `${INSTALL}' so that default install flags can be
specified in the top level Makefiles.
@
text
@d19 8
a26 8
	${INSTALL} -c -m 660 -o games -g bin gold ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin lastdead ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin mess ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin monsters ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin motd ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin characs ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin scoreboard ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin void ${DESTDIR}/var/games/phantasia
@


1.9.2.1
log
@MFC: major merge - bring all the arc4random support in now that it's
in 2.2.
@
text
@a6 1
DATAFILES=characs gold lastdead mess monsters motd scoreboard void
d9 2
a10 1
CLEANFILES=${DATAFILES} map setup setup.o stamp.setuprun
d12 1
a12 1
all: stamp.setuprun
d14 2
a15 6
stamp.setuprun: monsters.asc setup
	./setup -m ${.CURDIR}/monsters.asc
	touch ${.TARGET}

setup: phantglobs.o setup.o ${LIBM}
	${CC} ${CFLAGS} phantglobs.o setup.o -o ${.TARGET} -lm
d18 9
a26 2
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 660 \
	    ${DATAFILES} ${DESTDIR}/var/games/phantasia
d28 1
a28 1
# Make Phantasia map.  Change the map commands reflect your installation.
d30 1
d34 3
@


1.8
log
@Remove trailing whitespace.
@
text
@d19 8
a26 8
	install -c -m 660 -o games -g bin gold ${DESTDIR}/var/games/phantasia
	install -c -m 660 -o games -g bin lastdead ${DESTDIR}/var/games/phantasia
	install -c -m 660 -o games -g bin mess ${DESTDIR}/var/games/phantasia
	install -c -m 660 -o games -g bin monsters ${DESTDIR}/var/games/phantasia
	install -c -m 660 -o games -g bin motd ${DESTDIR}/var/games/phantasia
	install -c -m 660 -o games -g bin characs ${DESTDIR}/var/games/phantasia
	install -c -m 660 -o games -g bin scoreboard ${DESTDIR}/var/games/phantasia
	install -c -m 660 -o games -g bin void ${DESTDIR}/var/games/phantasia
d28 1
a28 1
# Make Phantasia map.  Change the map commands reflect your installation.
@


1.8.4.1
log
@Merge from HEAD, except:

	Clients that used gnumalloc still do, despite the merge.  We're not
	bringing phkmalloc over.

	Thread stuff left out.

	PCCARD support left out.
@
text
@d19 8
a26 8
	${INSTALL} -c -m 660 -o games -g bin gold ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin lastdead ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin mess ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin monsters ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin motd ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin characs ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin scoreboard ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin void ${DESTDIR}/var/games/phantasia
d28 1
a28 1
# Make Phantasia map.  Change the map commands reflect your ${INSTALL}ation.
@


1.8.4.2
log
@This 3rd mega-commit should hopefully bring us back to where we were.
I can get it to `make world' succesfully, anyway!
@
text
@d19 8
a26 8
	install -c -m 660 -o games -g bin gold ${DESTDIR}/var/games/phantasia
	install -c -m 660 -o games -g bin lastdead ${DESTDIR}/var/games/phantasia
	install -c -m 660 -o games -g bin mess ${DESTDIR}/var/games/phantasia
	install -c -m 660 -o games -g bin monsters ${DESTDIR}/var/games/phantasia
	install -c -m 660 -o games -g bin motd ${DESTDIR}/var/games/phantasia
	install -c -m 660 -o games -g bin characs ${DESTDIR}/var/games/phantasia
	install -c -m 660 -o games -g bin scoreboard ${DESTDIR}/var/games/phantasia
	install -c -m 660 -o games -g bin void ${DESTDIR}/var/games/phantasia
d28 1
a28 1
# Make Phantasia map.  Change the map commands reflect your installation.
@


1.8.4.3
log
@Merge various useful things from HEAD.
@
text
@d19 8
a26 8
	${INSTALL} -c -m 660 -o games -g bin gold ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin lastdead ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin mess ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin monsters ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin motd ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin characs ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin scoreboard ${DESTDIR}/var/games/phantasia
	${INSTALL} -c -m 660 -o games -g bin void ${DESTDIR}/var/games/phantasia
d28 1
a28 1
# Make Phantasia map.  Change the map commands reflect your ${INSTALL}ation.
@


1.7
log
@Add the files: characs, gold, lastdead, mess, monsters, motd, scoreboard, void
that are created from a setup program to the CLEANFILES list.
@
text
@d14 1
a14 1
setup: phantglobs.o setup.o monsters.asc ${LIBM} 
d17 1
a17 1
beforeinstall: 
@


1.6
log
@Change setup.c so that game files are generated into obj dir,
then Makefile installs into ${DESTDIR}/var/games/phantasia
@
text
@d10 1
@


1.5
log
@Change all references to LIBTERM and -ltermlib to LIBTERMCAP and -ltermcap
@
text
@d18 8
a25 1
	chown games.bin ${DESTDIR}/var/games/phantasia/*
@


1.4
log
@Remove the conditional mkdir of /var/games/phantasia - done by mtree now.
Submitted by:	jkh
@
text
@d5 2
a6 2
DPADD=	${LIBM} ${LIBCURSES} ${LIBTERM} ${LIBCOMPAT}
LDADD=	-lm -lcurses -ltermlib -lcompat
@


1.3
log
@Woo, naughty!  It just occurred to me that this guy wasn't using
${DESTDIR} - fixed.
Submitted by:	jkh
@
text
@a16 3
	@@if [ ! -d ${DESTDIR}/var/games/phantasia ]; then \
		mkdir -p ${DESTDIR}/var/games/phantasia; \
	fi
@


1.2
log
@More preventive medicine on making directories before installation.
Submitted by:	jkh
@
text
@d17 2
a18 2
	@@if [ ! -d /var/games/phantasia ]; then \
		mkdir -p /var/games/phantasia; \
d21 1
a21 1
	chown games.bin /var/games/phantasia/*
@


1.1
log
@Initial revision
@
text
@d17 3
@


1.1.1.1
log
@Bring in the 4.4 Lite games directory, modulo man page changes and segregation
of the x11 based games.  I'm not going to tag the originals with bsd_44_lite
and do this in two stages since it's just not worth it for this collection,
and I've got directory renames to deal with that way.  Bleah.
Submitted by:	jkh
@
text
@@


1.1.1.2
log
@Import CSRG 4.4BSD-Lite2 games/phantasia
@
text
@d8 1
a8 1
MAN6=	phantasia.0
@
