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

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

CVSweb interface <joel.bertrand@systella.fr>