
.obj: obj

obj_mod = ispell.obj correct.obj tree.obj defmt.obj term_os2.obj
obj_nom = dump.obj good.obj hash.obj lookup.obj makedent.obj tgood.obj xgets.obj
compile = wcc386 -zc -d1 -os -bm -bt=OS2 -wx -zq -s -i=D:\WC\H;languages\english;.;D:\wc\h\os2 -fo=obj\$^.
perv    = lib D:\Work\pervlib\LIB\WCA0A3OR opt elimin,case,map,verb
link    = wlink deb all f {$<} name $* opt map,symf,stack=32768 $(perv)

all: ispell.exe buildhash.exe koi2alt.exe ispelld.exe .SYMBOLIC
# icombine.exe
# koi2alt.exe 

ispell.exe: $(obj_mod) $(obj_nom) gnu_regex.obj
	$(link)

buildhash.exe: buildhash.obj makedent.obj hash.obj y.tab.obj
	$(link)

icombine.exe: icombine.obj makedent.obj y.tab.obj
	$(link)

koi2alt.exe: koi2alt.obj
	$(link)

ispelld.exe: ispelld.obj
	$(link)

makedent.obj: makedent.c .AUTODEPEND
	$(compile) -zm $<

gnu_regex.obj: gnu_regex.c .AUTODEPEND
	$(compile) -zm $<

y.tab.c: parse.y
	\gnu\bin\yacc -l $<

.c.obj: .AUTODEPEND
	$(compile) $<
