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