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

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

1.15    ! takayama    1: ##  $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.14 2000/01/17 12:58:16 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.15    ! 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.10      maekawa    18: all-gc:
                     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:
                     34: all-plugin :
                     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:
                     48: configure-gmp:
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.7       takayama   57:        /bin/rm -f gc gmp lib Doc/var.sm1
1.9       takayama   58:        ln -f -s $(OpenXM_contrib)/gc gc
                     59:        ln -f -s $(OpenXM_contrib)/gmp gmp
                     60: #      ln -f -s gmp-2.0.2-ssh-2 gmp
1.5       takayama   61:        ln -f -s ./Doc lib
1.7       takayama   62:        (cd Doc; ln -f -s ../Kan/var.sm1 var.sm1)
1.1       maekawa    63:
                     64: ### generate a distribution.
                     65: dist :
                     66:        ./makeDist
                     67: ###############
1.14      takayama   68: install : install-openXM-bin install-document
1.12      takayama   69:
                     70: install-usr-local :
1.1       maekawa    71:        mkdir /usr/local/lib/sm1
                     72:        cp lib/* /usr/local/lib/sm1
                     73:        cp Kan/sm1 /usr/local/bin
                     74:
                     75: ###############
                     76: install-binary :
                     77:        /bin/rm -f sm1
                     78:        echo ":" > sm1
                     79:        echo "LOAD_SM1_PATH=`pwd`/lib/" >>sm1
                     80:        echo "export LOAD_SM1_PATH" >>sm1
                     81:        echo -n "`pwd`/`ls Kan/sm1.*` " >>sm1
                     82:        echo  -n '$$' >>sm1
                     83:        echo '*' >>sm1
                     84:        chmod +x sm1
                     85:        ln -s sm1 Kan/sm1
                     86: install-binary-solaris :
                     87:        /bin/rm -f sm1
                     88:        /usr/ucb/echo ":" > sm1
                     89:        /usr/ucb/echo "LOAD_SM1_PATH=`pwd`/lib/" >>sm1
                     90:        /usr/ucb/echo "export LOAD_SM1_PATH" >>sm1
                     91:        /usr/ucb/echo -n "`pwd`/`ls Kan/sm1.*` " >>sm1
                     92:        /usr/ucb/echo  -n '$$' >>sm1
                     93:        /usr/ucb/echo '*' >>sm1
                     94:        chmod +x sm1
                     95:        ln -s sm1 Kan/sm1
                     96: clean-binary :
                     97:        echo " ../kanbinary*  will be removed"
                     98:        echo "after 10 seconds. To cancel type in ctrl-C."
                     99:        ( sleep 10 ; /bin/rm -rf ../kanbinary* )
1.12      takayama  100:
                    101: install-openXM-bin : clean-for-debug
                    102:        cp Kan/sm1 $(OpenXM_bin)
                    103: install-for-debug :
                    104:        ln -f -s ../src/kan96xx/Kan/sm1 $(OpenXM_bin)/sm1
                    105:
                    106: install-document :
                    107:        (cd Doc ; make install-document)
1.1       maekawa   108:
                    109: ##############
1.12      takayama  110: clean-for-debug :
                    111:        /bin/rm -f $(OpenXM_bin)/sm1
                    112:
1.1       maekawa   113: clean :
1.10      maekawa   114:        if test -f $(GMP)/Makefile ; \
1.9       takayama  115:        then \
1.10      maekawa   116:          (cd $(GMP) ; make clean) ; \
1.9       takayama  117:        fi
1.10      maekawa   118:        if test -f $(GC)/Makefile ; \
1.9       takayama  119:        then \
1.10      maekawa   120:          (cd $(GC); make clean) ; \
1.9       takayama  121:        fi
1.1       maekawa   122:        (cd Kan; make clean)
                    123:        (cd plugin; make clean)
                    124:        /bin/rm -f sm1
                    125:
                    126:
                    127: ### clean also *.a files.
1.8       takayama  128: cleana:  distclean
                    129:
                    130: distclean :
1.10      maekawa   131:        if test -f $(GMP)/Makefile ; \
1.9       takayama  132:        then \
1.10      maekawa   133:          (cd $(GMP) ; make distclean) ; \
1.9       takayama  134:        fi
1.13      takayama  135:        -/bin/rm -f $(GMP)/.gmp_configured
1.10      maekawa   136:        if test -f $(GC)/Makefile ; \
1.9       takayama  137:        then \
1.10      maekawa   138:          (cd $(GC); make clean; /bin/rm -f *.a) ; \
1.9       takayama  139:        fi
1.1       maekawa   140:        (cd Kan; make cleana)
                    141:        (cd plugin; make clean; /bin/rm -f *.a)

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