Annotation of rpl/rplcas/Makefile.in, revision 1.12
1.1 bertrand 1: srcdir=@srcdir@
2: top_builddir=@abs_top_builddir@
1.12 ! bertrand 3: CFLAGS=@CFLAGS@
! 4: CXXFLAGS=@CXXFLAGS@
! 5: LDFLAGS=@LDFLAGS@
! 6:
1.3 bertrand 7: .PHONY: configure clean
8:
1.7 bertrand 9: all: lib/librplcas.a
1.2 bertrand 10:
1.4 bertrand 11: lib/libgmp.a:
1.1 bertrand 12: if [ ! -d @GMP@ ]; then \
13: mkdir @GMP@; \
14: fi
15: if [ ! -f @GMP@/config.log ]; then \
1.12 ! bertrand 16: (cd @GMP@ && \
1.10 bertrand 17: ../$(srcdir)/@GMP@/configure --with-readline=no \
1.4 bertrand 18: --disable-shared --enable-static \
19: --prefix=$(top_builddir)/rplcas); \
1.1 bertrand 20: fi
1.5 bertrand 21: make -C @GMP@ $(AM_MAKEFLAGS) all && make -C $(AM_MAKEFLAGS) @GMP@ install
1.3 bertrand 22:
1.4 bertrand 23: lib/libmpfr.a: lib/libgmp.a
1.2 bertrand 24: if [ ! -d @MPFR@ ]; then \
25: mkdir @MPFR@ ; \
26: fi
1.1 bertrand 27: if [ ! -f @MPFR@/config.log ]; then \
1.12 ! bertrand 28: (cd @MPFR@ && ../$(srcdir)/@MPFR@/configure \
1.4 bertrand 29: --with-gmp=$(top_builddir)/rplcas \
30: --disable-shared --enable-static \
31: --prefix=$(top_builddir)/rplcas); \
1.1 bertrand 32: fi
1.5 bertrand 33: make -C @MPFR@ $(AM_MAKEFLAGS) all && make -C @MPFR@ $(AM_MAKEFLAGS) install
1.3 bertrand 34:
1.4 bertrand 35: lib/ntl.a:
1.5 bertrand 36: make -C @NTL@/src $(AM_MAKEFLAGS)
1.4 bertrand 37: cp @NTL@/src/ntl.a lib/ntl.a
38: cp @NTL@/src/ntl.a lib/ntl.a
39: cp -R @NTL@/include/NTL include
1.3 bertrand 40:
1.4 bertrand 41: lib/libcocoa.a: lib/libgmp.a
1.2 bertrand 42: if [ ! -f @COCOA@/configuration/autoconf.mk ]; then \
1.4 bertrand 43: (cd @COCOA@ && ./configure --with-libgmp=../lib/libgmp.a \
44: --with-libgsl=../../tools/@GSL@/.libs/libgsl.a); \
1.2 bertrand 45: fi
1.5 bertrand 46: make -C @COCOA@ $(AM_MAKEFLAGS) library
1.4 bertrand 47: cp @COCOA@/lib/libcocoa.a lib/libcocoa.a
48: cp -R @COCOA@/include/CoCoA include
1.3 bertrand 49:
1.4 bertrand 50: lib/libpari.a: lib/libgmp.a
51: if [ ! -f @PARI@/configured ]; then \
52: (cd @PARI@ && ./Configure --prefix=$(top_builddir)/rplcas \
53: --with-gmp=../lib/libgmp.a \
54: --without-readline --graphic=none -s); \
55: touch @PARI@/configured; \
56: fi
1.5 bertrand 57: make -C @PARI@ $(AM_MAKEFLAGS) gp && make -C @PARI@ $(AM_MAKEFLAGS) install
1.4 bertrand 58:
59: lib/libgiac.a: lib/libgmp.a lib/libmpfr.a lib/ntl.a \
60: lib/libcocoa.a lib/libpari.a
61: if [ ! -d @GIAC@ ]; then \
62: mkdir @GIAC@ ; \
63: fi
64: if [ ! -f @GIAC@/config.log ]; then \
1.5 bertrand 65: (cd @GIAC@ && \
66: CPPFLAGS="-I$(top_builddir)/rplcas/lib/include $(CPPFLAGS)" \
67: LDFLAGS="-L$(top_builddir)/rplcas/lib $(LDFLAGS)" \
1.4 bertrand 68: ../$(srcdir)/@GIAC@/configure --prefix=$(top_builddir)/rplcas \
69: --enable-pari=$(top_builddir)/rplcas \
70: --enable-ntl=$(top_builddir)/rplcas \
71: --enable-cocoa=$(top_builddir)/rplcas \
72: --enable-gsl=../../tools/@GSL@/.libs/libgsl.a \
1.5 bertrand 73: --disable-shared --enable-static \
74: --disable-gui --without-x && \
1.6 bertrand 75: sed 's/SUBDIRS = src check intl po debianold debian doc examples/SUBDIRS = src check intl po debianold debian/g' Makefile \
1.5 bertrand 76: > Makefile2); \
1.7 bertrand 77: (cd @GIAC@/src && \
78: mv -f config.h config.h.orig && \
79: sed -e 's/#define HAVE_LIBPNG 1//' config.h.orig | \
1.8 bertrand 80: sed -e 's/#define HAVE_PNG_H 1//' > config.h && \
1.7 bertrand 81: \rm -f config.h.orig); \
1.5 bertrand 82: fi
83: make -C @GIAC@ $(AM_MAKEFLAGS) -f Makefile2
84: for i in mkinstalldirs xcas.xpm xcas.desktop xcas.applications; \
85: do cp $(srcdir)/@GIAC@/$$i @GIAC@/$$i; done
86: make -C @GIAC@ $(AM_MAKEFLAGS) install -f Makefile2
1.1 bertrand 87:
1.7 bertrand 88: lib/librplcas.a: lib/libgiac.a lib/libgmp.a lib/libmpfr.a
89: if [ ! -d tmp ]; then mkdir tmp; fi
90: (cd tmp && \
91: \rm -f * && \
92: ar x ../lib/libgmp.a && \
93: for i in `ar t ../lib/libgmp.a`; \
94: do mv $$i libgmp_$$i; done && \
95: ar x ../lib/libmpfr.a && \
96: for i in `ar t ../lib/libmpfr.a`; \
97: do mv $$i libmpfr_$$i; done && \
98: ar x ../lib/libgiac.a && \
99: for i in `ar t ../lib/libgiac.a`; \
100: do mv $$i libgiac_$$i; done && \
101: ar cru ../lib/librplcas.a lib* && \
102: ranlib ../lib/librplcas.a && strip -d ../lib/librplcas.a && \
103: \rm -rf tmp)
104:
1.1 bertrand 105: install: all
106:
1.3 bertrand 107: clean:
1.8 bertrand 108: \rm -f $(top_builddir)/rplcas/lib/lib*
1.2 bertrand 109:
110: distdir:
CVSweb interface <joel.bertrand@systella.fr>