=================================================================== RCS file: /home/cvs/OpenXM/src/Makefile,v retrieving revision 1.112 retrieving revision 1.119 diff -u -p -r1.112 -r1.119 --- OpenXM/src/Makefile 2002/04/05 01:43:48 1.112 +++ OpenXM/src/Makefile 2003/06/26 08:59:12 1.119 @@ -1,4 +1,4 @@ -## $OpenXM: OpenXM/src/Makefile,v 1.111 2002/04/05 01:28:46 takayama Exp $ +## $OpenXM: OpenXM/src/Makefile,v 1.118 2003/06/02 20:26:58 ohara Exp $ OpenXM_HOME=../../OpenXM OPENXM_CONTRIB=../../OpenXM_contrib @@ -9,7 +9,7 @@ RCDIR=../rc COPYRIGHTDIR=../Copyright all: configure all-gc all-gmp all-asir all-gnuplot all-k097 all-kan96xx \ - all-kxx all-pari all-phc all-openmath all-oxmath all-tigers + all-kxx all-pari all-phc all-openmath all-oxmath all-tigers all-fep all-gc: @if test ! -f gc/.gc_make_done ; \ @@ -38,7 +38,7 @@ all-asir: configure-asir all-gnuplot: configure-gnuplot -(cd gnuplot ; make all) -all-k097: configure-k097 all-kan96xx +all-k097: configure-k097 all-kan96xx all-kxx (cd k097 ; make all) all-kan96xx: configure-kan96xx install-gc install-gmp @@ -56,7 +56,7 @@ all-openmath: fi all-oxmath: configure-oxmath install-oxtoolkit - -@if test -x /usr/local/bin/math ; then \ + -@if test -d /usr/local/mathematica ; then \ (cd ox_math ; make) ; \ else \ echo -n "Warning: Mathematica is not found. " ; \ @@ -72,7 +72,10 @@ all-phc: all-tigers: (cd tigers ; make all) +all-fep: + -(cd ${OPENXM_CONTRIB2}/fep ; make all) + all-misc : (cd ../rc ; make repl) (cd ../doc ; make all-install) @@ -84,18 +87,31 @@ all-rc: install: install-asir install-gnuplot install-k097 install-kan96xx \ install-kxx install-openmath install-oxmath install-pari \ install-phc install-tigers install-asir-doc install-asir-contrib \ - install-misc + install-misc install-fep install-gc : all-gc -@if test ! -f gc/.gc_installed ; \ then \ - mkdir ../lib ; \ + if test ! -d ../lib ; then mkdir ../lib ; fi ; \ cp gc/gc.a ../lib/libgc.a ; \ + if test ! -d ../include/gc ; then mkdir -p ../include/gc ; fi ; \ + cp gc/include/gc.h gc/include/gc_cpp.h ../include/gc ; \ fi @touch gc/.gc_installed +install-asir-gc : configure-asir + @if test ! -f gc/.asir-gc_installed ; \ + then \ + if test ! -d ../lib ; then mkdir ../lib ; fi ; \ + (cd asir2000 ; make install-libasir-gc) ; \ + rm -f ../lib/libgc.a ; \ + ln -s ../lib/libasir-gc.a ../lib/libgc.a ; \ + echo "libasir-gc.a (modifed for asir) is installed as libgc.a instead of libgc.a" ; \ + touch gc/.asir-gc_installed ; \ + fi + install-gmp : all-gmp -@if test ! -f gmp/.gmp_installed ; \ then \ @@ -138,7 +154,7 @@ install-oxc: all-oxc (cd oxc; make install) install-oxmath: all-oxmath configure-util - -@if test -x /usr/local/bin/math ; then \ + -@if test -d /usr/local/mathematica ; then \ (cd ox_math ; make install) ; \ else \ echo -n "Warning: Mathematica is not found. " ; \ @@ -165,6 +181,9 @@ install-asir-doc: install-asir install-misc: (cd ../rc ; make install.man) +install-fep: all-fep + -(cd ${OPENXM_CONTRIB2}/fep ; make PREFIX=../../OpenXM install) + install-rc: all-rc (cd ../rc ; make install) @@ -186,6 +205,7 @@ clean: (cd tigers ; make clean) (cd asir-doc ; make clean) (cd asir-contrib ; make clean) + -(cd ${OPENXM_CONTRIB2}/fep ; make clean) distclean: clean (cd uuencoded ; make distclean) @@ -240,7 +260,7 @@ configure-gmp: configure-links (cd gmp ; ./configure --prefix=`pwd`/../../OpenXM; touch .gmp_configured) ; \ fi -configure-asir: +configure-asir: configure-directory configure-util @if test -d $(OPENXM_CONTRIB2) ; then \ (cd asir2000 ; make configure) ; \ else \ @@ -286,7 +306,7 @@ configure-oxtoolkit: configure-include configure-oxc: configure-include (cd oxc; ./make-configure) -configure-oxmath: configure-include +configure-oxmath: configure-include configure-directory (cd ox_math; ./make-configure) configure-pari: