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

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.60      bertrand   23: ldadd_libsigsegv = $(top_builddir)/tools/@SIGSEGV@/src/.libs/libsigsegv.a
1.61    ! bertrand   24: include_libsigsegv = -I$(top_builddir)/tools/@SIGSEGV@/src
1.60      bertrand   25: 
1.54      bertrand   26: ldadd_librplcas = @LIBRPLCAS@
1.53      bertrand   27: include_librplcas = -I$(top_builddir)/rplcas/include/giac \
                     28:        -I$(top_builddir)/rplcas/include
1.52      bertrand   29: 
1.24      bertrand   30: date = -Dd_date_rpl="\"$(shell LC_ALL=fr_FR date +'%A %x, %X %Z' | \
1.11      bertrand   31:        $(AWK) '{ v=$$0; gsub(/^[ \t]+/, "", v); gsub(/[ \t]+$$/, "", v); \
1.5       bertrand   32:        printf("%s\n", v);}')\"" \
                     33:        -Dd_date_en_rpl="\"$(shell LC_ALL=C date +'%A %x, %X %Z' | \
1.11      bertrand   34:        $(AWK) '{ v=$$0; gsub(/^[ \t]+/, "", v); gsub(/[ \t]+$$/, "", v); \
1.5       bertrand   35:        printf("%s\n", v);}')\""
1.1       bertrand   36: 
1.29      bertrand   37: 
                     38: hash = -Drplpp_md5="\"$(shell $(top_builddir)/rplsums/rplmd5sum$(EXEEXT) \
1.7       bertrand   39:        $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT))\"" \
1.29      bertrand   40:        -Drplpp_sha1="\"$(shell $(top_builddir)/rplsums/rplsha1sum$(EXEEXT) \
1.7       bertrand   41:        $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT))\"" \
1.29      bertrand   42:        -Drplfile_md5="\"$(shell $(top_builddir)/rplsums/rplmd5sum$(EXEEXT) \
1.7       bertrand   43:        $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT))\"" \
1.29      bertrand   44:        -Drplfile_sha1="\"$(shell $(top_builddir)/rplsums/rplsha1sum$(EXEEXT) \
1.7       bertrand   45:        $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT))\"" \
1.29      bertrand   46:        -Drpliconv_md5="\"$(shell $(top_builddir)/rplsums/rplmd5sum$(EXEEXT) \
1.7       bertrand   47:        $(top_builddir)/rpliconv/rpliconv$(EXEEXT))\"" \
1.29      bertrand   48:        -Drpliconv_sha1="\"$(shell $(top_builddir)/rplsums/rplsha1sum$(EXEEXT) \
1.7       bertrand   49:        $(top_builddir)/rpliconv/rpliconv$(EXEEXT))\"" \
1.41      bertrand   50:        -Drplawk_md5="\"$(shell $(top_builddir)/rplsums/rplmd5sum$(EXEEXT) \
                     51:        $(top_builddir)/rplawk/rplawk$(EXEEXT))\"" \
                     52:        -Drplawk_sha1="\"$(shell $(top_builddir)/rplsums/rplsha1sum$(EXEEXT) \
                     53:        $(top_builddir)/rplawk/rplawk$(EXEEXT))\"" \
1.29      bertrand   54:        -Drplconvert_md5="\"$(shell $(top_builddir)/rplsums/rplmd5sum$(EXEEXT) \
1.7       bertrand   55:        $(top_builddir)/tools/@UNITS@/units$(EXEEXT))\"" \
1.29      bertrand   56:        -Drplconvert_sha1="\"$(shell $(top_builddir)/rplsums/rplsha1sum$(EXEEXT) \
1.7       bertrand   57:        $(top_builddir)/tools/@UNITS@/units$(EXEEXT))\""
                     58: 
1.1       bertrand   59: SRCC=\
                     60:    algebre_lineaire1.c\
                     61:    algebre_lineaire2.c\
                     62:    algebre_lineaire3.c\
                     63:    algebre_lineaire4.c\
                     64:    analyse.c\
                     65:    analyse_notation_algebrique.c\
                     66:    analyse_notation_rpn.c\
