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