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

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\
                    135:    instructions_n1.c\
                    136:    instructions_n2.c\
                    137:    instructions_o1.c\
                    138:    instructions_o2.c\
                    139:    instructions_p1.c\
                    140:    instructions_p2.c\
                    141:    instructions_p3.c\
                    142:    instructions_p4.c\
                    143:    instructions_p5.c\
                    144:    instructions_p6.c\
                    145:    instructions_p7.c\
                    146:    instructions_q1.c\
                    147:    instructions_r1.c\
                    148:    instructions_r2.c\
                    149:    instructions_r3.c\
                    150:    instructions_r4.c\
                    151:    instructions_r5.c\
                    152:    instructions_r6.c\
                    153:    instructions_s1.c\
                    154:    instructions_s2.c\
                    155:    instructions_s3.c\
                    156:    instructions_s4.c\
                    157:    instructions_s5.c\
                    158:    instructions_s6.c\
                    159:    instructions_s7.c\
                    160:    instructions_s8.c\
                    161:    instructions_s9.c\
                    162:    instructions_s10.c\
                    163:    instructions_t1.c\
                    164:    instructions_t2.c\
                    165:    instructions_t3.c\
                    166:    instructions_u1.c\
                    167:    instructions_v1.c\
                    168:    instructions_v2.c\
                    169:    instructions_w1.c\
                    170:    instructions_w2.c\
                    171:    instructions_x1.c\
                    172:    instructions_x2.c\
                    173:    instructions_y1.c\
                    174:    interface_gnuplot.c\
                    175:    interface_tex.c\
                    176:    interruptions.c\
                    177:    messages.c\
                    178:    occupation_memoire.c\
                    179:    operations_atomiques.c\
                    180:    operations_binaires.c\
                    181:    optimisation.c\
                    182:    profilage.c\
                    183:    rpl.c\
                    184:    rplcore.c\
1.16      bertrand  185:    semaphores.c\
1.1       bertrand  186:    sequenceur.c\
                    187:    simplification.c\
                    188:    sommations.c\
                    189:    sql.c\
                    190:    statistiques.c\
                    191:    transliteration.c\
                    192:    types.c
                    193: 
                    194: SRCH=\
                    195:    completion.h\
                    196:    convert.h\
                    197:    copyright.h\
                    198:    garanties.h\
                    199:    gnuplot.h\
                    200:    librpl.h\
                    201:    licence.h\
                    202:    rpl.h\
                    203:    rplexternals.h\
                    204:    rpltypes.h\
                    205:    tex.h\
                    206:    usages.h\
                    207:    vim.h
                    208: 
                    209: SRCF=\
                    210:    arithmetique.f\
                    211:    bibliotheque_logarithmique.f\
                    212:    bibliotheque_trigonometrique.f
                    213: 
                    214: SRCF90=\
                    215:    combinaisons.F90\
                    216:    distributions.F90\
                    217:    fonctions_speciales.F90
                    218: 
                    219: SRCINC=\
                    220:    rplftypes.inc
                    221: 
                    222: SRCXPM=\
                    223:    rpl.xpm
                    224: 
                    225: INIT_EXE=init.c
                    226: 
                    227: INIT_LIB=librpl.c
                    228: 
                    229: LIB=-lz @LIBMTMALLOC@
                    230: 
                    231: bin_PROGRAMS = rpl
                    232: lib_LIBRARIES = librpl.a
                    233: 
                    234: SRCCc=$(SRCC:.c=.conv.c)
                    235: SRCHc=$(SRCH:.h=.conv.h)
                    236: SRCFc=$(SRCF:.f=.conv.f)
                    237: SRCF90c=$(SRCF90:.F90=.conv.F90)
                    238: SRCINCc=$(SRCINC:.inc=.conv.inc)
                    239: INIT_LIBc=$(INIT_LIB:.c=.conv.c)
                    240: INIT_EXEc=$(INIT_EXE:.c=.conv.c)
                    241: 
                    242: %.conv.c: %.c
                    243:    $(top_builddir)/rpliconv/rpliconv \
                    244:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    245:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  246:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  247:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    248: 
                    249: %.conv.h: %.h
                    250:    $(top_builddir)/rpliconv/rpliconv \
                    251:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    252:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  253:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  254:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    255: 
                    256: %.conv.f: %.f
                    257:    $(top_builddir)/rpliconv/rpliconv \
                    258:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    259:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  260:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  261:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    262: 
                    263: %.conv.F90: %.F90
                    264:    $(top_builddir)/rpliconv/rpliconv \
                    265:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    266:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  267:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  268:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    269: 
                    270: %.conv.inc: %.inc
                    271:    $(top_builddir)/rpliconv/rpliconv \
                    272:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    273:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  274:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  275:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    276: 
                    277: licences:
                    278:    cat $(srcdir)/../COPYING > $(srcdir)/licence.h
                    279:    echo >> $(srcdir)/licence.h
                    280:    echo >> $(srcdir)/licence.h
                    281:    echo "#ifndef INCLUSION_LICENCE" >> $(srcdir)/licence.h
                    282:    echo "#   define INCLUSION_LICENCE" >> $(srcdir)/licence.h
                    283:    echo "    unsigned char CeCILL_fr[] =" >> $(srcdir)/licence.h
                    284:    sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-fr.txt | \
