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

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.27      bertrand  230: # @MALLOC@ doit être la première bibliothèque pour éviter que la libgfortran
                    231: # utilise un allocateur différent.
                    232: LIB=-lz @MALLOC@
1.1       bertrand  233: 
                    234: bin_PROGRAMS = rpl
                    235: lib_LIBRARIES = librpl.a
                    236: 
                    237: SRCCc=$(SRCC:.c=.conv.c)
                    238: SRCHc=$(SRCH:.h=.conv.h)
                    239: SRCFc=$(SRCF:.f=.conv.f)
                    240: SRCF90c=$(SRCF90:.F90=.conv.F90)
                    241: SRCINCc=$(SRCINC:.inc=.conv.inc)
                    242: INIT_LIBc=$(INIT_LIB:.c=.conv.c)
                    243: INIT_EXEc=$(INIT_EXE:.c=.conv.c)
                    244: 
                    245: %.conv.c: %.c
                    246:    $(top_builddir)/rpliconv/rpliconv \
                    247:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    248:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  249:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  250:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    251: 
                    252: %.conv.h: %.h
                    253:    $(top_builddir)/rpliconv/rpliconv \
                    254:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    255:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  256:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  257:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    258: 
                    259: %.conv.f: %.f
                    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: 
                    266: %.conv.F90: %.F90
                    267:    $(top_builddir)/rpliconv/rpliconv \
                    268:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    269:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  270:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  271:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    272: 
                    273: %.conv.inc: %.inc
                    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: 
                    280: licences:
                    281:    cat $(srcdir)/../COPYING > $(srcdir)/licence.h
                    282:    echo >> $(srcdir)/licence.h
                    283:    echo >> $(srcdir)/licence.h
                    284:    echo "#ifndef INCLUSION_LICENCE" >> $(srcdir)/licence.h
                    285:    echo "#   define INCLUSION_LICENCE" >> $(srcdir)/licence.h
                    286:    echo "    unsigned char CeCILL_fr[] =" >> $(srcdir)/licence.h
                    287:    sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-fr.txt | \
1.11      bertrand  288:            $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1       bertrand  289:            >> $(srcdir)/licence.h
                    290:    echo "    ;" >> $(srcdir)/licence.h
                    291:    echo "    unsigned char CeCILL_en[] =" >> $(srcdir)/licence.h
                    292:    sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-en.txt | \
1.11      bertrand  293:            $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1       bertrand  294:            >> $(srcdir)/licence.h
                    295:    echo "    ;" >> $(srcdir)/licence.h
                    296:    echo "#endif" >> $(srcdir)/licence.h
                    297:    echo >> $(srcdir)/licence.h
                    298:    echo "// vim: ts=4" >> $(srcdir)/licence.h
                    299:    for i in $(SRCC) $(SRCH) $(INIT_EXE) $(INIT_LIB); \
                    300:    do \
                    301:        cat $(srcdir)/../COPYING > $(srcdir)/tmp; \
                    302:        echo >> $(srcdir)/tmp; \
                    303:        echo >> $(srcdir)/tmp; \
1.11      bertrand  304:        $(AWK) -F'\n' 'BEGIN {d=0;} /^#/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  305:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    306:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    307:    done
                    308:    for i in $(SRCINC); \
                    309:    do \
1.11      bertrand  310:        iconv -f `file -i $(srcdir)/../COPYING | $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  311:                $(srcdir)/../COPYING | \
1.11      bertrand  312:                $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1       bertrand  313:                {printf("!%s\n", substr($$1,2));}' | \
                    314:                iconv -t `file -i $(srcdir)/../COPYING | \
1.11      bertrand  315:                $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
                    316:        $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  317:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    318:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    319:    done
                    320:    for i in $(SRCF); \
                    321:    do \
1.11      bertrand  322:        iconv -f `file -i $(srcdir)/../COPYING | $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  323:                $(srcdir)/../COPYING | \
1.11      bertrand  324:                $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1       bertrand  325:                {printf("C%s\n", substr($$1,2));}' | \
                    326:                iconv -t `file -i $(srcdir)/../COPYING | \
1.11      bertrand  327:                $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
                    328:        $(AWK) -F'\n' 'BEGIN {d=0;} ! /^C/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  329:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    330:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    331:    done
                    332:    for i in $(SRCF90); \
                    333:    do \
