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

Annotation of OpenXM/src/Makefile, Revision 1.120

1.120   ! takayama    1: ## $OpenXM: OpenXM/src/Makefile,v 1.119 2003/06/26 08:59: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 \
1.113     takayama   12:      all-kxx all-pari all-phc all-openmath all-oxmath all-tigers all-fep
1.85      takayama   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.111     takayama   24: all-oxtoolkit: configure-oxtoolkit install-gmp install-gc configure-util
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.117     takayama   41: all-k097: configure-k097 all-kan96xx all-kxx
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:
1.110     takayama   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.114     ohara      59:        -@if test -d /usr/local/mathematica ; then \
1.100     takayama   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.113     takayama   75: all-fep:
                     76:        -(cd ${OPENXM_CONTRIB2}/fep ; make all)
                     77:
1.102     takayama   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.104     takayama   84: all-rc:
                     85:        (cd ../rc ; make )
                     86:
1.52      maekawa    87: install: install-asir install-gnuplot install-k097 install-kan96xx \
1.53      maekawa    88:         install-kxx install-openmath install-oxmath install-pari \
1.83      takayama   89:         install-phc install-tigers install-asir-doc install-asir-contrib \
1.113     takayama   90:         install-misc install-fep
1.52      maekawa    91:
1.85      takayama   92:
                     93: install-gc : all-gc
                     94:        -@if test ! -f gc/.gc_installed ; \
                     95:        then \
1.115     takayama   96:                if test ! -d ../lib ; then mkdir ../lib ; fi ; \
1.85      takayama   97:                cp gc/gc.a ../lib/libgc.a ; \
1.118     ohara      98:                if test ! -d ../include/gc ; then mkdir -p ../include/gc ; fi ; \
                     99:                cp gc/include/gc.h gc/include/gc_cpp.h ../include/gc ; \
1.85      takayama  100:        fi
                    101:        @touch gc/.gc_installed
1.119     takayama  102:
                    103: install-asir-gc : configure-asir
                    104:        @if test ! -f gc/.asir-gc_installed ; \
                    105:        then \
                    106:                if test ! -d ../lib ; then mkdir ../lib ; fi ; \
                    107:                (cd asir2000 ; make install-libasir-gc) ; \
                    108:                rm -f ../lib/libgc.a ; \
                    109:                ln -s ../lib/libasir-gc.a ../lib/libgc.a ; \
                    110:                echo "libasir-gc.a (modifed for asir) is installed as libgc.a instead of libgc.a" ; \
                    111:                touch gc/.asir-gc_installed ; \
                    112:        fi
1.85      takayama  113:
                    114:
                    115: install-gmp : all-gmp
                    116:        -@if test ! -f gmp/.gmp_installed ; \
                    117:        then \
1.96      takayama  118:                (cd gmp; make install) ; \
1.85      takayama  119:        fi
                    120:        @touch gmp/.gmp_installed
                    121:
1.52      maekawa   122: install-asir: all-asir
1.81      takayama  123:        @if test -d $(OPENXM_CONTRIB2) ; then \
                    124:                (cd asir2000 ; make install) ; \
                    125:        else \
                    126:                echo -n "Warning: Asir source is not found. " ; \
                    127:                echo "asir will not be installed." ; \
                    128:        fi
1.52      maekawa   129:
                    130: install-gnuplot: all-gnuplot
1.100     takayama  131:        -(cd gnuplot ; make install)
1.52      maekawa   132:
                    133: install-k097: all-k097
                    134:        (cd k097 ; make install)
1.37      maekawa   135:
1.47      maekawa   136: install-kan96xx: all-kan96xx
1.57      takayama  137:        (cd kan96xx ; make install)
1.47      maekawa   138:
1.52      maekawa   139: install-kxx: all-kxx
1.58      takayama  140:        (cd kxx ; make install)
1.52      maekawa   141:
1.53      maekawa   142: install-openmath: all-openmath
1.110     takayama  143:        -@if ../misc/which.pl -s javac ; then \
1.66      takayama  144:                (cd OpenMath ; make install) ; \
                    145:        else \
                    146:                echo -n "Warning: javac (java compiler) is not found " ; \
                    147:                echo "in your search path. OpenMath will not be installed." ; \
                    148:        fi
                    149:
