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

Annotation of OpenXM/src/Makefile, Revision 1.95

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

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