cleanup; make clean lable work
[unix-history] / usr / src / old / boggle / Makefile
CommitLineData
6cca9b39 1#
810969fd 2# Copyright (c) 1987 Regents of the University of California.
6cca9b39
KM
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
a21c59cb 6# @(#)Makefile 5.8 (Berkeley) %G%
0250f5d0 7#
810969fd
KB
8CFLAGS= -O
9LIBC= /lib/libc.a
10SRCS= comp.c boggle.c
0250f5d0 11
810969fd 12all: boggle bogdict
0250f5d0
SL
13
14bogdict: comp sfile
ff24121c 15 -if [ -f /usr/local/lib/w2a ]; \
dd7e451a
KM
16 then dict=/usr/local/lib/w2a; \
17 else dict=/usr/dict/words; fi; \
4d62cd0b 18 sed -f sfile $$dict | uniq | ./comp >bogdict
0250f5d0 19
a21c59cb
KB
20boggle: ${LIBC}
21 ${CC} -o $@ ${CFLAGS} $@.c
0250f5d0 22
a21c59cb
KB
23comp: ${LIBC}
24 ${CC} -o $@ ${CFLAGS} $@.c
0250f5d0 25
810969fd
KB
26clean: FRC
27 rm -f ${OBJS} core comp boggle bogdict
0250f5d0 28
810969fd 29depend: FRC
a21c59cb 30 mkdep -p ${CFLAGS} ${SRCS}
bf982f23 31
810969fd 32install: FRC
8b51accb
KB
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)
810969fd
KB
36
37lint: FRC
a21c59cb
KB
38 lint ${CFLAGS} comp.c
39 lint ${CFLAGS} boggle.c
810969fd
KB
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
a21c59cb
KB
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
810969fd
KB
54
55# IF YOU PUT ANYTHING HERE IT WILL GO AWAY