home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d191 / ispell.lha / ISpell / unix.zoo / makefile.unix < prev    next >
Makefile  |  1989-02-22  |  2KB  |  86 lines

  1. # -*- Mode: Text -*-
  2.  
  3. # Look over config.X before building.
  4. #
  5. # You may want to edit BINDIR, LIBDIR, DEFHASH, DEFDICT, MAN1DIR, MAN4DIR
  6. # MAN1EXT, MAN4EXT, and TERMLIB below;
  7. # the Makefile will update all other files to match.
  8. #
  9. # On USG systems, add -DUSG to CFLAGS.  On BSD, remove it.
  10. #
  11. # The ifdef NO8BIT may be used if 8 bit extended text characters
  12. # cause problems, or you simply don't wish to allow the feature.
  13. #
  14. # the argument syntax for buildhash to make alternate dictionary files
  15. # is simply:
  16. #
  17. #   buildhash <infile> <outfile>
  18.  
  19. CC = cc
  20. CFLAGS = -n -O
  21. # BINDIR, LIBDIR, DEFHASH, DEFDICT, MAN1DIR, MAN4DIR, MAN1EXT, MAN4EXT,
  22. # TERMLIB
  23. BINDIR = /tools/sources/ispell### /usr/local/bin
  24. LIBDIR = /tools/sources/ispell### /usr/local/lib/ispell
  25. DEFHASH = ispell.hash
  26. DEFDICT = dict.2### dict.195 munched with /usr/dict/words
  27. MAN1DIR    = /usr/man/manl
  28. MAN4DIR    = /usr/man/manl
  29. MAN1EXT    = .1l
  30. MAN4EXT    = .4l
  31. # TERMLIB = -lcurses
  32. TERMLIB = -ltermcap
  33.  
  34. SHELL = /bin/sh
  35.  
  36. all: buildhash fixdict ispell icombine munchlist isexpand $(DEFHASH)
  37.  
  38. ispell.hash: buildhash $(DEFDICT)
  39.     ./buildhash $(DEFDICT) $(DEFHASH)
  40.  
  41. install: all
  42.     cp ispell isexpand munchlist $(BINDIR)
  43.     cp ispell.hash $(LIBDIR)/$(DEFHASH)
  44.     cp isexp[1-4].sed icombine $(LIBDIR)
  45.     chmod 755 $(BINDIR)/ispell $(BINDIR)/munchlist $(BINDIR)/isexpand \
  46.       $(LIBDIR)/icombine
  47.     chmod 644 $(LIBDIR)/$(DEFHASH) $(LIBDIR)/isexp[1-4].sed
  48.     cp ispell.1 $(MAN1DIR)/ispell$(MAN1EXT)
  49.     cp ispell.4 $(MAN4DIR)/ispell$(MAN4EXT)
  50.  
  51. buildhash: buildhash.o hash.o
  52.     $(CC) $(CFLAGS) -o buildhash buildhash.o hash.o
  53.  
  54. fixdict:    fixdict.X Makefile
  55.     sed -e 's@!!LIBDIR!!@$(LIBDIR)@' -e 's@!!DEFDICT!!@$(DEFDICT)@' \
  56.         <fixdict.X >fixdict
  57.     chmod +x fixdict
  58.  
  59. icombine:    icombine.c config.h ispell.h
  60.     $(CC) $(CFLAGS) -o icombine icombine.c
  61.  
  62. munchlist:    munchlist.X Makefile
  63.     sed -e 's@!!LIBDIR!!@$(LIBDIR)@' -e 's@!!DEFDICT!!@$(DEFDICT)@' \
  64.         <munchlist.X >munchlist
  65.     chmod +x munchlist
  66.  
  67. isexpand:    isexpand.X Makefile
  68.     sed -e 's@!!LIBDIR!!@$(LIBDIR)@' isexpand.X >isexpand
  69.     chmod +x isexpand
  70.  
  71. OBJS=ispell.o term.o good.o lookup.o hash.o tree.o xgets.o
  72.  
  73. ispell: $(OBJS)
  74.     cc $(CFLAGS) -o ispell $(OBJS) $(TERMLIB)
  75.  
  76. $(OBJS) buildhash.o: config.h ispell.h
  77. ispell.o: version.h
  78.  
  79. config.h:    config.X Makefile
  80.     sed -e 's@!!LIBDIR!!@$(LIBDIR)@' -e 's@!!DEFDICT!!@$(DEFDICT)@' \
  81.         -e 's@!!DEFHASH!!@$(DEFHASH)@' <config.X >config.h
  82.  
  83. clean:
  84.     rm -f *.o buildhash ispell core a.out mon.out hash.out \
  85.         *.stat *.cnt fixdict fixdict.sh icombine munchlist config.h
  86.