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 >
Wrap
Makefile
|
1989-02-22
|
2KB
|
74 lines
# -*- Mode: Text -*-
# the executable goes here
BIN = luis:bin
# this is where the dictionaries live
ALIB = sys:s
# take a look at config.h for additional configuration parameters. Note
# that most of the important ones are here.
# the dictionary to use. Other possibilities are dict.191, /usr/dict/words
# dict.2 is the big mama aprox 28000 words. dict.191 has aprox 15000 words.
DDICT = dict.2
# The aprox number of words in the dictionary. set to 29000 for dict.2
# and to 16000 for dict.191. This variable controls the size of the hash
# table. making this number smaller will result in more hashtable collisions
# and less memory utilization. If you are short on memory you might want
# tweek this value. Also look at MAXPCT in config.h
# If you use dict.191 you will need to unset -DCAPITALIZE see below
BIG_DICT = 29000
# size of the malloc heap. You need 1.5 megs to make the dict.2 hash table
# and aprox 700k to run ISpell. buildhash multiplies HSIZE by 2. You want
# set this value as small as you can. Aprox. 1024*600 for dict.2 and
# 1024*300 for dict.191.
HSIZE = 1024*600
# temporarty file template
TNAME = sys:t/ISpellXXXXXX
# personal dictionary name. Note that the personal dictionary gets
# created in the library directory if the environment variable HOME
# is not set. You can change the name of the presonal dictionary at
# run time by setting the environment variable defined by PDICTVAR
PNAME = ISpell.words
PVAR = WORDLIST
# if REGEX is set regular expression searches are done on the in memory
# hash table. The constants WORDS, EGREP and LOOK are not used if
# REGEX is set. If REGEX is not set EGREP or LOOK are used to search
# for words in the text file WORDS. Use REGEX!!
CFLAGS = +q +L -DAMIGA -DLIBDIR="$(ALIB)" -DTEMPNAME="$(TNAME)" \
-DDEFPDICT="$(PNAME)" -DPDICTVAR="$(PVAR)" -DEFDICT="$(DDICT)" \
-DHEAPSIZE=$(HSIZE) -DREGEX -DCAPITALIZE
LNFLAGS =
OBJS = ispell.o amiga.o good.o lookup.o hash.o tree.o xgets.o regex.o local.o
LIBS = lheapmem.o32 -lcl32
all: buildhash ispell ispell.hash
ispell.hash: buildhash $(DDICT)
buildhash $(DDICT)
install: buildhash ispell ispell.hash
copy ispell $(BIN)
copy ispell.hash $(ALIB)
buildhash: buildhash.o hash.o
ln -o buildhash buildhash.o hash.o $(LIBS)
buildhash.o : buildhash.c
cc $(CFLAGS) -DBUILDHASH buildhash.c
ispell: $(OBJS)
ln $(LNFLAGS) -o ispell $(OBJS) $(LIBS)
clean:
delete #?.o
delete buildhash ispell
delete ispell.hash