|
|
1.1 ! root 1: # ! 2: # Copyright (c) 1987 Regents of the University of California. ! 3: # All rights reserved. The Berkeley software License Agreement ! 4: # specifies the terms and conditions for redistribution. ! 5: # ! 6: # @(#)Makefile 5.8 (Berkeley) 12/1/87 ! 7: # ! 8: CFLAGS= -O ! 9: LIBC= /lib/libc.a ! 10: SRCS= comp.c boggle.c ! 11: ! 12: all: boggle bogdict ! 13: ! 14: bogdict: comp sfile ! 15: -if [ -f /usr/local/lib/w2a ]; \ ! 16: then dict=/usr/local/lib/w2a; \ ! 17: else dict=/usr/dict/words; fi; \ ! 18: sed -f sfile $$dict | uniq | ./comp >bogdict ! 19: ! 20: boggle: ${LIBC} ! 21: ${CC} -o $@ ${CFLAGS} [email protected] ! 22: ! 23: comp: ${LIBC} ! 24: ${CC} -o $@ ${CFLAGS} [email protected] ! 25: ! 26: clean: FRC ! 27: rm -f ${OBJS} core comp boggle bogdict ! 28: ! 29: depend: FRC ! 30: mkdep -p ${CFLAGS} ${SRCS} ! 31: ! 32: install: FRC ! 33: install -s -o games -g bin -m 4700 boggle ${DESTDIR}/usr/games/hide/boggle ! 34: install -o games -g bin -m 400 bogdict ${DESTDIR}/usr/games/lib/bogdict ! 35: (cd ${DESTDIR}/usr/games; rm -f boggle; ln -s dm boggle; chown games.bin boggle) ! 36: ! 37: lint: FRC ! 38: lint ${CFLAGS} comp.c ! 39: lint ${CFLAGS} boggle.c ! 40: ! 41: tags: FRC ! 42: ctags ${SRCS} ! 43: ! 44: FRC: ! 45: ! 46: # DO NOT DELETE THIS LINE -- mkdep uses it. ! 47: # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. ! 48: ! 49: comp: comp.c /usr/include/stdio.h ! 50: boggle: boggle.c /usr/include/ctype.h /usr/include/errno.h ! 51: boggle: /usr/include/setjmp.h /usr/include/sgtty.h /usr/include/sys/ioctl.h ! 52: boggle: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h ! 53: boggle: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/stdio.h ! 54: ! 55: # 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.