|
|
1.1 root 1: #
2: # @(#)Makefile 4.5 (Berkeley) 83/06/30
3: #
4: # make file for STYLE and DICTION
5: #
6: # BIN is the directory for storing the object code
7: # for the 3 programs that make up style
8: # DICT is the full pathname of the file dict.d, the
9: # dictionary file used by DICTION
10: #
11:
12: MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
13: DESTDIR=
14: SRCS = \
15: abbrev.c conp.h dict.c dict.d \
16: diction.c diction.sh edict.c ehash.c \
17: explain.d \
18: end.l getopt.c names.h nhash.c \
19: nwords.l outp.c part.l pscan.c \
20: style.h style.sh explain.sh ydict.c \
21: README
22:
23: BIN = ${DESTDIR}/usr/lib
24: DICT= -DDICT=\"/usr/lib/dict.d\"
25:
26: all: diction style
27:
28: style: style1 style2 style3
29:
30: install: style diction style.sh diction.sh explain.sh dict.d explain.d
31: install -s style1 ${DESTDIR}/usr/lib
32: install -s style2 ${DESTDIR}/usr/lib
33: install -s style3 ${DESTDIR}/usr/lib
34: install -s dprog ${DESTDIR}/usr/lib
35: install -c style.sh ${DESTDIR}/usr/bin/style
36: install -c diction.sh ${DESTDIR}/usr/bin/diction
37: install -c explain.sh ${DESTDIR}/usr/bin/explain
38: install -c dict.d ${DESTDIR}/usr/lib
39: install -c explain.d ${DESTDIR}/usr/lib
40: # ln ${DESTDIR}/usr/bin/explain ${DESTDIR}/usr/bin/suggest
41:
42: clean:
43: rm -f prtlex.c wdslex.c endlex.c
44: rm -f *.o style1 style2 style3 dprog
45:
46: cleansrc:
47: rm -f *.[chld] *.sh Makefile
48:
49: style3: prtlex.o pscan.o outp.o
50: ${CC} prtlex.o pscan.o outp.o -ll -o style3
51: prtlex.c: part.l
52: lex part.l
53: mv lex.yy.c prtlex.c
54: prtlex.o: names.h prtlex.c conp.h style.h names.h
55: ${CC} -c -O prtlex.c
56: pscan.o: names.h conp.h pscan.c
57: ${CC} -c -O pscan.c
58: outp.o: names.h conp.h style.h outp.c
59: ${CC} -c -O outp.c
60:
61: style1: wdslex.o
62: ${CC} wdslex.o -ll -o style1
63: wdslex.o: wdslex.c nhash.c dict.c ydict.c names.h abbrev.c
64: ${CC} -c wdslex.c
65: wdslex.c: nwords.l
66: lex nwords.l
67: mv lex.yy.c wdslex.c
68:
69: style2: endlex.o
70: ${CC} endlex.o -ll -o style2
71: endlex.o: names.h endlex.c ehash.c edict.c
72: ${CC} -c endlex.c
73: endlex.c: end.l
74: lex end.l
75: mv lex.yy.c endlex.c
76:
77: diction: dprog
78: dprog: diction.c
79: ${CC} -O $(DICT) diction.c -o dprog
80:
81: srcs: sources
82:
83: sources: $(SRCS)
84:
85: $(SRCS):
86: sccs get $@
87:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.