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

Annotation of OpenXM/src/Makefile, Revision 1.92

1.92    ! takayama    1: ## $OpenXM: OpenXM/src/Makefile,v 1.91 2000/03/10 02:35:53 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.90      ohara      30: all-oxtoolkit: configure-oxtoolkit install-gmp install-kxx
1.87      ohara      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:
1.90      ohara     139: install-oxmath: all-oxmath install-kxx
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.89      ohara     197:        -(cd ox_toolkit ; make distclean)
                    198:        -(cd ox_math ; make distclean)
1.56      maekawa   199:        rm -rf $(BINDIR)/d0 $(BINDIR)/k0 $(BINDIR)/ox $(BINDIR)/ox_sm1 \
1.53      maekawa   200:               $(BINDIR)/oxlog $(BINDIR)/oxweave $(BINDIR)/sm1 \
                    201:               $(LIBDIR)/k097 $(LIBDIR)/sm1 SSkan bin gc gmp
1.11      takayama  202:
1.65      takayama  203: configure: configure-links configure-bin configure-asir \
1.62      takayama  204:           configure-gnuplot \
1.50      maekawa   205:           configure-k097 configure-kan96xx configure-kxx configure-oxmath \
1.85      takayama  206:           configure-pari configure-gmp
                    207:
                    208: configure-gmp: configure-links
                    209:        @if test -f gmp/.gmp_configured ; \
                    210:        then \
                    211:          echo "MESSAGE(kan96xx/Makefile): gmp is already configured. (.gmp_configured) " ;  \
                    212:        else \
                    213:          (cd gmp ; ./configure ; touch .gmp_configured) ; \
                    214:        fi
1.37      maekawa   215:
1.52      maekawa   216: configure-asir:
1.81      takayama  217:        @if test -d $(OPENXM_CONTRIB2) ; then \
                    218:                (cd asir2000 ; make configure) ; \
                    219:        else \
                    220:                echo -n "Warning: Asir source is not found. " ; \
                    221:                echo "asir will not be compiled." ; \
                    222:        fi
1.41      maekawa   223:
1.45      maekawa   224: configure-bin:
1.56      maekawa   225:        (cd $(BINDIR) ; make configure)
1.45      maekawa   226:
1.41      maekawa   227: configure-gnuplot:
                    228:        (cd gnuplot ; make configure)
1.48      maekawa   229:
1.75      takayama  230: configure-k097:
1.37      maekawa   231:
1.45      maekawa   232: configure-kan96xx:
                    233:        (cd kan96xx ; make configure)
                    234:
1.75      takayama  235: configure-kxx:
1.77      takayama  236:        ( cd kxx ; ./make-configure)
1.45      maekawa   237:
1.37      maekawa   238: configure-links:
1.61      noro      239:        rm -f -r $(LIBDIR)/k097 $(LIBDIR)/sm1 SSkan bin gc gmp
1.54      maekawa   240:        (cd $(LIBDIR) ; ln -f -s ../src/k097 k097)
                    241:        (cd $(LIBDIR) ; ln -f -s ../src/kan96xx/Doc sm1)
                    242:        ln -f -s kan96xx SSkan
1.53      maekawa   243:        ln -f -s $(BINDIR) bin
1.55      maekawa   244:        ln -f -s $(OPENXM_CONTRIB)/gc gc
                    245:        ln -f -s $(OPENXM_CONTRIB)/gmp gmp
1.87      ohara     246:
                    247: configure-oxtoolkit:
                    248:        (cd ox_toolkit; ./make-configure)
1.45      maekawa   249:
                    250: configure-oxmath:
1.80      ohara     251:        (cd ox_math; ./make-configure)
1.37      maekawa   252:
                    253: configure-pari:
1.36      maekawa   254:        (cd pari ; make configure)
1.78      takayama  255:
1.79      takayama  256: generate-source-distribution : generate-source-distribution-kxx \
                    257:                                generate-source-distribution-ox_toolkit
1.78      takayama  258:
                    259: generate-source-distribution-kxx :
                    260:        (cd kxx ; rm -f .configure_done Makefile ; autoconf)
1.79      takayama  261: generate-source-distribution-ox_toolkit :
                    262:        (cd ox_toolkit ; rm -f Makefile ; autoconf)
1.67      takayama  263:
1.68      takayama  264: clean-rc :
                    265:        (cd $(RCDIR) ; make clean )
1.69      takayama  266: all-Copyright :
                    267:        (cd $(COPYRIGHTDIR) ; make copy-copyright )
1.68      takayama  268:
1.82      takayama  269: post-install-correction: install
1.92    ! takayama  270: # I think that we no longer need post-install-correction-for-asir
        !           271: # post-install-corrections-other
        !           272:        (cd ../rc ; make install.man)
        !           273:
        !           274: post-install-correction-for-asir:
1.91      takayama  275:        (cd ../bin ; rm -f asir ox_asir )
                    276:        cp ../lib/asir/asir ../bin/asir
                    277:        (cd ../bin ; ln -s ./asir ox_asir)
                    278:        (cd ../lib/asir ; rm -f asir ; ln -s ../../bin/asir asir)
1.74      takayama  279:        (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.82      takayama  280:
                    281: binary-dist : all-Copyright clean-rc all all-misc post-install-correction
1.74      takayama  282:
1.62      takayama  283:

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