All:	../compiler/txx.exe ../native/libtx.lib txcg86t.tco tc.bat

../compiler/txx.exe:
	cd ..\compiler
	make -f Makefile.TCC txx.exe
	cd ..\build

../native/libtx.lib:
	cd ..\native
	make -f Makefile.TCC libtx.lib
	cd ..\build

txcg86t.tco:	../native/cg86t.def
	..\compiler\txx txtrn.tco <..\compiler\txpp.t >txpp.tco
	..\compiler\txx txpp.tco <..\native\txcgg.t >txcgg.t
	..\compiler\txx txtrn.tco <txcgg.t >txcgg.tco
	copy ..\native\txcg_asm_frame txcg_frame
	..\compiler\txx txcgg.tco <..\native\cg86t.def >txcg86t.pp
	del txcg_frame
	..\compiler\txx txpp.tco <txcg86t.pp >txcg86t.t
	..\compiler\txx txtrn.tco <txcg86t.t >txcg86t.tco
	-del txpp.tco
	-del txcgg.t
	-del txcgg.tco
	-del txcg86t.pp
	-del txcg86t.t

tc.bat:	tc-tasm.bat
	copy tc-tasm.bat tc.bat

clean:

clobber:	clean
	-del txcg86t.tco
	-del txpp.tco
	-del txcgg.t
	-del txcgg.tco
	-del txcg86t.pp
	-del txcg86t.t
	-del *.ERR
	-del tc.bat

