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