Annotation of OpenXM/src/kan96xx/Makefile, Revision 1.19
1.19 ! takayama 1: ## $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.18 2000/02/03 09:30:17 ohara 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.13 takayama 12: all : all-gc all-gmp 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.11 maekawa 46: configure: configure_symbolic_links configure-gmp
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.14 takayama 71: install : install-openXM-bin install-document
1.19 ! takayama 72:
! 73: install.man :
! 74: @if [ ! -d $(OpenXM_ROOT)/man ]; then \
! 75: mkdir $(OpenXM_ROOT)/man ; \
! 76: fi
! 77: @if [ ! -d $(OpenXM_ROOT)/man/man1 ]; then \
! 78: mkdir $(OpenXM_ROOT)/man/man1 ; \
! 79: fi
! 80: -cp Doc/sm1.1 $(OpenXM_ROOT)/man/man1
1.12 takayama 81:
82: install-usr-local :
1.1 maekawa 83: mkdir /usr/local/lib/sm1
84: cp lib/* /usr/local/lib/sm1
85: cp Kan/sm1 /usr/local/bin
86:
87: ###############
88: install-binary :
89: /bin/rm -f sm1
90: echo ":" > sm1
91: echo "LOAD_SM1_PATH=`pwd`/lib/" >>sm1
92: echo "export LOAD_SM1_PATH" >>sm1
93: echo -n "`pwd`/`ls Kan/sm1.*` " >>sm1
94: echo -n '$$' >>sm1
95: echo '*' >>sm1
96: chmod +x sm1
97: ln -s sm1 Kan/sm1
98: install-binary-solaris :
99: /bin/rm -f sm1
100: /usr/ucb/echo ":" > sm1
101: /usr/ucb/echo "LOAD_SM1_PATH=`pwd`/lib/" >>sm1
102: /usr/ucb/echo "export LOAD_SM1_PATH" >>sm1
103: /usr/ucb/echo -n "`pwd`/`ls Kan/sm1.*` " >>sm1
104: /usr/ucb/echo -n '$$' >>sm1
105: /usr/ucb/echo '*' >>sm1
106: chmod +x sm1
107: ln -s sm1 Kan/sm1
108: clean-binary :
109: echo " ../kanbinary* will be removed"
110: echo "after 10 seconds. To cancel type in ctrl-C."
111: ( sleep 10 ; /bin/rm -rf ../kanbinary* )
1.12 takayama 112:
113: install-openXM-bin : clean-for-debug
114: cp Kan/sm1 $(OpenXM_bin)
115: install-for-debug :
116: ln -f -s ../src/kan96xx/Kan/sm1 $(OpenXM_bin)/sm1
117:
118: install-document :
119: (cd Doc ; make install-document)
1.1 maekawa 120:
121: ##############
1.12 takayama 122: clean-for-debug :
123: /bin/rm -f $(OpenXM_bin)/sm1
124:
1.1 maekawa 125: clean :
1.17 takayama 126: /bin/rm -f ./.done_links
1.10 maekawa 127: if test -f $(GMP)/Makefile ; \
1.9 takayama 128: then \
1.10 maekawa 129: (cd $(GMP) ; make clean) ; \
1.9 takayama 130: fi
1.10 maekawa 131: if test -f $(GC)/Makefile ; \
1.9 takayama 132: then \
1.10 maekawa 133: (cd $(GC); make clean) ; \
1.9 takayama 134: fi
1.1 maekawa 135: (cd Kan; make clean)
136: (cd plugin; make clean)
137: /bin/rm -f sm1
138:
139:
140: ### clean also *.a files.
1.8 takayama 141: cleana: distclean
142:
1.17 takayama 143: distclean : clean
1.10 maekawa 144: if test -f $(GMP)/Makefile ; \
1.9 takayama 145: then \
1.10 maekawa 146: (cd $(GMP) ; make distclean) ; \
1.9 takayama 147: fi
1.13 takayama 148: -/bin/rm -f $(GMP)/.gmp_configured
1.10 maekawa 149: if test -f $(GC)/Makefile ; \
1.9 takayama 150: then \
1.10 maekawa 151: (cd $(GC); make clean; /bin/rm -f *.a) ; \
1.9 takayama 152: fi
1.1 maekawa 153: (cd Kan; make cleana)
154: (cd plugin; make clean; /bin/rm -f *.a)
1.17 takayama 155: /bin/rm -rf gc gmp lib Doc/var.sm1
156:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>