|
|
1.1 ! root 1: # ! 2: # Copyright (c) 1980, 1987 Regents of the University of California. ! 3: # All rights reserved. ! 4: # ! 5: # Redistribution and use in source and binary forms are permitted ! 6: # provided that the above copyright notice and this paragraph are ! 7: # duplicated in all such forms and that any documentation, ! 8: # advertising materials, and other materials related to such ! 9: # distribution and use acknowledge that the software was developed ! 10: # by the University of California, Berkeley. The name of the ! 11: # University may not be used to endorse or promote products derived ! 12: # from this software without specific prior written permission. ! 13: # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ! 14: # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED ! 15: # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 16: # ! 17: # @(#)Makefile 5.10.1.2 (Berkeley) 7/9/88 ! 18: # ! 19: DESTDIR= ! 20: CFLAGS= -O ! 21: LIBC= /lib/libc.a ! 22: ! 23: # Programs that live in subdirectories, and have makefiles of their own. ! 24: # ! 25: # doctor removed until lisp works ! 26: SUBDIR= adventure atc backgammon battlestar boggle btlgammon canfield \ ! 27: cribbage dm fortune hack hangman hunt mille monop \ ! 28: phantasia quiz robots rogue sail snake trek \ ! 29: games.${MACHINE} ! 30: ! 31: # Shell scripts that need only be installed and are never removed. ! 32: # ! 33: SCRIPT= wargames ! 34: ! 35: # C sources that live in the current directory ! 36: # ! 37: SRCS= arithmetic.c banner.c bcd.c factor.c fish.c number.c ppt.c primes.c \ ! 38: rain.c worm.c worms.c wump.c ! 39: ! 40: # C programs that live in the current directory and do not need ! 41: # explicit make lines. ! 42: # ! 43: STD= arithmetic banner bcd factor fish number ppt wump ! 44: ! 45: # C programs that live in the current directory and need explicit make lines. ! 46: # ! 47: NSTD= primes rain worm worms ! 48: ! 49: # programs that get hidden ! 50: HIDE= fish wump worm ! 51: ! 52: # programs that don't ! 53: NOHIDE= arithmetic banner bcd factor number ppt primes rain worms ! 54: ! 55: # Programs that require a lisp interpreter or compiler ! 56: LISP= doctor ! 57: ! 58: all: ${SUBDIR} ${STD} ${NSTD} ! 59: ! 60: ${SUBDIR}: FRC ! 61: cd $@; make ${MFLAGS} ! 62: ! 63: ${STD}: ${LIBC} ! 64: ${CC} ${CFLAGS} -o $@ [email protected] ! 65: ! 66: install: FRC ! 67: -for i in ${SUBDIR}; do \ ! 68: (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done ! 69: -for i in ${SCRIPT}; do \ ! 70: (install -c -o games -g bin -m 755 $$i.sh ${DESTDIR}/usr/games/$$i); done ! 71: install -s -o games -g bin -m 700 ${HIDE} ${DESTDIR}/usr/games/hide ! 72: install -s -o games -g bin -m 755 ${NOHIDE} ${DESTDIR}/usr/games ! 73: -for i in ${HIDE}; do \ ! 74: (cd ${DESTDIR}/usr/games; rm -f $$i; ln -s dm $$i; chown games.bin $$i) \ ! 75: done ! 76: ! 77: clean: FRC ! 78: -for i in ${SUBDIR} games.vax games.tahoe; do \ ! 79: (cd $$i; make ${MFLAGS} clean); \ ! 80: done ! 81: rm -f ${STD} ${NSTD} a.out core *.s *.o ! 82: ! 83: depend: ldepend ! 84: for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} depend); done ! 85: ! 86: ldepend: FRC ! 87: mkdep -p ${CFLAGS} ${SRCS} ! 88: ! 89: FRC: ! 90: ! 91: # Files listed in ${NSTD} have explicit make lines given below. ! 92: ! 93: primes: ! 94: ${CC} -o $@ ${CFLAGS} primes.c -lm ! 95: ! 96: rain: ! 97: ${CC} -o $@ ${CFLAGS} rain.c -lcurses -ltermcap ! 98: ! 99: worm: ! 100: ${CC} -o $@ ${CFLAGS} worm.c -lcurses -ltermcap ! 101: ! 102: worms: ! 103: ${CC} -o $@ ${CFLAGS} worms.c -lcurses -ltermcap ! 104: ! 105: # DO NOT DELETE THIS LINE -- mkdep uses it. ! 106: # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. ! 107: ! 108: arithmetic: arithmetic.c /usr/include/stdio.h /usr/include/signal.h ! 109: arithmetic: /usr/include/machine/trap.h ! 110: banner: banner.c /usr/include/stdio.h ! 111: bcd: bcd.c ! 112: factor: factor.c ! 113: fish: fish.c /usr/include/stdio.h ! 114: number: number.c /usr/include/stdio.h /usr/include/ctype.h ! 115: ppt: ppt.c /usr/include/stdio.h ! 116: primes: primes.c /usr/include/stdio.h /usr/include/math.h ! 117: rain: rain.c /usr/include/sys/types.h /usr/include/stdio.h /usr/include/sgtty.h ! 118: rain: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h ! 119: rain: /usr/include/sys/ttydev.h /usr/include/signal.h ! 120: rain: /usr/include/machine/trap.h ! 121: worm: worm.c /usr/include/ctype.h /usr/include/curses.h /usr/include/stdio.h ! 122: worm: /usr/include/sgtty.h /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h ! 123: worm: /usr/include/sys/ttydev.h /usr/include/signal.h ! 124: worm: /usr/include/machine/trap.h ! 125: worms: worms.c /usr/include/sys/types.h /usr/include/stdio.h ! 126: worms: /usr/include/sgtty.h /usr/include/sys/ioctl.h ! 127: worms: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h ! 128: worms: /usr/include/signal.h /usr/include/machine/trap.h ! 129: wump: wump.c /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h ! 130: wump: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h ! 131: ! 132: # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.