date and time created 87/06/20 11:36:07 by minshall
[unix-history] / usr / src / usr.bin / find / Makefile
CommitLineData
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
8CFLAGS= -O
9LIBC= /lib/libc.a
f1d6a550 10SRCS= find.c bigram.c code.c
8ee0508c 11OBJS= find.o bigram.o code.o
f1d6a550 12
8ee0508c 13all: find bigram code
97c08334 14
8ee0508c
KB
15find: find.c ${LIBC}
16 ${CC} ${CFLAGS} -o $@ find.c
f1d6a550
KM
17
18bigram: bigram.c
8ee0508c 19 ${CC} ${CFLAGS} -o $@ bigram.c
f1d6a550
KM
20
21code: code.c
8ee0508c
KB
22 ${CC} ${CFLAGS} -o $@ code.c
23
24clean: FRC
25 rm -f ${OBJS} core find bigram code
26
27depend: FRC
28 mkdep -p ${CFLAGS} ${SRCS}
29
30install: 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
37lint: FRC
38 lint ${CFLAGS} find.c
39 lint ${CFLAGS} bigram.c
40 lint ${CFLAGS} code.c
41
42tags: FRC
43 ctags find.c
44 ctags -a bigram.c
45 ctags -a code.c
46 sort -o tags tags
47
48FRC:
49
50# DO NOT DELETE THIS LINE -- mkdep uses it.
51# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
52
53find: find.c /usr/include/stdio.h /usr/include/sys/param.h
54find: /usr/include/sys/types.h /usr/include/signal.h
55find: /usr/include/machine/machparam.h /usr/include/sys/dir.h
56find: /usr/include/sys/stat.h /usr/include/pwd.h /usr/include/grp.h
57find: /usr/include/utmp.h
58bigram: bigram.c /usr/include/stdio.h
59code: code.c /usr/include/stdio.h
60
61# IF YOU PUT ANYTHING HERE IT WILL GO AWAY