Annotation of rpl/Makefile.am, revision 1.31

1.26      bertrand    1: SUBDIRS = tools rplsums rpliconv rplawk lapack/blas lapack/lapack rplcas src \
1.5       bertrand    2:        rpltags scripts man doc
1.4       bertrand    3: 
1.25      bertrand    4: include_HEADERS = rplconfig.h
                      5: 
1.4       bertrand    6: EXTRA_DIST = LIMITATIONS Licence_CeCILL_V2-fr.txt Licence_CeCILL_V2-en.txt \
                      7:        COPYING.in lapack/COPYING lapack/RELEASE \
                      8:        tests/tests.tar.gz vim/indent/rpl.vim vim/ftplugin/rpl.vim \
                      9:        vim/syntax/rpl.vim examples/obele.rpl examples/appel.tar.gz \
1.26      bertrand   10:        examples/external.tar.gz \
1.27      bertrand   11:        rplcas/@GMP@.tar.gz rplcas/@MPFR@.tar.gz rplcas/@NTL@.tar.gz \
                     12:        rplcas/@COCOA@.tar.gz rplcas/@PARI@.tar.gz rplcas/@GIAC@.tar.gz
1.1       bertrand   13: 
1.3       bertrand   14: licences:
                     15:    cp -f $(top_builddir)/COPYING $(srcdir)
1.29      bertrand   16:    $(MAKE) -C src $@
1.3       bertrand   17: 
                     18: toolsdistclean:
                     19:    for i in @NCURSES@ @READLINE@ @UNITS@ @GSL@ @GPP@ @GNUPLOT_COMPILATION@ \
1.6       bertrand   20:            @FILE@ @ICONV@ @SQLITE@; \
1.3       bertrand   21:    do \
1.17      bertrand   22:        rm -rf $(srcdir)/tools/$$i; \
1.3       bertrand   23:    done;
1.1       bertrand   24: 
1.2       bertrand   25: toolsclean:
                     26:    for i in @NCURSES@ @READLINE@ @UNITS@ @GSL@ @GPP@ @GNUPLOT_COMPILATION@ \
1.6       bertrand   27:            @FILE@ @ICONV@ @SQLITE@; \
1.2       bertrand   28:    do \
1.14      bertrand   29:        $(MAKE) -C $(top_builddir)/tools/$$i $(AM_MAKEFLAGS) clean); \
1.3       bertrand   30:    done;
                     31: 
1.7       bertrand   32: $(top_builddir)/tools/@NCURSES@/lib/libncurses.a:
                     33:    for i in $(shell find tools/@NCURSES@ -name Makefile \
                     34:         -exec grep static {} /dev/null \; | cut -d: -f1); \
1.3       bertrand   35:    do \
1.7       bertrand   36:        echo -n Checking $$i; \
1.31    ! bertrand   37:        TMP=tmp.ncurses; \
1.7       bertrand   38:        if [ -n "$$(grep static $$i | grep dynamic)" ]; then \
                     39:            awk \
                     40:            '{ \
                     41:                if (index($$0, "-static") != 0 && index($$0, "-dynamic") != 0) \
                     42:                { \
                     43:                    for(j = 1; j <= NF; j++) \
                     44:                    { \
                     45:                        if (index($$j, "-static") == 0) \
                     46:                        { \
                     47:                            printf("%s ", $$j); \
                     48:                        } \
                     49:                    } \
                     50:                    printf("\n"); \
                     51:                } \
                     52:                else \
                     53:                { \
                     54:                    print; \
                     55:                } \
                     56:            }' $$i > $$TMP; \
1.17      bertrand   57:            mv -f $$TMP $$i; \
1.7       bertrand   58:            echo -n " (fixed)"; \
                     59:        else \
                     60:            echo -n " (nothing to do)"; \
1.17      bertrand   61:            rm -f $$TMP; \
1.7       bertrand   62:        fi; \
                     63:        echo .; \
1.2       bertrand   64:    done;
1.22      bertrand   65:    for i in tools/@NCURSES@/test/Makefile; \
                     66:    do \
                     67:        echo -n Checking $$i; \
