Annotation of rpl/rplcas/Makefile.in, revision 1.27

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.4       bertrand   20:                --disable-shared --enable-static \
                     21:                --prefix=$(top_builddir)/rplcas); \
1.1       bertrand   22:    fi
1.16      bertrand   23:    $(MAKE) -C @GMP@ $(AM_MAKEFLAGS) all && \
                     24:            $(MAKE) -C $(AM_MAKEFLAGS) @GMP@ install
1.3       bertrand   25: 
1.25      bertrand   26: lib/@LIB_PREFIX@mpfr.a: lib/@LIB_PREFIX@gmp.a
1.2       bertrand   27:    if [ ! -d @MPFR@ ]; then \
                     28:        mkdir @MPFR@ ; \
                     29:    fi
1.1       bertrand   30:    if [ ! -f @MPFR@/config.log ]; then \
1.14      bertrand   31:        (cd @MPFR@ && \
1.13      bertrand   32:                CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
                     33:                ../$(srcdir)/@MPFR@/configure \
1.4       bertrand   34:                --with-gmp=$(top_builddir)/rplcas \
                     35:                --disable-shared --enable-static \
                     36:                --prefix=$(top_builddir)/rplcas); \
1.1       bertrand   37:    fi
1.16      bertrand   38:    $(MAKE) -C @MPFR@ $(AM_MAKEFLAGS) all && \
                     39:            $(MAKE) -C @MPFR@ $(AM_MAKEFLAGS) install
1.3       bertrand   40: 
1.18      bertrand   41: lib/ntl.a:
1.20      bertrand   42:    (cd @NTL@/src && ./configure)
1.22      bertrand   43:    (cd @NTL@/src && CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
1.21      bertrand   44:            $(MAKE) $(AM_MAKEFLAGS) -f makefile)
1.4       bertrand   45:    cp @NTL@/src/ntl.a lib/ntl.a
                     46:    cp @NTL@/src/ntl.a lib/ntl.a
                     47:    cp -R @NTL@/include/NTL include
1.3       bertrand   48: 
1.25      bertrand   49: lib/libcocoa.a: lib/@LIB_PREFIX@gmp.a
1.2       bertrand   50:    if [ ! -f @COCOA@/configuration/autoconf.mk ]; then \
1.15      bertrand   51:        (cd @COCOA@ && CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
                     52:                ./configure --with-libgmp=../lib/libgmp.a \
1.4       bertrand   53:                --with-libgsl=../../tools/@GSL@/.libs/libgsl.a); \
1.2       bertrand   54:    fi
1.16      bertrand   55:    $(MAKE) -C @COCOA@ $(AM_MAKEFLAGS) library
1.4       bertrand   56:    cp @COCOA@/lib/libcocoa.a lib/libcocoa.a
                     57:    cp -R @COCOA@/include/CoCoA include
1.3       bertrand   58: 
1.25      bertrand   59: lib/libpari.a: lib/@LIB_PREFIX@gmp.a
1.4       bertrand   60:    if [ ! -f @PARI@/configured ]; then \
                     61:        (cd @PARI@ && ./Configure --prefix=$(top_builddir)/rplcas \
                     62:                --with-gmp=../lib/libgmp.a \
                     63:                --without-readline --graphic=none -s); \
                     64:        touch @PARI@/configured; \
                     65:    fi
1.15      bertrand   66:    CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
1.16      bertrand   67:            $(MAKE) -C @PARI@ $(AM_MAKEFLAGS) gp && \
                     68:            $(MAKE) -C @PARI@ $(AM_MAKEFLAGS) install
1.4       bertrand   69: 
1.25      bertrand   70: lib/@LIB_PREFIX@giac.a: lib/@LIB_PREFIX@gmp.a lib/@LIB_PREFIX@mpfr.a lib/ntl.a \
1.4       bertrand   71:        lib/libcocoa.a lib/libpari.a
                     72:    if [ ! -d @GIAC@ ]; then \
                     73:        mkdir @GIAC@ ; \
                     74:    fi
