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

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

CVSweb interface <joel.bertrand@systella.fr>