1.11      bertrand  334:        iconv -f `file -i $(srcdir)/../COPYING | $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  335:                $(srcdir)/../COPYING | \
1.11      bertrand  336:                $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1       bertrand  337:                {printf("!%s\n", substr($$1,2));}' | \
                    338:                iconv -t `file -i $(srcdir)/../COPYING | \
1.11      bertrand  339:                $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
                    340:        $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  341:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    342:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    343:    done
                    344: 
                    345: librplprototypes.h: rpl.h conversion.awk
1.11      bertrand  346:    $(AWK) -f $(srcdir)/conversion.awk $(srcdir)/rpl.h > \
1.1       bertrand  347:            $(top_builddir)/src/librplprototypes.h
1.10      bertrand  348: 
1.1       bertrand  349: generateurs.c: generateurs_aleatoires.awk
1.11      bertrand  350:    $(AWK) -f $(srcdir)/generateurs_aleatoires.awk \
1.1       bertrand  351:            $(srcdir)/../tools/@GSL@/rng/gsl_rng.h > \
                    352:            $(top_builddir)/src/generateurs.c
                    353: 
1.10      bertrand  354: rpl.inc:
1.24      bertrand  355:    echo BUILDPATH=$(top_builddir)/.. > $@
1.10      bertrand  356:    echo COMPILE=$(DEFS) >> $@
                    357:    echo LINK=@libX@ @libMySQLlib@ @libPgSQLlib@ $(LIBS) >> $@
                    358:    echo OBJECTS=$(SRCCc:.c=.o) $(SRCFc:.f=.o) $(SRCF90c:.F90=.o) \
                    359:            librpl.conv.o >> $@
1.28    ! bertrand  360:    echo EXTOBJECTS= @MALLOC@ @EXT_SQL@ \
1.16      bertrand  361:        $(top_builddir)/lapack/lapack/liblapack.a \
                    362:        $(top_builddir)/lapack/blas/libblas.a \
                    363:        $(ldadd_libhistory) \
                    364:        $(ldadd_libreadline) \
                    365:        $(ldadd_libncurses) \
                    366:        $(ldadd_libgsl) \
                    367:        $(ldadd_libiconv) \
                    368:        $(ldadd_libcrypto) \
                    369:        $(ldadd_libssl) \
                    370:        $(ldadd_libsqlite) \
1.10      bertrand  371:        >> $@
                    372: 
1.1       bertrand  373: EXTRA_DIST = $(SRCC) $(SRCH) $(SRCF) $(SRCF90) $(SRCINC) \
                    374:        $(INIT_EXE) $(INIT_LIB) $(SRCXPM) \
                    375:        conversion.awk generateurs_aleatoires.awk
                    376: BUILT_SOURCES = librplprototypes.h generateurs.c \
                    377:        $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) \
1.10      bertrand  378:        $(INIT_LIBc) $(SRCINCc) $(INIT_EXEc) \
                    379:        rpl.inc
1.1       bertrand  380: CLEANFILES= $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) $(SRCINCc) \
1.10      bertrand  381:        $(INIT_LIBc) $(INIT_EXEc) librplprototypes.h generateurs.c \
                    382:        rpl.inc rpl-librpl.conv.o
1.1       bertrand  383: 
1.27      bertrand  384: nodist_rpl_SOURCES = \
                    385:        $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) $(INIT_EXEc) \
1.1       bertrand  386:        $(SRCXPM) $(SRCINCc)
1.16      bertrand  387: rpl_LDFLAGS = -g @PROFILAGE@ $(LIB) -Wl,@EXPORT_DYNAMIC@
1.22      bertrand  388: rpl_CFLAGS = $(AM_CFLAGS) -std=gnu99 -Wall -Wextra -Wno-unused-function \
1.16      bertrand  389:         -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@
1.1       bertrand  390: rpl_FFLAGS = $(AM_FFLAGS) -fno-f2c
                    391: rpl_FCFLAGS = $(AM_FCFLAGS) -fno-second-underscore -fno-f2c
                    392: 
1.27      bertrand  393: nodist_librpl_a_SOURCES = \
                    394:        $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) $(INIT_LIBc) \
                    395:        $(SRCXPM) $(SRCINCc)
1.22      bertrand  396: librpl_a_CFLAGS = $(AM_CFLAGS) -std=gnu99 -Wall -Wextra -Wno-unused-function \
1.16      bertrand  397:        -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@
1.1       bertrand  398: librpl_a_FFLAGS = $(AM_FFLAGS) -ff2c
                    399: librpl_a_FCFLAGS = $(AM_FCLAGS) -fno-second-underscore
                    400: 
