# This is the destination directory for `make install'
TXDIR=C:\V\T3XR5

default:
	@command /c echo.
	@command /c echo First read the file INSTALL.DOC, then type 'make all'.
	@command /c echo.

all:
	cd build
	make -f Makefile.TCC
	cd ..
	cd compiler
	make -f Makefile.TCC
	cd ..
	cd native
	make -f Makefile.TCC
	cd ..
	cd s86kit
	make -f Makefile.TCC
	cd ..
	cd etxx\txx
	make -f Makefile.TCC
	cd ..\..

clean:
	cd build
	make -f Makefile.TCC clean
	cd ..
	cd compiler
	make -f Makefile.TCC clean
	cd ..
	cd native
	make -f Makefile.TCC clean
	cd ..
	cd s86kit
	make -f Makefile.TCC clean
	cd ..
	cd etxx\txx
	make -f Makefile.TCC clean
	cd ..\..

clobber:
	cd build
	make -f Makefile.TCC clobber
	cd ..
	cd compiler
	make -f Makefile.TCC clobber
	cd ..
	cd native
	make -f Makefile.TCC clobber
	cd ..
	cd s86kit
	make -f Makefile.TCC clobber
	cd ..
	cd etxx\txx
	make -f Makefile.TCC clobber
	cd ..\..

install:
	-mkdir $(TXDIR)
	copy compiler\tx.dos $(TXDIR)
	copy compiler\ux.exe $(TXDIR)
	copy compiler\txinfo.exe $(TXDIR)
	copy native\txtrn.exe $(TXDIR)
	copy native\txopt.exe $(TXDIR)
	copy native\txpp.exe $(TXDIR)
	copy native\txcg86t.exe $(TXDIR)
	copy native\txcg86a.exe $(TXDIR)
	copy native\txcg386.exe $(TXDIR)
	copy native\txcg386e.exe $(TXDIR)
	copy native\txcgc.exe $(TXDIR)
	copy native\txcgc_wrap $(TXDIR)
	copy inc\basic.inc $(TXDIR)
	copy inc\ios.inc $(TXDIR)
	copy inc\mem.inc $(TXDIR)
	cd s86kit
	make -f Makefile.TCC install
	cd ..
	cd etxx\txx
	make -f Makefile.TCC install
	cd ..\..
	-del tx.bat
	cd $(TXDIR)
	ren tx.dos tx.bat