1.87      ohara     150: install-oxtoolkit: all-oxtoolkit
                    151:        (cd ox_toolkit; make install)
1.53      maekawa   152:
1.98      ohara     153: install-oxc: all-oxc
                    154:        (cd oxc; make install)
                    155:
1.112     takayama  156: install-oxmath: all-oxmath configure-util
1.114     ohara     157:        -@if test -d /usr/local/mathematica ; then \
1.100     takayama  158:                (cd ox_math ; make install) ; \
1.70      takayama  159:        else \
                    160:                echo -n "Warning: Mathematica is not found. " ; \
                    161:                echo "ox_math will not be installed." ; \
                    162:        fi
                    163:        -(cd ox_math/documents ; make install)
                    164:        -(cd ox_math/lib ; make install)
1.53      maekawa   165:
1.37      maekawa   166: install-pari: all-pari
1.45      maekawa   167:        (cd pari ; make install)
1.51      maekawa   168:
                    169: install-phc: all-phc
                    170:        (cd phc ; make install)
                    171:
                    172: install-tigers: all-tigers
                    173:        (cd tigers ; make install)
1.37      maekawa   174:
1.76      takayama  175: install-asir-contrib: install-asir install-kxx
1.59      takayama  176:        (cd asir-contrib ; make install)
1.63      noro      177:
                    178: install-asir-doc: install-asir
1.105     takayama  179:        -(cd asir-doc ; make install)
1.83      takayama  180:
                    181: install-misc:
                    182:        (cd ../rc ; make install.man)
1.59      takayama  183:
1.113     takayama  184: install-fep: all-fep
                    185:        -(cd ${OPENXM_CONTRIB2}/fep ; make PREFIX=../../OpenXM install)
                    186:
1.104     takayama  187: install-rc: all-rc
                    188:        (cd ../rc ; make install)
                    189:
1.29      maekawa   190: clean:
1.101     takayama  191:        -rm ./.configure-links-done
1.85      takayama  192:        -rm $(OPENXM_CONTRIB)/gmp/.gmp_*
                    193:        -rm $(OPENXM_CONTRIB)/gc/.gc_*
                    194:        -(cd $(OPENXM_CONTRIB)/gmp ; make clean)
                    195:        (cd $(OPENXM_CONTRIB)/gc ; make clean ; /bin/rm -f *.a)
1.52      maekawa   196:        (cd asir2000 ; make clean)
                    197:        (cd gnuplot ; make clean)
                    198:        (cd k097 ; make clean)
1.36      maekawa   199:        (cd kan96xx ; make clean)
1.77      takayama  200:        -(cd kxx ; make clean)
1.60      tam       201:        (cd OpenMath ; make clean)
1.77      takayama  202:        -(cd ox_math ; make clean)
1.38      maekawa   203:        (cd pari ; make clean)
1.36      maekawa   204:        (cd phc ; make clean)
1.52      maekawa   205:        (cd tigers ; make clean)
1.64      noro      206:        (cd asir-doc ; make clean)
1.59      takayama  207:        (cd asir-contrib ; make clean)
1.113     takayama  208:        -(cd ${OPENXM_CONTRIB2}/fep ; make clean)
1.11      takayama  209:
1.39      maekawa   210: distclean: clean
1.108     takayama  211:        (cd uuencoded ; make distclean)
1.85      takayama  212:        -(cd $(OPENXM_CONTRIB)/gmp ; make distclean)
                    213:        (cd $(OPENXM_CONTRIB)/gc ; make clean ; /bin/rm -f *.a)
1.46      maekawa   214:        (cd asir2000 ; make distclean)
1.40      maekawa   215:        (cd gnuplot ; make distclean)
1.36      maekawa   216:        (cd kan96xx ; make distclean)
1.77      takayama  217:        -(cd kxx ; make distclean)
1.60      tam       218:        (cd OpenMath ; make distclean)
1.38      maekawa   219:        (cd pari ; make distclean)
1.44      maekawa   220:        (cd phc ; make distclean)
1.40      maekawa   221:        (cd tigers ; make distclean)
1.89      ohara     222:        -(cd ox_toolkit ; make distclean)
                    223:        -(cd ox_math ; make distclean)
