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

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

CVSweb interface <joel.bertrand@systella.fr>