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/01/87 7# 8CFLAGS= -O 9LIBC= /lib/libc.a 10SRCS= comp.c boggle.c 11 12all: boggle bogdict 13 14bogdict: 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 20boggle: ${LIBC} 21 ${CC} -o $@ ${CFLAGS} $@.c 22 23comp: ${LIBC} 24 ${CC} -o $@ ${CFLAGS} $@.c 25 26clean: FRC 27 rm -f ${OBJS} core comp boggle bogdict 28 29depend: FRC 30 mkdep -p ${CFLAGS} ${SRCS} 31 32install: 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 37lint: FRC 38 lint ${CFLAGS} comp.c 39 lint ${CFLAGS} boggle.c 40 41tags: FRC 42 ctags ${SRCS} 43 44FRC: 45 46# DO NOT DELETE THIS LINE -- mkdep uses it. 47# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 48 49comp: comp.c /usr/include/stdio.h 50boggle: boggle.c /usr/include/ctype.h /usr/include/errno.h 51boggle: /usr/include/setjmp.h /usr/include/sgtty.h /usr/include/sys/ioctl.h 52boggle: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 53boggle: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/stdio.h 54 55# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 56