all: fortran f4 syslib

fortran: over
	echo "making fortran, it takes a while..."
	cd compiler; make fortran
	rm over

over: over.c
	cc -o over over.c

f4 lib:	f.m11 library

fis: fis.h library

fpu: fpu.h library

gt40: gt40.h

library:
	cd math1; make lib1
	cd math2; make lib2
	cd math3; make lib3
	cd math4; make lib4
	cd newots; make newlib
	libr f4 -a newots/newlib math1/lib1 math2/lib2 math3/lib3 math4/lib4
	rm newots/newlib math1/lib1 math2/lib2 math3/lib3 math4/lib4

fis.h:
	get -p s.f.fis > fid.h
	cp fis.h f.m11

fpu.h:
	get -p s.f.fpu >fpu.h
	cp fpu.h f.m11

gt40.h:
	get -p s.f.gt40 >f.m11

install: f4 syslib fortran
	cp fortran /bin/fortran
	chmod 755 /bin/fortran
	cp syslib /lib/syslib
	chmod 444 /lib/syslib
	cp fotrovr /lib/fortovr
	chmod 555 /lib/fortovr
	cp f4 /lib/f4
	chmod 444 /lib/f4

userlib:
	cd userlib ; make userlib