1.18      bertrand   75:    if [ ! -f @GIAC@/Makefile2 ]; then \
1.5       bertrand   76:        (cd @GIAC@ && \
1.27    ! bertrand   77:                CPPFLAGS="-I$(top_builddir)/rplcas/include -I$(top_builddir)/tools/@GSL@ $(CPPFLAGS)" \
1.5       bertrand   78:                LDFLAGS="-L$(top_builddir)/rplcas/lib $(LDFLAGS)" \
1.4       bertrand   79:                ../$(srcdir)/@GIAC@/configure --prefix=$(top_builddir)/rplcas \
                     80:                --enable-pari=$(top_builddir)/rplcas \
                     81:                --enable-ntl=$(top_builddir)/rplcas \
                     82:                --enable-cocoa=$(top_builddir)/rplcas \
1.27    ! bertrand   83:                --enable-gsl=$(top_builddir)/tools/@GSL@/.libs/libgsl.a \
1.5       bertrand   84:                --disable-shared --enable-static \
                     85:                --disable-gui --without-x && \
1.6       bertrand   86:                sed 's/SUBDIRS = src check intl po debianold debian doc examples/SUBDIRS = src check intl po debianold debian/g' Makefile \
1.5       bertrand   87:                > Makefile2); \
1.7       bertrand   88:        (cd @GIAC@/src && \
                     89:                mv -f config.h config.h.orig && \
                     90:                sed -e 's/#define HAVE_LIBPNG 1//' config.h.orig | \
1.8       bertrand   91:                sed -e 's/#define HAVE_PNG_H 1//' > config.h && \
1.7       bertrand   92:                \rm -f config.h.orig); \
1.5       bertrand   93:    fi
1.16      bertrand   94:    $(MAKE) -C @GIAC@ $(AM_MAKEFLAGS) -f Makefile2
1.23      bertrand   95:    if [ x$(srcdir) != x. ]; then \
                     96:        for i in mkinstalldirs xcas.xpm xcas.desktop xcas.applications; \
                     97:                do cp $(srcdir)/@GIAC@/$$i @GIAC@/$$i; done; \
                     98:    fi
1.16      bertrand   99:    $(MAKE) -C @GIAC@ $(AM_MAKEFLAGS) install -f Makefile2
1.1       bertrand  100: 
1.25      bertrand  101: lib/librplcas.a: lib/@LIB_PREFIX@giac.a lib/@LIB_PREFIX@gmp.a \
                    102:        lib/@LIB_PREFIX@mpfr.a lib/ntl.a lib/libcocoa.a lib/libpari.a
1.7       bertrand  103:    if [ ! -d tmp ]; then mkdir tmp; fi
1.26      bertrand  104:    @(cd tmp && n=0 && \
1.25      bertrand  105:            rm -f * && \
                    106:            echo Building standalone librplcas.a; \
                    107:            for i in ../lib/@LIB_PREFIX@gmp.a \
                    108:                    ../lib/@LIB_PREFIX@mpfr.a \
                    109:                    ../lib/libcocoa.a \
                    110:                    ../lib/libpari.a \
                    111:                    ../lib/ntl.a \
                    112:                    ../lib/@LIB_PREFIX@giac.a; \
                    113:                do echo Extracting $$i; ar x $$i; \
                    114:                for j in `ar t $$i`; \
                    115:                do cp -f $$j $$n-$$j; \
                    116:                    rm -f $$j; \
                    117:                done; \
                    118:                n=`expr $$n + 1`; \
                    119:            done; \
                    120:            L="start"; \
                    121:            while test -n "$$L"; \
                    122:            do \
                    123:                echo -n "Remaining files "; \
                    124:                find . -name "*.$(OBJEXT)" | wc -l; \
                    125:                L=""; j=0; \
                    126:                for i in `find . -name "*.$(OBJEXT)"`; \
                    127:                do \
                    128:                    k=`echo $$i | wc -c`; \
                    129:                    j=`expr $$j + $$k + 1`; \
                    130:                    if test $$j -le 8000; then \
                    131:                        L="$$L $$i"; \
                    132:                    else \
                    133:                        break; \
                    134:                    fi; \
                    135:                done; \
                    136:                if test -n "$$L"; then \
                    137:                    echo -n "Adding files to librplcas.a archive... "; \
                    138:                    ar cru ../lib/librplcas.a $$L; \
                    139:                    rm -f $$L; \
                    140:                    echo "done"; \
                    141:                fi; \
                    142:            done; \
                    143:            echo Archive created; \
                    144:            ar s ../lib/librplcas.a; \
                    145:            if [ @OS@ != OS2 -a @OS@ != Darwin ]; then \
                    146:                echo Stripping librplcas.a && strip -d ../lib/librplcas.a; \
                    147:            fi;)
                    148:    rmdir tmp
1.7       bertrand  149: 
1.14      bertrand  150: install:
1.1       bertrand  151: 
1.24      bertrand  152: uninstall:
                    153: 
1.3       bertrand  154: clean:
1.8       bertrand  155:    \rm -f $(top_builddir)/rplcas/lib/lib*
1.2       bertrand  156: 
                    157: distdir:

CVSweb interface <joel.bertrand@systella.fr>