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

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

CVSweb interface <joel.bertrand@systella.fr>