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