# -*- Mode: Text -*-

# the executable goes here
BIN = c:

# this is where the dictionaries live
ALIB = dict:

CFLAGS = +q +L -DAMIGA -DLIBDIR="$(ALIB)" -DTMPDIR="t:"
LNFLAGS = 
LIBS = -lcl32

all: buildhash ispell ispell.hash

ispell.hash: buildhash dict.191
	buildhash

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: ispell.o amiga.o good.o lookup.o hash.o tree.o
	ln $(LNFLAGS) -o ispell ispell.o amiga.o good.o lookup.o \
		hash.o tree.o $(LIBS)

clean:
	delete #?.o
	delete buildhash ispell 
	delete ispell.hash stats.191 count.191
