|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: M T
Length: 4672 (0x1240) Types: TextFile Names: »Makefile«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Hunt/Makefile«
# # Hunt # Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold # San Francisco, California # # Copyright (c) 1985 Regents of the University of California. # All rights reserved. The Berkeley software License Agreement # specifies the terms and conditions for redistribution. # SHELL= /bin/sh HDR= hunt.h bsd.h DSRC= answer.c driver.c draw.c execute.c expl.c makemaze.c \ shots.c terminal.c extern.c pathname.c \ faketalk.c ctl.c ctl_transact.c get_names.c DOBJ= answer.o driver.o draw.o execute.o expl.o makemaze.o \ shots.o terminal.o extern.o \ faketalk.o ctl.o ctl_transact.o get_names.o PSRC= hunt.c connect.c playit.c pathname.c POBJ= hunt.o connect.o playit.o DSRC1= answer.c driver.c draw.c execute.c expl.c makemaze.c DSRC2= shots.c terminal.c extern.c faketalk.c \ ctl.c ctl_transact.c get_names.c # # Game parameter flags are: # 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 # VOLCANO Include occasional large slime explosions # DRONE Include occasional drone shots # BOOTS Include boots (which makes you immune to slime) # OTTO Reserved for CGL use # GAME_PARAM= -DRANDOM -DREFLECT -DMONITOR -DOOZE -DFLY -DBOOTS # # System parameter flags are: # DEBUG Don't trust everything in the code # INTERNET Use the Internet domain IPC instead of UNIX domain # LOG Use syslog error-logging in driver (needs SYSLOG_42 or # or SYSLOG_43) # OLDIPC Use 4.1a internet system calls (must also define # INTERNET) # TERMINFO Use terminfo instead of termcap # TALK_42 Support fake 4.2 BSD talk requests # TALK_43 Support fake 4.2 BSD talk requests # SYSLOG_42 Use 4.2 BSD syslog(3) # SYSLOG_43 Use 4.2 BSD syslog(3) # LOG Use syslog(3) for logging errors # BSD Which version of BSD distribution # 42 is 4.2BSD (implies TALK_42, SYSLOG_42) # 43 is 4.3BSD (implies BROADCAST, TALK_43, SYSLOG_43) # NOCURSES Don't use curses to redraw the screen # HPUX A Hewlett-Packard special # # NOTE: if you change the domain (INTERNET vs UNIX) then "make newdomain" # DEFS_43= -DINTERNET -DLOG -DBSD=43 DEFS_SUN= -DINTERNET -DLOG -DBSD=42 -DBROADCAST DEFS_ULTRIX= -DINTERNET -DLOG -DBSD=42 DEFS_HPUX= -DINTERNET -DTERMINFO -DNOCURSES -DHPUX DEFS_CONVEX= -DINTERNET -DBSD=42 DEFS_SGI= -DINTERNET -DLOG -DTERMINFO -DSYSLOG_43 -DBROADCAST -DNOCURSES # # The following flags are used for system specific compilation arguments. # Change them to include the appropriate arguments. For example, on SGI # machines, they should look like # SYSCFLAGS= -I/usr/include/bsd # SYSLIBS= -lbsd # SYSCFLAGS= SYSLIBS= # # Generic definitions # DEFS= $(GAME_PARAM) $(DEFS_43) CFLAGS= -O $(SYSCFLAGS) $(DEFS) # # Normal targets # all: hunt huntd hunt: $(POBJ) pathname.o $(CC) -o hunt $(POBJ) pathname.o -lcurses -ltermcap $(SYSLIBS) huntd: $(DOBJ) pathname.o $(CC) -o huntd $(DOBJ) pathname.o $(SYSLIBS) debug: hunt.dbg huntd.dbg hunt.dbg: $(POBJ) pathname.dbg.o $(CC) -o hunt.dbg $(POBJ) pathname.dbg.o -lcurses -ltermcap $(SYSLIBS) huntd.dbg: $(DOBJ) pathname.dbg.o $(CC) -o huntd.dbg $(DOBJ) pathname.dbg.o $(SYSLIBS) # # Source distribution in three files to a particular person # mail.msg: -@if test x${MAIL} = x ; then\ /bin/echo MAIL not set ;\ fi mail.quit: @test x$mail != x mail: mail.msg mail.quit shar -a README hunt.6 huntd.6 Makefile ${HDR} ${PSRC} |\ Mail -s "Hunt (part 1 of 3)" ${MAIL} shar -a ${DSRC1} | Mail -s "Hunt (part 2 of 3)" ${MAIL} shar -a ${DSRC2} talk_ctl.h | Mail -s "Hunt (part 3 of 3)" ${MAIL} # # System installation # install: standard -cmp -s huntd /usr/games/lib/huntd \ || install -c huntd /usr/games/lib/huntd -cmp -s hunt /usr/games/hunt \ || install -c hunt /usr/games/hunt -cmp -s hunt.6 /usr/man/man6/hunt.6\ || install -c hunt.6 /usr/man/man6/hunt.6 -cmp -s huntd.6 /usr/man/man6/huntd.6\ || install -c huntd.6 /usr/man/man6/huntd.6 # # Object file dependencies # $(POBJ): $(HDR) $(DOBJ): $(HDR) $(CC) $(CFLAGS) -c $*.c 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 # # Miscellaneous functions # lint: $(DSRC) $(PSRC) lint $(DEFS) $(DSRC) 2>&1 > driver.lint lint $(DEFS) $(PSRC) -lcurses 2>&1 > hunt.lint tags: $(DSRC) $(PSRC) ctags $(DSRC) $(PSRC) clean: rm -f $(POBJ) $(DOBJ) pathname.o pathname.dbg.o errs hunt.dbg \ huntd.dbg hunt huntd hunt.lint driver.lint newdomain: rm hunt.o extern.o driver.o