1.2       bertrand   67:    asprintf.c\
1.1       bertrand   68:    bibliotheques_externes.c\
                     69:    calcul_differentiel.c\
                     70:    calcul_integral.c\
                     71:    chainage.c\
                     72:    compilation.c\
                     73:    completion.c\
1.6       bertrand   74:    controle.c \
1.1       bertrand   75:    daemon.c\
                     76:    date.c\
                     77:    depassements.c\
                     78:    dft.c\
                     79:    encart.c\
                     80:    evaluation.c\
                     81:    fonctions_trigonometriques.c\
                     82:    formateur.c\
                     83:    formateur_fichiers.c\
1.48      bertrand   84:    formateur_flux.c\
1.1       bertrand   85:    fusible.c\
                     86:    generateurs_aleatoires.c\
                     87:    gestion_fichiers.c\
                     88:    gestion_interruptions.c\
                     89:    gestion_niveaux.c\
                     90:    gestion_objets.c\
                     91:    gestion_pile.c\
                     92:    gestion_pile_last.c\
                     93:    gestion_pile_systeme.c\
                     94:    gestion_processus.c\
                     95:    gestion_threads.c\
                     96:    gestion_variables.c\
                     97:    gestion_variables_statiques.c\
                     98:    gestion_variables_partagees.c\
1.29      bertrand   99:    getaddrinfo.c\
1.1       bertrand  100:    indicateurs.c\
                    101:    instructions_a1.c\
                    102:    instructions_a2.c\
                    103:    instructions_a3.c\
                    104:    instructions_a4.c\
                    105:    instructions_a5.c\
                    106:    instructions_b1.c\
                    107:    instructions_c1.c\
                    108:    instructions_c2.c\
                    109:    instructions_c3.c\
                    110:    instructions_c4.c\
                    111:    instructions_c5.c\
                    112:    instructions_c6.c\
                    113:    instructions_c7.c\
                    114:    instructions_d1.c\
                    115:    instructions_d2.c\
                    116:    instructions_d3.c\
                    117:    instructions_d4.c\
                    118:    instructions_d5.c\
                    119:    instructions_d6.c\
                    120:    instructions_e1.c\
                    121:    instructions_e2.c\
                    122:    instructions_e3.c\
                    123:    instructions_e4.c\
                    124:    instructions_f1.c\
                    125:    instructions_f2.c\
                    126:    instructions_f3.c\
                    127:    instructions_f4.c\
                    128:    instructions_g1.c\
                    129:    instructions_g2.c\
                    130:    instructions_g3.c\
                    131:    instructions_g4.c\
                    132:    instructions_h1.c\
                    133:    instructions_h2.c\
                    134:    instructions_i1.c\
                    135:    instructions_i2.c\
                    136:    instructions_i3.c\
                    137:    instructions_i4.c\
                    138:    instructions_j1.c\
                    139:    instructions_k1.c\
                    140:    instructions_l1.c\
                    141:    instructions_l2.c\
                    142:    instructions_l3.c\
                    143:    instructions_l4.c\
                    144:    instructions_l5.c\
1.57      bertrand  145:    instructions_l6.c\
1.1       bertrand  146:    instructions_m1.c\
                    147:    instructions_m2.c\
                    148:    instructions_m3.c\
                    149:    instructions_m4.c\
1.21      bertrand  150:    instructions_m5.c\
1.1       bertrand  151:    instructions_n1.c\
                    152:    instructions_n2.c\
                    153:    instructions_o1.c\
                    154:    instructions_o2.c\
                    155:    instructions_p1.c\
                    156:    instructions_p2.c\
                    157:    instructions_p3.c\
                    158:    instructions_p4.c\
                    159:    instructions_p5.c\
                    160:    instructions_p6.c\
                    161:    instructions_p7.c\
                    162:    instructions_q1.c\
                    163:    instructions_r1.c\
                    164:    instructions_r2.c\
                    165:    instructions_r3.c\
                    166:    instructions_r4.c\
                    167:    instructions_r5.c\
                    168:    instructions_r6.c\
                    169:    instructions_s1.c\
                    170:    instructions_s2.c\
                    171:    instructions_s3.c\
                    172:    instructions_s4.c\
                    173:    instructions_s5.c\
                    174:    instructions_s6.c\
                    175:    instructions_s7.c\
                    176:    instructions_s8.c\
                    177:    instructions_s9.c\
                    178:    instructions_s10.c\
