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

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

CVSweb interface <joel.bertrand@systella.fr>