|
|
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 4.5 (Berkeley) 10/7/87
7: #
8: CFLAGS= -O
9: LIBC= /lib/libc.a
10: SRCS= find.c bigram.c code.c
11: OBJS= find.o bigram.o code.o
12:
13: all: find bigram code
14:
15: find: find.c ${LIBC}
16: ${CC} ${CFLAGS} -o $@ find.c
17:
18: bigram: bigram.c
19: ${CC} ${CFLAGS} -o $@ bigram.c
20:
21: code: code.c
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: -[ -d ${DESTDIR}/usr/lib/find ] || mkdir ${DESTDIR}/usr/lib/find
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/trap.h /usr/include/machine/machparam.h
56: find: /usr/include/machine/endian.h /usr/include/sys/dir.h
57: find: /usr/include/sys/stat.h /usr/include/pwd.h /usr/include/grp.h
58: find: /usr/include/utmp.h
59: bigram: bigram.c /usr/include/stdio.h
60: code: code.c /usr/include/stdio.h
61:
62: # 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.