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

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

CVSweb interface <joel.bertrand@systella.fr>