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