File:  [local] / rpl / src / Makefile.am
Revision 1.78: download - view: text, annotated - select for diffs - revision graph
Mon Feb 25 19:14:01 2013 UTC (11 years, 2 months ago) by bertrand
Branches: MAIN
CVS tags: HEAD
Ajout des sommes de contrĂ´le de type CMAC.

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

CVSweb interface <joel.bertrand@systella.fr>