|
|
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.7 (Berkeley) 11/16/87
7: #
8: CFLAGS= -O
9: LIBC= /lib/libc.a
10: SRCS= diction.c nwords.c end.c part.c pscan.c outp.c
11: OBJS= nwords.o end.o part.o pscan.o outp.o
12:
13: all: dprog style1 style2 style3
14:
15: dprog: diction.c ${LIBC}
16: ${CC} ${CFLAGS} -DDICT=\"/usr/lib/dict.d\" diction.c -o $@
17:
18: style1: nwords.o ${LIBC}
19: ${CC} nwords.o -o $@ -ll
20:
21: style2: end.o ${LIBC}
22: ${CC} end.o -o $@ -ll
23:
24: style3: part.o pscan.o outp.o ${LIBC}
25: ${CC} part.o pscan.o outp.o -o $@ -ll
26:
27: clean: FRC
28: rm -f ${OBJS} part.c nwords.c end.c style1 style2 style3 dprog
29:
30: depend: ${SRCS} FRC
31: mkdep ${CFLAGS} ${SRCS}
32:
33: install: FRC
34: install -s -o bin -g bin -m 755 style1 ${DESTDIR}/usr/lib
35: install -s -o bin -g bin -m 755 style2 ${DESTDIR}/usr/lib
36: install -s -o bin -g bin -m 755 style3 ${DESTDIR}/usr/lib
37: install -s -o bin -g bin -m 755 dprog ${DESTDIR}/usr/lib
38: install -c -o bin -g bin -m 755 style.sh ${DESTDIR}/usr/bin/style
39: install -c -o bin -g bin -m 755 diction.sh ${DESTDIR}/usr/bin/diction
40: install -c -o bin -g bin -m 755 explain.sh ${DESTDIR}/usr/bin/explain
41: install -c -o bin -g bin -m 755 dict.d ${DESTDIR}/usr/lib
42: install -c -o bin -g bin -m 755 explain.d ${DESTDIR}/usr/lib
43: # ln ${DESTDIR}/usr/bin/explain ${DESTDIR}/usr/bin/suggest
44:
45: lint: ${SRCS} FRC
46: lint ${CFLAGS} nwords.c
47: lint ${CFLAGS} end.c
48: lint ${CFLAGS} part.c pscan.c outp.c
49:
50: tags: ${SRCS} FRC
51: ctags nwords.c
52: ctags -a end.c
53: ctags -a part.c pscan.c outp.c
54: sort -o tags tags
55:
56: FRC:
57:
58: # DO NOT DELETE THIS LINE -- mkdep uses it.
59: # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
60:
61: diction.o: diction.c /usr/include/stdio.h /usr/include/ctype.h
62: nwords.o: nwords.c /usr/include/stdio.h /usr/include/stdio.h
63: nwords.o: /usr/include/ctype.h names.h nhash.c dict.c ydict.c abbrev.c
64: end.o: end.c /usr/include/stdio.h /usr/include/stdio.h /usr/include/ctype.h
65: end.o: names.h ehash.c edict.c
66: part.o: part.c /usr/include/stdio.h style.h names.h conp.h
67: pscan.o: pscan.c names.h conp.h
68: outp.o: outp.c /usr/include/stdio.h /usr/include/ctype.h style.h names.h conp.h
69:
70: # 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.