SHELL   = /bin/sh

CC	= gcc

OBJS	= driver.o clpintf.o clp.o csm.o obsave.o deftbl.o err.o \
	source.o pdl_gen.o DefTableKeyList.o clplib.o symbol.o \
	match.o oiladt2a.o SymbolPList.o obstack.o map.o \
	VoidPtrList.o oiladt2c.o oiladt2f.o rules.o idn.o envmod.o \
	BitSet.o ActionStack.o treecon.o nodecode.o parser.o \
	glahead.o auxNUL.o auxEOF.o dflteot.o tabsize.o int.o \
	Ccomment.o pascalStr.o auxScanEOL.o pgs_gen.o treestack.o \
	dfltrepar.o attrmain.o visitprocs.o visitmap.o classify.o \
	ptg_gen.o output.o MakeName.o intList.o

EXE	= maptool.exe

all:	$(EXE)

$(EXE):	$(OBJS)
	$(CC) -o $(EXE) $(CFLAGS) $(OBJS) $(LIBS)

objects: $(OBJS)

clean:
	rm -f a.out *.o *.a *~ core ERRS $(EXE)

tidy:
	rm -f core a.out *.o *~ *.a ERRS

driver.o:	driver.c err.h HEAD.h INIT.h FINL.h eliproto.h clp.h \
		maptool.h rules.h symbol.h map.h match.h classify.h \
		output.h ActionStack.h intList.h MakeName.h \
		tOilTypeSetList.h envmod.h SymbolPList.h DefTableKeyList.h \
		VoidPtrList.h ptg_gen.h pdl_gen.h treecon.h BitSet.h \
		deftbl.h clplib.h oiladt2.h csm.h \
		DefTableKeyFunctionTypes.h SymbolPFunctionTypes.h obstack.h \
		intFunctionTypes.h ptg.h VoidPtr.h VoidPtrFunctionTypes.h \
		nodeptr.h

clpintf.o:	clpintf.c clp.h clpintf.h csm.h eliproto.h pdl_gen.h \
		source.h clplib.h DefTableKeyList.h deftbl.h SymbolPList.h \
		oiladt2.h rules.h intList.h DefTableKeyFunctionTypes.h \
		symbol.h SymbolPFunctionTypes.h obstack.h maptool.h \
		envmod.h BitSet.h intFunctionTypes.h

clp.o:	clp.c clp.h clpintf.h pdl_gen.h csm.h eliproto.h clplib.h \
		DefTableKeyList.h deftbl.h SymbolPList.h oiladt2.h rules.h \
		intList.h DefTableKeyFunctionTypes.h symbol.h \
		SymbolPFunctionTypes.h obstack.h maptool.h envmod.h \
		BitSet.h intFunctionTypes.h

csm.o:	csm.c csm.h csmtbl.h csm_dapto.h obsave.h obstack.h \
		eliproto.h

obsave.o:	obsave.c obsave.h obstack.h eliproto.h

deftbl.o:	deftbl.c err.h deftbl.h obstack.h obsave.h eliproto.h

err.o:	err.c err.h source.h err_dapto.h eliproto.h

source.o:	source.c source.h

pdl_gen.o:	pdl_gen.c obsave.h pdl_gen.h obstack.h eliproto.h deftbl.h \
		DefTableKeyList.h SymbolPList.h oiladt2.h csm.h rules.h \
		intList.h DefTableKeyFunctionTypes.h symbol.h \
		SymbolPFunctionTypes.h maptool.h envmod.h BitSet.h \
		intFunctionTypes.h

DefTableKeyList.o:	DefTableKeyList.c DefTableKeyList.h err.h obstack.h \
		deftbl.h DefTableKeyFunctionTypes.h eliproto.h

clplib.o:	clplib.c csm.h clplib.h obstack.h eliproto.h

symbol.o:	symbol.c obstack.h symbol.h eliproto.h maptool.h deftbl.h

match.o:	match.c envmod.h deftbl.h err.h csm.h oiladt2.h match.h \
		map.h rules.h output.h pdl_gen.h symbol.h eliproto.h \
		obstack.h BitSet.h maptool.h SymbolPList.h \
		SymbolPFunctionTypes.h intList.h intFunctionTypes.h \
		ptg_gen.h ptg.h DefTableKeyList.h \
		DefTableKeyFunctionTypes.h