1.31    ! bertrand   68:        TMP=tmp.ncurses_test; \
1.22      bertrand   69:        awk \
                     70:            '/^TEST_ARGS/ \
                     71:                { printf("TEST_ARGS = ../lib/libform.a ../lib/libmenu.a "); \
                     72:                printf("../lib/libpanel.a ../lib/libncurses.a\n"); } \
                     73:            ! /^TEST_ARGS/ \
                     74:                { print; }' tools/@NCURSES@/test/Makefile > $$TMP; \
                     75:        mv -f $$TMP $$i; \
                     76:        echo .; \
                     77:    done;
1.14      bertrand   78:    if [ @OS@ = "OS2" ]; then \
1.31    ! bertrand   79:        TMP=tmp.ncurses_test_os2); \
1.11      bertrand   80:        awk \
1.14      bertrand   81:            '/^CXX_AR[ \t]/ \
                     82:                { printf("CXX_AR = $(AR)\n"); } \
                     83:            ! /^CXX_AR[ \t]/ \
                     84:                { print; }' \
                     85:            $(top_builddir)/tools/@NCURSES@/c++/Makefile | \
                     86:        awk \
                     87:            '/^CXX_ARFLAGS[ \t]/ \
                     88:                { printf("CXX_ARFLAGS = $(ARFLAGS)\n"); } \
                     89:            ! /^CXX_ARFLAGS[ \t]/ \
                     90:                { print; }' | \
                     91:        awk \
                     92:            '/^CXX[ \t]/ \
                     93:                { printf("CXX = g++\n"); } \
                     94:            ! /^CXX[ \t]/ \
                     95:                { print; }' > $$TMP; \
1.17      bertrand   96:        mv -f $$TMP $(top_builddir)/tools/@NCURSES@/c++/Makefile; \
1.14      bertrand   97:    fi;
                     98:    $(MAKE) -C $(top_builddir)/tools/@NCURSES@ $(AM_MAKEFLAGS)
                     99:    if [ @OS@ = "OS2" ]; then \
1.17      bertrand  100:        cp -f $(top_builddir)/tools/@NCURSES@/lib/ncurses.a \
1.14      bertrand  101:                $(top_builddir)/tools/@NCURSES@/lib/libncurses.a; \
                    102:    fi
1.3       bertrand  103: 
                    104: $(top_builddir)/tools/@READLINE@/libreadline.a \
                    105:        $(top_builddir)/tools/@READLINE@/libhistory.a:
1.14      bertrand  106:    $(MAKE) -C $(top_builddir)/tools/@READLINE@ $(AM_MAKEFLAGS)
1.3       bertrand  107: 
                    108: $(top_builddir)/tools/@GSL@/.libs/libgsl.a:
1.17      bertrand  109: # Quick and dirty hack pour avaliser le remplacement de ${1 + "$@"}
                    110: # dans ltmain.sh et propager les modifications dans le script libtool.
                    111:    if [ @OS@ = "OS2" ]; then \
                    112:        (cd $(top_builddir)/tools/@GSL@ && configure --disable-shared;); \
1.16      bertrand  113:    fi
                    114:    $(MAKE) -C $(top_builddir)/tools/@GSL@ $(AM_MAKEFLAGS)
1.17      bertrand  115:    if [ @OS@ = "OS2" ]; then \
                    116:        cp $(top_builddir)/tools/@GSL@/.libs/gsl.a \
1.16      bertrand  117:                $(top_builddir)/tools/@GSL@/.libs/libgsl.a; \
1.14      bertrand  118:    fi
1.3       bertrand  119: 
                    120: $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a:
1.4       bertrand  121: # La dépendance est faite par rpliconv.
1.14      bertrand  122:    if [ @OS@ = "OS2" ]; then \
1.31    ! bertrand  123:        TMP=tmp.libiconv; \
1.14      bertrand  124:        awk '! /^[ \t]cd po/ { print; }' \
                    125:                $(top_builddir)/tools/@ICONV@/Makefile > $$TMP; \
1.17      bertrand  126:        mv -f $$TMP $(top_builddir)/tools/@ICONV@/Makefile; \
1.14      bertrand  127:        $(MAKE) -C $(top_builddir)/tools/@ICONV@ $(AM_MAKEFLAGS) all; \
1.17      bertrand  128:        cp -f $(top_builddir)/tools/@ICONV@/lib/.libs/iconv.a \
1.14      bertrand  129:                $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a; \
                    130:    else \
                    131:        $(MAKE) -C $(top_builddir)/tools/@ICONV@ $(AM_MAKEFLAGS) all; \
                    132:    fi
