Annotation of rpl/src/Makefile.am, revision 1.37

1.1       bertrand    1: ldadd_libncurses = $(top_builddir)/tools/@NCURSES@/lib/libncurses.a
                      2: include_libncurses = -I$(top_builddir)/tools/@NCURSES@/include \
                      3:        -I$(top_srcdir)/tools/@NCURSES@/include
                      4: 
                      5: ldadd_libhistory = $(top_builddir)/tools/@READLINE@/libhistory.a
                      6: ldadd_libreadline = $(top_builddir)/tools/@READLINE@/libreadline.a
                      7: include_libreadline = -I$(top_srcdir)/tools/@READLINE@ \
                      8:        -I$(top_builddir)/tools/@READLINE@ -DREADLINE_LIBRARY
                      9: 
                     10: ldadd_libgsl = $(top_builddir)/tools/@GSL@/.libs/libgsl.a
                     11: include_libgsl = -I$(top_builddir)/tools/@GSL@
                     12: 
1.6       bertrand   13: ldadd_libiconv = $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a
1.1       bertrand   14: include_libiconv = -I$(top_builddir)/tools/@ICONV@/include
                     15: 
1.6       bertrand   16: ldadd_libcrypto = $(top_builddir)/tools/@OPENSSL@/libcrypto.a
1.10      bertrand   17: ldadd_libssl = $(top_builddir)/tools/@OPENSSL@/libssl.a
1.8       bertrand   18: include_libcrypto = -I$(top_builddir)/tools/@OPENSSL@/include
1.6       bertrand   19: 
                     20: ldadd_libsqlite = $(top_builddir)/tools/@SQLITE@/.libs/libsqlite3.a
1.11      bertrand   21: include_libsqlite = -I$(top_srcdir)/tools/@SQLITE@
1.6       bertrand   22: 
1.24      bertrand   23: date = -Dd_date_rpl="\"$(shell LC_ALL=fr_FR date +'%A %x, %X %Z' | \
1.11      bertrand   24:        $(AWK) '{ v=$$0; gsub(/^[ \t]+/, "", v); gsub(/[ \t]+$$/, "", v); \
1.5       bertrand   25:        printf("%s\n", v);}')\"" \
                     26:        -Dd_date_en_rpl="\"$(shell LC_ALL=C date +'%A %x, %X %Z' | \
1.11      bertrand   27:        $(AWK) '{ v=$$0; gsub(/^[ \t]+/, "", v); gsub(/[ \t]+$$/, "", v); \
1.5       bertrand   28:        printf("%s\n", v);}')\""
1.1       bertrand   29: 
1.29      bertrand   30: 
                     31: hash = -Drplpp_md5="\"$(shell $(top_builddir)/rplsums/rplmd5sum$(EXEEXT) \
1.7       bertrand   32:        $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT))\"" \
1.29      bertrand   33:        -Drplpp_sha1="\"$(shell $(top_builddir)/rplsums/rplsha1sum$(EXEEXT) \
1.7       bertrand   34:        $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT))\"" \
1.29      bertrand   35:        -Drplfile_md5="\"$(shell $(top_builddir)/rplsums/rplmd5sum$(EXEEXT) \
1.7       bertrand   36:        $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT))\"" \
1.29      bertrand   37:        -Drplfile_sha1="\"$(shell $(top_builddir)/rplsums/rplsha1sum$(EXEEXT) \
1.7       bertrand   38:        $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT))\"" \
1.29      bertrand   39:        -Drpliconv_md5="\"$(shell $(top_builddir)/rplsums/rplmd5sum$(EXEEXT) \
1.7       bertrand   40:        $(top_builddir)/rpliconv/rpliconv$(EXEEXT))\"" \
1.29      bertrand   41:        -Drpliconv_sha1="\"$(shell $(top_builddir)/rplsums/rplsha1sum$(EXEEXT) \
1.7       bertrand   42:        $(top_builddir)/rpliconv/rpliconv$(EXEEXT))\"" \
1.29      bertrand   43:        -Drplconvert_md5="\"$(shell $(top_builddir)/rplsums/rplmd5sum$(EXEEXT) \
1.7       bertrand   44:        $(top_builddir)/tools/@UNITS@/units$(EXEEXT))\"" \
1.29      bertrand   45:        -Drplconvert_sha1="\"$(shell $(top_builddir)/rplsums/rplsha1sum$(EXEEXT) \
1.7       bertrand   46:        $(top_builddir)/tools/@UNITS@/units$(EXEEXT))\""
                     47: 
