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

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

CVSweb interface <joel.bertrand@systella.fr>