1.3       bertrand  133: 
                    134: $(top_builddir)/lapack/lapack/liblapack.a:
                    135:    (cd $(top_builddir)/lapack/lapack && $(MAKE) $(AM_MAKEFLAGS))
                    136: 
                    137: $(top_builddir)/lapack/blas/libblas.a:
                    138:    (cd $(top_builddir)/lapack/blas && $(MAKE) $(AM_MAKEFLAGS))
                    139: 
1.12      bertrand  140: $(top_builddir)/rpliconv/rpliconv$(EXEEXT): \
1.3       bertrand  141:        $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a
1.14      bertrand  142:    $(MAKE) -C $(top_builddir)/rpliconv $(AM_MAKEFLAGS)
1.3       bertrand  143: 
1.20      bertrand  144: $(top_builddir)/rplawk/rplawk$(EXEEXT):
                    145:    $(MAKE) -C $(top_builddir)/rplawk $(AM_MAKEFLAGS)
                    146: 
1.14      bertrand  147: $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.3       bertrand  148:        $(top_builddir)/tools/@FILE@/magic/magic.mgc: \
                    149:        $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a
1.31    ! bertrand  150:    TMP=tmp.rplfile; \
1.7       bertrand  151:    awk \
                    152:    '{ \
                    153:        if (index($$0, "LDFLAGS") == 1) \
                    154:        { \
                    155:            if (index($$0, "-static") == 0) \
                    156:            { \
                    157:                printf("%s -static\n", $$0); \
                    158:            } \
                    159:            else \
                    160:            { \
                    161:                print; \
                    162:            } \
                    163:        } \
                    164:        else \
                    165:        { \
                    166:            print; \
                    167:        } \
                    168:    }' tools/@FILE@/src/Makefile > $$TMP; \