1.58      bertrand  179:    instructions_s11.c\
1.1       bertrand  180:    instructions_t1.c\
                    181:    instructions_t2.c\
                    182:    instructions_t3.c\
                    183:    instructions_u1.c\
                    184:    instructions_v1.c\
                    185:    instructions_v2.c\
                    186:    instructions_w1.c\
                    187:    instructions_w2.c\
                    188:    instructions_x1.c\
                    189:    instructions_x2.c\
                    190:    instructions_y1.c\
                    191:    interface_gnuplot.c\
                    192:    interface_tex.c\
                    193:    interruptions.c\
                    194:    messages.c\
                    195:    occupation_memoire.c\
                    196:    operations_atomiques.c\
                    197:    operations_binaires.c\
                    198:    optimisation.c\
                    199:    profilage.c\
                    200:    rpl.c\
                    201:    rplcore.c\
1.16      bertrand  202:    semaphores.c\
1.1       bertrand  203:    sequenceur.c\
                    204:    simplification.c\
                    205:    sommations.c\
                    206:    sql.c\
                    207:    statistiques.c\
                    208:    transliteration.c\
                    209:    types.c
                    210: 
1.51      bertrand  211: SRCCPP=\
                    212:    interface_cas.cpp
                    213: 
1.1       bertrand  214: SRCH=\
                    215:    completion.h\
                    216:    convert.h\
                    217:    copyright.h\
                    218:    garanties.h\
1.29      bertrand  219:    getaddrinfo.h\
1.1       bertrand  220:    gnuplot.h\
                    221:    librpl.h\
                    222:    licence.h\
                    223:    rpl.h\
                    224:    rplexternals.h\
                    225:    rpltypes.h\
                    226:    tex.h\
                    227:    usages.h\
                    228:    vim.h
                    229: 
                    230: SRCF=\
                    231:    arithmetique.f\
                    232:    bibliotheque_logarithmique.f\
                    233:    bibliotheque_trigonometrique.f
                    234: 
                    235: SRCF90=\
                    236:    combinaisons.F90\
                    237:    distributions.F90\
                    238:    fonctions_speciales.F90
                    239: 
                    240: SRCINC=\
                    241:    rplftypes.inc
                    242: 
                    243: SRCXPM=\
                    244:    rpl.xpm
                    245: 
                    246: INIT_EXE=init.c
                    247: 
                    248: INIT_LIB=librpl.c
                    249: 
1.47      bertrand  250: LIB=-lz @MALLOC@
1.1       bertrand  251: 
                    252: bin_PROGRAMS = rpl
                    253: lib_LIBRARIES = librpl.a
                    254: 
1.29      bertrand  255: SRCCc=$(SRCC:.c=-conv.c)
                    256: SRCHc=$(SRCH:.h=-conv.h)
1.51      bertrand  257: SRCCPPc=$(SRCCPP:.cpp=-conv.cpp)
1.29      bertrand  258: SRCFc=$(SRCF:.f=-conv.f)
                    259: SRCF90c=$(SRCF90:.F90=-conv.F90)
                    260: SRCINCc=$(SRCINC:.inc=-conv.inc)
                    261: INIT_LIBc=$(INIT_LIB:.c=-conv.c)
                    262: INIT_EXEc=$(INIT_EXE:.c=-conv.c)