1.56      maekawa   224:        rm -rf $(BINDIR)/d0 $(BINDIR)/k0 $(BINDIR)/ox $(BINDIR)/ox_sm1 \
1.53      maekawa   225:               $(BINDIR)/oxlog $(BINDIR)/oxweave $(BINDIR)/sm1 \
                    226:               $(LIBDIR)/k097 $(LIBDIR)/sm1 SSkan bin gc gmp
1.11      takayama  227:
1.111     takayama  228: configure: configure-links configure-include configure-bin configure-util \
                    229:        configure-asir \
1.62      takayama  230:           configure-gnuplot \
1.50      maekawa   231:           configure-k097 configure-kan96xx configure-kxx configure-oxmath \
1.85      takayama  232:           configure-pari configure-gmp
1.111     takayama  233:
                    234: configure-util: configure-directory
                    235:        (cd util; make install)
1.97      takayama  236:
1.101     takayama  237: configure-include: configure-include-make-dir ../include/ox/cmotag.h ../include/ox/oxMessageTag.h ../include/ox/smCommand.h
                    238:
                    239: configure-include-make-dir:
1.97      takayama  240:        @if test ! -d ../include ; \
                    241:        then \
                    242:        mkdir  ../include ; \
                    243:        fi
                    244:        @if test ! -d ../include/ox ; \
                    245:        then \
                    246:        mkdir  ../include/ox ; \
                    247:        fi
1.101     takayama  248: ../include/ox/cmotag.h : ../doc/OpenXM-web/cmotag.h
                    249:        cp ../doc/OpenXM-web/cmotag.h ../include/ox
                    250: ../include/ox/oxMessageTag.h : ../doc/OpenXM-web/oxMessageTag.h
                    251:        cp ../doc/OpenXM-web/oxMessageTag.h ../include/ox
                    252: ../include/ox/smCommand.h : ../doc/OpenXM-web/smCommand.h
                    253:        cp ../doc/OpenXM-web/smCommand.h ../include/ox
1.85      takayama  254:
                    255: configure-gmp: configure-links
                    256:        @if test -f gmp/.gmp_configured ; \
                    257:        then \
1.96      takayama  258:          echo "MESSAGE: gmp is already configured. (.gmp_configured) " ;  \
1.85      takayama  259:        else \
1.96      takayama  260:          (cd gmp ; ./configure --prefix=`pwd`/../../OpenXM; touch .gmp_configured) ; \
1.85      takayama  261:        fi
1.37      maekawa   262:
1.116     ohara     263: configure-asir: configure-directory configure-util
1.81      takayama  264:        @if test -d $(OPENXM_CONTRIB2) ; then \
                    265:                (cd asir2000 ; make configure) ; \
                    266:        else \
                    267:                echo -n "Warning: Asir source is not found. " ; \
                    268:                echo "asir will not be compiled." ; \
                    269:        fi
1.41      maekawa   270:
1.45      maekawa   271: configure-bin:
1.108     takayama  272:        (cd uuencoded ; make configure)
1.45      maekawa   273:
1.41      maekawa   274: configure-gnuplot:
1.100     takayama  275:        -(cd gnuplot ; make configure)
1.48      maekawa   276:
1.120   ! takayama  277: configure-k097: configure-links configure-util
1.37      maekawa   278:
1.120   ! takayama  279: configure-kan96xx: configure-links configure-util
1.45      maekawa   280:        (cd kan96xx ; make configure)
                    281:
1.112     takayama  282: configure-kxx: configure-util
1.77      takayama  283:        ( cd kxx ; ./make-configure)
1.45      maekawa   284:
1.109     takayama  285: configure-links: configure-directory
1.101     takayama  286:        -@if [ ! -f ./.configure-links-done ] ; then \
                    287:        rm -f -r $(LIBDIR)/k097 $(LIBDIR)/sm1 SSkan bin gc gmp ; \
                    288:        (cd $(LIBDIR) ; ln -f -s ../src/k097 k097) ; \
                    289:        (cd $(LIBDIR) ; ln -f -s ../src/kan96xx/Doc sm1) ; \
                    290:        ln -f -s kan96xx SSkan ; \
                    291:        ln -f -s $(BINDIR) bin ; \
                    292:        ln -f -s $(OPENXM_CONTRIB)/gc gc ; \
                    293:        ln -f -s $(OPENXM_CONTRIB)/gmp gmp ; \
                    294:        mkdir ${OpenXM_HOME}/libexec ; \
                    295:        touch ./.configure-links-done ;\