1.1       bertrand   48: SRCC=\
                     49:    algebre_lineaire1.c\
                     50:    algebre_lineaire2.c\
                     51:    algebre_lineaire3.c\
                     52:    algebre_lineaire4.c\
                     53:    analyse.c\
                     54:    analyse_notation_algebrique.c\
                     55:    analyse_notation_rpn.c\
1.2       bertrand   56:    asprintf.c\
1.1       bertrand   57:    bibliotheques_externes.c\
                     58:    calcul_differentiel.c\
                     59:    calcul_integral.c\
                     60:    chainage.c\
                     61:    compilation.c\
                     62:    completion.c\
1.6       bertrand   63:    controle.c \
1.1       bertrand   64:    daemon.c\
                     65:    date.c\
                     66:    depassements.c\
                     67:    dft.c\
                     68:    encart.c\
                     69:    evaluation.c\
                     70:    fonctions_trigonometriques.c\
                     71:    formateur.c\
                     72:    formateur_fichiers.c\
                     73:    fusible.c\
                     74:    generateurs_aleatoires.c\
                     75:    gestion_fichiers.c\
                     76:    gestion_interruptions.c\
                     77:    gestion_niveaux.c\
                     78:    gestion_objets.c\
                     79:    gestion_pile.c\
                     80:    gestion_pile_last.c\
                     81:    gestion_pile_systeme.c\
                     82:    gestion_processus.c\
                     83:    gestion_threads.c\
                     84:    gestion_variables.c\
                     85:    gestion_variables_statiques.c\
                     86:    gestion_variables_partagees.c\
1.29      bertrand   87:    getaddrinfo.c\
1.1       bertrand   88:    indicateurs.c\
                     89:    instructions_a1.c\
                     90:    instructions_a2.c\
                     91:    instructions_a3.c\
                     92:    instructions_a4.c\
                     93:    instructions_a5.c\
                     94:    instructions_b1.c\
                     95:    instructions_c1.c\
                     96:    instructions_c2.c\
                     97:    instructions_c3.c\
                     98:    instructions_c4.c\
                     99:    instructions_c5.c\
                    100:    instructions_c6.c\
                    101:    instructions_c7.c\
                    102:    instructions_d1.c\
                    103:    instructions_d2.c\
                    104:    instructions_d3.c\
                    105:    instructions_d4.c\
                    106:    instructions_d5.c\
                    107:    instructions_d6.c\
                    108:    instructions_e1.c\
                    109:    instructions_e2.c\
                    110:    instructions_e3.c\
                    111:    instructions_e4.c\
                    112:    instructions_f1.c\
                    113:    instructions_f2.c\
                    114:    instructions_f3.c\
                    115:    instructions_f4.c\
                    116:    instructions_g1.c\
                    117:    instructions_g2.c\
                    118:    instructions_g3.c\
                    119:    instructions_g4.c\
                    120:    instructions_h1.c\
                    121:    instructions_h2.c\
                    122:    instructions_i1.c\
                    123:    instructions_i2.c\
                    124:    instructions_i3.c\
                    125:    instructions_i4.c\
                    126:    instructions_j1.c\
                    127:    instructions_k1.c\
                    128:    instructions_l1.c\
                    129:    instructions_l2.c\
                    130:    instructions_l3.c\
                    131:    instructions_l4.c\
                    132:    instructions_l5.c\
                    133:    instructions_m1.c\
                    134:    instructions_m2.c\
                    135:    instructions_m3.c\
                    136:    instructions_m4.c\
