Annotation of rpl/rplcas/Makefile.in, revision 1.31
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.31 ! bertrand 75: sed '1,1/^#!\/bin\/bash/@BASH@/g' @COCOA@/configure > @COCOA@/configure2
! 76: mv -f @COCOA@/configure2 @COCOA@/configure
! 77: chmod 755 @COCOA@/configure
1.2 bertrand 78: if [ ! -f @COCOA@/configuration/autoconf.mk ]; then \
1.28 bertrand 79: if [ @BUILD@ = @HOST@ ]; then \
80: (cd @COCOA@ && CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
81: ./configure --with-libgmp=../lib/libgmp.a \
82: --with-libgsl=../../tools/@GSL@/.libs/libgsl.a); \
83: else \
84: (cd @COCOA@ && CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
85: ./configure --with-libgmp=../lib/libgmp.a \
86: --with-cxx=@HOST@-g++ \
87: --with-cxxflags="@SYSROOT@ $(CXXFLAGS)" \
88: --with-libgsl=../../tools/@GSL@/.libs/libgsl.a); \
89: fi; \
1.2 bertrand 90: fi
1.31 ! bertrand 91: sed 's/^SHELL=/bin/bash/SHELL=@BASH@/g' @COCOA@/configuration/autoconf.mk \
! 92: > @COCOA@/configuration/autoconf.mk2
! 93: mv -f @COCOA@/configuration/autoconf.mk2 @COCOA@/configuration/autoconf.mk
1.16 bertrand 94: $(MAKE) -C @COCOA@ $(AM_MAKEFLAGS) library
1.4 bertrand 95: cp @COCOA@/lib/libcocoa.a lib/libcocoa.a
96: cp -R @COCOA@/include/CoCoA include
1.3 bertrand 97:
1.25 bertrand 98: lib/libpari.a: lib/@LIB_PREFIX@gmp.a
1.4 bertrand 99: if [ ! -f @PARI@/configured ]; then \
1.28 bertrand 100: if [ @BUILD@ = @HOST@ ]; then \
101: (cd @PARI@ && CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
102: LDFLAGS="$(LDFLAGS)" \
103: ./Configure --prefix=$(top_builddir)/rplcas \
104: --with-gmp=../lib/libgmp.a \
105: --without-readline --graphic=none -s); \
106: else \
107: (cd @PARI@ && CC=@HOST@-gcc LD=@HOST@-ld \
108: CFLAGS="@SYSROOT@ $(CFLAGS)" \
109: CXXFLAGS="$(CXXFLAGS)" \
110: LDFLAGS="-L@SYSROOT2@/usr/lib $(LDFLAGS)" \
111: ./Configure --prefix=$(top_builddir)/rplcas \
112: --with-gmp=../lib/libgmp.a \
113: --without-readline --graphic=none -s); \
114: fi; \
1.4 bertrand 115: touch @PARI@/configured; \
116: fi
1.28 bertrand 117: $(MAKE) -C @PARI@ $(AM_MAKEFLAGS) gp && \
1.16 bertrand 118: $(MAKE) -C @PARI@ $(AM_MAKEFLAGS) install
1.4 bertrand 119:
1.25 bertrand 120: lib/@LIB_PREFIX@giac.a: lib/@LIB_PREFIX@gmp.a lib/@LIB_PREFIX@mpfr.a lib/ntl.a \
1.4 bertrand 121: lib/libcocoa.a lib/libpari.a
122: if [ ! -d @GIAC@ ]; then \
123: mkdir @GIAC@ ; \
124: fi
1.18 bertrand 125: if [ ! -f @GIAC@/Makefile2 ]; then \
1.28 bertrand 126: if [ @BUILD@ = @HOST@ ]; then \
127: (cd @GIAC@ && \
128: CPPFLAGS="-I$(top_builddir)/rplcas/include -I$(top_builddir)/tools/@GSL@ $(CPPFLAGS)" \
1.29 bertrand 129: CXXFLAGS="$(CXXFLAGS) -fpermissive" \
1.28 bertrand 130: LDFLAGS="-L$(top_builddir)/rplcas/lib $(LDFLAGS)" \
131: ../$(srcdir)/@GIAC@/configure --prefix=$(top_builddir)/rplcas \
132: --enable-pari=$(top_builddir)/rplcas \
133: --enable-ntl=$(top_builddir)/rplcas \
134: --enable-cocoa=$(top_builddir)/rplcas \
135: --enable-gsl=$(top_builddir)/tools/@GSL@/.libs/libgsl.a \
136: --disable-shared --enable-static \
137: --disable-gui --without-x && \
138: sed 's/SUBDIRS = src check intl po debianold debian doc examples/SUBDIRS = src check intl po debianold debian/g' Makefile \
139: > Makefile2); \
140: else \
141: (cd @GIAC@ && \
142: CPPFLAGS="-I$(top_builddir)/rplcas/include -I$(top_builddir)/tools/@GSL@ @SYSROOT@ $(CPPFLAGS)" \
1.29 bertrand 143: CXXFLAGS="$(CXXFLAGS) -fpermissive" \
1.28 bertrand 144: LDFLAGS="-L$(top_builddir)/rplcas/lib -L@SYSROOT2@/usr/lib $(LDFLAGS)" \
145: ../$(srcdir)/@GIAC@/configure --prefix=$(top_builddir)/rplcas \
146: --host=@HOST@ \
147: --enable-pari=$(top_builddir)/rplcas \
148: --enable-ntl=$(top_builddir)/rplcas \
149: --enable-cocoa=$(top_builddir)/rplcas \
150: --enable-gsl=$(top_builddir)/tools/@GSL@/.libs/libgsl.a \
151: --disable-shared --enable-static \
152: --disable-gui --without-x && \
153: sed 's/SUBDIRS = src check intl po debianold debian doc examples/SUBDIRS = src check intl po debianold debian/g' Makefile \
154: > Makefile2); \
155: fi; \
1.7 bertrand 156: (cd @GIAC@/src && \
157: mv -f config.h config.h.orig && \
158: sed -e 's/#define HAVE_LIBPNG 1//' config.h.orig | \
1.8 bertrand 159: sed -e 's/#define HAVE_PNG_H 1//' > config.h && \
1.28 bertrand 160: rm -f config.h.orig); \
1.5 bertrand 161: fi
1.16 bertrand 162: $(MAKE) -C @GIAC@ $(AM_MAKEFLAGS) -f Makefile2
1.23 bertrand 163: if [ x$(srcdir) != x. ]; then \
164: for i in mkinstalldirs xcas.xpm xcas.desktop xcas.applications; \
165: do cp $(srcdir)/@GIAC@/$$i @GIAC@/$$i; done; \
166: fi
1.16 bertrand 167: $(MAKE) -C @GIAC@ $(AM_MAKEFLAGS) install -f Makefile2
1.1 bertrand 168:
1.25 bertrand 169: lib/librplcas.a: lib/@LIB_PREFIX@giac.a lib/@LIB_PREFIX@gmp.a \
170: lib/@LIB_PREFIX@mpfr.a lib/ntl.a lib/libcocoa.a lib/libpari.a
1.7 bertrand 171: if [ ! -d tmp ]; then mkdir tmp; fi
1.26 bertrand 172: @(cd tmp && n=0 && \
1.25 bertrand 173: rm -f * && \
174: echo Building standalone librplcas.a; \
175: for i in ../lib/@LIB_PREFIX@gmp.a \
176: ../lib/@LIB_PREFIX@mpfr.a \
177: ../lib/libcocoa.a \
178: ../lib/libpari.a \
179: ../lib/ntl.a \
180: ../lib/@LIB_PREFIX@giac.a; \
181: do echo Extracting $$i; ar x $$i; \
182: for j in `ar t $$i`; \
183: do cp -f $$j $$n-$$j; \
184: rm -f $$j; \
185: done; \
186: n=`expr $$n + 1`; \
187: done; \
188: L="start"; \
189: while test -n "$$L"; \
190: do \
191: echo -n "Remaining files "; \
192: find . -name "*.$(OBJEXT)" | wc -l; \
193: L=""; j=0; \
194: for i in `find . -name "*.$(OBJEXT)"`; \
195: do \
196: k=`echo $$i | wc -c`; \
197: j=`expr $$j + $$k + 1`; \
198: if test $$j -le 8000; then \
199: L="$$L $$i"; \
200: else \
201: break; \
202: fi; \
203: done; \
204: if test -n "$$L"; then \
205: echo -n "Adding files to librplcas.a archive... "; \
206: ar cru ../lib/librplcas.a $$L; \
207: rm -f $$L; \
208: echo "done"; \
209: fi; \
210: done; \
211: echo Archive created; \
212: ar s ../lib/librplcas.a; \
213: if [ @OS@ != OS2 -a @OS@ != Darwin ]; then \
214: echo Stripping librplcas.a && strip -d ../lib/librplcas.a; \
215: fi;)
216: rmdir tmp
1.7 bertrand 217:
1.14 bertrand 218: install:
1.1 bertrand 219:
1.24 bertrand 220: uninstall:
221:
1.3 bertrand 222: clean:
1.8 bertrand 223: \rm -f $(top_builddir)/rplcas/lib/lib*
1.2 bertrand 224:
225: distdir:
CVSweb interface <joel.bertrand@systella.fr>