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

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

CVSweb interface <joel.bertrand@systella.fr>