1.109     takayama  296:        fi
                    297:
                    298: configure-directory:
                    299:        -@if [ ! -d ../bin ] ; then \
                    300:        mkdir ../bin ; \
1.101     takayama  301:        fi
1.87      ohara     302:
1.101     takayama  303: configure-oxtoolkit: configure-include
1.87      ohara     304:        (cd ox_toolkit; ./make-configure)
1.98      ohara     305:
1.101     takayama  306: configure-oxc: configure-include
1.98      ohara     307:        (cd oxc; ./make-configure)
1.45      maekawa   308:
1.114     ohara     309: configure-oxmath: configure-include configure-directory
1.80      ohara     310:        (cd ox_math; ./make-configure)
1.37      maekawa   311:
                    312: configure-pari:
1.36      maekawa   313:        (cd pari ; make configure)
1.78      takayama  314:
1.79      takayama  315: generate-source-distribution : generate-source-distribution-kxx \
                    316:                                generate-source-distribution-ox_toolkit
1.78      takayama  317:
                    318: generate-source-distribution-kxx :
1.95      takayama  319:        (cd kxx ; rm -f .configure_done Makefile )
                    320:
1.79      takayama  321: generate-source-distribution-ox_toolkit :
                    322:        (cd ox_toolkit ; rm -f Makefile ; autoconf)
1.67      takayama  323:
1.68      takayama  324: clean-rc :
                    325:        (cd $(RCDIR) ; make clean )
1.69      takayama  326: all-Copyright :
                    327:        (cd $(COPYRIGHTDIR) ; make copy-copyright )
1.68      takayama  328:
1.82      takayama  329: post-install-correction: install
1.92      takayama  330: # I think that we no longer need post-install-correction-for-asir
                    331: # post-install-corrections-other
                    332:        (cd ../rc ; make install.man)
                    333:
                    334: post-install-correction-for-asir:
1.91      takayama  335:        (cd ../bin ; rm -f asir ox_asir )
                    336:        cp ../lib/asir/asir ../bin/asir
                    337:        (cd ../bin ; ln -s ./asir ox_asir)
                    338:        (cd ../lib/asir ; rm -f asir ; ln -s ../../bin/asir asir)
1.74      takayama  339:        (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.106     takayama  340:        -(cd asir-doc ; make install-man-pages)
1.82      takayama  341:
1.93      takayama  342: install-all-asir-lib:
                    343:        (cd asir2000 ; make install-lib-small)
                    344:
                    345: binary-dist : all-Copyright clean-rc all all-misc post-install-correction install-all-asir-lib
1.74      takayama  346:
1.103     takayama  347: ## Targets for debugging
                    348: install-for-debug:
                    349:        (cd kan96xx; make install-for-debug)
                    350:        (cd kxx; make install-for-debug)
                    351:        (cd k097 ; make install-for-debug)
1.105     takayama  352:        (cd ../bin ; rm -f asir ; ln -s ../../OpenXM_contrib2/asir2000/asir .)
1.103     takayama  353:
                    354:
1.102     takayama  355: ##  Sub binary packages
1.105     takayama  356: ##  1: asir: asir only.   target:  all-asir install-asir install-asir-doc
1.62      takayama  357:
1.105     takayama  358: ##  2: kan-ox: k0 and sm1 with ox_asir.  target: all-kan-ox install-kan-ox
                    359: configure-all-kan-ox :  configure-links configure-include  configure-asir \
1.102     takayama  360:                        configure-kan96xx configure-kxx configure-k097 \
                    361:                        configure-oxc
1.105     takayama  362: all-kan-ox:  configure-all-kan-ox all-asir all-kan96xx all-kxx all-k097 all-oxc
                    363: install-kan-ox: all-kan-ox  install-asir install-kan96xx install-kxx \
                    364:                install-k097 install-oxc install-asir-doc \
                    365:                post-install-kan-ox
                    366: post-install-kan-ox:
                    367:        (cd ../bin ; /bin/rm -f ox_asir; ln -s ./asir ox_asir)
                    368:

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