1.21      bertrand  137:    instructions_m5.c\
1.1       bertrand  138:    instructions_n1.c\
                    139:    instructions_n2.c\
                    140:    instructions_o1.c\
                    141:    instructions_o2.c\
                    142:    instructions_p1.c\
                    143:    instructions_p2.c\
                    144:    instructions_p3.c\
                    145:    instructions_p4.c\
                    146:    instructions_p5.c\
                    147:    instructions_p6.c\
                    148:    instructions_p7.c\
                    149:    instructions_q1.c\
                    150:    instructions_r1.c\
                    151:    instructions_r2.c\
                    152:    instructions_r3.c\
                    153:    instructions_r4.c\
                    154:    instructions_r5.c\
                    155:    instructions_r6.c\
                    156:    instructions_s1.c\
                    157:    instructions_s2.c\
                    158:    instructions_s3.c\
                    159:    instructions_s4.c\
                    160:    instructions_s5.c\
                    161:    instructions_s6.c\
                    162:    instructions_s7.c\
                    163:    instructions_s8.c\
                    164:    instructions_s9.c\
                    165:    instructions_s10.c\
                    166:    instructions_t1.c\
                    167:    instructions_t2.c\
                    168:    instructions_t3.c\
                    169:    instructions_u1.c\
                    170:    instructions_v1.c\
                    171:    instructions_v2.c\
                    172:    instructions_w1.c\
                    173:    instructions_w2.c\
                    174:    instructions_x1.c\
                    175:    instructions_x2.c\
                    176:    instructions_y1.c\
                    177:    interface_gnuplot.c\
                    178:    interface_tex.c\
                    179:    interruptions.c\
                    180:    messages.c\
                    181:    occupation_memoire.c\
                    182:    operations_atomiques.c\
                    183:    operations_binaires.c\
                    184:    optimisation.c\
                    185:    profilage.c\
                    186:    rpl.c\
                    187:    rplcore.c\
1.16      bertrand  188:    semaphores.c\
1.1       bertrand  189:    sequenceur.c\
                    190:    simplification.c\
                    191:    sommations.c\
                    192:    sql.c\
                    193:    statistiques.c\
                    194:    transliteration.c\
                    195:    types.c
                    196: 
                    197: SRCH=\
                    198:    completion.h\
                    199:    convert.h\
                    200:    copyright.h\
                    201:    garanties.h\
1.29      bertrand  202:    getaddrinfo.h\
1.1       bertrand  203:    gnuplot.h\
                    204:    librpl.h\
                    205:    licence.h\
                    206:    rpl.h\
                    207:    rplexternals.h\
                    208:    rpltypes.h\
                    209:    tex.h\
                    210:    usages.h\
                    211:    vim.h
                    212: 
                    213: SRCF=\
                    214:    arithmetique.f\
                    215:    bibliotheque_logarithmique.f\
                    216:    bibliotheque_trigonometrique.f
                    217: 
                    218: SRCF90=\
                    219:    combinaisons.F90\
                    220:    distributions.F90\
                    221:    fonctions_speciales.F90
                    222: 
                    223: SRCINC=\
                    224:    rplftypes.inc
                    225: 
                    226: SRCXPM=\
                    227:    rpl.xpm
                    228: 
                    229: INIT_EXE=init.c
                    230: 
                    231: INIT_LIB=librpl.c
                    232: 
1.31      bertrand  233: # @MALLOC@ doit être la première bibliothèque pour éviter que la libgfortran
                    234: # utilise un allocateur différent.
1.27      bertrand  235: LIB=-lz @MALLOC@
1.1       bertrand  236: 
                    237: bin_PROGRAMS = rpl
                    238: lib_LIBRARIES = librpl.a
                    239: 
1.29      bertrand  240: SRCCc=$(SRCC:.c=-conv.c)
                    241: SRCHc=$(SRCH:.h=-conv.h)
                    242: SRCFc=$(SRCF:.f=-conv.f)
                    243: SRCF90c=$(SRCF90:.F90=-conv.F90)
                    244: SRCINCc=$(SRCINC:.inc=-conv.inc)
                    245: INIT_LIBc=$(INIT_LIB:.c=-conv.c)
                    246: INIT_EXEc=$(INIT_EXE:.c=-conv.c)
1.1       bertrand  247: 
1.29      bertrand  248: %-conv.c: %.c
1.1       bertrand  249:    $(top_builddir)/rpliconv/rpliconv \
                    250:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    251:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  252:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  253:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    254: 
1.29      bertrand  255: %-conv.h: %.h
1.1       bertrand  256:    $(top_builddir)/rpliconv/rpliconv \
                    257:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    258:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  259:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  260:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    261: 
1.29      bertrand  262: %-conv.f: %.f
1.1       bertrand  263:    $(top_builddir)/rpliconv/rpliconv \
                    264:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    265:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  266:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  267:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    268: 
1.29      bertrand  269: %-conv.F90: %.F90
1.1       bertrand  270:    $(top_builddir)/rpliconv/rpliconv \
                    271:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    272:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  273:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  274:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    275: 
