Annotation of rpl/Makefile.am, revision 1.22

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

CVSweb interface <joel.bertrand@systella.fr>