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

Annotation of OpenXM/src/Makefile, Revision 1.101

1.101   ! takayama    1: ## $OpenXM: OpenXM/src/Makefile,v 1.100 2000/12/20 11:12:52 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.98      ohara      27: all-oxc: configure-oxc install-oxtoolkit
                     28:        (cd oxc; make)
                     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.100     takayama   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.88      ohara      58: all-oxmath: configure-oxmath install-oxtoolkit
1.100     takayama   59:        -@if test -x /usr/local/bin/math ; then \
                     60:                (cd ox_math ; make) ; \
1.27      maekawa    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 \
1.96      takayama   98:                (cd gmp; make install) ; \
1.85      takayama   99:        fi
                    100:        @touch gmp/.gmp_installed
                    101:
1.52      maekawa   102: install-asir: all-asir
1.81      takayama  103:        @if test -d $(OPENXM_CONTRIB2) ; then \
                    104:                (cd asir2000 ; make install) ; \
                    105:        else \
                    106:                echo -n "Warning: Asir source is not found. " ; \
                    107:                echo "asir will not be installed." ; \
                    108:        fi
1.52      maekawa   109:
                    110: install-gnuplot: all-gnuplot
1.100     takayama  111:        -(cd gnuplot ; make install)
1.52      maekawa   112:
                    113: install-k097: all-k097
                    114:        (cd k097 ; make install)
1.37      maekawa   115:
1.47      maekawa   116: install-kan96xx: all-kan96xx
1.57      takayama  117:        (cd kan96xx ; make install)
1.47      maekawa   118:
1.52      maekawa   119: install-kxx: all-kxx
1.58      takayama  120:        (cd kxx ; make install)
1.52      maekawa   121:
1.53      maekawa   122: install-openmath: all-openmath
1.66      takayama  123:        @if ../misc/which.pl -s javac ; then \
                    124:                (cd OpenMath ; make install) ; \
                    125:        else \
                    126:                echo -n "Warning: javac (java compiler) is not found " ; \
                    127:                echo "in your search path. OpenMath will not be installed." ; \
                    128:        fi
                    129:
1.87      ohara     130: install-oxtoolkit: all-oxtoolkit
                    131:        (cd ox_toolkit; make install)
1.53      maekawa   132:
1.98      ohara     133: install-oxc: all-oxc
                    134:        (cd oxc; make install)
                    135:
1.90      ohara     136: install-oxmath: all-oxmath install-kxx
1.100     takayama  137:        -@if test -x /usr/local/bin/math ; then \
                    138:                (cd ox_math ; make install) ; \
1.70      takayama  139:        else \
                    140:                echo -n "Warning: Mathematica is not found. " ; \
                    141:                echo "ox_math will not be installed." ; \
                    142:        fi
                    143:        -(cd ox_math/documents ; make install)
                    144:        -(cd ox_math/lib ; make install)
1.53      maekawa   145:
1.37      maekawa   146: install-pari: all-pari
1.45      maekawa   147:        (cd pari ; make install)
1.51      maekawa   148:
                    149: install-phc: all-phc
                    150:        (cd phc ; make install)
                    151:
                    152: install-tigers: all-tigers
                    153:        (cd tigers ; make install)
1.37      maekawa   154:
1.76      takayama  155: install-asir-contrib: install-asir install-kxx
1.59      takayama  156:        (cd asir-contrib ; make install)
1.63      noro      157:
                    158: install-asir-doc: install-asir
                    159:        (cd asir-doc ; make install)
1.83      takayama  160:
                    161: install-misc:
                    162:        (cd ../rc ; make install.man)
1.59      takayama  163:
1.29      maekawa   164: clean:
1.101   ! takayama  165:        -rm ./.configure-links-done
1.85      takayama  166:        -rm $(OPENXM_CONTRIB)/gmp/.gmp_*
                    167:        -rm $(OPENXM_CONTRIB)/gc/.gc_*
                    168:        -(cd $(OPENXM_CONTRIB)/gmp ; make clean)
                    169:        (cd $(OPENXM_CONTRIB)/gc ; make clean ; /bin/rm -f *.a)
