=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/Attic/Makefile,v retrieving revision 1.7 retrieving revision 1.10 diff -u -p -r1.7 -r1.10 --- OpenXM/src/kan96xx/Attic/Makefile 1999/11/07 13:24:19 1.7 +++ OpenXM/src/kan96xx/Attic/Makefile 2000/01/10 19:11:59 1.10 @@ -1,29 +1,45 @@ -## $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.6 1999/11/07 06:45:25 takayama Exp $ +## $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.9 1999/11/27 13:24:40 takayama Exp $ + ## Type in make configure and make all to build all -all : - (cd gc; make) - (cd gmp; make) +OpenXM_contrib=../../../OpenXM_contrib +OPENXM_CONTRIB=../../../OpenXM_contrib +GC=$(OPENXM_CONTRIB)/gc +GMP=$(OPENXM_CONTRIB)/gmp + +all : all-gc all-gmp (cd plugin; make all) (cd Kan; make all) -all2 : - (cd gc; make) - (cd gmp; make) +all2 : all-gc all-gmp (cd Kan; make all) +all-gc: + (cd $(GC) ; make all) +all-gmp: + if test -f /usr/lib/libgmp.a ; \ + then \ + echo "Using /usr/lib/libgmp.a" ; \ + /bin/rm -rf $(GMP)/libgmp.a ; \ + ln -s /usr/lib/libgmp.a $(GMP)/libgmp.a ; \ + else \ + (cd $(GMP) ; make) ; \ + fi + + + ### When you make sm1 without the garbage collector, type in make sm1.nogc sm1.nogc : (cd Kan; make sm1.nogc) configure : configure_symbolic_links - (cd gmp; ./configure ) + (cd $(GMP) ; ./configure ) configure_symbolic_links : /bin/rm -f gc gmp lib Doc/var.sm1 - ln -f -s ./gc-4.14 gc -# ln -f -s ./gmp-2.0.2 gmp - ln -f -s ./gmp-2.0.2-ssh-2 gmp + ln -f -s $(OpenXM_contrib)/gc gc + ln -f -s $(OpenXM_contrib)/gmp gmp +# ln -f -s gmp-2.0.2-ssh-2 gmp ln -f -s ./Doc lib (cd Doc; ln -f -s ../Kan/var.sm1 var.sm1) @@ -70,16 +86,30 @@ install2 : ############## clean : - (cd gmp; make distclean) - (cd gc; make clean) + if test -f $(GMP)/Makefile ; \ + then \ + (cd $(GMP) ; make clean) ; \ + fi + if test -f $(GC)/Makefile ; \ + then \ + (cd $(GC); make clean) ; \ + fi (cd Kan; make clean) (cd plugin; make clean) /bin/rm -f sm1 ### clean also *.a files. -cleana : - (cd gmp; make distclean; /bin/rm -f *.a) - (cd gc; make clean; /bin/rm -f *.a) +cleana: distclean + +distclean : + if test -f $(GMP)/Makefile ; \ + then \ + (cd $(GMP) ; make distclean) ; \ + fi + if test -f $(GC)/Makefile ; \ + then \ + (cd $(GC); make clean; /bin/rm -f *.a) ; \ + fi (cd Kan; make cleana) (cd plugin; make clean; /bin/rm -f *.a)