1.11      bertrand  285:            $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1       bertrand  286:            >> $(srcdir)/licence.h
                    287:    echo "    ;" >> $(srcdir)/licence.h
                    288:    echo "    unsigned char CeCILL_en[] =" >> $(srcdir)/licence.h
                    289:    sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-en.txt | \
1.11      bertrand  290:            $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1       bertrand  291:            >> $(srcdir)/licence.h
                    292:    echo "    ;" >> $(srcdir)/licence.h
                    293:    echo "#endif" >> $(srcdir)/licence.h
                    294:    echo >> $(srcdir)/licence.h
                    295:    echo "// vim: ts=4" >> $(srcdir)/licence.h
                    296:    for i in $(SRCC) $(SRCH) $(INIT_EXE) $(INIT_LIB); \
                    297:    do \
                    298:        cat $(srcdir)/../COPYING > $(srcdir)/tmp; \
                    299:        echo >> $(srcdir)/tmp; \
                    300:        echo >> $(srcdir)/tmp; \
1.11      bertrand  301:        $(AWK) -F'\n' 'BEGIN {d=0;} /^#/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  302:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    303:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    304:    done
                    305:    for i in $(SRCINC); \
                    306:    do \
1.11      bertrand  307:        iconv -f `file -i $(srcdir)/../COPYING | $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  308:                $(srcdir)/../COPYING | \
1.11      bertrand  309:                $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1       bertrand  310:                {printf("!%s\n", substr($$1,2));}' | \
                    311:                iconv -t `file -i $(srcdir)/../COPYING | \
1.11      bertrand  312:                $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
                    313:        $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  314:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    315:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    316:    done
                    317:    for i in $(SRCF); \
                    318:    do \
1.11      bertrand  319:        iconv -f `file -i $(srcdir)/../COPYING | $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  320:                $(srcdir)/../COPYING | \
1.11      bertrand  321:                $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1       bertrand  322:                {printf("C%s\n", substr($$1,2));}' | \
                    323:                iconv -t `file -i $(srcdir)/../COPYING | \
1.11      bertrand  324:                $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
                    325:        $(AWK) -F'\n' 'BEGIN {d=0;} ! /^C/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  326:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    327:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    328:    done
                    329:    for i in $(SRCF90); \
                    330:    do \
1.11      bertrand  331:        iconv -f `file -i $(srcdir)/../COPYING | $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  332:                $(srcdir)/../COPYING | \
1.11      bertrand  333:                $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1       bertrand  334:                {printf("!%s\n", substr($$1,2));}' | \
                    335:                iconv -t `file -i $(srcdir)/../COPYING | \
1.11      bertrand  336:                $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
                    337:        $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  338:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    339:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    340:    done
                    341: 
                    342: librplprototypes.h: rpl.h conversion.awk
1.11      bertrand  343:    $(AWK) -f $(srcdir)/conversion.awk $(srcdir)/rpl.h > \
1.1       bertrand  344:            $(top_builddir)/src/librplprototypes.h
1.10      bertrand  345: 
1.1       bertrand  346: generateurs.c: generateurs_aleatoires.awk
1.11      bertrand  347:    $(AWK) -f $(srcdir)/generateurs_aleatoires.awk \
1.1       bertrand  348:            $(srcdir)/../tools/@GSL@/rng/gsl_rng.h > \
                    349:            $(top_builddir)/src/generateurs.c
                    350: 
1.10      bertrand  351: rpl.inc:
                    352:    echo BUILDPATH=$(shell pwd)/.. > $@
                    353:    echo COMPILE=$(DEFS) >> $@
                    354:    echo LINK=@libX@ @libMySQLlib@ @libPgSQLlib@ $(LIBS) >> $@
                    355:    echo OBJECTS=$(SRCCc:.c=.o) $(SRCFc:.f=.o) $(SRCF90c:.F90=.o) \
                    356:            librpl.conv.o >> $@
                    357:    echo EXTOBJECTS= \
1.16      bertrand  358:        $(top_builddir)/lapack/lapack/liblapack.a \
                    359:        $(top_builddir)/lapack/blas/libblas.a \
                    360:        $(ldadd_libhistory) \
                    361:        $(ldadd_libreadline) \
                    362:        $(ldadd_libncurses) \
                    363:        $(ldadd_libgsl) \
                    364:        $(ldadd_libiconv) \
                    365:        $(ldadd_libcrypto) \
                    366:        $(ldadd_libssl) \
                    367:        $(ldadd_libsqlite) \
1.10      bertrand  368:        >> $@
                    369:    gcc $(INCLUDES) $(DEFS) $(AM_CFLAGS) $(rpl_CFLAGS) librpl.conv.c \
                    370:            -c -o rpl-librpl.conv.o
                    371: 