1.52      maekawa   170:        (cd asir2000 ; make clean)
                    171:        (cd gnuplot ; make clean)
                    172:        (cd k097 ; make clean)
1.36      maekawa   173:        (cd kan96xx ; make clean)
1.77      takayama  174:        -(cd kxx ; make clean)
1.60      tam       175:        (cd OpenMath ; make clean)
1.77      takayama  176:        -(cd ox_math ; make clean)
1.38      maekawa   177:        (cd pari ; make clean)
1.36      maekawa   178:        (cd phc ; make clean)
1.52      maekawa   179:        (cd tigers ; make clean)
1.64      noro      180:        (cd asir-doc ; make clean)
1.59      takayama  181:        (cd asir-contrib ; make clean)
1.11      takayama  182:
1.39      maekawa   183: distclean: clean
1.56      maekawa   184:        (cd $(BINDIR) ; make distclean)
1.85      takayama  185:        -(cd $(OPENXM_CONTRIB)/gmp ; make distclean)
                    186:        (cd $(OPENXM_CONTRIB)/gc ; make clean ; /bin/rm -f *.a)
1.46      maekawa   187:        (cd asir2000 ; make distclean)
1.40      maekawa   188:        (cd gnuplot ; make distclean)
1.36      maekawa   189:        (cd kan96xx ; make distclean)
1.77      takayama  190:        -(cd kxx ; make distclean)
1.60      tam       191:        (cd OpenMath ; make distclean)
1.38      maekawa   192:        (cd pari ; make distclean)
1.44      maekawa   193:        (cd phc ; make distclean)
1.40      maekawa   194:        (cd tigers ; make distclean)
1.89      ohara     195:        -(cd ox_toolkit ; make distclean)
                    196:        -(cd ox_math ; 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.97      takayama  201: configure: configure-links configure-include 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
1.97      takayama  205:
1.101   ! takayama  206: configure-include: configure-include-make-dir ../include/ox/cmotag.h ../include/ox/oxMessageTag.h ../include/ox/smCommand.h
        !           207:
        !           208: configure-include-make-dir:
1.97      takayama  209:        @if test ! -d ../include ; \
                    210:        then \
                    211:        mkdir  ../include ; \
                    212:        fi
                    213:        @if test ! -d ../include/ox ; \
                    214:        then \
                    215:        mkdir  ../include/ox ; \
                    216:        fi
1.101   ! takayama  217: ../include/ox/cmotag.h : ../doc/OpenXM-web/cmotag.h
        !           218:        cp ../doc/OpenXM-web/cmotag.h ../include/ox
        !           219: ../include/ox/oxMessageTag.h : ../doc/OpenXM-web/oxMessageTag.h
        !           220:        cp ../doc/OpenXM-web/oxMessageTag.h ../include/ox
        !           221: ../include/ox/smCommand.h : ../doc/OpenXM-web/smCommand.h
        !           222:        cp ../doc/OpenXM-web/smCommand.h ../include/ox
1.85      takayama  223:
                    224: configure-gmp: configure-links
                    225:        @if test -f gmp/.gmp_configured ; \
                    226:        then \
1.96      takayama  227:          echo "MESSAGE: gmp is already configured. (.gmp_configured) " ;  \
1.85      takayama  228:        else \
1.96      takayama  229:          (cd gmp ; ./configure --prefix=`pwd`/../../OpenXM; touch .gmp_configured) ; \
1.85      takayama  230:        fi
1.37      maekawa   231:
1.52      maekawa   232: configure-asir:
1.81      takayama  233:        @if test -d $(OPENXM_CONTRIB2) ; then \
                    234:                (cd asir2000 ; make configure) ; \
                    235:        else \
                    236:                echo -n "Warning: Asir source is not found. " ; \
                    237:                echo "asir will not be compiled." ; \
                    238:        fi
1.41      maekawa   239:
1.45      maekawa   240: configure-bin:
1.56      maekawa   241:        (cd $(BINDIR) ; make configure)
1.45      maekawa   242:
1.41      maekawa   243: configure-gnuplot:
1.100     takayama  244:        -(cd gnuplot ; make configure)
1.48      maekawa   245:
1.101   ! takayama  246: configure-k097: configure-links
1.37      maekawa   247:
1.101   ! takayama  248: configure-kan96xx: configure-links
1.45      maekawa   249:        (cd kan96xx ; make configure)
                    250:
1.75      takayama  251: configure-kxx:
1.77      takayama  252:        ( cd kxx ; ./make-configure)
1.45      maekawa   253:
1.37      maekawa   254: configure-links:
1.101   ! takayama  255:        -@if [ ! -f ./.configure-links-done ] ; then \
        !           256:        rm -f -r $(LIBDIR)/k097 $(LIBDIR)/sm1 SSkan bin gc gmp ; \
        !           257:        (cd $(LIBDIR) ; ln -f -s ../src/k097 k097) ; \
        !           258:        (cd $(LIBDIR) ; ln -f -s ../src/kan96xx/Doc sm1) ; \
        !           259:        ln -f -s kan96xx SSkan ; \
        !           260:        ln -f -s $(BINDIR) bin ; \
        !           261:        ln -f -s $(OPENXM_CONTRIB)/gc gc ; \
        !           262:        ln -f -s $(OPENXM_CONTRIB)/gmp gmp ; \
        !           263:        mkdir ${OpenXM_HOME}/libexec ; \
        !           264:        touch ./.configure-links-done ;\
        !           265:        fi
1.87      ohara     266:
1.101   ! takayama  267: configure-oxtoolkit: configure-include
1.87      ohara     268:        (cd ox_toolkit; ./make-configure)
1.98      ohara     269:
1.101   ! takayama  270: configure-oxc: configure-include
1.98      ohara     271:        (cd oxc; ./make-configure)
1.45      maekawa   272:
1.101   ! takayama  273: configure-oxmath: configure-include
1.80      ohara     274:        (cd ox_math; ./make-configure)
1.37      maekawa   275:
                    276: configure-pari:
1.36      maekawa   277:        (cd pari ; make configure)
1.78      takayama  278:
1.79      takayama  279: generate-source-distribution : generate-source-distribution-kxx \
                    280:                                generate-source-distribution-ox_toolkit
1.78      takayama  281:
                    282: generate-source-distribution-kxx :
1.95      takayama  283:        (cd kxx ; rm -f .configure_done Makefile )
                    284:
1.79      takayama  285: generate-source-distribution-ox_toolkit :
                    286:        (cd ox_toolkit ; rm -f Makefile ; autoconf)
1.67      takayama  287:
1.68      takayama  288: clean-rc :
                    289:        (cd $(RCDIR) ; make clean )
1.69      takayama  290: all-Copyright :
                    291:        (cd $(COPYRIGHTDIR) ; make copy-copyright )
1.68      takayama  292:
1.82      takayama  293: post-install-correction: install
1.92      takayama  294: # I think that we no longer need post-install-correction-for-asir
                    295: # post-install-corrections-other
                    296:        (cd ../rc ; make install.man)
                    297:
                    298: post-install-correction-for-asir:
1.91      takayama  299:        (cd ../bin ; rm -f asir ox_asir )
                    300:        cp ../lib/asir/asir ../bin/asir
                    301:        (cd ../bin ; ln -s ./asir ox_asir)
                    302:        (cd ../lib/asir ; rm -f asir ; ln -s ../../bin/asir asir)
1.74      takayama  303:        (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  304:
1.93      takayama  305: install-all-asir-lib:
                    306:        (cd asir2000 ; make install-lib-small)
                    307:
                    308: binary-dist : all-Copyright clean-rc all all-misc post-install-correction install-all-asir-lib
1.74      takayama  309:
1.62      takayama  310:

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