CHIP6809.ps:	MIDSLICE.ps LHSPADS.ps RHSPADS.ps CHIP6809.toal CHIP6809.build
		toal <CHIP6809.build

MIDSLICE.ps:	Centre.ps TOPPADS.ps toprtchan.ps MIDSLICE.toal MIDSLICE.build
		toal <MIDSLICE.build

toprtchan.ps:	toprtchan.out
		toprtchan.out

toprtchan.out:	toprtchan.mod
		mm2m toprtchan; make; rm makefile

Centre.ps:	totalchip.ps inputx8.ps chanPPx8.ps \
		Centre.toal Centre.build
		toal <Centre.build

TOPPADS.ps:	INPAD.ps OUTPAD.ps VSSPAD.ps TOPPADS.build TOPPADS.toal
		toal <TOPPADS.build

VSSPAD.ps:	VSSPAD.out powpads.ps
		VSSPAD.out

VSSPAD.out:	VSSPAD.mod
		mm2m VSSPAD; make; rm makefile

RHSPADS.ps:	outputx8.ps inputx8.ps CORNER.ps LastCell.ps \
		RHSPADS.build RHSPADS.toal VSSJOIN.ps
		toal <RHSPADS.build

LastCell.ps:	LastCell.out
		LastCell.out

LastCell.out:	LastCell.mod
		mm2m LastCell; make; rm makefile

VSSJOIN.ps:	VSSJOIN.out
		VSSJOIN.out

VSSJOIN.out:	VSSJOIN.mod
		mm2m VSSJOIN; make; rm makefile

LHSPADS.ps:	inputx8.ps CORNER.ps VDDPAD.ps VddW.ps chanLHS8.ps \
		VddEWstrap.ps VddLN.ps LHSPADS.toal
		toal <LHSPADS.build

VddLN.ps:	VddLN.out
		VddLN.out

VddLN.out:	VddLN.mod
		mm2m VddLN; make; rm makefile

VddEWstrap.ps:	VddEWstrap.out
		VddEWstrap.out

VddEWstrap.out:	VddEWstrap.mod
		mm2m VddEWstrap; make; rm makefile

VDDPAD.ps:	VDDPAD.out powpads.ps
		VDDPAD.out

VDDPAD.out:	VDDPAD.mod
		mm2m VDDPAD; make; rm makefile

powpads.ps:	/mnt/graham/m6809/all/powpads.all powpads.build
		all <powpads.build

inputx8.ps:	inputx8.toal inputx8.build INPAD.ps
		toal <inputx8.build

outputx8.ps:	outputx8.toal outputx8.build OUTPAD.ps
		toal <outputx8.build

pads:		INPAD.ps OUTPAD.ps CORNER.ps
		echo heaps up to date

INPAD.ps:	INPAD.out TTLin.ps
		INPAD.out

INPAD.out:	INPAD.mod
		mm2m INPAD; make; rm makefile

OUTPAD.ps:	OUTPAD.out output.ps
		OUTPAD.out

OUTPAD.out:	OUTPAD.mod
		mm2m OUTPAD; make; rm makefile

CORNER.ps:	CORNER.out
		CORNER.out

CORNER.out:	CORNER.mod
		mm2m CORNER; make; rm makefile

TTLin.ps:	/mnt/graham/m6809/all/inpads.all TTLin.build
		all < TTLin.build

output.ps:	drivers.ps /mnt/graham/m6809/all/nbuffbits.all \
		/mnt/graham/m6809/all/pbuffbits.all \
		/mnt/graham/m6809/all/output.all \
		/mnt/graham/m6809/all/output.build
		all < /mnt/graham/m6809/all/output.build

drivers.ps:	/mnt/graham/m6809/all/drivers.all \
		/mnt/graham/m6809/all/drivers.build
		all < /mnt/graham/m6809/all/drivers.build

totalchip.ps:	chipbody.ps megaroute.ps totalchip.toal
		toal <totalchip.build

megaroute.ps:	A10.ps A11.ps A12.ps A13.ps A14.ps A15.ps \
		CAS.ps Cnt.ps Eclk.ps Qclk.ps \
		RAS.ps ROM.ps RW.ps Reset.ps \
		TCS.ps TR.ps TW.ps megaroute.toal
		toal <megaroute.build

A10.ps:		A10.mod
		mm2m A10; make; rm makefile; A10.out

A11.ps:		A11.mod
		mm2m A11; make; rm makefile; A11.out

A12.ps:		A12.mod
		mm2m A12; make; rm makefile; A12.out

A13.ps:		A13.mod
		mm2m A13; make; rm makefile; A13.out

A14.ps:		A14.mod
		mm2m A14; make; rm makefile; A14.out

A15.ps:		A15.mod
		mm2m A15; make; rm makefile; A15.out

CAS.ps:		CAS.mod
		mm2m CAS; make; rm makefile; CAS.out

