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

  1. # -*- Mode: Text -*-
  2.  
  3. # the executable goes here
  4. BIN = luis:bin
  5.  
  6. # this is where the dictionaries live
  7. ALIB = sys:s
  8.  
  9. # take a look at config.h for additional  configuration parameters. Note
  10. # that most of the important ones are here.
  11.  
  12. # the dictionary to use. Other possibilities are dict.191, /usr/dict/words
  13. # dict.2 is the big mama aprox 28000 words. dict.191 has aprox 15000 words.
  14. DDICT = dict.2
  15.  
  16. # The aprox number of words in the dictionary.  set to 29000 for dict.2
  17. # and to 16000 for dict.191.  This variable controls the size of the hash
  18. # table.  making this number smaller will result in more hashtable collisions
  19. # and less memory utilization.  If you are short on memory you might want
  20. # tweek this value. Also look at MAXPCT in config.h
  21. # If you use dict.191 you will need to unset -DCAPITALIZE see below
  22. BIG_DICT = 29000
  23.  
  24. # size of the malloc heap.  You need 1.5 megs to make the dict.2 hash table
  25. # and aprox 700k to run ISpell.  buildhash multiplies HSIZE by 2. You want
  26. # set this value as small as you can. Aprox. 1024*600 for dict.2 and
  27. # 1024*300 for dict.191.  
  28. HSIZE = 1024*600
  29.  
  30. # temporarty file template
  31. TNAME = sys:t/ISpellXXXXXX
  32.  
  33. # personal dictionary name. Note that the personal dictionary gets
  34. # created in the library directory if the environment variable HOME
  35. # is not set.  You can change the name of the presonal dictionary at
  36. # run time by setting the environment variable defined by PDICTVAR
  37. PNAME = ISpell.words
  38. PVAR  = WORDLIST
  39.  
  40. # if REGEX is set regular expression searches are done on the in memory
  41. # hash table.  The constants WORDS, EGREP and LOOK are not used if
  42. # REGEX is set.  If REGEX is not set EGREP or LOOK are used to search
  43. # for words in the text file WORDS. Use REGEX!!
  44. CFLAGS = +q +L -DAMIGA -DLIBDIR="$(ALIB)" -DTEMPNAME="$(TNAME)" \
  45.      -DDEFPDICT="$(PNAME)" -DPDICTVAR="$(PVAR)" -DEFDICT="$(DDICT)" \
  46.      -DHEAPSIZE=$(HSIZE) -DREGEX -DCAPITALIZE
  47. LNFLAGS =
  48.  
  49. OBJS = ispell.o amiga.o good.o lookup.o hash.o tree.o xgets.o regex.o local.o
  50. LIBS = lheapmem.o32 -lcl32
  51.  
  52. all: buildhash ispell ispell.hash
  53.  
  54. ispell.hash: buildhash $(DDICT)
  55.     buildhash $(DDICT)
  56.  
  57. install: buildhash ispell ispell.hash
  58.     copy ispell $(BIN)
  59.     copy ispell.hash $(ALIB)
  60.  
  61. buildhash: buildhash.o hash.o
  62.     ln -o buildhash buildhash.o hash.o $(LIBS)
  63.  
  64. buildhash.o : buildhash.c
  65.     cc $(CFLAGS) -DBUILDHASH buildhash.c
  66.  
  67. ispell: $(OBJS)
  68.     ln $(LNFLAGS) -o ispell $(OBJS) $(LIBS)
  69.  
  70. clean:
  71.     delete #?.o
  72.     delete buildhash ispell 
  73.     delete ispell.hash 
  74.