1.17      bertrand  169:    mv -f $$TMP tools/@FILE@/src/Makefile
1.14      bertrand  170:    $(MAKE) -C $(top_builddir)/tools/@FILE@ $(AM_MAKEFLAGS)
1.21      bertrand  171:    $(CC) -o $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
                    172:            $(top_builddir)/tools/@FILE@/src/*.o \
                    173:            $(shell grep '^LIBS =' $(top_builddir)/tools/@FILE@/Makefile | \
                    174:            cut -d= -f2) $(LDFLAGS)
1.3       bertrand  175: 
1.5       bertrand  176: $(top_builddir)/tools/@SQLITE@/.libs/libsqlite3.a:
1.14      bertrand  177:    $(MAKE) -C $(top_builddir)/tools/@SQLITE@ $(AM_MAKEFLAGS)
                    178:    if [ @OS@ = "OS2" ]; then \
                    179:        cp $(top_builddir)/tools/@SQLITE@/.libs/sqlite3.a \
                    180:                $(top_builddir)/tools/@SQLITE@/.libs/libsqlite3.a; \
                    181:    fi
1.5       bertrand  182: 
                    183: $(top_builddir)/tools/@OPENSSL@/libcrypto.a \
                    184:        $(top_builddir)/tools/@OPENSSL@/libssl.a:
1.14      bertrand  185:    if [ @OS@ = "OS2" ]; then \
                    186:        (cd $(top_builddir)/tools/@OPENSSL@ && \
                    187:                sed -e '1,$$s/-m486/-mtune=i586 -DOPENSSL_USE_IPV6=0/g' \
                    188:                OS2-EMX.mak | \
                    189:                sed -e '1,$$s/-DBN_ASM/-UBN_ASM/g' | \
                    190:                sed -e '1,$$s/-DMD5_ASM/-UMD5_ASM/g' | \
                    191:                sed -e '1,$$s/-DSHA1_ASM/-USHA1_ASM/g' | \
                    192:                sed -e '1,$$s/-DOPENSSL_BN_ASM_PART_WORDS/-UOPENSSL_BN_ASM_PART_ASM/g' \
                    193:                > OS2-EMX.mak2; \
                    194:                $(MAKE) -j1 -f OS2-EMX.mak2 $(AM_MAKEFLAGS)); \
1.17      bertrand  195:                cp $(top_builddir)/tools/@OPENSSL@/out/ssl.a \
1.14      bertrand  196:                        $(top_builddir)/tools/@OPENSSL@/libssl.a; \
1.17      bertrand  197:                cp $(top_builddir)/tools/@OPENSSL@/out/crypto.a \
1.14      bertrand  198:                        $(top_builddir)/tools/@OPENSSL@/libcrypto.a; \
                    199:    else \
                    200:        (cd $(top_builddir)/tools/@OPENSSL@ && $(MAKE) -j1 $(AM_MAKEFLAGS)); \
                    201:    fi
1.5       bertrand  202: 
                    203: $(top_builddir)/tools/rplsums/rplmd5sum \
                    204:        $(top_builddir)/tools/rplsums/rplsha1sum: \
                    205:        $(top_builddir)/tools/@OPENSSL@/libcrypto.a
1.14      bertrand  206:    $(MAKE) -C $(top_builddir)/rplsums $(AM_MAKEFLAGS)
1.5       bertrand  207: 
1.12      bertrand  208: $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT):
1.14      bertrand  209:    $(MAKE) -C $(top_builddir)/tools/@GPP@ $(AM_MAKEFLAGS)
1.5       bertrand  210: 
1.12      bertrand  211: .NOTPARALLEL: $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.4       bertrand  212:        $(top_builddir)/tools/@FILE@/magic/magic.mgc
                    213: 
                    214: .NOTPARALLEL: $(top_builddir)/tools/@READLINE@/libreadline.a \
                    215:        $(top_builddir)/tools/@READLINE@/libhistory.a
                    216: 
1.5       bertrand  217: .NOTPARALLEL: $(top_builddir)/tools/@OPENSSL@/libcrypto.a \
                    218:        $(top_builddir)/tools/@OPENSSL@/libssl.a
                    219: 
                    220: .NOTPARALLEL: $(top_builddir)/tools/rplsums/rplmd5sum \
                    221:        $(top_builddir)/tools/rplsums/rplsha1sum
                    222: 
1.13      bertrand  223: install-strip:
                    224:    $(MAKE) $(AM_MAKEFLAGS) install
                    225: 
1.28      bertrand  226: $(top_builddir)/rplcas/lib/librplcas.a: \
1.27      bertrand  227:        $(top_builddir)/tools/@GSL@/.libs/libgsl.a
                    228:    $(MAKE) -C $(top_builddir)/rplcas $(AM_MAKEFLAGS)
                    229: 
1.3       bertrand  230: all: $(top_builddir)/tools/@NCURSES@/lib/libncurses.a \
                    231:        $(top_builddir)/tools/@READLINE@/libreadline.a \
                    232:        $(top_builddir)/tools/@READLINE@/libhistory.a \
                    233:        $(top_builddir)/tools/@GSL@/.libs/libgsl.a \
1.5       bertrand  234:        $(top_builddir)/tools/@SQLITE@/.libs/libsqlite3.a \
                    235:        $(top_builddir)/tools/@OPENSSL@/libcrypto.a \
                    236:        $(top_builddir)/tools/@OPENSSL@/libssl.a \
1.3       bertrand  237:        $(top_builddir)/lapack/lapack/liblapack.a \
                    238:        $(top_builddir)/lapack/blas/libblas.a \
1.12      bertrand  239:        $(top_builddir)/rpliconv/rpliconv$(EXEEXT) \
1.20      bertrand  240:        $(top_builddir)/rplawk/rplawk$(EXEEXT) \
1.12      bertrand  241:        $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.5       bertrand  242:        $(top_builddir)/tools/@FILE@/magic/magic.mgc \
1.30      bertrand  243:        $(top_builddir)/tools/rplsums/rplmd5sum$(EXEEXT) \
                    244:        $(top_builddir)/tools/rplsums/rplsha1sum$(EXEEXT) \
1.27      bertrand  245:        $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT) \
1.28      bertrand  246:        @LIBRPLCAS@
1.4       bertrand  247: # Cette règle n'est là que pour forcer la compilation de Gnuplot.
1.14      bertrand  248:    $(MAKE) -C $(top_builddir)/tools $(AM_MAKEFLAGS)
                    249:    $(MAKE) -C $(top_builddir)/rpltags $(AM_MAKEFLAGS)
                    250:    $(MAKE) -C $(top_builddir)/src $(AM_MAKEFLAGS)

CVSweb interface <joel.bertrand@systella.fr>