1.29      bertrand  276: %-conv.inc: %.inc
1.1       bertrand  277:    $(top_builddir)/rpliconv/rpliconv \
                    278:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    279:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  280:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  281:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    282: 
                    283: licences:
                    284:    cat $(srcdir)/../COPYING > $(srcdir)/licence.h
                    285:    echo >> $(srcdir)/licence.h
                    286:    echo >> $(srcdir)/licence.h
                    287:    echo "#ifndef INCLUSION_LICENCE" >> $(srcdir)/licence.h
                    288:    echo "#   define INCLUSION_LICENCE" >> $(srcdir)/licence.h
                    289:    echo "    unsigned char CeCILL_fr[] =" >> $(srcdir)/licence.h
                    290:    sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-fr.txt | \
1.11      bertrand  291:            $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1       bertrand  292:            >> $(srcdir)/licence.h
                    293:    echo "    ;" >> $(srcdir)/licence.h
                    294:    echo "    unsigned char CeCILL_en[] =" >> $(srcdir)/licence.h
                    295:    sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-en.txt | \
1.11      bertrand  296:            $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1       bertrand  297:            >> $(srcdir)/licence.h
                    298:    echo "    ;" >> $(srcdir)/licence.h
                    299:    echo "#endif" >> $(srcdir)/licence.h
                    300:    echo >> $(srcdir)/licence.h
                    301:    echo "// vim: ts=4" >> $(srcdir)/licence.h
                    302:    for i in $(SRCC) $(SRCH) $(INIT_EXE) $(INIT_LIB); \
                    303:    do \
                    304:        cat $(srcdir)/../COPYING > $(srcdir)/tmp; \
                    305:        echo >> $(srcdir)/tmp; \
                    306:        echo >> $(srcdir)/tmp; \
1.11      bertrand  307:        $(AWK) -F'\n' 'BEGIN {d=0;} /^#/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  308:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    309:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    310:    done
                    311:    for i in $(SRCINC); \
                    312:    do \
1.11      bertrand  313:        iconv -f `file -i $(srcdir)/../COPYING | $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  314:                $(srcdir)/../COPYING | \
1.11      bertrand  315:                $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1       bertrand  316:                {printf("!%s\n", substr($$1,2));}' | \
                    317:                iconv -t `file -i $(srcdir)/../COPYING | \
1.11      bertrand  318:                $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
                    319:        $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  320:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    321:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    322:    done
                    323:    for i in $(SRCF); \
                    324:    do \
1.11      bertrand  325:        iconv -f `file -i $(srcdir)/../COPYING | $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  326:                $(srcdir)/../COPYING | \
1.11      bertrand  327:                $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1       bertrand  328:                {printf("C%s\n", substr($$1,2));}' | \
                    329:                iconv -t `file -i $(srcdir)/../COPYING | \
1.11      bertrand  330:                $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
                    331:        $(AWK) -F'\n' 'BEGIN {d=0;} ! /^C/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  332:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    333:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    334:    done
                    335:    for i in $(SRCF90); \
                    336:    do \
1.11      bertrand  337:        iconv -f `file -i $(srcdir)/../COPYING | $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  338:                $(srcdir)/../COPYING | \
1.11      bertrand  339:                $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1       bertrand  340:                {printf("!%s\n", substr($$1,2));}' | \
                    341:                iconv -t `file -i $(srcdir)/../COPYING | \
1.11      bertrand  342:                $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
                    343:        $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  344:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    345:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    346:    done
                    347: 
                    348: librplprototypes.h: rpl.h conversion.awk
1.11      bertrand  349:    $(AWK) -f $(srcdir)/conversion.awk $(srcdir)/rpl.h > \
1.1       bertrand  350:            $(top_builddir)/src/librplprototypes.h
1.10      bertrand  351: 
1.1       bertrand  352: generateurs.c: generateurs_aleatoires.awk
1.11      bertrand  353:    $(AWK) -f $(srcdir)/generateurs_aleatoires.awk \
1.1       bertrand  354:            $(srcdir)/../tools/@GSL@/rng/gsl_rng.h > \
                    355:            $(top_builddir)/src/generateurs.c
                    356: 
1.10      bertrand  357: rpl.inc:
1.24      bertrand  358:    echo BUILDPATH=$(top_builddir)/.. > $@
1.10      bertrand  359:    echo COMPILE=$(DEFS) >> $@
1.37    ! bertrand  360:    echo LINK=@libX@ @libMySQLlib@ @libPgSQLlib@ -lz >> $@
1.29      bertrand  361:    echo OBJECTS=$(SRCCc:.c=.$(OBJEXT)) $(SRCFc:.f=.$(OBJEXT)) \
                    362:            $(SRCF90c:.F90=.$(OBJEXT)) \
                    363:            librpl-conv.$(OBJEXT) >> $@
