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

Annotation of OpenXM/src/kan96xx/Makefile, Revision 1.23

1.23    ! takayama    1: ##  $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.22 2000/08/31 13:27:33 takayama Exp $
1.9       takayama    2:
1.3       takayama    3: ## Type in make configure and make all to build all
1.9       takayama    4: OpenXM_contrib=../../../OpenXM_contrib
1.10      maekawa     5: OPENXM_CONTRIB=../../../OpenXM_contrib
1.12      takayama    6: OpenXM_ROOT=../../../OpenXM
                      7: OpenXM_bin=$(OpenXM_ROOT)/bin
                      8:
1.10      maekawa     9: GC=$(OPENXM_CONTRIB)/gc
                     10: GMP=$(OPENXM_CONTRIB)/gmp
1.9       takayama   11:
1.21      takayama   12: all :   all-plugin all-sm1 all-kanlib.a
1.16      takayama   13: ## .SUFFIXES:
1.1       maekawa    14:
1.10      maekawa    15: all2 :  all-gc all-gmp
1.9       takayama   16:        (cd Kan; make all)
                     17:
1.17      takayama   18: all-gc: configure_symbolic_links
1.10      maekawa    19:        (cd $(GC) ; make all)
                     20:
1.11      maekawa    21: all-gmp: configure-gmp
1.9       takayama   22:        if test -f /usr/lib/libgmp.a ; \
                     23:        then \
                     24:          echo "Using /usr/lib/libgmp.a" ; \
1.10      maekawa    25:          /bin/rm -rf $(GMP)/libgmp.a ; \
                     26:          ln -s /usr/lib/libgmp.a $(GMP)/libgmp.a ; \
1.9       takayama   27:        else \
1.10      maekawa    28:         (cd $(GMP) ; make) ; \
1.9       takayama   29:        fi
                     30:
1.13      takayama   31: all-sm1 : all-plugin
                     32:        (cd Kan; make all)
                     33:
1.17      takayama   34: all-plugin : configure_symbolic_links
1.13      takayama   35:         (cd plugin ; make all)
                     36:
                     37: all-kanlib.a : all-plugin
                     38:        (cd Kan ; make kanlib.a)
                     39:
1.1       maekawa    40:
                     41:
                     42: ### When you make sm1 without the garbage collector, type in make sm1.nogc
                     43: sm1.nogc :
                     44:        (cd Kan; make sm1.nogc)
1.2       takayama   45:
1.21      takayama   46: configure: configure_symbolic_links
1.11      maekawa    47:
1.17      takayama   48: configure-gmp: configure_symbolic_links
1.13      takayama   49:        if test -f $(GMP)/.gmp_configured ; \
                     50:        then \
                     51:          echo "MESSAGE(kan96xx/Makefile): gmp is already configured. (.gmp_configured) " ;  \
                     52:        else \
                     53:          (cd $(GMP) ; ./configure ; touch .gmp_configured) ; \
                     54:        fi
1.3       takayama   55:
1.2       takayama   56: configure_symbolic_links :
1.18      ohara      57:        @if test ! -f ./.done_links  ; \
1.17      takayama   58:        then \
                     59:         /bin/rm -f gc gmp lib Doc/var.sm1 ; \
                     60:         ln -f -s $(OpenXM_contrib)/gc gc ; \
                     61:         ln -f -s $(OpenXM_contrib)/gmp gmp ; \
                     62:         ln -f -s ./Doc lib ; \
                     63:         (cd Doc; ln -f -s ../Kan/var.sm1 var.sm1) ; \
                     64:        fi
                     65:        @touch ./.done_links
1.1       maekawa    66:
                     67: ### generate a distribution.
                     68: dist :
                     69:        ./makeDist
                     70: ###############
1.23    ! takayama   71: install : install-bin-OpenXM install-doc install-man
1.19      takayama   72:
1.22      takayama   73: install.man: install-man  #aliases
                     74:
                     75: install-man :
1.19      takayama   76:        @if [ ! -d $(OpenXM_ROOT)/man ]; then  \
                     77:           mkdir $(OpenXM_ROOT)/man ; \
                     78:        fi
                     79:        @if [ ! -d $(OpenXM_ROOT)/man/man1 ]; then  \
                     80:           mkdir $(OpenXM_ROOT)/man/man1 ; \
                     81:        fi
                     82:        -cp Doc/sm1.1 $(OpenXM_ROOT)/man/man1
1.12      takayama   83:
1.23    ! takayama   84: install-usr-local: install-bin-usr-local  #alias
        !            85:
        !            86: install-bin-usr-local :
1.1       maekawa    87:        mkdir /usr/local/lib/sm1
                     88:        cp lib/* /usr/local/lib/sm1
                     89:        cp Kan/sm1 /usr/local/bin
                     90:
                     91: ###############
                     92: install-binary :
                     93:        /bin/rm -f sm1
                     94:        echo ":" > sm1
                     95:        echo "LOAD_SM1_PATH=`pwd`/lib/" >>sm1
                     96:        echo "export LOAD_SM1_PATH" >>sm1
                     97:        echo -n "`pwd`/`ls Kan/sm1.*` " >>sm1
                     98:        echo  -n '$$' >>sm1
                     99:        echo '*' >>sm1
                    100:        chmod +x sm1
                    101:        ln -s sm1 Kan/sm1
                    102: install-binary-solaris :
                    103:        /bin/rm -f sm1
                    104:        /usr/ucb/echo ":" > sm1
                    105:        /usr/ucb/echo "LOAD_SM1_PATH=`pwd`/lib/" >>sm1
                    106:        /usr/ucb/echo "export LOAD_SM1_PATH" >>sm1
                    107:        /usr/ucb/echo -n "`pwd`/`ls Kan/sm1.*` " >>sm1
                    108:        /usr/ucb/echo  -n '$$' >>sm1
                    109:        /usr/ucb/echo '*' >>sm1
                    110:        chmod +x sm1
                    111:        ln -s sm1 Kan/sm1
                    112: clean-binary :
                    113:        echo " ../kanbinary*  will be removed"
                    114:        echo "after 10 seconds. To cancel type in ctrl-C."
                    115:        ( sleep 10 ; /bin/rm -rf ../kanbinary* )
1.12      takayama  116:
1.23    ! takayama  117: install-openXM-bin: install-bin-OpenXM  #alias
        !           118:
        !           119: install-bin-OpenXM: clean-for-debug
1.12      takayama  120:        cp Kan/sm1 $(OpenXM_bin)
1.23    ! takayama  121:
1.12      takayama  122: install-for-debug :
                    123:        ln -f -s ../src/kan96xx/Kan/sm1 $(OpenXM_bin)/sm1
                    124:
1.22      takayama  125: install-doc:  install-document
                    126:
                    127: install-document :   #alias
                    128:        -(cd Doc ; make install-document)
1.1       maekawa   129:
                    130: ##############
1.12      takayama  131: clean-for-debug :
                    132:        /bin/rm -f $(OpenXM_bin)/sm1
                    133:
1.1       maekawa   134: clean :
1.17      takayama  135:        /bin/rm -f ./.done_links
1.1       maekawa   136:        (cd Kan; make clean)
                    137:        (cd plugin; make clean)
                    138:        /bin/rm -f sm1
                    139:
                    140:
                    141: ### clean also *.a files.
1.8       takayama  142: cleana:  distclean
                    143:
1.17      takayama  144: distclean : clean
1.1       maekawa   145:        (cd Kan; make cleana)
                    146:        (cd plugin; make clean; /bin/rm -f *.a)
1.17      takayama  147:        /bin/rm -rf gc gmp lib Doc/var.sm1
                    148:

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