Annotation of rpl/Makefile.am, revision 1.20

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.14      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; \
1.17      bertrand   73: #      mv -f $$TMP $$i; \
1.14      bertrand   74: #      echo .; \
                     75: #  done;
                     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.3       bertrand  169: 
1.5       bertrand  170: $(top_builddir)/tools/@SQLITE@/.libs/libsqlite3.a:
1.14      bertrand  171:    $(MAKE) -C $(top_builddir)/tools/@SQLITE@ $(AM_MAKEFLAGS)
                    172:    if [ @OS@ = "OS2" ]; then \
                    173:        cp $(top_builddir)/tools/@SQLITE@/.libs/sqlite3.a \
                    174:                $(top_builddir)/tools/@SQLITE@/.libs/libsqlite3.a; \
                    175:    fi
1.5       bertrand  176: 
                    177: $(top_builddir)/tools/@OPENSSL@/libcrypto.a \
                    178:        $(top_builddir)/tools/@OPENSSL@/libssl.a:
1.14      bertrand  179:    if [ @OS@ = "OS2" ]; then \
                    180:        (cd $(top_builddir)/tools/@OPENSSL@ && \
                    181:                sed -e '1,$$s/-m486/-mtune=i586 -DOPENSSL_USE_IPV6=0/g' \
                    182:                OS2-EMX.mak | \
                    183:                sed -e '1,$$s/-DBN_ASM/-UBN_ASM/g' | \
                    184:                sed -e '1,$$s/-DMD5_ASM/-UMD5_ASM/g' | \
                    185:                sed -e '1,$$s/-DSHA1_ASM/-USHA1_ASM/g' | \
                    186:                sed -e '1,$$s/-DOPENSSL_BN_ASM_PART_WORDS/-UOPENSSL_BN_ASM_PART_ASM/g' \
                    187:                > OS2-EMX.mak2; \
                    188:                $(MAKE) -j1 -f OS2-EMX.mak2 $(AM_MAKEFLAGS)); \
1.17      bertrand  189:                cp $(top_builddir)/tools/@OPENSSL@/out/ssl.a \
1.14      bertrand  190:                        $(top_builddir)/tools/@OPENSSL@/libssl.a; \
1.17      bertrand  191:                cp $(top_builddir)/tools/@OPENSSL@/out/crypto.a \
1.14      bertrand  192:                        $(top_builddir)/tools/@OPENSSL@/libcrypto.a; \
                    193:    else \
                    194:        (cd $(top_builddir)/tools/@OPENSSL@ && $(MAKE) -j1 $(AM_MAKEFLAGS)); \
                    195:    fi
1.5       bertrand  196: 
1.9       bertrand  197: $(top_builddir)/ptmalloc3/libptmalloc3.a :
1.16      bertrand  198:    $(MAKE) -C $(top_builddir)/ptmalloc3 $(AM_MAKEFLAGS)
1.9       bertrand  199: 
1.5       bertrand  200: $(top_builddir)/tools/rplsums/rplmd5sum \
                    201:        $(top_builddir)/tools/rplsums/rplsha1sum: \
                    202:        $(top_builddir)/tools/@OPENSSL@/libcrypto.a
1.14      bertrand  203:    $(MAKE) -C $(top_builddir)/rplsums $(AM_MAKEFLAGS)
1.5       bertrand  204: 
1.12      bertrand  205: $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT):
1.14      bertrand  206:    $(MAKE) -C $(top_builddir)/tools/@GPP@ $(AM_MAKEFLAGS)
1.5       bertrand  207: 
1.12      bertrand  208: .NOTPARALLEL: $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.4       bertrand  209:        $(top_builddir)/tools/@FILE@/magic/magic.mgc
                    210: 
                    211: .NOTPARALLEL: $(top_builddir)/tools/@READLINE@/libreadline.a \
                    212:        $(top_builddir)/tools/@READLINE@/libhistory.a
                    213: 
1.5       bertrand  214: .NOTPARALLEL: $(top_builddir)/tools/@OPENSSL@/libcrypto.a \
                    215:        $(top_builddir)/tools/@OPENSSL@/libssl.a
                    216: 
                    217: .NOTPARALLEL: $(top_builddir)/tools/rplsums/rplmd5sum \
                    218:        $(top_builddir)/tools/rplsums/rplsha1sum
                    219: 
1.13      bertrand  220: install-strip:
                    221:    $(MAKE) $(AM_MAKEFLAGS) install
                    222: 
1.3       bertrand  223: all: $(top_builddir)/tools/@NCURSES@/lib/libncurses.a \
                    224:        $(top_builddir)/tools/@READLINE@/libreadline.a \
                    225:        $(top_builddir)/tools/@READLINE@/libhistory.a \
                    226:        $(top_builddir)/tools/@GSL@/.libs/libgsl.a \
1.5       bertrand  227:        $(top_builddir)/tools/@SQLITE@/.libs/libsqlite3.a \
                    228:        $(top_builddir)/tools/@OPENSSL@/libcrypto.a \
                    229:        $(top_builddir)/tools/@OPENSSL@/libssl.a \
1.3       bertrand  230:        $(top_builddir)/lapack/lapack/liblapack.a \
                    231:        $(top_builddir)/lapack/blas/libblas.a \
1.9       bertrand  232:        $(top_builddir)/ptmalloc3/libptmalloc3.a \
1.12      bertrand  233:        $(top_builddir)/rpliconv/rpliconv$(EXEEXT) \
1.20    ! bertrand  234:        $(top_builddir)/rplawk/rplawk$(EXEEXT) \
1.12      bertrand  235:        $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.5       bertrand  236:        $(top_builddir)/tools/@FILE@/magic/magic.mgc \
                    237:        $(top_builddir)/tools/rplsums/rplmd5sum \
                    238:        $(top_builddir)/tools/rplsums/rplsha1sum \
1.12      bertrand  239:        $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT)
1.4       bertrand  240: # Cette règle n'est là que pour forcer la compilation de Gnuplot.
1.14      bertrand  241:    $(MAKE) -C $(top_builddir)/tools $(AM_MAKEFLAGS)
                    242:    $(MAKE) -C $(top_builddir)/rpltags $(AM_MAKEFLAGS)
                    243:    $(MAKE) -C $(top_builddir)/src $(AM_MAKEFLAGS)
1.19      bertrand  244:    if [ @OS@ = "OpenBSD" ]; then chmod 755 install-sh; fi

CVSweb interface <joel.bertrand@systella.fr>