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

Annotation of OpenXM/src/Makefile, Revision 1.85

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

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