oiladt2a.o:	oiladt2a.c tOilTypeSetList.h pdl_gen.h oiladt2.h \
		VoidPtrList.h eliproto.h deftbl.h VoidPtr.h \
		VoidPtrFunctionTypes.h DefTableKeyList.h SymbolPList.h \
		csm.h rules.h intList.h DefTableKeyFunctionTypes.h symbol.h \
		SymbolPFunctionTypes.h obstack.h maptool.h envmod.h \
		BitSet.h intFunctionTypes.h

SymbolPList.o:	SymbolPList.c SymbolPList.h err.h obstack.h symbol.h \
		SymbolPFunctionTypes.h maptool.h deftbl.h eliproto.h

obstack.o:	obstack.c obstack.h

map.o:	map.c deftbl.h err.h obstack.h pdl_gen.h SymbolPList.h \
		DefTableKeyList.h intList.h map.h match.h symbol.h \
		tOilTypeSetList.h eliproto.h oiladt2.h csm.h rules.h \
		DefTableKeyFunctionTypes.h SymbolPFunctionTypes.h maptool.h \
		envmod.h BitSet.h intFunctionTypes.h VoidPtrList.h \
		VoidPtr.h VoidPtrFunctionTypes.h

VoidPtrList.o:	VoidPtrList.c VoidPtrList.h err.h obstack.h VoidPtr.h \
		VoidPtrFunctionTypes.h eliproto.h

oiladt2c.o:	oiladt2c.c tOilTypeSetList.h oiladt2.h VoidPtrList.h \
		eliproto.h deftbl.h VoidPtr.h VoidPtrFunctionTypes.h

oiladt2f.o:	oiladt2f.c oiladt2.h eliproto.h deftbl.h

rules.o:	rules.c err.h csm.h idn.h pdl_gen.h oiladt2.h obstack.h \
		envmod.h deftbl.h map.h symbol.h rules.h eliproto.h \
		DefTableKeyList.h SymbolPList.h intList.h \
		DefTableKeyFunctionTypes.h SymbolPFunctionTypes.h maptool.h \
		BitSet.h intFunctionTypes.h

idn.o:	idn.c err.h idn.h csm.h obstack.h obsave.h idntbl.h \
		eliproto.h

envmod.o:	envmod.c err.h obstack.h envmod.h obsave.h envmod_dapto.h \
		eliproto.h deftbl.h BitSet.h

BitSet.o:	BitSet.c obstack.h err.h BitSet.h eliproto.h

ActionStack.o:	ActionStack.c obstack.h

treecon.o:	treecon.c node.h nodecode.h attrpredef.h visitmap.h \
		treeact.h obstack.h err.h nodeptr.h HEAD.h eliproto.h clp.h \
		maptool.h rules.h symbol.h map.h match.h classify.h \
		output.h ActionStack.h intList.h MakeName.h \
		tOilTypeSetList.h envmod.h SymbolPList.h DefTableKeyList.h \
		VoidPtrList.h ptg_gen.h pdl_gen.h treecon.h BitSet.h \
		deftbl.h clplib.h oiladt2.h csm.h \
		DefTableKeyFunctionTypes.h SymbolPFunctionTypes.h \
		intFunctionTypes.h ptg.h VoidPtr.h VoidPtrFunctionTypes.h

nodecode.o:	nodecode.c nodecode.h

parser.o:	parser.c err.h gla.h gsdescr.h reparatur.h pgs_gen.h \
		eliproto.h parsops.h

glahead.o:	glahead.c err.h csm.h source.h obstack.h scanops.h \
		tabsize.h ScanProc.h gla.h xtables.h xcode.h eliproto.h

auxNUL.o:	auxNUL.c source.h gla.h

auxEOF.o:	auxEOF.c 

dflteot.o:	dflteot.c 

tabsize.o:	tabsize.c 

int.o:	int.c err.h eliproto.h

Ccomment.o:	Ccomment.c err.h gla.h source.h tabsize.h ScanProc.h \
		eliproto.h

pascalStr.o:	pascalStr.c err.h gla.h tabsize.h eliproto.h

auxScanEOL.o:	auxScanEOL.c eliproto.h err.h gla.h source.h ScanProc.h