1.1       bertrand  263: 
1.29      bertrand  264: %-conv.c: %.c
1.1       bertrand  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: 
1.51      bertrand  271: %-conv.cpp: %.cpp
                    272:    $(top_builddir)/rpliconv/rpliconv \
                    273:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    274:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
                    275:            $(AWK) -F= '{print $$2;}'` \
                    276:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    277: 
1.29      bertrand  278: %-conv.h: %.h
1.1       bertrand  279:    $(top_builddir)/rpliconv/rpliconv \
                    280:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    281:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  282:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  283:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    284: 
1.29      bertrand  285: %-conv.f: %.f
1.1       bertrand  286:    $(top_builddir)/rpliconv/rpliconv \
                    287:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    288:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  289:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  290:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    291: 
1.29      bertrand  292: %-conv.F90: %.F90
1.1       bertrand  293:    $(top_builddir)/rpliconv/rpliconv \
                    294:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    295:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  296:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  297:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    298: 
1.29      bertrand  299: %-conv.inc: %.inc
1.1       bertrand  300:    $(top_builddir)/rpliconv/rpliconv \
                    301:            -f `$(top_builddir)/tools/@FILE@/src/rplfile \
                    302:            -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11      bertrand  303:            $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  304:            -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
                    305: 
                    306: licences:
                    307:    cat $(srcdir)/../COPYING > $(srcdir)/licence.h
                    308:    echo >> $(srcdir)/licence.h
                    309:    echo >> $(srcdir)/licence.h
                    310:    echo "#ifndef INCLUSION_LICENCE" >> $(srcdir)/licence.h
                    311:    echo "#   define INCLUSION_LICENCE" >> $(srcdir)/licence.h
                    312:    echo "    unsigned char CeCILL_fr[] =" >> $(srcdir)/licence.h
                    313:    sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-fr.txt | \
1.11      bertrand  314:            $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1       bertrand  315:            >> $(srcdir)/licence.h
                    316:    echo "    ;" >> $(srcdir)/licence.h
                    317:    echo "    unsigned char CeCILL_en[] =" >> $(srcdir)/licence.h
                    318:    sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-en.txt | \
1.11      bertrand  319:            $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1       bertrand  320:            >> $(srcdir)/licence.h
                    321:    echo "    ;" >> $(srcdir)/licence.h
                    322:    echo "#endif" >> $(srcdir)/licence.h
                    323:    echo >> $(srcdir)/licence.h
                    324:    echo "// vim: ts=4" >> $(srcdir)/licence.h
1.51      bertrand  325:    for i in $(SRCC) $(SRCCPP) $(SRCH) $(INIT_EXE) $(INIT_LIB); \
1.1       bertrand  326:    do \
                    327:        cat $(srcdir)/../COPYING > $(srcdir)/tmp; \
                    328:        echo >> $(srcdir)/tmp; \
                    329:        echo >> $(srcdir)/tmp; \
1.11      bertrand  330:        $(AWK) -F'\n' 'BEGIN {d=0;} /^#/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  331:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    332:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    333:    done
                    334:    for i in $(SRCINC); \
                    335:    do \
1.11      bertrand  336:        iconv -f `file -i $(srcdir)/../COPYING | $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  337:                $(srcdir)/../COPYING | \
1.11      bertrand  338:                $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1       bertrand  339:                {printf("!%s\n", substr($$1,2));}' | \
                    340:                iconv -t `file -i $(srcdir)/../COPYING | \
1.11      bertrand  341:                $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
                    342:        $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  343:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    344:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    345:    done
                    346:    for i in $(SRCF); \
                    347:    do \
1.11      bertrand  348:        iconv -f `file -i $(srcdir)/../COPYING | $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  349:                $(srcdir)/../COPYING | \
1.11      bertrand  350:                $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1       bertrand  351:                {printf("C%s\n", substr($$1,2));}' | \
                    352:                iconv -t `file -i $(srcdir)/../COPYING | \
1.11      bertrand  353:                $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
                    354:        $(AWK) -F'\n' 'BEGIN {d=0;} ! /^C/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  355:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    356:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    357:    done
                    358:    for i in $(SRCF90); \
                    359:    do \
