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