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

Annotation of OpenXM/src/Makefile, Revision 1.97

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

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