Annotation of OpenXM/src/Makefile, Revision 1.189
1.189 ! ohara 1: ## $OpenXM: OpenXM/src/Makefile,v 1.188 2020/03/05 00:29:44 takayama Exp $
1.33 maekawa 2:
1.124 takayama 3: OpenXM_HOME=..
4: OpenXM_contrib2=../../OpenXM_contrib2
1.53 maekawa 5: LIBDIR=../lib
6: BINDIR=../bin
1.147 ohara 7: DOCDIR=../doc
1.68 takayama 8: RCDIR=../rc
1.170 takayama 9: SHAREDIR=../share
1.69 takayama 10: COPYRIGHTDIR=../Copyright
1.53 maekawa 11:
1.187 ohara 12: all: all-util all-gc all-asirgc all-gmp all-mpfr all-mpc all-mpfi all-asir all-asir2000 all-gnuplot all-k097 all-kan96xx \
1.155 takayama 13: all-kxx all-pari all-phc all-openmath all-oxmath all-tigers all-fep all-phcpack all-oxcdd \
1.164 noro 14: all-oxmgraph all-pcc all-oxpari
1.85 takayama 15:
1.189 ! ohara 16: all-editline: install-util
! 17: (cd editline; ${MAKE} all)
! 18:
1.133 takayama 19: all-gc: install-util
1.147 ohara 20: (cd gc; ${MAKE} all)
1.85 takayama 21:
1.187 ohara 22: all-asirgc: install-util
23: (cd asir-gc; ${MAKE} all)
24:
1.85 takayama 25: all-gmp: configure-gmp
1.147 ohara 26: (cd gmp; ${MAKE} all)
1.26 maekawa 27:
1.165 noro 28: all-mpfr: configure-mpfr
29: (cd mpfr; ${MAKE} all)
30:
1.166 noro 31: all-mpc: configure-mpc
32: (cd mpc; ${MAKE} all)
33:
1.186 kondoh 34: all-mpfi: configure-mpfi
35: (cd mpfi; ${MAKE} all)
36:
1.177 takayama 37: all-oxtoolkit: configure-oxtoolkit install-gmp install-mpfr install-mpc install-gc install-util install-oxtags
1.147 ohara 38: (cd ox_toolkit; ${MAKE} all)
1.87 ohara 39:
1.130 takayama 40: all-oxc: configure-oxc install-oxtoolkit
1.172 takayama 41: -(cd oxc; ${MAKE} all)
1.98 ohara 42:
1.189 ! ohara 43: all-asir: configure-asir install-pari install-editline install-asirgc install-gmp install-mpfr install-mpc install-mpfi
1.179 ohara 44: (cd asir2018; ${MAKE} all)
45:
1.186 kondoh 46: all-asir2000: configure-asir2000 install-pari install-gmp install-mpfr install-mpc install-mpfi
1.147 ohara 47: (cd asir2000; ${MAKE} all)
1.21 maekawa 48:
1.41 maekawa 49: all-gnuplot: configure-gnuplot
1.147 ohara 50: -(cd gnuplot; ${MAKE} all)
1.32 maekawa 51:
1.124 takayama 52: all-k097: configure-k097 all-kan96xx all-kxx install-oxtags
1.147 ohara 53: (cd k097; ${MAKE} all)
1.49 maekawa 54:
1.168 takayama 55: all-kan96xx: configure-kan96xx install-gc install-gmp install-util install-oxtags
1.147 ohara 56: (cd kan96xx; ${MAKE} all)
1.32 maekawa 57:
1.124 takayama 58: all-kxx: configure-kxx all-kan96xx install-util install-oxtags
1.147 ohara 59: (cd kxx; ${MAKE} all)
1.31 maekawa 60:
1.30 maekawa 61: all-openmath:
1.147 ohara 62: -@if ../misc/which.pl -s javac; then \
63: (cd OpenMath; ${MAKE} all); \
1.30 maekawa 64: else \
1.147 ohara 65: echo -n "Warning: javac (java compiler) is not found "; \
66: echo "in your search path. OpenMath will not be compiled."; \
1.30 maekawa 67: fi
68:
1.130 takayama 69: all-oxmath: configure-oxmath install-oxtoolkit install-gc
1.147 ohara 70: -@if test -d /usr/local/mathematica; then \
71: (cd ox_math; ${MAKE} all); \
1.27 maekawa 72: else \
1.147 ohara 73: echo -n "Warning: Mathematica is not found. "; \
74: echo "ox_math will not be compiled."; \
1.23 maekawa 75: fi
76:
1.37 maekawa 77: all-pari: configure-pari
1.178 ohara 78: (cd pari; ${MAKE} PERL_USE_UNSAFE_INC=1 all)
1.25 maekawa 79:
1.22 maekawa 80: all-phc:
1.147 ohara 81: (cd phc; ${MAKE} all)
1.22 maekawa 82:
1.150 ohara 83: all-phcpack:
1.151 ohara 84: -@if ../misc/which.pl -s gnatmake; then \
1.150 ohara 85: (cd phcpack; ${MAKE} all) ; \
86: fi
87:
1.22 maekawa 88: all-tigers:
1.147 ohara 89: (cd tigers; ${MAKE} all)
1.1 maekawa 90:
1.113 takayama 91: all-fep:
1.147 ohara 92: -(cd ${OpenXM_contrib2}/fep; ${MAKE} all)
1.113 takayama 93:
1.102 takayama 94:
1.147 ohara 95: all-misc: install-util
96: (cd ${RCDIR}; ${MAKE} repl)
97: (cd ../doc; ${MAKE} all-install all-spec)
1.67 takayama 98:
1.104 takayama 99: all-rc:
1.147 ohara 100: (cd ${RCDIR}; ${MAKE})
1.157 ohara 101:
102: all-util: all-util-bin all-util-lib
103:
104: all-util-bin: configure-util
105: (cd util; ${MAKE} all-bin)
106:
107: all-util-lib: configure-util
108: (cd util; ${MAKE} all-lib)
1.104 takayama 109:
1.152 noro 110: all-oxcdd: install-oxtoolkit
1.153 noro 111: -(cd ox_cdd; ${MAKE} all)
1.164 noro 112:
1.173 ohara 113: all-oxpari: configure-oxpari
1.164 noro 114: -(cd ox_pari; ${MAKE} all)
115:
1.155 takayama 116: all-oxmgraph: configure-oxmgraph
117: -(cd oxmgraph; ${MAKE} all)
1.161 takayama 118: all-pcc: configure-pcc
119: -(cd pcc; ${MAKE} all)
1.152 noro 120:
1.156 ohara 121: all-document-asir-contrib: configure-document-asir-contrib
122: (cd asir-contrib/packages/doc; ${MAKE} all)
123:
1.180 noro 124: install: install-oxtags install-util install-asir install-asir2000 install-gnuplot \
1.124 takayama 125: install-k097 install-kan96xx \
1.53 maekawa 126: install-kxx install-openmath install-oxmath install-pari \
1.83 takayama 127: install-phc install-tigers install-asir-doc install-asir-contrib \
1.155 takayama 128: install-misc install-fep install-phcpack install-oxcdd \
1.170 takayama 129: install-oxmgraph install-pcc install-oxpari \
130: install-asir-mode
1.52 maekawa 131:
1.124 takayama 132: install-oxtags:
1.147 ohara 133: (cd ../doc/OpenXM-web; ${MAKE} install-exec)
1.124 takayama 134:
1.157 ohara 135: install-util-bin: all-util-bin
136: (cd util; ${MAKE} install-bin)
137:
138: install-util-lib: all-util-lib
139: (cd util; ${MAKE} install-lib)
140:
141: install-util: install-util-bin install-util-lib
1.85 takayama 142:
1.189 ! ohara 143: install-editline: all-editline
! 144: (cd editline; ${MAKE} install)
! 145:
1.147 ohara 146: install-gc: all-gc
147: (cd gc; ${MAKE} install)
1.85 takayama 148:
1.187 ohara 149: install-asirgc: all-asirgc
150: (cd asir-gc; ${MAKE} install)
1.85 takayama 151:
1.147 ohara 152: install-gmp: all-gmp
153: (cd gmp; ${MAKE} install)
1.85 takayama 154:
1.165 noro 155: install-mpfr: all-mpfr
156: (cd mpfr; ${MAKE} install)
157:
1.166 noro 158: install-mpc: all-mpc
159: (cd mpc; ${MAKE} install)
160:
1.186 kondoh 161: install-mpfi: all-mpfi
162: (cd mpfi; ${MAKE} install)
163:
1.52 maekawa 164: install-asir: all-asir
1.179 ohara 165: -(cd asir2018; ${MAKE} install)
166:
167: install-asir2000: all-asir2000
1.172 takayama 168: -(cd asir2000; ${MAKE} install)
1.52 maekawa 169:
170: install-gnuplot: all-gnuplot
1.147 ohara 171: -(cd gnuplot; ${MAKE} install)
1.52 maekawa 172:
1.130 takayama 173: install-k097: install-kxx all-k097 install-oxc
1.147 ohara 174: (cd k097; ${MAKE} install)
1.37 maekawa 175:
1.47 maekawa 176: install-kan96xx: all-kan96xx
1.147 ohara 177: (cd kan96xx; ${MAKE} install)
1.47 maekawa 178:
1.52 maekawa 179: install-kxx: all-kxx
1.147 ohara 180: (cd kxx; ${MAKE} install)
1.52 maekawa 181:
1.53 maekawa 182: install-openmath: all-openmath
1.147 ohara 183: -@if ../misc/which.pl -s javac; then \
184: (cd OpenMath; ${MAKE} install); \
1.66 takayama 185: else \
1.147 ohara 186: echo -n "Warning: javac (java compiler) is not found "; \
187: echo "in your search path. OpenMath will not be installed."; \
1.66 takayama 188: fi
189:
1.87 ohara 190: install-oxtoolkit: all-oxtoolkit
1.147 ohara 191: (cd ox_toolkit; ${MAKE} install)
1.53 maekawa 192:
1.98 ohara 193: install-oxc: all-oxc
1.172 takayama 194: -(cd oxc; ${MAKE} install)
1.98 ohara 195:
1.124 takayama 196: install-oxmath: all-oxmath
1.147 ohara 197: -@if test -d /usr/local/mathematica; then \
198: (cd ox_math; ${MAKE} install); \
1.70 takayama 199: else \
1.147 ohara 200: echo -n "Warning: Mathematica is not found. "; \
201: echo "ox_math will not be installed."; \
1.70 takayama 202: fi
1.147 ohara 203: -(cd ox_math/documents; ${MAKE} install)
204: -(cd ox_math/lib; ${MAKE} install)
1.53 maekawa 205:
1.37 maekawa 206: install-pari: all-pari
1.147 ohara 207: (cd pari; ${MAKE} install)
1.51 maekawa 208:
209: install-phc: all-phc
1.147 ohara 210: (cd phc; ${MAKE} install)
1.51 maekawa 211:
1.150 ohara 212: install-phcpack: all-phcpack
1.151 ohara 213: -@if ../misc/which.pl gnatmake; then \
1.150 ohara 214: (cd phcpack; ${MAKE} install) ; \
215: fi
216:
1.51 maekawa 217: install-tigers: all-tigers
1.147 ohara 218: (cd tigers; ${MAKE} install)
1.37 maekawa 219:
1.147 ohara 220: install-asir-contrib: configure-asir-contrib install-asir install-util \
1.127 takayama 221: install-asir-contrib-oxservers
1.147 ohara 222: (cd asir-contrib; ${MAKE} install)
223:
1.127 takayama 224: install-asir-contrib-oxservers: install-asir install-util \
225: install-k097 install-kxx install-openmath install-oxmath \
1.150 ohara 226: install-phc install-tigers install-gnuplot
1.127 takayama 227:
1.145 ohara 228: install-asir-doc: configure-asir-doc
1.147 ohara 229: -(cd asir-doc; ${MAKE} install)
1.83 takayama 230:
231: install-misc:
1.147 ohara 232: (cd ${RCDIR}; ${MAKE} install-man)
1.59 takayama 233:
1.113 takayama 234: install-fep: all-fep
1.147 ohara 235: -(cd ${OpenXM_contrib2}/fep; ${MAKE} PREFIX=../../OpenXM install)
1.113 takayama 236:
1.104 takayama 237: install-rc: all-rc
1.147 ohara 238: (cd ${RCDIR}; ${MAKE} install)
1.104 takayama 239:
1.134 takayama 240: install-asir-port:
1.147 ohara 241: (cd asir-port; ${MAKE} install)
1.124 takayama 242:
1.152 noro 243: install-oxcdd: all-oxcdd
1.153 noro 244: -(cd ox_cdd; ${MAKE} install)
1.152 noro 245:
1.164 noro 246: install-oxpari: all-oxpari
247: -(cd ox_pari; ${MAKE} install)
248:
1.155 takayama 249: install-oxmgraph: all-oxmgraph
250: -(cd oxmgraph; ${MAKE} install)
251:
1.161 takayama 252: install-pcc: all-pcc
253: -(cd pcc; ${MAKE} install)
1.160 takayama 254:
1.170 takayama 255: install-asir-mode:
256: -(cd asir-mode; ${MAKE} install)
257:
1.29 maekawa 258: clean:
1.101 takayama 259: -rm ./.configure-links-done
1.187 ohara 260: -@for i in OpenMath asir-contrib asir-doc asir2000 asir2018 asir-gc gc gmp gnuplot \
1.150 ohara 261: k097 kan96xx kxx ox_math ox_toolkit oxc pari phc phcpack tigers \
1.186 kondoh 262: oxmgraph pcc mpfr mpfi ox_cdd ox_pari \
1.147 ohara 263: util ${OpenXM_contrib2}/fep ; do \
1.148 ohara 264: (cd $$i; ${MAKE} clean); \
1.147 ohara 265: done
1.11 takayama 266:
1.39 maekawa 267: distclean: clean
1.187 ohara 268: -@for i in OpenMath asir2000 asir2018 asir-gc gc gmp gnuplot kan96xx kxx ox_math \
1.162 takayama 269: ox_toolkit oxc pari phc phcpack tigers oxmgraph pcc \
1.186 kondoh 270: asir-doc k097 ox_cdd util mpc mpfr mpfi ox_pari ; do \
1.148 ohara 271: (cd $$i; ${MAKE} distclean); \
1.147 ohara 272: done
273: -(cd ${BINDIR} && rm -f d0 k0 ox ox_sm1 oxlog oxweave sm1)
274: -(cd ${LIBDIR} && rm -rf k097 sm1)
1.11 takayama 275:
1.138 takayama 276: configure: configure-util configure-asir \
1.62 takayama 277: configure-gnuplot \
1.50 maekawa 278: configure-k097 configure-kan96xx configure-kxx configure-oxmath \
1.155 takayama 279: configure-pari configure-gmp configure-asir-doc configure-asir-contrib \
1.161 takayama 280: configure-oxmgraph configure-pcc
1.174 takayama 281: configure-static: configure
282: make configure-asir-static
283: make configure-oxpari-static
1.175 takayama 284: make configure-oxc-static
1.138 takayama 285:
286: configure-util:
287: (cd util; ./make-configure)
1.111 takayama 288:
1.137 takayama 289: configure-gmp: install-util
1.147 ohara 290: (cd gmp; ${MAKE} configure)
1.101 takayama 291:
1.168 takayama 292: configure-mpfr: install-util install-gmp
1.165 noro 293: (cd mpfr; ${MAKE} configure)
294:
1.167 takayama 295: configure-mpc: install-util install-gmp install-mpfr
1.166 noro 296: (cd mpc; ${MAKE} configure)
297:
1.186 kondoh 298: configure-mpfi: install-util install-gmp install-mpfr
299: (cd mpfi; ${MAKE} configure)
300:
1.149 takayama 301: configure-asir: install-util
1.179 ohara 302: (cd asir2018; ${MAKE} configure)
303:
304: configure-asir2000: install-util
1.147 ohara 305: (cd asir2000; ${MAKE} configure)
1.179 ohara 306:
1.174 takayama 307: configure-asir-static: install-util
1.179 ohara 308: (cd asir2018; rm -f .configure_done; ${MAKE} configure-static)
1.143 takayama 309:
310: configure-asir-contrib:
1.147 ohara 311: -(cd asir-contrib; ./make-configure)
1.142 takayama 312:
313: configure-asir-doc:
1.147 ohara 314: -(cd asir-doc; ./make-configure)
1.45 maekawa 315:
1.41 maekawa 316: configure-gnuplot:
1.147 ohara 317: -(cd gnuplot; ${MAKE} configure)
1.48 maekawa 318:
1.124 takayama 319: configure-k097:
1.147 ohara 320: (cd k097; ./make-configure)
1.37 maekawa 321:
1.124 takayama 322: configure-kan96xx:
1.147 ohara 323: (cd kan96xx; ./make-configure)
1.45 maekawa 324:
1.124 takayama 325: configure-kxx:
1.147 ohara 326: (cd kxx; ./make-configure)
1.45 maekawa 327:
1.124 takayama 328: configure-oxtoolkit:
1.87 ohara 329: (cd ox_toolkit; ./make-configure)
1.98 ohara 330:
1.173 ohara 331: configure-oxpari: install-oxtoolkit install-pari
332: (cd ox_pari; ./make-configure)
1.174 takayama 333: configure-oxpari-static: install-oxtoolkit install-pari
334: (cd ox_pari; rm -f .configure_done ; ./make-configure --disable-shared)
1.173 ohara 335:
1.124 takayama 336: configure-oxc:
1.98 ohara 337: (cd oxc; ./make-configure)
1.175 takayama 338: configure-oxc-static:
339: (cd oxc; rm -f .configure_done ; ./make-configure --disable-shared)
1.45 maekawa 340:
1.124 takayama 341: configure-oxmath:
1.147 ohara 342: -@if test -d /usr/local/mathematica; then \
343: (cd ox_math; ./make-configure); \
1.129 ohara 344: else \
1.147 ohara 345: echo -n "Warning: Mathematica is not found. "; \
346: echo "ox_math will not be compiled."; \
1.129 ohara 347: fi
1.37 maekawa 348:
1.146 ohara 349: configure-pari: install-util
1.147 ohara 350: (cd pari; ${MAKE} configure)
1.78 takayama 351:
1.155 takayama 352: configure-oxmgraph:
353: -(cd oxmgraph; ./make-configure)
354:
1.161 takayama 355: configure-pcc:
356: -(cd pcc; ${MAKE} configure)
1.160 takayama 357:
1.157 ohara 358: configure-document-asir-contrib: install-util-bin install-asir-doc
1.156 ohara 359: (cd asir-contrib/packages/doc; ./make-configure)
360:
1.147 ohara 361: clean-rc:
362: (cd $(RCDIR); ${MAKE} clean)
1.67 takayama 363:
1.147 ohara 364: all-Copyright:
365: (cd $(COPYRIGHTDIR); ${MAKE} all)
1.68 takayama 366:
1.135 takayama 367: install-document: install-document-kan96xx install-document-asir-contrib
368:
369: install-document-kan96xx: install-kan96xx
1.147 ohara 370: (cd kan96xx; ${MAKE} install-document)
371:
1.156 ohara 372: install-document-asir-contrib: all-document-asir-contrib
1.159 takayama 373: (cd asir-contrib/packages/doc; ${MAKE} install ; ${MAKE} install-document)
1.103 takayama 374: ## Targets for debugging
375: install-for-debug:
1.147 ohara 376: (cd kan96xx; ${MAKE} install-for-debug)
377: (cd kxx; ${MAKE} install-for-debug)
378: (cd k097; ${MAKE} install-for-debug)
1.188 takayama 379: (cd ${BINDIR}; rm -f asir; ln -s ../../OpenXM_contrib2/asir2018/.libs/asir .)
1.176 takayama 380: (cd ${BINDIR}; rm -f ox_pari; ln -s ../../OpenXM/src/ox_pari/ox_pari .)
1.148 ohara 381:
382: fetch:
383: -@for i in gc gmp gnuplot pari tigers; do \
384: (cd $$i && ${MAKE} fetch); \
385: done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>