1.11      bertrand  360:        iconv -f `file -i $(srcdir)/../COPYING | $(AWK) -F= '{print $$2;}'` \
1.1       bertrand  361:                $(srcdir)/../COPYING | \
1.11      bertrand  362:                $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1       bertrand  363:                {printf("!%s\n", substr($$1,2));}' | \
                    364:                iconv -t `file -i $(srcdir)/../COPYING | \
1.11      bertrand  365:                $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
                    366:        $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1       bertrand  367:                $(srcdir)/$$i >> $(srcdir)/tmp; \
                    368:        mv -f $(srcdir)/tmp $(srcdir)/$$i; \
                    369:    done
                    370: 
                    371: librplprototypes.h: rpl.h conversion.awk
1.11      bertrand  372:    $(AWK) -f $(srcdir)/conversion.awk $(srcdir)/rpl.h > \
1.1       bertrand  373:            $(top_builddir)/src/librplprototypes.h
1.10      bertrand  374: 
1.1       bertrand  375: generateurs.c: generateurs_aleatoires.awk
1.11      bertrand  376:    $(AWK) -f $(srcdir)/generateurs_aleatoires.awk \
1.1       bertrand  377:            $(srcdir)/../tools/@GSL@/rng/gsl_rng.h > \
                    378:            $(top_builddir)/src/generateurs.c
                    379: 
1.10      bertrand  380: rpl.inc:
1.24      bertrand  381:    echo BUILDPATH=$(top_builddir)/.. > $@
1.56      bertrand  382:    echo COMPILE="$(DEFS) @ABI@" | sed -e '1,$$s/"/\\"/g' | \
                    383:        sed -e '1,$$s/=\\"/="\\"/g' | sed -e '1,$$s/\\" /\\"" /g' >> $@
1.37      bertrand  384:    echo LINK=@libX@ @libMySQLlib@ @libPgSQLlib@ -lz >> $@
1.29      bertrand  385:    echo OBJECTS=$(SRCCc:.c=.$(OBJEXT)) $(SRCFc:.f=.$(OBJEXT)) \
                    386:            $(SRCF90c:.F90=.$(OBJEXT)) \
                    387:            librpl-conv.$(OBJEXT) >> $@
1.44      bertrand  388:    echo EXTOBJECTS= @EXT_SQL@ \
1.16      bertrand  389:        $(top_builddir)/lapack/lapack/liblapack.a \
                    390:        $(top_builddir)/lapack/blas/libblas.a \
                    391:        $(ldadd_libhistory) \
                    392:        $(ldadd_libreadline) \
                    393:        $(ldadd_libncurses) \
                    394:        $(ldadd_libgsl) \
                    395:        $(ldadd_libiconv) \
                    396:        $(ldadd_libcrypto) \
                    397:        $(ldadd_libssl) \
                    398:        $(ldadd_libsqlite) \
1.54      bertrand  399:        $(ldadd_librplcas) \
1.60      bertrand  400:        $(ldadd_libsigsegv) \
1.10      bertrand  401:        >> $@
                    402: 
1.51      bertrand  403: EXTRA_DIST = $(SRCC) $(SRCH) $(SRCCPP) $(SRCF) $(SRCF90) $(SRCINC) \
1.1       bertrand  404:        $(INIT_EXE) $(INIT_LIB) $(SRCXPM) \
                    405:        conversion.awk generateurs_aleatoires.awk
                    406: BUILT_SOURCES = librplprototypes.h generateurs.c \
1.51      bertrand  407:        $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) \
1.10      bertrand  408:        $(INIT_LIBc) $(SRCINCc) $(INIT_EXEc) \
                    409:        rpl.inc
