File:  [local] / rpl / src / Makefile.am
Revision 1.88: download - view: text, annotated - select for diffs - revision graph
Sat Apr 27 08:56:25 2013 UTC (11 years ago) by bertrand
Branches: MAIN
CVS tags: HEAD
Retrait de la localisation sur date et remplacement de cette localisation
par des scripts awk.

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

CVSweb interface <joel.bertrand@systella.fr>