# Makefile for T3.1.

.SUFFIXES: .so .t

.t.so:
	echo "(compile-file \"$*.t\") \
		(exit (*value t-implementation-env '*break-level*))" | xt

CFLAGS	= -O
TIME	=

# Only good for GC hack.
TOS	= $(OSYS)/gc.so $(OSYS)/gc_top.so $(OSYS)/scanner.so \
		$(OSYS)/pool.so $(OSYS)/gc_weak.so

all:	t localfs.t

t:	t.o $(TMACHINE)_start_t.o $(TMACHINE)assist.o expand.o float.o 
	sh linkt t.o t

t.o:	new
	echo "((*value t-implementation-env 'load-and-suspend-system) \
		'(tsystem t) t) \
		(exit (*value t-implementation-env '*break-level*))" \
		| $(TIME) new -h 8000000

new:	new.o $(TMACHINE)_start_t.o $(TMACHINE)assist.o expand.o float.o 
	sh linkt new.o new

new.o:	$(TOS)
	echo "(load '(build $(TMACHINE)build) orbit-env) \
		(link-t '(tsystem new)) \
		(exit (*value t-implementation-env '*break-level*))" \
		| $(TIME) xt -h 8000000

localfs.t:
	echo "(`hostname`)" > $@
