1 | # -*- Mode: Text -*- |
---|
2 | |
---|
3 | # Look over config.X before building. |
---|
4 | # |
---|
5 | # You may want to edit BINDIR, LIBDIR, DEFHASH, DEFDICT, MANDIR, and |
---|
6 | # MANEXT below; the Makefile will update all other files to match. |
---|
7 | # |
---|
8 | # On USG systems, add -DUSG to CFLAGS. |
---|
9 | # |
---|
10 | # The ifdef NO8BIT may be used if 8 bit extended text characters |
---|
11 | # cause problems, or you simply don't wish to allow the feature. |
---|
12 | # |
---|
13 | # the argument syntax for buildhash to make alternate dictionary files |
---|
14 | # is simply: |
---|
15 | # |
---|
16 | # buildhash <infile> <outfile> |
---|
17 | |
---|
18 | DESTDIR= |
---|
19 | CFLAGS = -O |
---|
20 | # BINDIR, LIBDIR, DEFHASH, DEFDICT, MANDIR, MANEXT |
---|
21 | BINDIR = ${DESTDIR}/usr/athena |
---|
22 | LIBDIR = ${DESTDIR}/usr/athena/lib/ispell |
---|
23 | DEFHASH = ispell.hash |
---|
24 | DEFDICT = dict.191 |
---|
25 | MANDIR = ${DESTDIR}/usr/man/man1 |
---|
26 | MANEXT = .1 |
---|
27 | SHELL = /bin/sh |
---|
28 | |
---|
29 | TERMLIB = -ltermcap |
---|
30 | |
---|
31 | all: buildhash ispell icombine munchlist $(DEFHASH) |
---|
32 | |
---|
33 | ispell.hash: buildhash $(DEFDICT) |
---|
34 | ./buildhash $(DEFDICT) $(DEFHASH) |
---|
35 | |
---|
36 | install: all |
---|
37 | -mkdir ${BINDIR} |
---|
38 | -mkdir ${LIBDIR} |
---|
39 | install -m 755 -s ispell $(BINDIR)/ispell |
---|
40 | install -m 755 -s icombine $(LIBDIR)/icombine |
---|
41 | install -m 755 munchlist $(BINDIR)/munchlist |
---|
42 | install -m 644 ispell.hash $(LIBDIR)/$(DEFHASH) |
---|
43 | install -m 644 expand1.sed $(LIBDIR)/expand1.sed |
---|
44 | install -m 644 expand2.sed $(LIBDIR)/expand2.sed |
---|
45 | install -m 644 ispell.1 $(MANDIR)/ispell.1 |
---|
46 | |
---|
47 | buildhash: buildhash.o hash.o |
---|
48 | $(CC) $(CFLAGS) -o buildhash buildhash.o hash.o |
---|
49 | |
---|
50 | icombine: icombine.c |
---|
51 | $(CC) $(CFLAGS) -o icombine icombine.c |
---|
52 | |
---|
53 | munchlist: munchlist.X Makefile |
---|
54 | sed -e 's@!!LIBDIR!!@$(LIBDIR)@' -e 's@!!DEFDICT!!@$(DEFDICT)@' \ |
---|
55 | <munchlist.X >munchlist |
---|
56 | chmod +x munchlist |
---|
57 | |
---|
58 | OBJS=ispell.o term.o good.o lookup.o hash.o tree.o |
---|
59 | ispell: $(OBJS) |
---|
60 | cc $(CFLAGS) -o ispell $(OBJS) $(TERMLIB) |
---|
61 | |
---|
62 | $(OBJS) buildhash.o: config.h |
---|
63 | |
---|
64 | config.h: config.X Makefile |
---|
65 | sed -e 's@!!LIBDIR!!@$(LIBDIR)@' -e 's@!!DEFDICT!!@$(DEFDICT)@' \ |
---|
66 | -e 's@!!DEFHASH!!@$(DEFHASH)@' <config.X >config.h |
---|
67 | |
---|
68 | clean: |
---|
69 | rm -f *.o buildhash ispell core a.out mon.out hash.out \ |
---|
70 | *.stat *.cnt munchlist config.h icombine |
---|