Commit | Line | Data |
---|---|---|
f1d6a550 | 1 | # |
8ee0508c KB |
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. | |
f1d6a550 | 5 | # |
8ee0508c | 6 | # @(#)Makefile 4.4 (Berkeley) %G% |
f1d6a550 | 7 | # |
8ee0508c KB |
8 | CFLAGS= -O |
9 | LIBC= /lib/libc.a | |
f1d6a550 | 10 | SRCS= find.c bigram.c code.c |
8ee0508c | 11 | OBJS= find.o bigram.o code.o |
f1d6a550 | 12 | |
8ee0508c | 13 | all: find bigram code |
97c08334 | 14 | |
8ee0508c KB |
15 | find: find.c ${LIBC} |
16 | ${CC} ${CFLAGS} -o $@ find.c | |
f1d6a550 KM |
17 | |
18 | bigram: bigram.c | |
8ee0508c | 19 | ${CC} ${CFLAGS} -o $@ bigram.c |
f1d6a550 KM |
20 | |
21 | code: code.c | |
8ee0508c KB |
22 | ${CC} ${CFLAGS} -o $@ code.c |
23 | ||
24 | clean: FRC | |
25 | rm -f ${OBJS} core find bigram code | |
26 | ||
27 | depend: FRC | |
28 | mkdep -p ${CFLAGS} ${SRCS} | |
29 | ||
30 | install: FRC | |
31 | install -s -o bin -g bin -m 755 find ${DESTDIR}/usr/bin/find | |
32 | -mkdir ${DESTDIR}/usr/lib/find > /dev/null 2>&1 | |
33 | install -s -o bin -g bin -m 755 bigram ${DESTDIR}/usr/lib/find/bigram | |
34 | install -s -o bin -g bin -m 755 code ${DESTDIR}/usr/lib/find/code | |
35 | install -c -o bin -g bin -m 755 updatedb.csh ${DESTDIR}/usr/lib/find/updatedb | |
36 | ||
37 | lint: FRC | |
38 | lint ${CFLAGS} find.c | |
39 | lint ${CFLAGS} bigram.c | |
40 | lint ${CFLAGS} code.c | |
41 | ||
42 | tags: FRC | |
43 | ctags find.c | |
44 | ctags -a bigram.c | |
45 | ctags -a code.c | |
46 | sort -o tags tags | |
47 | ||
48 | FRC: | |
49 | ||
50 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
51 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
52 | ||
53 | find: find.c /usr/include/stdio.h /usr/include/sys/param.h | |
54 | find: /usr/include/sys/types.h /usr/include/signal.h | |
55 | find: /usr/include/machine/machparam.h /usr/include/sys/dir.h | |
56 | find: /usr/include/sys/stat.h /usr/include/pwd.h /usr/include/grp.h | |
57 | find: /usr/include/utmp.h | |
58 | bigram: bigram.c /usr/include/stdio.h | |
59 | code: code.c /usr/include/stdio.h | |
60 | ||
61 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |