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

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

1.18    ! ohara       1: ##  $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.17 2000/02/01 04:24:19 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.13      takayama   12: all :   all-gc all-gmp 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.11      maekawa    46: configure: configure_symbolic_links configure-gmp
                     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.14      takayama   71: install : install-openXM-bin install-document
1.12      takayama   72:
                     73: install-usr-local :
1.1       maekawa    74:        mkdir /usr/local/lib/sm1
                     75:        cp lib/* /usr/local/lib/sm1
                     76:        cp Kan/sm1 /usr/local/bin
                     77:
                     78: ###############
                     79: install-binary :
                     80:        /bin/rm -f sm1
                     81:        echo ":" > sm1
                     82:        echo "LOAD_SM1_PATH=`pwd`/lib/" >>sm1
                     83:        echo "export LOAD_SM1_PATH" >>sm1
                     84:        echo -n "`pwd`/`ls Kan/sm1.*` " >>sm1
                     85:        echo  -n '$$' >>sm1
                     86:        echo '*' >>sm1
                     87:        chmod +x sm1
                     88:        ln -s sm1 Kan/sm1
                     89: install-binary-solaris :
                     90:        /bin/rm -f sm1
                     91:        /usr/ucb/echo ":" > sm1
                     92:        /usr/ucb/echo "LOAD_SM1_PATH=`pwd`/lib/" >>sm1
                     93:        /usr/ucb/echo "export LOAD_SM1_PATH" >>sm1
                     94:        /usr/ucb/echo -n "`pwd`/`ls Kan/sm1.*` " >>sm1
                     95:        /usr/ucb/echo  -n '$$' >>sm1
                     96:        /usr/ucb/echo '*' >>sm1
                     97:        chmod +x sm1
                     98:        ln -s sm1 Kan/sm1
                     99: clean-binary :
                    100:        echo " ../kanbinary*  will be removed"
                    101:        echo "after 10 seconds. To cancel type in ctrl-C."
                    102:        ( sleep 10 ; /bin/rm -rf ../kanbinary* )
1.12      takayama  103:
                    104: install-openXM-bin : clean-for-debug
                    105:        cp Kan/sm1 $(OpenXM_bin)
                    106: install-for-debug :
                    107:        ln -f -s ../src/kan96xx/Kan/sm1 $(OpenXM_bin)/sm1
                    108:
                    109: install-document :
                    110:        (cd Doc ; make install-document)
1.1       maekawa   111:
                    112: ##############
1.12      takayama  113: clean-for-debug :
                    114:        /bin/rm -f $(OpenXM_bin)/sm1
                    115:
1.1       maekawa   116: clean :
1.17      takayama  117:        /bin/rm -f ./.done_links
1.10      maekawa   118:        if test -f $(GMP)/Makefile ; \
1.9       takayama  119:        then \
1.10      maekawa   120:          (cd $(GMP) ; make clean) ; \
1.9       takayama  121:        fi
1.10      maekawa   122:        if test -f $(GC)/Makefile ; \
1.9       takayama  123:        then \
1.10      maekawa   124:          (cd $(GC); make clean) ; \
1.9       takayama  125:        fi
1.1       maekawa   126:        (cd Kan; make clean)
                    127:        (cd plugin; make clean)
                    128:        /bin/rm -f sm1
                    129:
                    130:
                    131: ### clean also *.a files.
1.8       takayama  132: cleana:  distclean
                    133:
1.17      takayama  134: distclean : clean
1.10      maekawa   135:        if test -f $(GMP)/Makefile ; \
1.9       takayama  136:        then \
1.10      maekawa   137:          (cd $(GMP) ; make distclean) ; \
1.9       takayama  138:        fi
1.13      takayama  139:        -/bin/rm -f $(GMP)/.gmp_configured
1.10      maekawa   140:        if test -f $(GC)/Makefile ; \
1.9       takayama  141:        then \
1.10      maekawa   142:          (cd $(GC); make clean; /bin/rm -f *.a) ; \
1.9       takayama  143:        fi
1.1       maekawa   144:        (cd Kan; make cleana)
                    145:        (cd plugin; make clean; /bin/rm -f *.a)
1.17      takayama  146:        /bin/rm -rf gc gmp lib Doc/var.sm1
                    147:

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