Cnt.ps:		Count.mod
		mm2m Count; make; rm makefile; Count.out

Eclk.ps:	Eclk.mod
		mm2m Eclk; make; rm makefile; Eclk.out

Qclk.ps:	Qclk.mod
		mm2m Qclk; make; rm makefile; Qclk.out

RAS.ps:		RAS.mod
		mm2m RAS; make; rm makefile; RAS.out

RCS.ps:		RCS.mod
		mm2m RCS; make; rm makefile; RCS.out

ROM.ps:		ROM.mod
		mm2m ROM; make; rm makefile; ROM.out

RW.ps:		RW.mod
		mm2m RW; make; rm makefile; RW.out

Reset.ps:	Reset.mod
		mm2m Reset; make; rm makefile; Reset.out

TCS.ps:		TCS.mod
		mm2m TCS; make; rm makefile; TCS.out

TR.ps:		TR.mod
		mm2m TR; make; rm makefile; TR.out

TW.ps:		TW.mod
		mm2m TW; make; rm makefile; TW.out

chipbody.ps:	mainvdd.ps bigtop.ps chipbody.toal
		toal <chipbody.build

bigtop.ps:	topchan.ps muxcnttop.ps bigtop.toal
		toal <bigtop.build

muxcnttop.ps:	VssPP.ps VssMP.ps VssT.ps muxcnttop.toal
		toal <muxcnttop.build

VssT.ps:	VssT.out VssT.mod
		mm2m VssT; make; rm makefile; VssT.out

VssPP.ps:	VssPP.out VssPP.mod
		mm2m VssPP; make; rm makefile; VssPP.out

topchan.ps:	platop.ps VssMP.ps
		toal <topchan.build

VssMP.ps:	VssMP.out VssMP.mod
		mm2m VssMP; make; rm makefile; VssMP.out

platop.ps:	Vss.ps Vdd.ps VddVss.ps diffpoly1.ps stretchmux.ps
		toal <platop.build

Vss.ps:		Vss.out Vss.mod
		mm2m Vss; make; rm makefile; Vss.out

Vdd.ps:		Vdd.out Vdd.mod
		mm2m Vdd; make; rm makefile; Vdd.out

VddVss.ps:	VddVss.out VddVss.mod
		mm2m VddVss; make; rm makefile; VddVss.out

diffpoly1.ps:	diffpoly1.out diffpoly1.mod
		mm2m diffpoly1; make; rm makefile; diffpoly1.out

mainvdd.ps:	maincct.ps VddS.ps mainvdd.toal
		toal <mainvdd.build

VddS.ps:	VddS.out VddS.mod
		mm2m VddS; make; rm makefile; VddS.out

VddW.ps:	VddW.out
		VddW.out

VddW.out:	VddW.mod
		mm2m VddW; make; rm makefile; VddW.out

maincct.ps:	countmux.ps muxroute.ps plahalf.ps chanPMx8.ps maincct.toal
		toal <maincct.build

countmux.ps:	countx8.ps mux3x8.ps countmux.toal
		toal <countmux.build

countx8.ps:	counter.ps countx8.toal
		toal <countx8.build

counter.ps:	ttyper.ps dtyper.ps /mnt/graham/m6809/all/counter.build \
		/mnt/graham/m6809/all/counter.all
		all < /mnt/graham/m6809/all/counter.build

ttyper.ps:	dtyper.ps /mnt/graham/m6809/all/ttyper.build \
		/mnt/graham/m6809/all/ttyper.all
		all < /mnt/graham/m6809/all/ttyper.build

dtyper.ps:	/mnt/graham/m6809/all/dtyper.build \
		/mnt/graham/m6809/all/dtyper.all
		all < /mnt/graham/m6809/all/dtyper.build

muxroute.ps:	muxroute.out
		muxroute.out

plahalf.ps:	pla.ps UnderPla.ps plahalf.toal
		toal <plahalf.build

pla.ps:		pla.out
		pla.out

UnderPla.ps:	UnderPla.out
		UnderPla.out

chanPMx8.ps:	chanPMx8.out
		chanPMx8.out

mux3x8.ps:	mux3x8.toal stretchmux.ps driver.ps
		toal <mux3x8.build

driver.ps:	driver.toal driver.build driverbits.ps latchbits.ps
		toal <driver.build

driverbits.ps:	driverbits.all driverbits.build
		all <driverbits.build

latchbits.ps:	latchbits.all latchbits.build
		all <latchbits.build

stretchmux.ps:	stretchmux.all
		all <stretchmux.build

chanPPx8.ps:	chanPPx8.out
		chanPPx8.out

chanPPx8.out:	chanPPx8.mod
		mm2m chanPPx8; make; rm makefile

chanLHS8.ps:	chanLHS8.out
		chanLHS8.out

chanLHS8.out:	chanLHS8.mod
		mm2m chanLHS8; make; rm makefile