pgs_gen.o:	pgs_gen.c gsdescr.h treestack.h HEAD.h err.h parsops.h \
		eliproto.h nodeptr.h clp.h maptool.h rules.h symbol.h map.h \
		match.h classify.h output.h ActionStack.h intList.h \
		MakeName.h tOilTypeSetList.h envmod.h SymbolPList.h \
		DefTableKeyList.h VoidPtrList.h ptg_gen.h pdl_gen.h \
		treecon.h BitSet.h deftbl.h clplib.h oiladt2.h csm.h \
		DefTableKeyFunctionTypes.h SymbolPFunctionTypes.h obstack.h \
		intFunctionTypes.h ptg.h VoidPtr.h VoidPtrFunctionTypes.h

treestack.o:	treestack.c err.h treestack.h eliproto.h nodeptr.h

dfltrepar.o:	dfltrepar.c err.h reparatur.h eliproto.h

attrmain.o:	attrmain.c treestack.h visitprocs.h nodeptr.h HEAD.h node.h \
		treecon.h eliproto.h clp.h maptool.h rules.h symbol.h map.h \
		match.h classify.h output.h ActionStack.h intList.h \
		MakeName.h tOilTypeSetList.h envmod.h SymbolPList.h \
		DefTableKeyList.h VoidPtrList.h ptg_gen.h pdl_gen.h \
		BitSet.h deftbl.h clplib.h oiladt2.h csm.h \
		DefTableKeyFunctionTypes.h SymbolPFunctionTypes.h obstack.h \
		intFunctionTypes.h err.h ptg.h VoidPtr.h \
		VoidPtrFunctionTypes.h

visitprocs.o:	visitprocs.c HEAD.h err.h node.h visitprocs.h attrpredef.h \
		visitmap.h clp.h maptool.h rules.h symbol.h map.h match.h \
		classify.h output.h ActionStack.h intList.h MakeName.h \
		tOilTypeSetList.h envmod.h SymbolPList.h DefTableKeyList.h \
		VoidPtrList.h ptg_gen.h pdl_gen.h treecon.h BitSet.h \
		deftbl.h clplib.h eliproto.h oiladt2.h csm.h \
		DefTableKeyFunctionTypes.h SymbolPFunctionTypes.h obstack.h \
		intFunctionTypes.h ptg.h VoidPtr.h VoidPtrFunctionTypes.h \
		nodeptr.h

visitmap.o:	visitmap.c visitprocs.h visitmap.h HEAD.h node.h treecon.h \
		eliproto.h clp.h maptool.h rules.h symbol.h map.h match.h \
		classify.h output.h ActionStack.h intList.h MakeName.h \
		tOilTypeSetList.h envmod.h SymbolPList.h DefTableKeyList.h \
		VoidPtrList.h ptg_gen.h pdl_gen.h BitSet.h deftbl.h \
		clplib.h oiladt2.h csm.h DefTableKeyFunctionTypes.h \
		SymbolPFunctionTypes.h obstack.h intFunctionTypes.h err.h \
		ptg.h VoidPtr.h VoidPtrFunctionTypes.h nodeptr.h

classify.o:	classify.c pdl_gen.h DefTableKeyList.h classify.h symbol.h \
		deftbl.h SymbolPList.h oiladt2.h csm.h rules.h intList.h \
		eliproto.h DefTableKeyFunctionTypes.h \
		SymbolPFunctionTypes.h obstack.h maptool.h envmod.h \
		BitSet.h intFunctionTypes.h

ptg_gen.o:	ptg_gen.c ptg_gen.h obstack.h eliproto.h ptg.h

output.o:	output.c envmod.h deftbl.h ptg_gen.h pdl_gen.h \
		ActionStack.h intList.h DefTableKeyList.h SymbolPList.h \
		MakeName.h rules.h match.h map.h output.h symbol.h \
		eliproto.h obstack.h BitSet.h ptg.h oiladt2.h csm.h \
		DefTableKeyFunctionTypes.h SymbolPFunctionTypes.h maptool.h \
		intFunctionTypes.h err.h

MakeName.o:	MakeName.c err.h csm.h idn.h termcode.h MakeName.h \
		eliproto.h obstack.h

intList.o:	intList.c intList.h err.h obstack.h intFunctionTypes.h \
		eliproto.h