1.28      bertrand  364:    echo EXTOBJECTS= @MALLOC@ @EXT_SQL@ \
1.16      bertrand  365:        $(top_builddir)/lapack/lapack/liblapack.a \
                    366:        $(top_builddir)/lapack/blas/libblas.a \
                    367:        $(ldadd_libhistory) \
                    368:        $(ldadd_libreadline) \
                    369:        $(ldadd_libncurses) \
                    370:        $(ldadd_libgsl) \
                    371:        $(ldadd_libiconv) \
                    372:        $(ldadd_libcrypto) \
                    373:        $(ldadd_libssl) \
                    374:        $(ldadd_libsqlite) \
1.10      bertrand  375:        >> $@
                    376: 
1.1       bertrand  377: EXTRA_DIST = $(SRCC) $(SRCH) $(SRCF) $(SRCF90) $(SRCINC) \
                    378:        $(INIT_EXE) $(INIT_LIB) $(SRCXPM) \
                    379:        conversion.awk generateurs_aleatoires.awk
                    380: BUILT_SOURCES = librplprototypes.h generateurs.c \
                    381:        $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) \
1.10      bertrand  382:        $(INIT_LIBc) $(SRCINCc) $(INIT_EXEc) \
                    383:        rpl.inc
1.1       bertrand  384: CLEANFILES= $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) $(SRCINCc) \
1.10      bertrand  385:        $(INIT_LIBc) $(INIT_EXEc) librplprototypes.h generateurs.c \
1.29      bertrand  386:        rpl.inc rpl-librpl-conv.$(OBJEXT)
1.1       bertrand  387: 
1.27      bertrand  388: nodist_rpl_SOURCES = \
                    389:        $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) $(INIT_EXEc) \
1.1       bertrand  390:        $(SRCXPM) $(SRCINCc)
1.29      bertrand  391: rpl_LDFLAGS = -g @PROFILAGE@ $(LIB) @EXPORT_DYNAMIC@
1.31      bertrand  392: rpl_CFLAGS = $(AM_CFLAGS) @C_STANDARD@ -Wall -Wextra -Wno-unused-function \
1.16      bertrand  393:         -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@
1.1       bertrand  394: rpl_FFLAGS = $(AM_FFLAGS) -fno-f2c
                    395: rpl_FCFLAGS = $(AM_FCFLAGS) -fno-second-underscore -fno-f2c
                    396: 
1.27      bertrand  397: nodist_librpl_a_SOURCES = \
                    398:        $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) $(INIT_LIBc) \
                    399:        $(SRCXPM) $(SRCINCc)
1.31      bertrand  400: librpl_a_CFLAGS = $(AM_CFLAGS) @C_STANDARD@ -Wall -Wextra -Wno-unused-function \
1.16      bertrand  401:        -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@
1.1       bertrand  402: librpl_a_FFLAGS = $(AM_FFLAGS) -ff2c
                    403: librpl_a_FCFLAGS = $(AM_FCLAGS) -fno-second-underscore
                    404: 
1.18      bertrand  405: include_HEADERS = rplexternals.h rpltypes.h rpl.h librpl.h rpl.inc \
                    406:        librplprototypes.h
1.1       bertrand  407: 
                    408: INCLUDES = -I$(srcdir) -I$(top_builddir) \
                    409:        $(include_libreadline) $(include_libncurses) $(include_libgsl) \
1.6       bertrand  410:        $(include_libiconv) $(include_libcrypto) $(include_libsqlite)\
1.1       bertrand  411:        @includeX@ @libMySQLinc@ @libPgSQLinc@
1.35      bertrand  412: DEFS = -DHAVE_CONFIG_H -Dd_version_rpl=\"@VERSION@\" @BROKEN_SIGINFO@ \
1.3       bertrand  413:        -Dd_exec_path=\"@RUNPATH@\" @FORCE_GNUPLOT_PATH@ @DEBUG@ \
1.1       bertrand  414:        @MOTIF_SUPPORT@ @POSTSCRIPT_SUPPORT@ @GNUPLOT_SUPPORT@ \
                    415:        @VIM_SUPPORT@ @MYSQL_SUPPORT@ @POSTGRESQL_SUPPORT@ \
1.36      bertrand  416:        @SEMAPHORES_NOMMES@ @SEMAPHORES_SYSV@ @IPCS_SYSV@ @SEMUN@ @IPV6@ \
1.7       bertrand  417:        @EXPERIMENTAL_CODE@ $(date) $(hash) -g @PROFILAGE@ \
1.12      bertrand  418:        -Dd_locale=\"@FINAL_ENCODING@\" \
1.5       bertrand  419:        -D@OS@
1.27      bertrand  420: rpl_LDADD = \
1.20      bertrand  421:        $(top_builddir)/lapack/lapack/liblapack.a \
1.1       bertrand  422:        $(top_builddir)/lapack/blas/libblas.a \
                    423:        $(ldadd_libhistory) $(ldadd_libreadline) $(ldadd_libncurses) \
