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

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

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

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