File:  [local] / rpl / src / Makefile.am
Revision 1.99: download - view: text, annotated - select for diffs - revision graph
Mon Jun 8 07:15:31 2015 UTC (8 years, 10 months ago) by bertrand
Branches: MAIN
CVS tags: rpl-4_1_21, HEAD
Retrait d'une fonction imbriquée.

    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 = @INCRPLCAS@
   33: 
   34: ldadd_libmotif = @LIBMOTIF@
   35: include_libmotif = @INCMOTIF@
   36: 
   37: date = -Dd_date_rpl="\"$(shell LC_ALL=C date +'%A' | \
   38:         $(AWK) '/Monday/ { printf("Lundi"); } \
   39:             /Tuesday/ { printf("Mardi"); } \
   40:             /Wednesday/ { printf("Mercredi"); } \
   41:             /Thursday/ { printf("Jeudi"); } \
   42:             /Friday/ { printf("Vendredi"); } \
   43:             /Saturday/ { printf("Samedi"); } \
   44:             /Sunday/ { printf("Dimanche"); }') \
   45:         $(shell LC_ALL=C date +'%d/%m/%Y, %X %Z' | \
   46:             $(AWK) '{ v=$$0; gsub(/^[ \t]+/, "", v); gsub(/[ \t]+$$/, "", v); \
   47:             printf("%s\n", v);}')\"" \
   48:         -Dd_date_en_rpl="\"$(shell LC_ALL=C date +'%A %x, %X %Z' | \
   49:             $(AWK) '{ v=$$0; gsub(/^[ \t]+/, "", v); gsub(/[ \t]+$$/, "", v); \
   50:             printf("%s\n", v);}')\""
   51: 
   52: hash = -Drplpp_md5="\"$(shell @RPLTOOLS@/rplsums/rplmd5sum$(EXEEXT) \
   53:         $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT))\"" \
   54:         -Drplpp_sha1="\"$(shell @RPLTOOLS@/rplsums/rplsha1sum$(EXEEXT) \
   55:         $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT))\"" \
   56:         -Drplfile_md5="\"$(shell @RPLTOOLS@/rplsums/rplmd5sum$(EXEEXT) \
   57:         $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT))\"" \
   58:         -Drplfile_sha1="\"$(shell @RPLTOOLS@/rplsums/rplsha1sum$(EXEEXT) \
   59:         $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT))\"" \
   60:         -Drpliconv_md5="\"$(shell @RPLTOOLS@/rplsums/rplmd5sum$(EXEEXT) \
   61:         $(top_builddir)/rpliconv/rpliconv$(EXEEXT))\"" \
   62:         -Drpliconv_sha1="\"$(shell @RPLTOOLS@/rplsums/rplsha1sum$(EXEEXT) \
   63:         $(top_builddir)/rpliconv/rpliconv$(EXEEXT))\"" \
   64:         -Drplawk_md5="\"$(shell @RPLTOOLS@/rplsums/rplmd5sum$(EXEEXT) \
   65:         $(top_builddir)/rplawk/rplawk$(EXEEXT))\"" \
   66:         -Drplawk_sha1="\"$(shell @RPLTOOLS@/rplsums/rplsha1sum$(EXEEXT) \
   67:         $(top_builddir)/rplawk/rplawk$(EXEEXT))\"" \
   68:         -Drplconvert_md5="\"$(shell @RPLTOOLS@/rplsums/rplmd5sum$(EXEEXT) \
   69:         $(top_builddir)/tools/@UNITS@/units$(EXEEXT))\"" \
   70:         -Drplconvert_sha1="\"$(shell @RPLTOOLS@/rplsums/rplsha1sum$(EXEEXT) \
   71:         $(top_builddir)/tools/@UNITS@/units$(EXEEXT))\""
   72: 
   73: SRCC=\
   74:     algebre_lineaire1.c\
   75:     algebre_lineaire2.c\
   76:     algebre_lineaire3.c\
   77:     algebre_lineaire4.c\
   78:     allocateur.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_readline.c\
  214:     interface_tex.c\
  215:     interruptions.c\
  216:     messages.c\
  217:     occupation_memoire.c\
  218:     operations_atomiques.c\
  219:     operations_binaires.c\
  220:     optimisation.c\
  221:     profilage.c\
  222:     rpl.c\
  223:     rplcore.c\
  224:     semaphores.c\
  225:     sequenceur.c\
  226:     simplification.c\
  227:     sommations.c\
  228:     sql.c\
  229:     statistiques.c\
  230:     transliteration.c\
  231:     types.c
  232: 
  233: SRCCPP=\
  234:     interface_cas.cpp
  235: 
  236: SRCH=\
  237:     completion.h\
  238:     convert.h\
  239:     copyright.h\
  240:     garanties.h\
  241:     getaddrinfo.h\
  242:     gnuplot.h\
  243:     librpl.h\
  244:     licence.h\
  245:     rpl.h\
  246:     rplexternals.h\
  247:     rpltypes.h\
  248:     tex.h\
  249:     usages.h\
  250:     vim.h
  251: 
  252: SRCF=\
  253:     arithmetique.f\
  254:     bibliotheque_logarithmique.f\
  255:     bibliotheque_trigonometrique.f
  256: 
  257: SRCF90=\
  258:     combinaisons.F90\
  259:     distributions.F90\
  260:     fonctions_speciales.F90
  261: 
  262: SRCINC=\
  263:     rplftypes.inc
  264: 
  265: SRCXPM=\
  266:     rpl.xpm
  267: 
  268: INIT_EXE=init.c
  269: 
  270: INIT_LIB=librpl.c
  271: 
  272: LIB=@MALLOC@
  273: 
  274: bin_PROGRAMS = rpl
  275: lib_LIBRARIES = librpl.a
  276: 
  277: SRCCc=$(SRCC:.c=-conv.c)
  278: SRCHc=$(SRCH:.h=-conv.h)
  279: SRCCPPc=$(SRCCPP:.cpp=-conv.cpp)
  280: SRCFc=$(SRCF:.f=-conv.f)
  281: SRCF90c=$(SRCF90:.F90=-conv.F90)
  282: SRCINCc=$(SRCINC:.inc=-conv.inc)
  283: INIT_LIBc=$(INIT_LIB:.c=-conv.c)
  284: INIT_EXEc=$(INIT_EXE:.c=-conv.c)
  285: 
  286: %-conv.c: %.c
  287:     @echo "  CONV   $<"
  288:     @@RPLTOOLS@/rpliconv/rpliconv \
  289:             -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
  290:             -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
  291:             $(AWK) -F= '{print $$2;}'` \
  292:             -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
  293: 
  294: %-conv.cpp: %.cpp
  295:     @echo "  CONV   $<"
  296:     @@RPLTOOLS@/rpliconv/rpliconv \
  297:             -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
  298:             -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
  299:             $(AWK) -F= '{print $$2;}'` \
  300:             -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
  301: 
  302: %-conv.h: %.h
  303:     @echo "  CONV   $<"
  304:     @@RPLTOOLS@/rpliconv/rpliconv \
  305:             -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
  306:             -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
  307:             $(AWK) -F= '{print $$2;}'` \
  308:             -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
  309: 
  310: %-conv.f: %.f
  311:     @echo "  CONV   $<"
  312:     @@RPLTOOLS@/rpliconv/rpliconv \
  313:             -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
  314:             -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
  315:             $(AWK) -F= '{print $$2;}'` \
  316:             -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
  317: 
  318: %-conv.F90: %.F90
  319:     @echo "  CONV   $<"
  320:     @@RPLTOOLS@/rpliconv/rpliconv \
  321:             -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
  322:             -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
  323:             $(AWK) -F= '{print $$2;}'` \
  324:             -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
  325: 
  326: %-conv.inc: %.inc
  327:     @echo "  CONV   $<"
  328:     @@RPLTOOLS@/rpliconv/rpliconv \
  329:             -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
  330:             -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
  331:             $(AWK) -F= '{print $$2;}'` \
  332:             -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
  333: 
  334: licences:
  335:     cat $(srcdir)/../HEADER > $(srcdir)/licence.h
  336:     echo >> $(srcdir)/licence.h
  337:     echo >> $(srcdir)/licence.h
  338:     echo "#ifndef INCLUSION_LICENCE" >> $(srcdir)/licence.h
  339:     echo "#   define INCLUSION_LICENCE" >> $(srcdir)/licence.h
  340:     echo "    unsigned char CeCILL_fr[] =" >> $(srcdir)/licence.h
  341:     sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-fr.txt | \
  342:             $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
  343:             >> $(srcdir)/licence.h
  344:     echo "    ;" >> $(srcdir)/licence.h
  345:     echo "    unsigned char CeCILL_en[] =" >> $(srcdir)/licence.h
  346:     sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-en.txt | \
  347:             $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
  348:             >> $(srcdir)/licence.h
  349:     echo "    ;" >> $(srcdir)/licence.h
  350:     echo "#endif" >> $(srcdir)/licence.h
  351:     echo >> $(srcdir)/licence.h
  352:     echo "// vim: ts=4" >> $(srcdir)/licence.h
  353:     for i in $(SRCC) $(SRCCPP) $(SRCH) $(INIT_EXE) $(INIT_LIB); \
  354:     do \
  355:         cat $(srcdir)/../HEADER > $(srcdir)/tmp; \
  356:         echo >> $(srcdir)/tmp; \
  357:         echo >> $(srcdir)/tmp; \
  358:         $(AWK) -F'\n' 'BEGIN {d=0;} /^#/ {d=1;} {if(d==1) print $$1;}' \
  359:                 $(srcdir)/$$i >> $(srcdir)/tmp; \
  360:         mv -f $(srcdir)/tmp $(srcdir)/$$i; \
  361:     done
  362:     for i in $(SRCINC); \
  363:     do \
  364:         iconv -f `file -i $(srcdir)/../HEADER | $(AWK) -F= '{print $$2;}'` \
  365:                 $(srcdir)/../HEADER | \
  366:                 $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
  367:                 {printf("!%s\n", substr($$1,2));}' | \
  368:                 iconv -t `file -i $(srcdir)/../HEADER | \
  369:                 $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
  370:         $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
  371:                 $(srcdir)/$$i >> $(srcdir)/tmp; \
  372:         mv -f $(srcdir)/tmp $(srcdir)/$$i; \
  373:     done
  374:     for i in $(SRCF); \
  375:     do \
  376:         iconv -f `file -i $(srcdir)/../HEADER | $(AWK) -F= '{print $$2;}'` \
  377:                 $(srcdir)/../HEADER | \
  378:                 $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
  379:                 {printf("C%s\n", substr($$1,2));}' | \
  380:                 iconv -t `file -i $(srcdir)/../HEADER | \
  381:                 $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
  382:         $(AWK) -F'\n' 'BEGIN {d=0;} ! /^C/ {d=1;} {if(d==1) print $$1;}' \
  383:                 $(srcdir)/$$i >> $(srcdir)/tmp; \
  384:         mv -f $(srcdir)/tmp $(srcdir)/$$i; \
  385:     done
  386:     for i in $(SRCF90); \
  387:     do \
  388:         iconv -f `file -i $(srcdir)/../HEADER | $(AWK) -F= '{print $$2;}'` \
  389:                 $(srcdir)/../HEADER | \
  390:                 $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
  391:                 {printf("!%s\n", substr($$1,2));}' | \
  392:                 iconv -t `file -i $(srcdir)/../HEADER | \
  393:                 $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
  394:         $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
  395:                 $(srcdir)/$$i >> $(srcdir)/tmp; \
  396:         mv -f $(srcdir)/tmp $(srcdir)/$$i; \
  397:     done
  398: 
  399: librplprototypes.h: rpl.h conversion.awk
  400:     @echo "  AWK    $@"
  401:     @$(AWK) -f $(srcdir)/conversion.awk $(srcdir)/rpl.h > \
  402:             $(top_builddir)/src/librplprototypes.h
  403: 
  404: generateurs.c: generateurs_aleatoires.awk
  405:     @echo "  AWK    $@"
  406:     @$(AWK) -f $(srcdir)/generateurs_aleatoires.awk \
  407:             $(srcdir)/../tools/@GSL@/rng/gsl_rng.h > \
  408:             $(top_builddir)/src/generateurs.c
  409: 
  410: rpl.inc:
  411:     @echo "  BUILD  $@"
  412:     @echo RPL_BUILDPATH=$(top_builddir)/.. > $@
  413:     @echo RPL_COMPILE="$(DEFS) @ABI@" | sed -e '1,$$s/"/\\"/g' | \
  414:         sed -e '1,$$s/=\\"/="\\"/g' | sed -e '1,$$s/\\" /\\"" /g' >> $@
  415:     @echo -n RPL_LINK=@libX@ @libMySQLlib@ @libPgSQLlib@ @LIBS@ -lgfortran >> $@
  416:     @if [ -f $(top_builddir)/tools/openmotif.lib ]; then \
  417:         $(AWK) -F= '/^LD_MOTIF_LIBS/ { printf(" %s", $$2); }' \
  418:                 $(top_builddir)/tools/openmotif.lib >> $@; \
  419:         $(AWK) -F= '/^LD_MOTIF_X_XMU/ { printf(" %s", $$2); }' \
  420:                 $(top_builddir)/tools/openmotif.lib >> $@; \
  421:     fi
  422:     @echo >> $@
  423:     @echo RPL_FLAGS=-Wno-pointer-sign >> $@
  424:     @echo RPL_OBJECTS=$(SRCCc:.c=.$(OBJEXT)) $(SRCFc:.f=.$(OBJEXT)) \
  425:             $(SRCF90c:.F90=.$(OBJEXT)) $(SRCCPPc:.cpp=.$(OBJEXT)) \
  426:             librpl-conv.$(OBJEXT) >> $@
  427:     @echo RPL_EXTOBJECTS= @EXT_SQL@ \
  428:             $(top_builddir)/lapack/lapack/liblapack.a \
  429:             $(top_builddir)/lapack/blas/libblas.a \
  430:             $(ldadd_libhistory) \
  431:             $(ldadd_libreadline) \
  432:             $(ldadd_libncurses) \
  433:             $(ldadd_libgsl) \
  434:             $(ldadd_libiconv) \
  435:             $(ldadd_libcrypto) \
  436:             $(ldadd_libssl) \
  437:             $(ldadd_libsqlite) \
  438:             $(ldadd_librplcas) \
  439:             $(ldadd_libsigsegv) \
  440:             $(ldadd_libmotif) \
  441:             $(ldadd_libz) \
  442:             >> $@
  443: 
  444: EXTRA_DIST = $(SRCC) $(SRCH) $(SRCCPP) $(SRCF) $(SRCF90) $(SRCINC) \
  445:         $(INIT_EXE) $(INIT_LIB) $(SRCXPM) \
  446:         conversion.awk generateurs_aleatoires.awk
  447: BUILT_SOURCES = librplprototypes.h generateurs.c \
  448:         $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) \
  449:         $(INIT_LIBc) $(SRCINCc) $(INIT_EXEc) \
  450:         rpl.inc
  451: CLEANFILES= $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) $(SRCINCc) \
  452:         $(INIT_LIBc) $(INIT_EXEc) librplprototypes.h generateurs.c \
  453:         rpl.inc rpl-librpl-conv.$(OBJEXT)
  454: 
  455: nodist_rpl_SOURCES = \
  456:         $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) $(INIT_EXEc) \
  457:         $(SRCXPM) $(SRCINCc)
  458: rpl_LDFLAGS = -g @PROFILAGE@ $(LIB) @EXPORT_DYNAMIC@ @ELF@ @WHOLE_LIB1@ \
  459:         $(ldadd_libmotif) $(ldadd_libz) $(LD_MOTIF_LIBS) \
  460:         $(LD_MOTIF_X_XMU) @WHOLE_LIB2@
  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:         -Dd_locale=\"@FINAL_ENCODING@\" \
  494:         -Dd_forced_locale=@FORCED_FINAL_ENCODING@ \
  495:         -D@OS@ @BSH_PATH@ @RPLCAS@ -DHOST=\"@HOST@\" @SHARED_MEMORY@ \
  496:         @PSELECT@
  497: rpl_LDADD = \
  498:         $(top_builddir)/lapack/lapack/liblapack.a \
  499:         $(top_builddir)/lapack/blas/libblas.a \
  500:         $(ldadd_libhistory) $(ldadd_libreadline) $(ldadd_libncurses) \
  501:         $(ldadd_libiconv) $(ldadd_libcrypto) $(ldadd_libssl) \
  502:         $(ldadd_libsqlite) $(ldadd_libsigsegv) \
  503:         $(ldadd_libgsl) $(ldadd_librplcas) @libX@ @libMySQLlib@ @libPgSQLlib@ \
  504:         -lgfortran
  505: 
  506: always: $(top_builddir)/src/rpl-conv.c
  507:     @touch $<;
  508:     @if [ x$(shell which ctags) != x ]; then \
  509:         (cd $(srcdir); ctags $(SRCC) $(SRCF) $(SRCF90) $(SRCCPP) \
  510:                 $(INIT_LIB) $(INIT_EXE) 2>&1 /dev/null); \
  511:     fi;
  512: 
  513: .PHONY: always librpl licences rpl.inc
  514: 
  515: all-local: always
  516: 
  517: install-exec-local: librpl s-rpl
  518: 
  519: s-rpl: install-binPROGRAMS
  520:     @if [ @OS@ != OS2 -a @OS@ != Darwin ]; then \
  521:         echo "  STRIP  rpl" && strip -d $(DESTDIR)$(bindir)/rpl; \
  522:     fi
  523: 
  524: librpl: install-libLIBRARIES
  525:     @echo "  BUILD  $@"
  526:     @if [ -d $(top_builddir)/librpl ]; then \
  527:         rm -rf $(top_builddir)/librpl; \
  528:     fi
  529:     @mkdir -p $(top_builddir)/librpl;
  530:     @for i in $(top_builddir)/src/librpl.a \
  531:             $(ldadd_libhistory) $(ldadd_libreadline) \
  532:             $(top_builddir)/lapack/lapack/liblapack.a \
  533:             $(top_builddir)/lapack/blas/libblas.a \
  534:             $(ldadd_libncurses) $(ldadd_libgsl) $(ldadd_libiconv) \
  535:             $(ldadd_libcrypto) $(ldadd_libssl) $(ldadd_libsqlite) \
  536:             $(ldadd_librplcas) $(ldadd_libsigsegv) $(ldadd_libmotif); \
  537:     do \
  538:         cp -f $$i $(top_builddir)/librpl; \
  539:     done
  540:     @(cd $(top_builddir)/librpl && n=0 && \
  541:             echo "    Building standalone librpl.a"; \
  542:             for i in *.a; \
  543:                 do echo "    Extracting $$i"; ar x $$i; \
  544:                 for j in `ar t $$i`; \
  545:                 do cp -f $$j rpl-$$n-$$j; \
  546:                     rm -f $$j; \
  547:                 done; \
  548:                 n=`expr $$n + 1`; \
  549:                 rm -f $$i; \
  550:             done; \
  551:             L="start"; \
  552:             while test -n "$$L"; \
  553:             do \
  554:                 echo -n "    Remaining files "; \
  555:                 find . -name "*.$(OBJEXT)" | wc -l; \
  556:                 L=""; j=0; \
  557:                 for i in `find . -name "*.$(OBJEXT)"`; \
  558:                 do \
  559:                     k=`echo $$i | wc -c`; \
  560:                     j=`expr $$j + $$k + 1`; \
  561:                     if test $$j -le 8000; then \
  562:                         L="$$L $$i"; \
  563:                     else \
  564:                         break; \
  565:                     fi; \
  566:                 done; \
  567:                 if test -n "$$L"; then \
  568:                     echo -n "    Adding files to librpl.a archive... "; \
  569:                     ar cr librpl.a $$L; \
  570:                     rm -f $$L; \
  571:                     echo "done"; \
  572:                 fi; \
  573:             done; \
  574:             echo "    Archive created"; \
  575:             ar s librpl.a; \
  576:             if [ @OS@ != OS2 -a @OS@ != Darwin ]; then \
  577:                 echo "  STRIP  librpl.a" && strip -d librpl.a; \
  578:             fi;);
  579:     $(INSTALL_DATA) $(top_builddir)/librpl/librpl.a $(DESTDIR)$(libdir)/librpl.a

CVSweb interface <joel.bertrand@systella.fr>