</$objtype/mkfile

all:V:	tc ../compiler/txx ../native/libtx.$O txcgc.tcode

tc:	tc.rc
	cp tc.rc tc
	chmod +x tc

../compiler/txx:
	@{cd ../compiler; mk txx}

../native/libtx.$O:
	@{cd ../native; mk libtx.$O}

txcgc.tcode:	../native/cgc.def
	../compiler/txx txtrn.tcode <../compiler/txpp.t >txpp.tcode
	../compiler/txx txpp.tcode <../native/txcgg.t >txcgg.t
	../compiler/txx txtrn.tcode <txcgg.t >txcgg.tcode
	cp ../native/txcg_hll_frame txcg_frame
	../compiler/txx txcgg.tcode <../native/cgc.def >txcgc.pp
	rm -f txcg_frame
	../compiler/txx txpp.tcode <txcgc.pp >txcgc.t
	../compiler/txx txtrn.tcode <txcgc.t >txcgc.tcode
	rm -f txpp.tcode txcgg.t txcgg.tcode txcgc.pp txcgc.t

clean:
nuke:
	rm -f tc txcgc.tcode txcgg.tcode txcg_frame txcgc.pp \
	txcgc.t txcgg.t txpp.tcode