1.51      bertrand  410: CLEANFILES= $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) $(SRCINCc) \
1.10      bertrand  411:        $(INIT_LIBc) $(INIT_EXEc) librplprototypes.h generateurs.c \
1.29      bertrand  412:        rpl.inc rpl-librpl-conv.$(OBJEXT)
1.1       bertrand  413: 
1.27      bertrand  414: nodist_rpl_SOURCES = \
1.51      bertrand  415:        $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) $(INIT_EXEc) \
1.1       bertrand  416:        $(SRCXPM) $(SRCINCc)
1.59      bertrand  417: rpl_LDFLAGS = -g @PROFILAGE@ $(LIB) @EXPORT_DYNAMIC@ @ELF@
1.31      bertrand  418: rpl_CFLAGS = $(AM_CFLAGS) @C_STANDARD@ -Wall -Wextra -Wno-unused-function \
1.16      bertrand  419:         -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@
1.1       bertrand  420: rpl_FFLAGS = $(AM_FFLAGS) -fno-f2c
                    421: rpl_FCFLAGS = $(AM_FCFLAGS) -fno-second-underscore -fno-f2c
                    422: 
1.27      bertrand  423: nodist_librpl_a_SOURCES = \
1.51      bertrand  424:        $(SRCCc) $(SRCHc) $(SRCFc) $(SRCCPPc) $(SRCF90c) $(INIT_LIBc) \
1.27      bertrand  425:        $(SRCXPM) $(SRCINCc)
1.31      bertrand  426: librpl_a_CFLAGS = $(AM_CFLAGS) @C_STANDARD@ -Wall -Wextra -Wno-unused-function \
1.16      bertrand  427:        -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@
1.1       bertrand  428: librpl_a_FFLAGS = $(AM_FFLAGS) -ff2c
                    429: librpl_a_FCFLAGS = $(AM_FCLAGS) -fno-second-underscore
                    430: 
1.18      bertrand  431: include_HEADERS = rplexternals.h rpltypes.h rpl.h librpl.h rpl.inc \
                    432:        librplprototypes.h
1.1       bertrand  433: 
                    434: INCLUDES = -I$(srcdir) -I$(top_builddir) \
                    435:        $(include_libreadline) $(include_libncurses) $(include_libgsl) \
1.52      bertrand  436:        $(include_libiconv) $(include_libcrypto) $(include_libsqlite) \
1.60      bertrand  437:        $(include_librplcas) $(include_libsigsegv) \
1.1       bertrand  438:        @includeX@ @libMySQLinc@ @libPgSQLinc@
1.61    ! bertrand  439: DEFS = -DHAVE_CONFIG_H -Dd_version_rpl=\"@VERSION@\" \
1.3       bertrand  440:        -Dd_exec_path=\"@RUNPATH@\" @FORCE_GNUPLOT_PATH@ @DEBUG@ \
1.1       bertrand  441:        @MOTIF_SUPPORT@ @POSTSCRIPT_SUPPORT@ @GNUPLOT_SUPPORT@ \
                    442:        @VIM_SUPPORT@ @MYSQL_SUPPORT@ @POSTGRESQL_SUPPORT@ \
1.40      bertrand  443:        @SEMAPHORES_NOMMES@ @IPCS_SYSV@ @SEMUN@ @IPV6@ \
1.7       bertrand  444:        @EXPERIMENTAL_CODE@ $(date) $(hash) -g @PROFILAGE@ \
1.12      bertrand  445:        -Dd_locale=\"@FINAL_ENCODING@\" \
1.55      bertrand  446:        -D@OS@ @BSH_PATH@ @RPLCAS@ -DHOST=\"@HOST@\"
1.53      bertrand  447: rpl_LDADD = -lgfortran \
1.20      bertrand  448:        $(top_builddir)/lapack/lapack/liblapack.a \
1.1       bertrand  449:        $(top_builddir)/lapack/blas/libblas.a \
                    450:        $(ldadd_libhistory) $(ldadd_libreadline) $(ldadd_libncurses) \
