File:  [local] / rpl / src / Makefile.am
Revision 1.65: download - view: text, annotated - select for diffs - revision graph
Mon Oct 3 15:57:53 2011 UTC (12 years, 6 months ago) by bertrand
Branches: MAIN
CVS tags: HEAD
Modification des makefiles/configure pour android.

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

CVSweb interface <joel.bertrand@systella.fr>