# Meta-Make-file for installing Kant V2        JS January 1992
#
# On an Apollo workstation you only need to type "make".
# If you have a different Unix system change MAKEFILE.inc
# appropriately!
#
# Note: The Kant V2 library $(INLIB) is used on Apollos as a shared
# library. It is not yet loaded when booting the nodes. To do that
# you have to add its name (in appropriate syntax!) in the files
# /sys/node_data/etc/sys.conf
#
 
V2		= .
 
include $(V2)/Makefile.inc
 
all:
	cd $(MEM); make
	cd $(PLAT); make
	cd $(ANF); make
	cd $(THUE); make 
	cd $(RELITB); make
	cd $(RELNEQ); make
	cd $(FORTRAN); make
	ranlib $(ARLIB)
	make $(INLIB)   
	ranlib $(ARLIB)
	make progs
	
 
$(INLIB): $(MEMOBJS) $(PLATOBJ) $(ANFOBJ) $(FORTOBJ) $(THUEOBJ) $(RELNEQOBJ) $(RELITBOBJ)
	  $(BIND) -o $@ $(BINDFLAGS) $(MEMOBJS) $(PLATOBJ) $(ANFOBJ) $(FORTOBJ) $(THUEOBJ)  $(RELNEQOBJ) $(RELITBOBJ)
 	
 
progs:
	cd $(V2MAINS); make all
 

clean:
	cd $(MEM); make clean
	cd $(PLAT); make clean
	cd $(ANF); make clean
	cd $(THUE); make clean
	cd $(RELNEQ); make clean
	cd $(RELITB); make clean
	cd $(FORTRAN); make clean
	cd $(V2MAINS); make clean
	rm $(ARLIB)