1.10      bertrand  451:        $(ldadd_libiconv) $(ldadd_libcrypto) $(ldadd_libssl) \
1.60      bertrand  452:        $(ldadd_libsqlite) $(ldadd_libsigsegv) \
1.53      bertrand  453:        $(ldadd_libgsl) $(ldadd_librplcas) @libX@ @libMySQLlib@ @libPgSQLlib@
1.1       bertrand  454: 
1.29      bertrand  455: always: $(top_builddir)/src/rpl-conv.c
1.46      bertrand  456:    touch $<; \
1.16      bertrand  457:    if [ x$(shell which ctags) != x ]; then \
                    458:            (cd $(srcdir); ctags $(SRCC) $(SRCF) $(SRCF90) \
                    459:                $(INIT_LIB) $(INIT_EXE) 2>&1 /dev/null); \
                    460:    fi;
1.1       bertrand  461: 
1.10      bertrand  462: .PHONY: always librpl licences rpl.inc
1.1       bertrand  463: 
                    464: all-local: always
                    465: 
                    466: install-exec-local: librpl
                    467: 
                    468: librpl: install-libLIBRARIES
1.31      bertrand  469:    if [ -d $(top_builddir)/librpl ]; then \
1.32      bertrand  470:        rm -rf $(top_builddir)/librpl; \
1.31      bertrand  471:    fi
                    472:    mkdir -p $(top_builddir)/librpl; \
1.16      bertrand  473:    for i in $(top_builddir)/src/librpl.a \
                    474:            $(ldadd_libhistory) $(ldadd_libreadline) \
                    475:            $(top_builddir)/lapack/lapack/liblapack.a \
                    476:            $(top_builddir)/lapack/blas/libblas.a \
                    477:            $(ldadd_libncurses) $(ldadd_libgsl) $(ldadd_libiconv) \
1.52      bertrand  478:            $(ldadd_libcrypto) $(ldadd_libssl) $(ldadd_libsqlite) \
1.60      bertrand  479:            $(ldadd_librplcas) $(ldadd_libsigsegv); \
1.16      bertrand  480:    do \
1.32      bertrand  481:        cp -f $$i $(top_builddir)/librpl; \
1.16      bertrand  482:    done
1.37      bertrand  483:    (cd $(top_builddir)/librpl && n=0 && \
                    484:            echo Building standalone librpl.a; \
                    485:            for i in *.a; \
                    486:                do echo Extracting $$i; ar x $$i; \
                    487:                for j in `ar t $$i`; \
                    488:                do cp -f $$j $$n-$$j; \
                    489:                    rm -f $$j; \
                    490:                done; \
                    491:                n=`expr $$n + 1`; \
                    492:                rm -f $$i; \
                    493:            done; \
1.34      bertrand  494:            L="start"; \
                    495:            while test -n "$$L"; \
                    496:            do \
1.39      bertrand  497:                echo -n "Remaining files "; \
                    498:                find . -name "*.$(OBJEXT)" | wc -l; \
1.34      bertrand  499:                L=""; j=0; \
1.39      bertrand  500:                for i in `find . -name "*.$(OBJEXT)"`; \
1.34      bertrand  501:                do \
                    502:                    k=`echo $$i | wc -c`; \
                    503:                    j=`expr $$j + $$k + 1`; \
                    504:                    if test $$j -le 5000; then \
                    505:                        L="$$L $$i"; \
                    506:                    else \
                    507:                        break; \
                    508:                    fi; \
                    509:                done; \
1.39      bertrand  510:                if test -n "$$L"; then \
                    511:                    echo -n "Adding files to librpl.a archive... "; \
                    512:                    ar cru librpl.a $$L; \
                    513:                    rm -f $$L; \
                    514:                    echo "done"; \
                    515:                fi; \
1.34      bertrand  516:            done; \
1.39      bertrand  517:            echo Archive created; \
1.35      bertrand  518:            ar s librpl.a; \
                    519:            if [ @OS@ != OS2 ]; then \
                    520:                echo Stripping librpl.a && strip -d librpl.a; \
                    521:            fi;); \
1.37      bertrand  522:    $(INSTALL_DATA) $(top_builddir)/librpl/librpl.a $(DESTDIR)$(libdir)/librpl.a
1.31      bertrand  523: 

CVSweb interface <joel.bertrand@systella.fr>