File:  [local] / rpl / src / Makefile.am
Revision 1.44: download - view: text, annotated - select for diffs - revision graph
Thu Sep 23 15:17:28 2010 UTC (13 years, 7 months ago) by bertrand
Branches: MAIN
CVS tags: rpl-4_0_19, HEAD
Cohérence

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

CVSweb interface <joel.bertrand@systella.fr>