[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src

Annotation of OpenXM/src/Makefile, Revision 1.88

1.88    ! ohara       1: ## $OpenXM: OpenXM/src/Makefile,v 1.87 2000/03/08 05:31:33 ohara Exp $
1.33      maekawa     2:
1.55      maekawa     3: OPENXM_CONTRIB=../../OpenXM_contrib
1.81      takayama    4: OPENXM_CONTRIB2=../../OpenXM_contrib2
1.53      maekawa     5: LIBDIR=../lib
                      6: BINDIR=../bin
1.68      takayama    7: RCDIR=../rc
1.69      takayama    8: COPYRIGHTDIR=../Copyright
1.53      maekawa     9:
1.85      takayama   10: all: configure all-gc all-gmp all-asir all-gnuplot all-k097 all-kan96xx \
                     11:      all-kxx all-pari all-phc all-openmath all-oxmath all-tigers
                     12:
                     13: all-gc:
                     14:        @if test ! -f gc/.gc_make_done ; \
                     15:        then \
                     16:                (cd gc ; make all) ; \
                     17:        fi
                     18:        @touch gc/.gc_make_done
                     19:
                     20: all-gmp: configure-gmp
                     21:        if test -f /usr/lib/libgmp.a ; \
                     22:        then \
                     23:          echo "Using /usr/lib/libgmp.a" ; \
                     24:          /bin/rm -rf gmp/libgmp.a ; \
                     25:          ln -s /usr/lib/libgmp.a gmp/libgmp.a ; \
                     26:        else \
                     27:         (if test ! -f .gmp_make_done ; then cd gmp ; make ; touch .gmp_make_done ; fi) ; \
                     28:        fi
1.26      maekawa    29:
1.87      ohara      30: all-oxtoolkit: configure-oxtoolkit install-gmp
                     31:        (cd ox_toolkit; make)
                     32:
1.41      maekawa    33: all-asir: configure-asir
1.81      takayama   34:        @if test -d $(OPENXM_CONTRIB2) ; then \
                     35:                (cd asir2000 ; make all) ; \
                     36:        else \
                     37:                echo -n "Warning: Asir source is not found. " ; \
                     38:                echo "asir will not be compiled." ; \
                     39:        fi
1.21      maekawa    40:
1.41      maekawa    41: all-gnuplot: configure-gnuplot
1.52      maekawa    42:        (cd gnuplot ; make all)
1.32      maekawa    43:
1.75      takayama   44: all-k097: configure-k097 all-kan96xx
1.52      maekawa    45:        (cd k097 ; make all)
1.49      maekawa    46:
1.85      takayama   47: all-kan96xx: configure-kan96xx install-gc install-gmp
1.47      maekawa    48:        (cd kan96xx ; make all)
1.32      maekawa    49:
1.75      takayama   50: all-kxx: configure-kxx all-kan96xx
1.52      maekawa    51:        (cd kxx ; make all)
1.31      maekawa    52:
1.30      maekawa    53: all-openmath:
                     54:        @if ../misc/which.pl -s javac ; then \
1.60      tam        55:                (cd OpenMath ; make all) ; \
1.30      maekawa    56:        else \
                     57:                echo -n "Warning: javac (java compiler) is not found " ; \
                     58:                echo "in your search path. OpenMath will not be compiled." ; \
                     59:        fi
                     60:
1.88    ! ohara      61: all-oxmath: configure-oxmath install-oxtoolkit
1.86      ohara      62:        @if test -x /usr/local/bin/math ; then \
1.27      maekawa    63:                (cd ox_math ; make) ; \
                     64:        else \
                     65:                echo -n "Warning: Mathematica is not found. " ; \
                     66:                echo "ox_math will not be compiled." ; \
1.23      maekawa    67:        fi
                     68:
1.37      maekawa    69: all-pari: configure-pari
                     70:        (cd pari ; make all)
1.25      maekawa    71:
1.22      maekawa    72: all-phc:
1.51      maekawa    73:        (cd phc ; make all)
1.22      maekawa    74:
                     75: all-tigers:
1.51      maekawa    76:        (cd tigers ; make all)
1.1       maekawa    77:
1.67      takayama   78: all-misc :
                     79:        (cd ../rc ; make repl)
1.71      takayama   80:        (cd ../doc ; make all-install)
                     81:        (cd ../doc ; make all-spec)
1.67      takayama   82:
1.52      maekawa    83: install: install-asir install-gnuplot install-k097 install-kan96xx \
1.53      maekawa    84:         install-kxx install-openmath install-oxmath install-pari \
1.83      takayama   85:         install-phc install-tigers install-asir-doc install-asir-contrib \
                     86:         install-misc
1.52      maekawa    87:
1.85      takayama   88:
                     89: install-gc : all-gc
                     90:        -@if test ! -f gc/.gc_installed ; \
                     91:        then \
                     92:                mkdir ../lib ; \
                     93:                cp gc/gc.a ../lib/libgc.a ; \
                     94:        fi
                     95:        @touch gc/.gc_installed
                     96:
                     97:
                     98: install-gmp : all-gmp
                     99:        -@if test ! -f gmp/.gmp_installed ; \
                    100:        then \
                    101:                mkdir ../lib ; \
                    102:                cp gmp/libgmp.a ../lib ; \
                    103:                mkdir ../include ; \
                    104:                cp gmp/gmp.h ../include ; \
                    105:        fi
                    106:        @touch gmp/.gmp_installed
                    107:
1.52      maekawa   108: install-asir: all-asir
1.81      takayama  109:        @if test -d $(OPENXM_CONTRIB2) ; then \
                    110:                (cd asir2000 ; make install) ; \
                    111:        else \
                    112:                echo -n "Warning: Asir source is not found. " ; \
                    113:                echo "asir will not be installed." ; \
                    114:        fi
1.52      maekawa   115:
                    116: install-gnuplot: all-gnuplot
                    117:        (cd gnuplot ; make install)
                    118:
                    119: install-k097: all-k097
                    120:        (cd k097 ; make install)
1.37      maekawa   121:
1.47      maekawa   122: install-kan96xx: all-kan96xx
1.57      takayama  123:        (cd kan96xx ; make install)
1.47      maekawa   124:
1.52      maekawa   125: install-kxx: all-kxx
1.58      takayama  126:        (cd kxx ; make install)
1.52      maekawa   127:
1.53      maekawa   128: install-openmath: all-openmath
1.66      takayama  129:        @if ../misc/which.pl -s javac ; then \
                    130:                (cd OpenMath ; make install) ; \
                    131:        else \
                    132:                echo -n "Warning: javac (java compiler) is not found " ; \
                    133:                echo "in your search path. OpenMath will not be installed." ; \
                    134:        fi
                    135:
1.87      ohara     136: install-oxtoolkit: all-oxtoolkit
                    137:        (cd ox_toolkit; make install)
1.53      maekawa   138:
                    139: install-oxmath: all-oxmath
1.86      ohara     140:        @if test -x /usr/local/bin/math ; then \
1.70      takayama  141:                (cd ox_math ; make install) ; \
                    142:        else \
                    143:                echo -n "Warning: Mathematica is not found. " ; \
                    144:                echo "ox_math will not be installed." ; \
                    145:        fi
                    146:        -(cd ox_math/documents ; make install)
                    147:        -(cd ox_math/lib ; make install)
1.53      maekawa   148:
1.37      maekawa   149: install-pari: all-pari
1.45      maekawa   150:        (cd pari ; make install)
1.51      maekawa   151:
                    152: install-phc: all-phc
                    153:        (cd phc ; make install)
                    154:
                    155: install-tigers: all-tigers
                    156:        (cd tigers ; make install)
1.37      maekawa   157:
1.76      takayama  158: install-asir-contrib: install-asir install-kxx
1.59      takayama  159:        (cd asir-contrib ; make install)
1.63      noro      160:
                    161: install-asir-doc: install-asir
                    162:        (cd asir-doc ; make install)
1.83      takayama  163:
                    164: install-misc:
                    165:        (cd ../rc ; make install.man)
1.59      takayama  166:
1.29      maekawa   167: clean:
1.85      takayama  168:        -rm $(OPENXM_CONTRIB)/gmp/.gmp_*
                    169:        -rm $(OPENXM_CONTRIB)/gc/.gc_*
                    170:        -(cd $(OPENXM_CONTRIB)/gmp ; make clean)
                    171:        (cd $(OPENXM_CONTRIB)/gc ; make clean ; /bin/rm -f *.a)
1.52      maekawa   172:        (cd asir2000 ; make clean)
                    173:        (cd gnuplot ; make clean)
                    174:        (cd k097 ; make clean)
1.36      maekawa   175:        (cd kan96xx ; make clean)
1.77      takayama  176:        -(cd kxx ; make clean)
1.60      tam       177:        (cd OpenMath ; make clean)
1.77      takayama  178:        -(cd ox_math ; make clean)
1.38      maekawa   179:        (cd pari ; make clean)
1.36      maekawa   180:        (cd phc ; make clean)
1.52      maekawa   181:        (cd tigers ; make clean)
1.64      noro      182:        (cd asir-doc ; make clean)
1.59      takayama  183:        (cd asir-contrib ; make clean)
1.11      takayama  184:
1.39      maekawa   185: distclean: clean
1.56      maekawa   186:        (cd $(BINDIR) ; make distclean)
1.85      takayama  187:        -(cd $(OPENXM_CONTRIB)/gmp ; make distclean)
                    188:        (cd $(OPENXM_CONTRIB)/gc ; make clean ; /bin/rm -f *.a)
1.46      maekawa   189:        (cd asir2000 ; make distclean)
1.40      maekawa   190:        (cd gnuplot ; make distclean)
1.36      maekawa   191:        (cd kan96xx ; make distclean)
1.77      takayama  192:        -(cd kxx ; make distclean)
1.60      tam       193:        (cd OpenMath ; make distclean)
1.38      maekawa   194:        (cd pari ; make distclean)
1.44      maekawa   195:        (cd phc ; make distclean)
1.40      maekawa   196:        (cd tigers ; make distclean)
1.56      maekawa   197:        rm -rf $(BINDIR)/d0 $(BINDIR)/k0 $(BINDIR)/ox $(BINDIR)/ox_sm1 \
1.53      maekawa   198:               $(BINDIR)/oxlog $(BINDIR)/oxweave $(BINDIR)/sm1 \
                    199:               $(LIBDIR)/k097 $(LIBDIR)/sm1 SSkan bin gc gmp
1.11      takayama  200:
1.65      takayama  201: configure: configure-links configure-bin configure-asir \
1.62      takayama  202:           configure-gnuplot \
1.50      maekawa   203:           configure-k097 configure-kan96xx configure-kxx configure-oxmath \
1.85      takayama  204:           configure-pari configure-gmp
                    205:
                    206: configure-gmp: configure-links
                    207:        @if test -f gmp/.gmp_configured ; \
                    208:        then \
                    209:          echo "MESSAGE(kan96xx/Makefile): gmp is already configured. (.gmp_configured) " ;  \
                    210:        else \
                    211:          (cd gmp ; ./configure ; touch .gmp_configured) ; \
                    212:        fi
1.37      maekawa   213:
1.52      maekawa   214: configure-asir:
1.81      takayama  215:        @if test -d $(OPENXM_CONTRIB2) ; then \
                    216:                (cd asir2000 ; make configure) ; \
                    217:        else \
                    218:                echo -n "Warning: Asir source is not found. " ; \
                    219:                echo "asir will not be compiled." ; \
                    220:        fi
1.41      maekawa   221:
1.45      maekawa   222: configure-bin:
1.56      maekawa   223:        (cd $(BINDIR) ; make configure)
1.45      maekawa   224:
1.41      maekawa   225: configure-gnuplot:
                    226:        (cd gnuplot ; make configure)
1.48      maekawa   227:
1.75      takayama  228: configure-k097:
1.37      maekawa   229:
1.45      maekawa   230: configure-kan96xx:
                    231:        (cd kan96xx ; make configure)
                    232:
1.75      takayama  233: configure-kxx:
1.77      takayama  234:        ( cd kxx ; ./make-configure)
1.45      maekawa   235:
1.37      maekawa   236: configure-links:
1.61      noro      237:        rm -f -r $(LIBDIR)/k097 $(LIBDIR)/sm1 SSkan bin gc gmp
1.54      maekawa   238:        (cd $(LIBDIR) ; ln -f -s ../src/k097 k097)
                    239:        (cd $(LIBDIR) ; ln -f -s ../src/kan96xx/Doc sm1)
                    240:        ln -f -s kan96xx SSkan
1.53      maekawa   241:        ln -f -s $(BINDIR) bin
1.55      maekawa   242:        ln -f -s $(OPENXM_CONTRIB)/gc gc
                    243:        ln -f -s $(OPENXM_CONTRIB)/gmp gmp
1.87      ohara     244:
                    245: configure-oxtoolkit:
                    246:        (cd ox_toolkit; ./make-configure)
1.45      maekawa   247:
                    248: configure-oxmath:
1.80      ohara     249:        (cd ox_math; ./make-configure)
1.37      maekawa   250:
                    251: configure-pari:
1.36      maekawa   252:        (cd pari ; make configure)
1.78      takayama  253:
1.79      takayama  254: generate-source-distribution : generate-source-distribution-kxx \
                    255:                                generate-source-distribution-ox_toolkit
1.78      takayama  256:
                    257: generate-source-distribution-kxx :
                    258:        (cd kxx ; rm -f .configure_done Makefile ; autoconf)
1.79      takayama  259: generate-source-distribution-ox_toolkit :
                    260:        (cd ox_toolkit ; rm -f Makefile ; autoconf)
1.67      takayama  261:
1.68      takayama  262: clean-rc :
                    263:        (cd $(RCDIR) ; make clean )
1.69      takayama  264: all-Copyright :
                    265:        (cd $(COPYRIGHTDIR) ; make copy-copyright )
1.68      takayama  266:
1.82      takayama  267: post-install-correction: install
1.73      takayama  268:        (cd ../bin ; rm -f asir ; ln -s ./ox_asir asir)
1.74      takayama  269:        (cd ../lib/asir ; rm -f ox_asir ox_launch ox_plot help ; ln -s ./asir ox_asir ; ln -s ./asir ox_launch ; ln -s ./asir ox_plot ; ln -s ./help-eg help)
1.84      takayama  270:        (cd ../rc ; make install.man)
1.82      takayama  271:
                    272: binary-dist : all-Copyright clean-rc all all-misc post-install-correction
1.74      takayama  273:
1.62      takayama  274:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>