# $Xorg: Imakefile,v 1.3 2000/08/17 19:47:17 cpqbld Exp $
# This can be used directly as a Makefile, with make -f Imakefile

PEXINCLUDE = ./../../../../../include/PEX

all:: cOCTables.ci uOCTables.ci Requests.h Requests.ci

cOCTables.ci:
	echo "STUB_NAME " "cPEX" | cat > OCTables.temp
	sed -n '/##/!p' OCReduce.sed > OCReduce.temp
	awk -f OCTables.awk OCTables.temp $(PEXINCLUDE)/PEX.h | awk -f OCReduce.awk | sed -f OCReduce.temp > cOCTables.ci

uOCTables.ci:
	echo "STUB_NAME " "uPEX" | cat > OCTables.temp
	sed -n '/##/!p' OCReduce.sed > OCReduce.temp
	awk -f OCTables.awk OCTables.temp $(PEXINCLUDE)/PEX.h | awk -f OCReduce.awk | sed -f OCReduce.temp > uOCTables.ci

Requests.h:
	awk -f ReqTab.awk $(PEXINCLUDE)/PEX.h > Requests.h

Requests.ci:
	awk -f ReqSame.awk Requests.h > Requests.ci

clean:
	rm -f cOCTables.ci uOCTables.ci Requests.h Requests.ci
	rm -f cOCTables.temp uOCTables.temp