1.1       bertrand  372: EXTRA_DIST = $(SRCC) $(SRCH) $(SRCF) $(SRCF90) $(SRCINC) \
                    373:        $(INIT_EXE) $(INIT_LIB) $(SRCXPM) \
                    374:        conversion.awk generateurs_aleatoires.awk
                    375: BUILT_SOURCES = librplprototypes.h generateurs.c \
                    376:        $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) \
1.10      bertrand  377:        $(INIT_LIBc) $(SRCINCc) $(INIT_EXEc) \
                    378:        rpl.inc
1.1       bertrand  379: CLEANFILES= $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) $(SRCINCc) \
1.10      bertrand  380:        $(INIT_LIBc) $(INIT_EXEc) librplprototypes.h generateurs.c \
                    381:        rpl.inc rpl-librpl.conv.o
1.1       bertrand  382: 
                    383: nodist_rpl_SOURCES = $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) $(INIT_EXEc) \
                    384:        $(SRCXPM) $(SRCINCc)
1.16      bertrand  385: rpl_LDFLAGS = -g @PROFILAGE@ $(LIB) -Wl,@EXPORT_DYNAMIC@
1.1       bertrand  386: 
1.19    ! bertrand  387: rpl_CFLAGS = $(AM_CFLAGS) -Wall -Wextra \
1.16      bertrand  388:         -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@
1.1       bertrand  389: rpl_FFLAGS = $(AM_FFLAGS) -fno-f2c
                    390: rpl_FCFLAGS = $(AM_FCFLAGS) -fno-second-underscore -fno-f2c
                    391: 
                    392: nodist_librpl_a_SOURCES = $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) $(INIT_LIBc) \
                    393:         $(SRCXPM) $(SRCINCc)
1.19    ! bertrand  394: librpl_a_CFLAGS = $(AM_CFLAGS) -Wall -Wextra \
1.16      bertrand  395:        -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@
1.1       bertrand  396: librpl_a_FFLAGS = $(AM_FFLAGS) -ff2c
                    397: librpl_a_FCFLAGS = $(AM_FCLAGS) -fno-second-underscore
                    398: 
1.18      bertrand  399: include_HEADERS = rplexternals.h rpltypes.h rpl.h librpl.h rpl.inc \
                    400:        librplprototypes.h
1.1       bertrand  401: 
                    402: INCLUDES = -I$(srcdir) -I$(top_builddir) \
                    403:        $(include_libreadline) $(include_libncurses) $(include_libgsl) \
1.6       bertrand  404:        $(include_libiconv) $(include_libcrypto) $(include_libsqlite)\
1.1       bertrand  405:        @includeX@ @libMySQLinc@ @libPgSQLinc@
                    406: DEFS = -DHAVE_CONFIG_H -Dd_version_rpl=\"@VERSION@\" \
1.3       bertrand  407:        -Dd_exec_path=\"@RUNPATH@\" @FORCE_GNUPLOT_PATH@ @DEBUG@ \
1.1       bertrand  408:        @MOTIF_SUPPORT@ @POSTSCRIPT_SUPPORT@ @GNUPLOT_SUPPORT@ \
                    409:        @VIM_SUPPORT@ @MYSQL_SUPPORT@ @POSTGRESQL_SUPPORT@ \
1.16      bertrand  410:        @SEMAPHORES_NOMMES@ \
1.7       bertrand  411:        @EXPERIMENTAL_CODE@ $(date) $(hash) -g @PROFILAGE@ \
1.12      bertrand  412:        -Dd_locale=\"@FINAL_ENCODING@\" \
1.5       bertrand  413:        -D@OS@
1.1       bertrand  414: rpl_LDADD = $(top_builddir)/lapack/lapack/liblapack.a \
                    415:        $(top_builddir)/lapack/blas/libblas.a \
                    416:        $(ldadd_libhistory) $(ldadd_libreadline) $(ldadd_libncurses) \
1.10      bertrand  417:        $(ldadd_libiconv) $(ldadd_libcrypto) $(ldadd_libssl) \
                    418:        $(ldadd_libsqlite) \
1.1       bertrand  419:        $(ldadd_libgsl) @libX@ @libMySQLlib@ @libPgSQLlib@
                    420: 
                    421: always: $(top_builddir)/src/rpl.conv.c
                    422:    touch $(top_builddir)/src/rpl.conv.c; \
1.16      bertrand  423:    if [ x$(shell which ctags) != x ]; then \
                    424:            (cd $(srcdir); ctags $(SRCC) $(SRCF) $(SRCF90) \
                    425:                $(INIT_LIB) $(INIT_EXE) 2>&1 /dev/null); \
                    426:    fi;
1.1       bertrand  427: 
1.10      bertrand  428: .PHONY: always librpl licences rpl.inc
1.1       bertrand  429: 
                    430: all-local: always
                    431: 
                    432: install-exec-local: librpl
                    433: 
                    434: librpl: install-libLIBRARIES
1.16      bertrand  435:    if [ ! -d $(top_builddir)/librpl ]; then mkdir -p $(top_builddir)/librpl; fi
                    436:    \rm -rf $(top_builddir)/librpl/*
                    437:    for i in $(top_builddir)/src/librpl.a \
                    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>