File:
[local] /
rpl /
src /
Makefile.am
Revision
1.101:
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Mar 15 16:31:14 2016 UTC (9 years, 1 month ago) by
bertrand
Branches:
MAIN
CVS tags:
HEAD
Correction d'un problème lié aux dernières versions de la glibc.
(p)select renvoie une valeur folklorique avec des descripteurs de fichier
supérieurs à 1024. Les appels fautifs ont été remplacés par poll().
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: rpl_LDADD = \
497: $(top_builddir)/lapack/lapack/liblapack.a \
498: $(top_builddir)/lapack/blas/libblas.a \
499: $(ldadd_libhistory) $(ldadd_libreadline) $(ldadd_libncurses) \
500: $(ldadd_libiconv) $(ldadd_libcrypto) $(ldadd_libssl) \
501: $(ldadd_libsqlite) $(ldadd_libsigsegv) $(ldadd_libz) \
502: $(ldadd_libgsl) $(ldadd_librplcas) @libX@ @libMySQLlib@ @libPgSQLlib@ \
503: -lgfortran
504:
505: always: $(top_builddir)/src/rpl-conv.c
506: @touch $<;
507: @if [ x$(shell which ctags) != x ]; then \
508: (cd $(srcdir); ctags $(SRCC) $(SRCF) $(SRCF90) $(SRCCPP) \
509: $(INIT_LIB) $(INIT_EXE) 2>&1 /dev/null); \
510: fi;
511:
512: .PHONY: always librpl licences rpl.inc
513:
514: all-local: always
515:
516: install-exec-local: librpl s-rpl
517:
518: s-rpl: install-binPROGRAMS
519: @if [ @OS@ != OS2 -a @OS@ != Darwin ]; then \
520: echo " STRIP rpl" && strip -d $(DESTDIR)$(bindir)/rpl; \
521: fi
522:
523: librpl: install-libLIBRARIES
524: @echo " BUILD $@"
525: @if [ -d $(top_builddir)/librpl ]; then \
526: rm -rf $(top_builddir)/librpl; \
527: fi
528: @mkdir -p $(top_builddir)/librpl;
529: @for i in $(top_builddir)/src/librpl.a \
530: $(ldadd_libhistory) $(ldadd_libreadline) $(ldadd_libz) \
531: $(top_builddir)/lapack/lapack/liblapack.a \
532: $(top_builddir)/lapack/blas/libblas.a \
533: $(ldadd_libncurses) $(ldadd_libgsl) $(ldadd_libiconv) \
534: $(ldadd_libcrypto) $(ldadd_libssl) $(ldadd_libsqlite) \
535: $(ldadd_librplcas) $(ldadd_libsigsegv) $(ldadd_libmotif); \
536: do \
537: cp -f $$i $(top_builddir)/librpl; \
538: done
539: @(cd $(top_builddir)/librpl && n=0 && \
540: echo " Building standalone librpl.a"; \
541: for i in *.a; \
542: do echo " Extracting $$i"; ar x $$i; \
543: for j in `ar t $$i`; \
544: do cp -f $$j rpl-$$n-$$j; \
545: rm -f $$j; \
546: done; \
547: n=`expr $$n + 1`; \
548: rm -f $$i; \
549: done; \
550: L="start"; \
551: while test -n "$$L"; \
552: do \
553: echo -n " Remaining files "; \
554: find . -name "*.$(OBJEXT)" | wc -l; \
555: L=""; j=0; \
556: for i in `find . -name "*.$(OBJEXT)"`; \
557: do \
558: k=`echo $$i | wc -c`; \
559: j=`expr $$j + $$k + 1`; \
560: if test $$j -le 8000; then \
561: L="$$L $$i"; \
562: else \
563: break; \
564: fi; \
565: done; \
566: if test -n "$$L"; then \
567: echo -n " Adding files to librpl.a archive... "; \
568: ar cr librpl.a $$L; \
569: rm -f $$L; \
570: echo "done"; \
571: fi; \
572: done; \
573: echo " Archive created"; \
574: ar s librpl.a; \
575: if [ @OS@ != OS2 -a @OS@ != Darwin ]; then \
576: echo " STRIP librpl.a" && strip -d librpl.a; \
577: fi;);
578: $(INSTALL_DATA) $(top_builddir)/librpl/librpl.a $(DESTDIR)$(libdir)/librpl.a
CVSweb interface <joel.bertrand@systella.fr>