1.18      bertrand  401: include_HEADERS = rplexternals.h rpltypes.h rpl.h librpl.h rpl.inc \
                    402:        librplprototypes.h
1.1       bertrand  403: 
                    404: INCLUDES = -I$(srcdir) -I$(top_builddir) \
                    405:        $(include_libreadline) $(include_libncurses) $(include_libgsl) \
1.6       bertrand  406:        $(include_libiconv) $(include_libcrypto) $(include_libsqlite)\
1.1       bertrand  407:        @includeX@ @libMySQLinc@ @libPgSQLinc@
                    408: DEFS = -DHAVE_CONFIG_H -Dd_version_rpl=\"@VERSION@\" \
1.3       bertrand  409:        -Dd_exec_path=\"@RUNPATH@\" @FORCE_GNUPLOT_PATH@ @DEBUG@ \
1.1       bertrand  410:        @MOTIF_SUPPORT@ @POSTSCRIPT_SUPPORT@ @GNUPLOT_SUPPORT@ \
                    411:        @VIM_SUPPORT@ @MYSQL_SUPPORT@ @POSTGRESQL_SUPPORT@ \
1.16      bertrand  412:        @SEMAPHORES_NOMMES@ \
1.7       bertrand  413:        @EXPERIMENTAL_CODE@ $(date) $(hash) -g @PROFILAGE@ \
1.12      bertrand  414:        -Dd_locale=\"@FINAL_ENCODING@\" \
1.5       bertrand  415:        -D@OS@
1.27      bertrand  416: rpl_LDADD = \
1.20      bertrand  417:        $(top_builddir)/lapack/lapack/liblapack.a \
1.1       bertrand  418:        $(top_builddir)/lapack/blas/libblas.a \
                    419:        $(ldadd_libhistory) $(ldadd_libreadline) $(ldadd_libncurses) \
1.10      bertrand  420:        $(ldadd_libiconv) $(ldadd_libcrypto) $(ldadd_libssl) \
                    421:        $(ldadd_libsqlite) \
1.1       bertrand  422:        $(ldadd_libgsl) @libX@ @libMySQLlib@ @libPgSQLlib@
                    423: 
                    424: always: $(top_builddir)/src/rpl.conv.c
                    425:    touch $(top_builddir)/src/rpl.conv.c; \
1.16      bertrand  426:    if [ x$(shell which ctags) != x ]; then \
                    427:            (cd $(srcdir); ctags $(SRCC) $(SRCF) $(SRCF90) \
                    428:                $(INIT_LIB) $(INIT_EXE) 2>&1 /dev/null); \
                    429:    fi;
1.1       bertrand  430: 
1.10      bertrand  431: .PHONY: always librpl licences rpl.inc
1.1       bertrand  432: 
                    433: all-local: always
                    434: 
                    435: install-exec-local: librpl
                    436: 
                    437: librpl: install-libLIBRARIES
1.16      bertrand  438:    if [ ! -d $(top_builddir)/librpl ]; then mkdir -p $(top_builddir)/librpl; fi
                    439:    \rm -rf $(top_builddir)/librpl/*
                    440:    for i in $(top_builddir)/src/librpl.a \
1.23      bertrand  441:            @MALLOC@ \
1.16      bertrand  442:            $(ldadd_libhistory) $(ldadd_libreadline) \
                    443:            $(top_builddir)/lapack/lapack/liblapack.a \
                    444:            $(top_builddir)/lapack/blas/libblas.a \
                    445:            $(ldadd_libncurses) $(ldadd_libgsl) $(ldadd_libiconv) \
                    446:            $(ldadd_libcrypto) $(ldadd_libssl) $(ldadd_libsqlite); \
                    447:    do \
                    448:        \cp -f $$i $(top_builddir)/librpl; \
                    449:    done
                    450:    (cd $(top_builddir)/librpl && \
                    451:            for i in *.a; do ar x $$i && \rm -f $$i; done; \
                    452:            ar cr librpl.a *)
                    453:    \mv -f $(top_builddir)/librpl/librpl.a $(top_builddir)/src/librpl.a
                    454:    \rm -rf $(top_builddir)/librpl
                    455:    $(RANLIB) $(top_builddir)/src/librpl.a

CVSweb interface <joel.bertrand@systella.fr>