|
|
1.1 ! root 1: # ! 2: # Copyright (c) 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.4 (Berkeley) 7/9/88 ! 18: # ! 19: CFLAGS= -O ! 20: ! 21: # Programs that live in subdirectories, and have makefiles of their own. ! 22: # ! 23: SUBDIR= aard ching compat ddl zork ! 24: ! 25: # C sources that live in the current directory ! 26: # ! 27: SRCS= chess.c ! 28: ! 29: # C programs that live in the current directory and do not need ! 30: # explicit make lines. ! 31: # ! 32: STD= chess ! 33: ! 34: all: ${SUBDIR} ${STD} ! 35: ! 36: ${SUBDIR}: FRC ! 37: cd $@; make ${MFLAGS} ! 38: ! 39: ${STD}: ! 40: ${CC} ${CFLAGS} -o $@ [email protected] ! 41: ! 42: install: FRC ! 43: -for i in ${SUBDIR}; do \ ! 44: (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done ! 45: -for i in ${STD}; do \ ! 46: (install -s -o bin -g bin -m 755 $$i ${DESTDIR}/usr/games/$$i); \ ! 47: done ! 48: install -c -o bin -g bin -m 444 chess.bin ${DESTDIR}/usr/games/lib/chess ! 49: ! 50: clean: FRC ! 51: -for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done ! 52: rm -f ${STD} a.out core *.s *.o ! 53: ! 54: depend: FRC ! 55: -for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} depend); done ! 56: mkdep ${CFLAGS} ${SRCS} ! 57: ! 58: FRC: ! 59: ! 60: # DO NOT DELETE THIS LINE -- mkdep uses it. ! 61: # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. ! 62: ! 63: chess.o: chess.c /usr/include/stdio.h ! 64: ! 65: # 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.