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

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

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

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