File:  [local] / rpl / src / Makefile.am
Revision 1.117: download - view: text, annotated - select for diffs - revision graph
Fri Nov 1 16:24:53 2019 UTC (4 years, 5 months ago) by bertrand
Branches: MAIN
CVS tags: rpl-4_1_32, HEAD
Fin du retrait de CoCoALib et inclusion de la libcblas issue de GSL
(pour avoir une bibliothèque librplcas totalement statique).

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

CVSweb interface <joel.bertrand@systella.fr>