Annotation of OpenXM/src/Makefile, Revision 1.122
1.122 ! takayama 1: ## $OpenXM: OpenXM/src/Makefile,v 1.121 2003/08/25 14:24:45 ohara Exp $
1.33 maekawa 2:
1.94 takayama 3: OpenXM_HOME=../../OpenXM
1.55 maekawa 4: OPENXM_CONTRIB=../../OpenXM_contrib
1.81 takayama 5: OPENXM_CONTRIB2=../../OpenXM_contrib2
1.53 maekawa 6: LIBDIR=../lib
7: BINDIR=../bin
1.68 takayama 8: RCDIR=../rc
1.69 takayama 9: COPYRIGHTDIR=../Copyright
1.53 maekawa 10:
1.85 takayama 11: all: configure all-gc all-gmp all-asir all-gnuplot all-k097 all-kan96xx \
1.113 takayama 12: all-kxx all-pari all-phc all-openmath all-oxmath all-tigers all-fep
1.85 takayama 13:
14: all-gc:
15: @if test ! -f gc/.gc_make_done ; \
16: then \
17: (cd gc ; make all) ; \
18: fi
19: @touch gc/.gc_make_done
20:
21: all-gmp: configure-gmp
1.122 ! takayama 22: -@if test ! -f gmp/.gmp_make_done ; then \
1.121 ohara 23: (cd gmp ; make) ; \
24: fi
25: @touch gmp/.gmp_make_done
1.26 maekawa 26:
1.111 takayama 27: all-oxtoolkit: configure-oxtoolkit install-gmp install-gc configure-util
1.87 ohara 28: (cd ox_toolkit; make)
29:
1.98 ohara 30: all-oxc: configure-oxc install-oxtoolkit
31: (cd oxc; make)
32:
1.41 maekawa 33: all-asir: configure-asir
1.81 takayama 34: @if test -d $(OPENXM_CONTRIB2) ; then \
35: (cd asir2000 ; make all) ; \
36: else \
37: echo -n "Warning: Asir source is not found. " ; \
38: echo "asir will not be compiled." ; \
39: fi
1.21 maekawa 40:
1.41 maekawa 41: all-gnuplot: configure-gnuplot
1.100 takayama 42: -(cd gnuplot ; make all)
1.32 maekawa 43:
1.117 takayama 44: all-k097: configure-k097 all-kan96xx all-kxx
1.52 maekawa 45: (cd k097 ; make all)
1.49 maekawa 46:
1.85 takayama 47: all-kan96xx: configure-kan96xx install-gc install-gmp
1.47 maekawa 48: (cd kan96xx ; make all)
1.32 maekawa 49:
1.75 takayama 50: all-kxx: configure-kxx all-kan96xx
1.52 maekawa 51: (cd kxx ; make all)
1.31 maekawa 52:
1.30 maekawa 53: all-openmath:
1.110 takayama 54: -@if ../misc/which.pl -s javac ; then \
1.60 tam 55: (cd OpenMath ; make all) ; \
1.30 maekawa 56: else \
57: echo -n "Warning: javac (java compiler) is not found " ; \
58: echo "in your search path. OpenMath will not be compiled." ; \
59: fi
60:
1.88 ohara 61: all-oxmath: configure-oxmath install-oxtoolkit
1.114 ohara 62: -@if test -d /usr/local/mathematica ; then \
1.100 takayama 63: (cd ox_math ; make) ; \
1.27 maekawa 64: else \
65: echo -n "Warning: Mathematica is not found. " ; \
66: echo "ox_math will not be compiled." ; \
1.23 maekawa 67: fi
68:
1.37 maekawa 69: all-pari: configure-pari
70: (cd pari ; make all)
1.25 maekawa 71:
1.22 maekawa 72: all-phc:
1.51 maekawa 73: (cd phc ; make all)
1.22 maekawa 74:
75: all-tigers:
1.51 maekawa 76: (cd tigers ; make all)
1.1 maekawa 77:
1.113 takayama 78: all-fep:
79: -(cd ${OPENXM_CONTRIB2}/fep ; make all)
80:
1.102 takayama 81:
1.67 takayama 82: all-misc :
83: (cd ../rc ; make repl)
1.71 takayama 84: (cd ../doc ; make all-install)
85: (cd ../doc ; make all-spec)
1.67 takayama 86:
1.104 takayama 87: all-rc:
88: (cd ../rc ; make )
89:
1.52 maekawa 90: install: install-asir install-gnuplot install-k097 install-kan96xx \
1.53 maekawa 91: install-kxx install-openmath install-oxmath install-pari \
1.83 takayama 92: install-phc install-tigers install-asir-doc install-asir-contrib \
1.113 takayama 93: install-misc install-fep
1.52 maekawa 94:
1.85 takayama 95:
96: install-gc : all-gc
97: -@if test ! -f gc/.gc_installed ; \
98: then \
1.115 takayama 99: if test ! -d ../lib ; then mkdir ../lib ; fi ; \
1.85 takayama 100: cp gc/gc.a ../lib/libgc.a ; \
1.118 ohara 101: if test ! -d ../include/gc ; then mkdir -p ../include/gc ; fi ; \
102: cp gc/include/gc.h gc/include/gc_cpp.h ../include/gc ; \
1.85 takayama 103: fi
104: @touch gc/.gc_installed
1.119 takayama 105:
106: install-asir-gc : configure-asir
107: @if test ! -f gc/.asir-gc_installed ; \
108: then \
109: if test ! -d ../lib ; then mkdir ../lib ; fi ; \
110: (cd asir2000 ; make install-libasir-gc) ; \
111: rm -f ../lib/libgc.a ; \
112: ln -s ../lib/libasir-gc.a ../lib/libgc.a ; \
113: echo "libasir-gc.a (modifed for asir) is installed as libgc.a instead of libgc.a" ; \
114: touch gc/.asir-gc_installed ; \
115: fi
1.85 takayama 116:
117:
118: install-gmp : all-gmp
1.122 ! takayama 119: @if test ! -f gmp/.gmp_installed ; \
1.85 takayama 120: then \
1.122 ! takayama 121: (cd gmp; make install-exec) ; \
! 122: (cd gmp; cp gmp.h ../../OpenXM/include) ; \
1.85 takayama 123: fi
124: @touch gmp/.gmp_installed
125:
1.52 maekawa 126: install-asir: all-asir
1.81 takayama 127: @if test -d $(OPENXM_CONTRIB2) ; then \
128: (cd asir2000 ; make install) ; \
129: else \
130: echo -n "Warning: Asir source is not found. " ; \
131: echo "asir will not be installed." ; \
132: fi
1.52 maekawa 133:
134: install-gnuplot: all-gnuplot
1.100 takayama 135: -(cd gnuplot ; make install)
1.52 maekawa 136:
137: install-k097: all-k097
138: (cd k097 ; make install)
1.37 maekawa 139:
1.47 maekawa 140: install-kan96xx: all-kan96xx
1.57 takayama 141: (cd kan96xx ; make install)
1.47 maekawa 142:
1.52 maekawa 143: install-kxx: all-kxx
1.58 takayama 144: (cd kxx ; make install)
1.52 maekawa 145:
1.53 maekawa 146: install-openmath: all-openmath
1.110 takayama 147: -@if ../misc/which.pl -s javac ; then \
1.66 takayama 148: (cd OpenMath ; make install) ; \
149: else \
150: echo -n "Warning: javac (java compiler) is not found " ; \
151: echo "in your search path. OpenMath will not be installed." ; \
152: fi
153:
1.87 ohara 154: install-oxtoolkit: all-oxtoolkit
155: (cd ox_toolkit; make install)
1.53 maekawa 156:
1.98 ohara 157: install-oxc: all-oxc
158: (cd oxc; make install)
159:
1.112 takayama 160: install-oxmath: all-oxmath configure-util
1.114 ohara 161: -@if test -d /usr/local/mathematica ; then \
1.100 takayama 162: (cd ox_math ; make install) ; \
1.70 takayama 163: else \
164: echo -n "Warning: Mathematica is not found. " ; \
165: echo "ox_math will not be installed." ; \
166: fi
167: -(cd ox_math/documents ; make install)
168: -(cd ox_math/lib ; make install)
1.53 maekawa 169:
1.37 maekawa 170: install-pari: all-pari
1.45 maekawa 171: (cd pari ; make install)
1.51 maekawa 172:
173: install-phc: all-phc
174: (cd phc ; make install)
175:
176: install-tigers: all-tigers
177: (cd tigers ; make install)
1.37 maekawa 178:
1.76 takayama 179: install-asir-contrib: install-asir install-kxx
1.59 takayama 180: (cd asir-contrib ; make install)
1.63 noro 181:
182: install-asir-doc: install-asir
1.105 takayama 183: -(cd asir-doc ; make install)
1.83 takayama 184:
185: install-misc:
186: (cd ../rc ; make install.man)
1.59 takayama 187:
1.113 takayama 188: install-fep: all-fep
189: -(cd ${OPENXM_CONTRIB2}/fep ; make PREFIX=../../OpenXM install)
190:
1.104 takayama 191: install-rc: all-rc
192: (cd ../rc ; make install)
193:
1.29 maekawa 194: clean:
1.101 takayama 195: -rm ./.configure-links-done
1.85 takayama 196: -rm $(OPENXM_CONTRIB)/gmp/.gmp_*
197: -rm $(OPENXM_CONTRIB)/gc/.gc_*
198: -(cd $(OPENXM_CONTRIB)/gmp ; make clean)
199: (cd $(OPENXM_CONTRIB)/gc ; make clean ; /bin/rm -f *.a)
1.52 maekawa 200: (cd asir2000 ; make clean)
201: (cd gnuplot ; make clean)
202: (cd k097 ; make clean)
1.36 maekawa 203: (cd kan96xx ; make clean)
1.77 takayama 204: -(cd kxx ; make clean)
1.60 tam 205: (cd OpenMath ; make clean)
1.77 takayama 206: -(cd ox_math ; make clean)
1.38 maekawa 207: (cd pari ; make clean)
1.36 maekawa 208: (cd phc ; make clean)
1.52 maekawa 209: (cd tigers ; make clean)
1.64 noro 210: (cd asir-doc ; make clean)
1.59 takayama 211: (cd asir-contrib ; make clean)
1.113 takayama 212: -(cd ${OPENXM_CONTRIB2}/fep ; make clean)
1.11 takayama 213:
1.39 maekawa 214: distclean: clean
1.108 takayama 215: (cd uuencoded ; make distclean)
1.85 takayama 216: -(cd $(OPENXM_CONTRIB)/gmp ; make distclean)
217: (cd $(OPENXM_CONTRIB)/gc ; make clean ; /bin/rm -f *.a)
1.46 maekawa 218: (cd asir2000 ; make distclean)
1.40 maekawa 219: (cd gnuplot ; make distclean)
1.36 maekawa 220: (cd kan96xx ; make distclean)
1.77 takayama 221: -(cd kxx ; make distclean)
1.60 tam 222: (cd OpenMath ; make distclean)
1.38 maekawa 223: (cd pari ; make distclean)
1.44 maekawa 224: (cd phc ; make distclean)
1.40 maekawa 225: (cd tigers ; make distclean)
1.89 ohara 226: -(cd ox_toolkit ; make distclean)
227: -(cd ox_math ; make distclean)
1.56 maekawa 228: rm -rf $(BINDIR)/d0 $(BINDIR)/k0 $(BINDIR)/ox $(BINDIR)/ox_sm1 \
1.53 maekawa 229: $(BINDIR)/oxlog $(BINDIR)/oxweave $(BINDIR)/sm1 \
230: $(LIBDIR)/k097 $(LIBDIR)/sm1 SSkan bin gc gmp
1.11 takayama 231:
1.111 takayama 232: configure: configure-links configure-include configure-bin configure-util \
233: configure-asir \
1.62 takayama 234: configure-gnuplot \
1.50 maekawa 235: configure-k097 configure-kan96xx configure-kxx configure-oxmath \
1.85 takayama 236: configure-pari configure-gmp
1.111 takayama 237:
238: configure-util: configure-directory
239: (cd util; make install)
1.97 takayama 240:
1.101 takayama 241: configure-include: configure-include-make-dir ../include/ox/cmotag.h ../include/ox/oxMessageTag.h ../include/ox/smCommand.h
242:
243: configure-include-make-dir:
1.97 takayama 244: @if test ! -d ../include ; \
245: then \
246: mkdir ../include ; \
247: fi
248: @if test ! -d ../include/ox ; \
249: then \
250: mkdir ../include/ox ; \
251: fi
1.101 takayama 252: ../include/ox/cmotag.h : ../doc/OpenXM-web/cmotag.h
253: cp ../doc/OpenXM-web/cmotag.h ../include/ox
254: ../include/ox/oxMessageTag.h : ../doc/OpenXM-web/oxMessageTag.h
255: cp ../doc/OpenXM-web/oxMessageTag.h ../include/ox
256: ../include/ox/smCommand.h : ../doc/OpenXM-web/smCommand.h
257: cp ../doc/OpenXM-web/smCommand.h ../include/ox
1.85 takayama 258:
259: configure-gmp: configure-links
260: @if test -f gmp/.gmp_configured ; \
261: then \
1.96 takayama 262: echo "MESSAGE: gmp is already configured. (.gmp_configured) " ; \
1.85 takayama 263: else \
1.96 takayama 264: (cd gmp ; ./configure --prefix=`pwd`/../../OpenXM; touch .gmp_configured) ; \
1.85 takayama 265: fi
1.37 maekawa 266:
1.116 ohara 267: configure-asir: configure-directory configure-util
1.81 takayama 268: @if test -d $(OPENXM_CONTRIB2) ; then \
269: (cd asir2000 ; make configure) ; \
270: else \
271: echo -n "Warning: Asir source is not found. " ; \
272: echo "asir will not be compiled." ; \
273: fi
1.41 maekawa 274:
1.45 maekawa 275: configure-bin:
1.108 takayama 276: (cd uuencoded ; make configure)
1.45 maekawa 277:
1.41 maekawa 278: configure-gnuplot:
1.100 takayama 279: -(cd gnuplot ; make configure)
1.48 maekawa 280:
1.120 takayama 281: configure-k097: configure-links configure-util
1.37 maekawa 282:
1.120 takayama 283: configure-kan96xx: configure-links configure-util
1.45 maekawa 284: (cd kan96xx ; make configure)
285:
1.112 takayama 286: configure-kxx: configure-util
1.77 takayama 287: ( cd kxx ; ./make-configure)
1.45 maekawa 288:
1.109 takayama 289: configure-links: configure-directory
1.101 takayama 290: -@if [ ! -f ./.configure-links-done ] ; then \
291: rm -f -r $(LIBDIR)/k097 $(LIBDIR)/sm1 SSkan bin gc gmp ; \
292: (cd $(LIBDIR) ; ln -f -s ../src/k097 k097) ; \
293: (cd $(LIBDIR) ; ln -f -s ../src/kan96xx/Doc sm1) ; \
294: ln -f -s kan96xx SSkan ; \
295: ln -f -s $(BINDIR) bin ; \
296: ln -f -s $(OPENXM_CONTRIB)/gc gc ; \
297: ln -f -s $(OPENXM_CONTRIB)/gmp gmp ; \
298: mkdir ${OpenXM_HOME}/libexec ; \
299: touch ./.configure-links-done ;\
1.109 takayama 300: fi
301:
302: configure-directory:
303: -@if [ ! -d ../bin ] ; then \
304: mkdir ../bin ; \
1.101 takayama 305: fi
1.87 ohara 306:
1.101 takayama 307: configure-oxtoolkit: configure-include
1.87 ohara 308: (cd ox_toolkit; ./make-configure)
1.98 ohara 309:
1.101 takayama 310: configure-oxc: configure-include
1.98 ohara 311: (cd oxc; ./make-configure)
1.45 maekawa 312:
1.114 ohara 313: configure-oxmath: configure-include configure-directory
1.80 ohara 314: (cd ox_math; ./make-configure)
1.37 maekawa 315:
316: configure-pari:
1.36 maekawa 317: (cd pari ; make configure)
1.78 takayama 318:
1.79 takayama 319: generate-source-distribution : generate-source-distribution-kxx \
320: generate-source-distribution-ox_toolkit
1.78 takayama 321:
322: generate-source-distribution-kxx :
1.95 takayama 323: (cd kxx ; rm -f .configure_done Makefile )
324:
1.79 takayama 325: generate-source-distribution-ox_toolkit :
326: (cd ox_toolkit ; rm -f Makefile ; autoconf)
1.67 takayama 327:
1.68 takayama 328: clean-rc :
329: (cd $(RCDIR) ; make clean )
1.69 takayama 330: all-Copyright :
331: (cd $(COPYRIGHTDIR) ; make copy-copyright )
1.68 takayama 332:
1.82 takayama 333: post-install-correction: install
1.92 takayama 334: # I think that we no longer need post-install-correction-for-asir
335: # post-install-corrections-other
336: (cd ../rc ; make install.man)
337:
338: post-install-correction-for-asir:
1.91 takayama 339: (cd ../bin ; rm -f asir ox_asir )
340: cp ../lib/asir/asir ../bin/asir
341: (cd ../bin ; ln -s ./asir ox_asir)
342: (cd ../lib/asir ; rm -f asir ; ln -s ../../bin/asir asir)
1.74 takayama 343: (cd ../lib/asir ; rm -f ox_asir ox_launch ox_plot help ; ln -s ./asir ox_asir ; ln -s ./asir ox_launch ; ln -s ./asir ox_plot ; ln -s ./help-eg help)
1.106 takayama 344: -(cd asir-doc ; make install-man-pages)
1.82 takayama 345:
1.93 takayama 346: install-all-asir-lib:
347: (cd asir2000 ; make install-lib-small)
348:
349: binary-dist : all-Copyright clean-rc all all-misc post-install-correction install-all-asir-lib
1.74 takayama 350:
1.103 takayama 351: ## Targets for debugging
352: install-for-debug:
353: (cd kan96xx; make install-for-debug)
354: (cd kxx; make install-for-debug)
355: (cd k097 ; make install-for-debug)
1.105 takayama 356: (cd ../bin ; rm -f asir ; ln -s ../../OpenXM_contrib2/asir2000/asir .)
1.103 takayama 357:
358:
1.102 takayama 359: ## Sub binary packages
1.105 takayama 360: ## 1: asir: asir only. target: all-asir install-asir install-asir-doc
1.62 takayama 361:
1.105 takayama 362: ## 2: kan-ox: k0 and sm1 with ox_asir. target: all-kan-ox install-kan-ox
363: configure-all-kan-ox : configure-links configure-include configure-asir \
1.102 takayama 364: configure-kan96xx configure-kxx configure-k097 \
365: configure-oxc
1.105 takayama 366: all-kan-ox: configure-all-kan-ox all-asir all-kan96xx all-kxx all-k097 all-oxc
367: install-kan-ox: all-kan-ox install-asir install-kan96xx install-kxx \
368: install-k097 install-oxc install-asir-doc \
369: post-install-kan-ox
370: post-install-kan-ox:
371: (cd ../bin ; /bin/rm -f ox_asir; ln -s ./asir ox_asir)
372:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>