Commit | Line | Data |
---|---|---|
2958d0fe | 1 | # |
280efb10 | 2 | # @(#)Makefile 4.2 (Berkeley) 82/11/06 |
2958d0fe RH |
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 | BIN = ${DESTDIR}/usr/lib | |
12 | DICT= -DDICT=\"/usr/lib/dict.d\" | |
13 | ||
280efb10 | 14 | all: diction style suggest deroff |
2958d0fe RH |
15 | style: style1 style2 style3 |
16 | ||
17 | install: style diction | |
18 | install -s style1 ${DESTDIR}/usr/lib | |
19 | install -s style2 ${DESTDIR}/usr/lib | |
20 | install -s style3 ${DESTDIR}/usr/lib | |
21 | install -s dprog ${DESTDIR}/usr/lib | |
22 | install -s deroff ${DESTDIR}/usr/lib | |
23 | rm -f ${DESTDIR}/usr/bin/deroff | |
24 | ln ${DESTDIR}/usr/lib/deroff ${DESTDIR}/usr/bin/deroff | |
25 | install -c style ${DESTDIR}/usr/bin | |
26 | install -c diction ${DESTDIR}/usr/bin | |
27 | install -c explain ${DESTDIR}/usr/bin | |
28 | install -c dict.d ${DESTDIR}/usr/lib | |
29 | install -c explain.d ${DESTDIR}/usr/lib | |
280efb10 RH |
30 | # ln ${DESTDIR}/usr/bin/explain ${DESTDIR}/usr/bin/suggest |
31 | # ln ${DESTDIR}/usr/lib/explain.d ${DESTDIR}/usr/bin/suggest.d | |
2958d0fe RH |
32 | |
33 | clean: | |
34 | rm -f prtlex.c wdslex.c endlex.c | |
35 | rm -f *.o style1 style2 style3 dprog | |
36 | ||
37 | style3: prtlex.o pscan.o outp.o | |
38 | cc prtlex.o pscan.o outp.o -ll -o style3 | |
39 | prtlex.c: part.l | |
40 | lex part.l | |
41 | mv lex.yy.c prtlex.c | |
42 | prtlex.o: names.h prtlex.c | |
43 | cc -c -O prtlex.c | |
44 | pscan.o: names.h conp.h | |
45 | cc -c -O pscan.c | |
46 | outp.o: names.h conp.h style.h | |
47 | cc -c -O outp.c | |
48 | ||
49 | style1: wdslex.o | |
50 | cc wdslex.o -ll -o style1 | |
280efb10 | 51 | wdslex.o: wdslex.c nhash.c dict.c ydict.c names.h abbrev.c |
2958d0fe RH |
52 | cc -c wdslex.c |
53 | wdslex.c: nwords.l | |
54 | lex nwords.l | |
55 | mv lex.yy.c wdslex.c | |
56 | ||
57 | style2: endlex.o | |
58 | cc endlex.o -ll -o style2 | |
59 | endlex.o: names.h endlex.c ehash.c edict.c | |
60 | cc -c endlex.c | |
61 | endlex.c: end.l | |
62 | lex end.l | |
63 | mv lex.yy.c endlex.c | |
64 | ||
65 | diction: dprog | |
66 | dprog: diction.c | |
67 | cc -O $(DICT) diction.c -i -o dprog | |
68 | ||
280efb10 RH |
69 | deroff: deroff.c getopt.c |
70 | cc -O deroff.c getopt.c -i -o deroff |