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

Annotation of OpenXM/src/Makefile, Revision 1.121

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

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