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