Annotation of rpl/rplcas/Makefile.in, revision 1.30
1.1 bertrand 1: srcdir=@srcdir@
2: top_builddir=@abs_top_builddir@
1.12 bertrand 3: CFLAGS=@CFLAGS@
4: CXXFLAGS=@CXXFLAGS@
5: LDFLAGS=@LDFLAGS@
1.25 bertrand 6: OBJEXT=@OBJEXT@
1.12 bertrand 7:
1.3 bertrand 8: .PHONY: configure clean
9:
1.7 bertrand 10: all: lib/librplcas.a
1.2 bertrand 11:
1.25 bertrand 12: lib/@LIB_PREFIX@gmp.a:
1.1 bertrand 13: if [ ! -d @GMP@ ]; then \
14: mkdir @GMP@; \
15: fi
16: if [ ! -f @GMP@/config.log ]; then \
1.12 bertrand 17: (cd @GMP@ && \
1.13 bertrand 18: CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
1.10 bertrand 19: ../$(srcdir)/@GMP@/configure --with-readline=no \
1.28 bertrand 20: --host=@HOST@ \
1.4 bertrand 21: --disable-shared --enable-static \
22: --prefix=$(top_builddir)/rplcas); \
1.1 bertrand 23: fi
1.16 bertrand 24: $(MAKE) -C @GMP@ $(AM_MAKEFLAGS) all && \
25: $(MAKE) -C $(AM_MAKEFLAGS) @GMP@ install
1.3 bertrand 26:
1.25 bertrand 27: lib/@LIB_PREFIX@mpfr.a: lib/@LIB_PREFIX@gmp.a
1.2 bertrand 28: if [ ! -d @MPFR@ ]; then \
29: mkdir @MPFR@ ; \
30: fi
1.1 bertrand 31: if [ ! -f @MPFR@/config.log ]; then \
1.28 bertrand 32: if [ @BUILD@ = @HOST@ ]; then \
33: (cd @MPFR@ && \
34: CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
35: ../$(srcdir)/@MPFR@/configure \
36: --with-gmp=$(top_builddir)/rplcas \
37: --disable-shared --enable-static \
38: --prefix=$(top_builddir)/rplcas); \
39: else \
40: (cd @MPFR@ && \
41: CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
42: ../$(srcdir)/@MPFR@/configure \
43: --host=@HOST@ \
44: --with-gmp=$(top_builddir)/rplcas \
45: --disable-shared --enable-static \
46: --prefix=$(top_builddir)/rplcas); \
47: fi; \
1.1 bertrand 48: fi
1.16 bertrand 49: $(MAKE) -C @MPFR@ $(AM_MAKEFLAGS) all && \
50: $(MAKE) -C @MPFR@ $(AM_MAKEFLAGS) install
1.3 bertrand 51:
1.18 bertrand 52: lib/ntl.a:
1.28 bertrand 53: if [ @BUILD@ = @HOST@ ]; then \
54: (cd @NTL@/src && ./configure GMP_PREFIX=$(top_builddir)/rplcas \
55: SHARED=off CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)"); \
56: else \
57: (cd @NTL@/src && ./configure GMP_PREFIX=$(top_builddir)/rplcas \
58: SHARED=off CC=@HOST@-gcc CXX=@HOST@-g++ \
59: CFLAGS="$(CFLAGS)" CXXFLAGS="@SYSROOT@ $(CXXFLAGS)" \
60: LDFLAGS="-L@SYSROOT2@/usr/lib"); \
61: fi
1.30 ! bertrand 62: (cd @NTL@/src && \
! 63: if [ -z $(make -v | grep "^GNU Make") ]; then \
! 64: sed 's/make /gmake /g' makefile > makefile2 && \
! 65: \mv -f makefile2 makefile && \
! 66: sed 's/make /gmake /g' WizardAux > WizardAux2 && \
! 67: \mv -f WizardAux2 WizardAux;
! 68: fi && \
! 69: $(MAKE) $(AM_MAKEFLAGS) -f makefile)
1.4 bertrand 70: cp @NTL@/src/ntl.a lib/ntl.a
71: cp @NTL@/src/ntl.a lib/ntl.a
72: cp -R @NTL@/include/NTL include
1.3 bertrand 73:
1.25 bertrand 74: lib/libcocoa.a: lib/@LIB_PREFIX@gmp.a
1.2 bertrand 75: if [ ! -f @COCOA@/configuration/autoconf.mk ]; then \
1.28 bertrand 76: if [ @BUILD@ = @HOST@ ]; then \
77: (cd @COCOA@ && CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
78: ./configure --with-libgmp=../lib/libgmp.a \
79: --with-libgsl=../../tools/@GSL@/.libs/libgsl.a); \
80: else \
81: (cd @COCOA@ && CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
82: ./configure --with-libgmp=../lib/libgmp.a \
83: --with-cxx=@HOST@-g++ \
84: --with-cxxflags="@SYSROOT@ $(CXXFLAGS)" \
85: --with-libgsl=../../tools/@GSL@/.libs/libgsl.a); \
86: fi; \
1.2 bertrand 87: fi
1.16 bertrand 88: $(MAKE) -C @COCOA@ $(AM_MAKEFLAGS) library
1.4 bertrand 89: cp @COCOA@/lib/libcocoa.a lib/libcocoa.a
90: cp -R @COCOA@/include/CoCoA include
1.3 bertrand 91:
1.25 bertrand 92: lib/libpari.a: lib/@LIB_PREFIX@gmp.a
1.4 bertrand 93: if [ ! -f @PARI@/configured ]; then \
1.28 bertrand 94: if [ @BUILD@ = @HOST@ ]; then \
95: (cd @PARI@ && CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
96: LDFLAGS="$(LDFLAGS)" \
97: ./Configure --prefix=$(top_builddir)/rplcas \
98: --with-gmp=../lib/libgmp.a \
99: --without-readline --graphic=none -s); \
100: else \
101: (cd @PARI@ && CC=@HOST@-gcc LD=@HOST@-ld \
102: CFLAGS="@SYSROOT@ $(CFLAGS)" \
103: CXXFLAGS="$(CXXFLAGS)" \
104: LDFLAGS="-L@SYSROOT2@/usr/lib $(LDFLAGS)" \
105: ./Configure --prefix=$(top_builddir)/rplcas \
106: --with-gmp=../lib/libgmp.a \
107: --without-readline --graphic=none -s); \
108: fi; \
1.4 bertrand 109: touch @PARI@/configured; \
110: fi
1.28 bertrand 111: $(MAKE) -C @PARI@ $(AM_MAKEFLAGS) gp && \
1.16 bertrand 112: $(MAKE) -C @PARI@ $(AM_MAKEFLAGS) install
1.4 bertrand 113:
1.25 bertrand 114: lib/@LIB_PREFIX@giac.a: lib/@LIB_PREFIX@gmp.a lib/@LIB_PREFIX@mpfr.a lib/ntl.a \
1.4 bertrand 115: lib/libcocoa.a lib/libpari.a
116: if [ ! -d @GIAC@ ]; then \
117: mkdir @GIAC@ ; \
118: fi
1.18 bertrand 119: if [ ! -f @GIAC@/Makefile2 ]; then \
1.28 bertrand 120: if [ @BUILD@ = @HOST@ ]; then \
121: (cd @GIAC@ && \
122: CPPFLAGS="-I$(top_builddir)/rplcas/include -I$(top_builddir)/tools/@GSL@ $(CPPFLAGS)" \
1.29 bertrand 123: CXXFLAGS="$(CXXFLAGS) -fpermissive" \
1.28 bertrand 124: LDFLAGS="-L$(top_builddir)/rplcas/lib $(LDFLAGS)" \
125: ../$(srcdir)/@GIAC@/configure --prefix=$(top_builddir)/rplcas \
126: --enable-pari=$(top_builddir)/rplcas \
127: --enable-ntl=$(top_builddir)/rplcas \
128: --enable-cocoa=$(top_builddir)/rplcas \
129: --enable-gsl=$(top_builddir)/tools/@GSL@/.libs/libgsl.a \
130: --disable-shared --enable-static \
131: --disable-gui --without-x && \
132: sed 's/SUBDIRS = src check intl po debianold debian doc examples/SUBDIRS = src check intl po debianold debian/g' Makefile \
133: > Makefile2); \
134: else \
135: (cd @GIAC@ && \
136: CPPFLAGS="-I$(top_builddir)/rplcas/include -I$(top_builddir)/tools/@GSL@ @SYSROOT@ $(CPPFLAGS)" \
1.29 bertrand 137: CXXFLAGS="$(CXXFLAGS) -fpermissive" \
1.28 bertrand 138: LDFLAGS="-L$(top_builddir)/rplcas/lib -L@SYSROOT2@/usr/lib $(LDFLAGS)" \
139: ../$(srcdir)/@GIAC@/configure --prefix=$(top_builddir)/rplcas \
140: --host=@HOST@ \
141: --enable-pari=$(top_builddir)/rplcas \
142: --enable-ntl=$(top_builddir)/rplcas \
143: --enable-cocoa=$(top_builddir)/rplcas \
144: --enable-gsl=$(top_builddir)/tools/@GSL@/.libs/libgsl.a \
145: --disable-shared --enable-static \
146: --disable-gui --without-x && \
147: sed 's/SUBDIRS = src check intl po debianold debian doc examples/SUBDIRS = src check intl po debianold debian/g' Makefile \
148: > Makefile2); \
149: fi; \
1.7 bertrand 150: (cd @GIAC@/src && \
151: mv -f config.h config.h.orig && \
152: sed -e 's/#define HAVE_LIBPNG 1//' config.h.orig | \
1.8 bertrand 153: sed -e 's/#define HAVE_PNG_H 1//' > config.h && \
1.28 bertrand 154: rm -f config.h.orig); \
1.5 bertrand 155: fi
1.16 bertrand 156: $(MAKE) -C @GIAC@ $(AM_MAKEFLAGS) -f Makefile2
1.23 bertrand 157: if [ x$(srcdir) != x. ]; then \
158: for i in mkinstalldirs xcas.xpm xcas.desktop xcas.applications; \
159: do cp $(srcdir)/@GIAC@/$$i @GIAC@/$$i; done; \
160: fi
1.16 bertrand 161: $(MAKE) -C @GIAC@ $(AM_MAKEFLAGS) install -f Makefile2
1.1 bertrand 162:
1.25 bertrand 163: lib/librplcas.a: lib/@LIB_PREFIX@giac.a lib/@LIB_PREFIX@gmp.a \
164: lib/@LIB_PREFIX@mpfr.a lib/ntl.a lib/libcocoa.a lib/libpari.a
1.7 bertrand 165: if [ ! -d tmp ]; then mkdir tmp; fi
1.26 bertrand 166: @(cd tmp && n=0 && \
1.25 bertrand 167: rm -f * && \
168: echo Building standalone librplcas.a; \
169: for i in ../lib/@LIB_PREFIX@gmp.a \
170: ../lib/@LIB_PREFIX@mpfr.a \
171: ../lib/libcocoa.a \
172: ../lib/libpari.a \
173: ../lib/ntl.a \
174: ../lib/@LIB_PREFIX@giac.a; \
175: do echo Extracting $$i; ar x $$i; \
176: for j in `ar t $$i`; \
177: do cp -f $$j $$n-$$j; \
178: rm -f $$j; \
179: done; \
180: n=`expr $$n + 1`; \
181: done; \
182: L="start"; \
183: while test -n "$$L"; \
184: do \
185: echo -n "Remaining files "; \
186: find . -name "*.$(OBJEXT)" | wc -l; \
187: L=""; j=0; \
188: for i in `find . -name "*.$(OBJEXT)"`; \
189: do \
190: k=`echo $$i | wc -c`; \
191: j=`expr $$j + $$k + 1`; \
192: if test $$j -le 8000; then \
193: L="$$L $$i"; \
194: else \
195: break; \
196: fi; \
197: done; \
198: if test -n "$$L"; then \
199: echo -n "Adding files to librplcas.a archive... "; \
200: ar cru ../lib/librplcas.a $$L; \
201: rm -f $$L; \
202: echo "done"; \
203: fi; \
204: done; \
205: echo Archive created; \
206: ar s ../lib/librplcas.a; \
207: if [ @OS@ != OS2 -a @OS@ != Darwin ]; then \
208: echo Stripping librplcas.a && strip -d ../lib/librplcas.a; \
209: fi;)
210: rmdir tmp
1.7 bertrand 211:
1.14 bertrand 212: install:
1.1 bertrand 213:
1.24 bertrand 214: uninstall:
215:
1.3 bertrand 216: clean:
1.8 bertrand 217: \rm -f $(top_builddir)/rplcas/lib/lib*
1.2 bertrand 218:
219: distdir:
CVSweb interface <joel.bertrand@systella.fr>