1.10      bertrand  424:        $(ldadd_libiconv) $(ldadd_libcrypto) $(ldadd_libssl) \
                    425:        $(ldadd_libsqlite) \
1.1       bertrand  426:        $(ldadd_libgsl) @libX@ @libMySQLlib@ @libPgSQLlib@
                    427: 
1.29      bertrand  428: always: $(top_builddir)/src/rpl-conv.c
1.1       bertrand  429:    touch $(top_builddir)/src/rpl.conv.c; \
1.16      bertrand  430:    if [ x$(shell which ctags) != x ]; then \
                    431:            (cd $(srcdir); ctags $(SRCC) $(SRCF) $(SRCF90) \
                    432:                $(INIT_LIB) $(INIT_EXE) 2>&1 /dev/null); \
                    433:    fi;
1.1       bertrand  434: 
1.10      bertrand  435: .PHONY: always librpl licences rpl.inc
1.1       bertrand  436: 
                    437: all-local: always
                    438: 
                    439: install-exec-local: librpl
                    440: 
                    441: librpl: install-libLIBRARIES
1.31      bertrand  442:    if [ -d $(top_builddir)/librpl ]; then \
1.32      bertrand  443:        rm -rf $(top_builddir)/librpl; \
1.31      bertrand  444:    fi
                    445:    mkdir -p $(top_builddir)/librpl; \
1.16      bertrand  446:    for i in $(top_builddir)/src/librpl.a \
1.23      bertrand  447:            @MALLOC@ \
1.16      bertrand  448:            $(ldadd_libhistory) $(ldadd_libreadline) \
                    449:            $(top_builddir)/lapack/lapack/liblapack.a \
                    450:            $(top_builddir)/lapack/blas/libblas.a \
                    451:            $(ldadd_libncurses) $(ldadd_libgsl) $(ldadd_libiconv) \
                    452:            $(ldadd_libcrypto) $(ldadd_libssl) $(ldadd_libsqlite); \
                    453:    do \
1.32      bertrand  454:        cp -f $$i $(top_builddir)/librpl; \
1.16      bertrand  455:    done
1.37    ! bertrand  456:    (cd $(top_builddir)/librpl && n=0 && \
        !           457:            echo Building standalone librpl.a; \
        !           458:            for i in *.a; \
        !           459:                do echo Extracting $$i; ar x $$i; \
        !           460:                for j in `ar t $$i`; \
        !           461:                do cp -f $$j $$n-$$j; \
        !           462:                    rm -f $$j; \
        !           463:                done; \
        !           464:                n=`expr $$n + 1`; \
        !           465:                rm -f $$i; \
        !           466:            done; \
1.34      bertrand  467:            L="start"; \
                    468:            while test -n "$$L"; \
                    469:            do \
                    470:                L=""; j=0; \
                    471:                for i in `ls *.$(OBJEXT) 2> /dev/null`; \
                    472:                do \
                    473:                    k=`echo $$i | wc -c`; \
                    474:                    j=`expr $$j + $$k + 1`; \
                    475:                    if test $$j -le 5000; then \
                    476:                        L="$$L $$i"; \
                    477:                    else \
                    478:                        break; \
                    479:                    fi; \
                    480:                done; \
                    481:                ar cru librpl.a $$L; \
                    482:                rm -f $$L; \
                    483:                echo -n "Remaining files "; \
                    484:                ls *.$(OBJEXT) 2> /dev/null | wc -l; \
                    485:            done; \
                    486:            echo Done; \
1.35      bertrand  487:            ar s librpl.a; \
                    488:            if [ @OS@ != OS2 ]; then \
                    489:                echo Stripping librpl.a && strip -d librpl.a; \
                    490:            fi;); \
1.37    ! bertrand  491:    $(INSTALL_DATA) $(top_builddir)/librpl/librpl.a $(DESTDIR)$(libdir)/librpl.a
1.31      bertrand  492: 

CVSweb interface <joel.bertrand@systella.fr>