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