# Makefile for Amiga ISpell with ARexx Server Mode
#
# Set up for SAS/C v6.0
#
# Last Update: Loren J. Rittle  Sat Sep 26 11:54:23 1992

all: ispell buildhash icombine ispell.hash

clean:
	delete quiet \#?.bak \#?.o \#?.lnk \#?.cnt \#?.stat ispell buildhash \
		icombine ispell.hash

CFLAGS = DEFINE=CAPITALIZE NODEBUG CPU=ANY DATA=FAR MCCONS UNSCHAR

LNFLAGS = NODEBUG SMALLCODE SMALLDATA LINK

OBJS = ispell.o amiga.o good.o lookup.o hash.o tree.o xgets.o \
       regex.o local.o minrexx.o

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

ispell: $(OBJS)
	sc $(LNFLAGS) to ispell from $(OBJS) lib:rexxvars.o

buildhash: buildhash.o hash.o
	sc $(LNFLAGS) to buildhash from buildhash.o hash.o

icombine: icombine.o
	sc $(LNFLAGS) to icombine from icombine.o

buildhash.o: buildhash.c
	sc $(CFLAGS) DEFINE=BUILDHASH buildhash.c
