|
|
1.1 ! root 1: # ! 2: # Hunt ! 3: # Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold ! 4: # San Francisco, California ! 5: # ! 6: # Copyright (c) 1985 Regents of the University of California. ! 7: # All rights reserved. The Berkeley software License Agreement ! 8: # specifies the terms and conditions for redistribution. ! 9: # ! 10: HDR= hunt.h ! 11: DSRC= answer.c driver.c draw.c execute.c expl.c makemaze.c \ ! 12: shots.c terminal.c extern.c pathname.c ! 13: DOBJ= answer.o driver.o draw.o execute.o expl.o makemaze.o \ ! 14: shots.o terminal.o extern.o ! 15: PSRC= hunt.c connect.c playit.c pathname.c ! 16: POBJ= hunt.o connect.o playit.o ! 17: ! 18: # ! 19: # Flags are: ! 20: # DEBUG Don't trust everything in the code ! 21: # INTERNET Use the Internet domain IPC instead of UNIX domain ! 22: # BROADCAST Use internet broadcasting code when looking for driver ! 23: # OLDIPC Use 4.1a internet system calls (must also define ! 24: # INTERNET but not BROADCAST) ! 25: # RANDOM Include doors which disperse shots randomly ! 26: # REFLECT Include diagonal walls that reflect shots ! 27: # MONITOR Include code for watching the game from the sidelines ! 28: # OOZE Include slime shots ! 29: # FLY Make people fly when walls regenerate under them ! 30: # START_FLYING Players enter flying (FLY must also be defined) ! 31: # VOLCANO Include occasional large slime explosions ! 32: # ! 33: # NOTE: if you change the domain (INTERNET vs UNIX) then "make newdomain" ! 34: # ! 35: DEFS= -I. -DBROADCAST -DRANDOM -DREFLECT -DMONITOR -DINTERNET \ ! 36: -DOOZE -DFLY -DVOLCANO ! 37: CFLAGS= -O $(DEFS) ! 38: LDFLAGS= ! 39: PROFLAGS= ! 40: LD= /bin/ld ! 41: .SUFFIXES: .uu .obj .c,v ! 42: ! 43: .obj.uu: ! 44: uuencode $*.obj < $*.obj > $*.uu ! 45: ! 46: .c,v.c: ! 47: co $*.c ! 48: ! 49: standard: hunt hunt.driver ! 50: ! 51: # ! 52: # For testing ! 53: # ! 54: debug: hunt.dbg hunt.driver.dbg ! 55: ! 56: hunt.dbg: $(POBJ) pathname.dbg.o ! 57: $(CC) $(LDFLAGS) -o hunt.dbg $(POBJ) pathname.dbg.o -lcurses -ltermlib ! 58: ! 59: hunt.driver.dbg: $(DOBJ) pathname.dbg.o ! 60: $(CC) $(PROFLAGS) $(LDFLAGS) -o hunt.driver.dbg $(DOBJ) pathname.dbg.o ! 61: ! 62: # ! 63: # Binary distribution to other sites ! 64: # ! 65: distribution: hunt.uu hunt.driver.uu README pathname.c Makefile.dist hunt.6 ! 66: @ln Makefile.dist makefile ! 67: shar -a README makefile pathname.c hunt.uu hunt.driver.uu hunt.6\ ! 68: > distribution ! 69: @rm -f makefile hunt.uu hunt.driver.uu hunt.obj hunt.driver.obj ! 70: ! 71: hunt.driver.obj: $(DOBJ) pathname.o ! 72: $(LD) -r -x -o hunt.driver.obj $(DOBJ) ! 73: symstrip hunt.driver.obj pathname.o -lcurses -ltermcap ! 74: ! 75: hunt.obj: $(POBJ) pathname.o ! 76: $(LD) -r -x -o hunt.obj $(POBJ) ! 77: symstrip hunt.obj pathname.o -lcurses -ltermcap ! 78: ! 79: # ! 80: # System installation ! 81: # ! 82: install: standard ! 83: install -s hunt.driver $(DESTDIR)/usr/games/lib/hunt.driver ! 84: install -s hunt $(DESTDIR)/usr/games/hunt ! 85: ! 86: hunt: $(POBJ) pathname.o ! 87: $(CC) $(LDFLAGS) -o hunt $(POBJ) pathname.o -lcurses -ltermlib ! 88: ! 89: hunt.driver: $(DOBJ) pathname.o ! 90: $(CC) $(PROFLAGS) $(LDFLAGS) -o hunt.driver $(DOBJ) pathname.o ! 91: ! 92: # ! 93: # Object file dependencies ! 94: # ! 95: $(POBJ): $(HDR) ! 96: ! 97: $(DOBJ): $(HDR) ! 98: $(CC) $(CFLAGS) $(PROFLAGS) -c $*.c ! 99: ! 100: pathname.dbg.o: pathname.c ! 101: @echo $(CC) $(CFLAGS) -DDEBUG -c pathname.c -o pathname.dbg.o ! 102: @rm -f x.c ! 103: @ln pathname.c x.c ! 104: @$(CC) $(CFLAGS) -DDEBUG -c x.c ! 105: @mv x.o pathname.dbg.o ! 106: @rm -f x.c ! 107: ! 108: # ! 109: # Miscellaneous functions ! 110: # ! 111: lint: $(DSRC) $(PSRC) ! 112: lint $(DEFS) -DSTANDARD $(DSRC) 2>&1 > driver.lint ! 113: lint $(DEFS) -DSTANDARD $(PSRC) -lcurses 2>&1 > hunt.lint ! 114: ! 115: tags: $(DSRC) $(PSRC) ! 116: ctags $(DSRC) $(PSRC) ! 117: ! 118: newdomain: ! 119: rm -f hunt.o extern.o driver.o ! 120: ! 121: clean: ! 122: rm -f hunt hunt.driver *.o tags errs
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.