# Makefile for Amiga ISpell with ARexx server mode
#
# Set up for SAS/C v5.10 with SAS/ASM v5.10
#
# Last Update: Loren J. Rittle  Thu Dec 27 04:16:35 1990

all: ispell buildhash icombine ispell.hash

# See config.h for most setup information! - LJR
# 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! Choice has been made, 
# REGEX, WORDS, EGREP and LOOK are obsolete defines, REGEX option
# is always used - LJR

CFLAGS = -DCAPITALIZE -d0 -m0 -v -b0 -cfmtu -rr -O
LNFLAGS = ND SC SD

OBJS = ispell.o amiga.o good.o lookup.o hash.o tree.o xgets.o regex.o local.o minrexx.o rexxglue.o
LIBS = lib:lcr.lib lib:lc.lib lib:amiga.lib

ispell.hash: buildhash $(DDICT)
	buildhash $(DDICT)

ispell: $(OBJS)
	blink $(LNFLAGS) to ispell from lib:c.o $(OBJS) lib $(LIBS)

buildhash: buildhash.o hash.o
	blink $(LNFLAGS) to buildhash from lib:c.o buildhash.o hash.o lib $(LIBS)

icombine: icombine.o
	blink $(LNFLAGS) to icombine from lib:c.o icombine.o lib $(LIBS)

buildhash.o: buildhash.c
	lc $(CFLAGS) -DBUILDHASH buildhash.c

rexxglue.o: lc:/source/rexxglue.asm
#	Be sure you have installed rexxglue.asm in lc:/source!
#	Be sure to add `SECTION CODE' before the code so ASM won't
#	be upset.
	asm -iinclude: -orexxglue.o lc:/source/rexxglue.asm
