home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
games
/
volume15
/
robot_hunt
/
part04
/
Makefile
< prev
next >
Wrap
Makefile
|
1993-01-27
|
3KB
|
100 lines
#
# Copyright (c) 1985 Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# by the University of California, Berkeley. The name of the
# University may not be used to endorse or promote products derived
# from this software without specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
# @(#)Makefile 5.7 (Berkeley) 9/23/88
#
# Hunt
# Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
# San Francisco, California
#
HDR= hunt.h
DSRC= answer.c driver.c draw.c execute.c expl.c makemaze.c shots.c \
terminal.c extern.c pathname.c
DOBJ= answer.o driver.o draw.o execute.o expl.o makemaze.o shots.o \
terminal.o extern.o
PSRC= hunt.c connect.c playit.c pathname.c robot.c
POBJ= hunt.o connect.o playit.o robot.o
MAN= hunt.0
# Flags are:
# DEBUG Don't trust everything in the code
# INTERNET Use the Internet domain IPC instead of UNIX domain
# BROADCAST Use internet broadcasting code when looking for driver
# OLDIPC Use 4.1a internet system calls (must also define
# INTERNET but not BROADCAST)
# RANDOM Include doors which disperse shots randomly
# REFLECT Include diagonal walls that reflect shots
# MONITOR Include code for watching the game from the sidelines
# OOZE Include slime shots
# FLY Make people fly when walls regenerate under them
# START_FLYING Players enter flying (FLY must also be defined)
# VOLCANO Include occasional large slime explosions
# ROBOT Allow "-r" to turn on a hunt robot.
# DAEMON Run as a daemon. ROBOT must be on, too.
#
# NOTE: if you change the domain (INTERNET vs UNIX) then "make newdomain"
#
DEFS= -DBROADCAST -DRANDOM -DREFLECT -DMONITOR -DINTERNET \
-DOOZE -DFLY -DROBOT -DDAEMON
CFLAGS= -g ${DEFS}
all: hunt hunt.driver
hunt: ${POBJ} pathname.o
${CC} -o $@ ${POBJ} pathname.o -lcurses -ltermlib
hunt.driver: ${DOBJ} pathname.o
${CC} -o $@ ${DOBJ} pathname.o
debug: hunt.dbg hunt.driver.dbg
hunt.dbg: ${POBJ} pathname.dbg.o
${CC} -o $@ ${POBJ} pathname.dbg.o -lcurses -ltermlib
hunt.driver.dbg: ${DOBJ} pathname.dbg.o
${CC} -o $@ ${DOBJ} pathname.dbg.o
pathname.dbg.o: pathname.c
@echo ${CC} ${CFLAGS} -DDEBUG -c pathname.c -o pathname.dbg.o
@rm -f x.c
@ln pathname.c x.c
@${CC} ${CFLAGS} -DDEBUG -c x.c
@mv x.o pathname.dbg.o
@rm -f x.c
install: ${MAN}
install -s -o games -g bin -m 700 hunt.driver ${DESTDIR}/usr/games/lib/hunt.driver
install -s -o games -g bin -m 700 hunt ${DESTDIR}/usr/games/hide
install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat6
(cd ${DESTDIR}/usr/games; rm -f hunt; ln -s dm hunt; chown games.bin hunt)
lint: ${DSRC} ${PSRC}
lint -chapbx ${DEFS} ${DSRC}
lint -chapbx ${DEFS} ${PSRC} -lcurses
tags: ${DSRC} ${PSRC}
ctags ${DSRC} ${PSRC}
clean:
rm -f hunt hunt.driver *.o tags core tmp debug_file
cleandir: clean
rm -f ${MAN} tags .depend
depend:
mkdep ${DSRC} ${PSRC}