</$objtype/mkfile
txdir = $home/t3x

default:
	#
	#	First read the file INSTALL.DOC, then type 'mk all'
	#

all:
	@{cd build; mk}
	@{cd compiler; mk}
	@{cd native; mk}

clean:
	@{cd build; mk clean}
	@{cd compiler; mk clean}
	@{cd native; mk clean}

nuke:	clean
	@{cd build; mk nuke}
	@{cd compiler; mk nuke}
	@{cd native; mk nuke}

install:
	@{ unmount $txdir/bin >[2] /dev/null; exit 0 }
	@{ unmount $txdir/lib >[2] /dev/null; exit 0 }
	if (! test -d $txdir) mkdir $txdir
	if (! test -d $txdir/bin) mkdir $txdir/bin
	if (! test -d $txdir/lib) mkdir $txdir/lib
	if (! test -d $txdir/inc) mkdir $txdir/inc
	cp compiler/tx.rc $txdir/bin/tx
	cp compiler/ux $txdir/bin
	cp compiler/txinfo $txdir/bin
	cp native/txtrn $txdir/bin
	cp native/txopt $txdir/bin
	cp native/txpp $txdir/bin
	cp native/txcgc $txdir/bin
	cp native/txcgc_wrap $txdir/lib
	cp native/txcg386 $txdir/bin
	cp native/txcg86a $txdir/bin
	cp native/txcg86t $txdir/bin
	cp inc/basic.inc $txdir/inc
	cp inc/ios.inc $txdir/inc
	cp inc/mem.inc $txdir/inc
	bind -a $txdir/bin /bin
	bind -a $txdir/lib /lib
