File:
[local] /
rpl /
src /
Makefile.am
Revision
1.90:
download - view:
text,
annotated -
select for diffs -
revision graph
Fri Oct 4 07:54:50 2013 UTC (10 years, 11 months ago) by
bertrand
Branches:
MAIN
CVS tags:
HEAD
Correction d'un problème du fichier rpl.inc permettant de lier librpl.a à des
programmes tiers. Changement de du prototype d'appel du RPL/2 depuis le C.
Il est maintenant possible de passer des paramètres à une fonction RPL/2.
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 = -I$(top_builddir)/rplcas/include/giac \
33: -I$(top_builddir)/rplcas/include
34:
35: ldadd_libmotif = @LIBMOTIF@
36: include_libmotif = @INCMOTIF@
37:
38: date = -Dd_date_rpl="\"$(shell LC_ALL=C date +'%A' | \
39: $(AWK) '/Monday/ { printf("Lundi"); } \
40: /Tuesday/ { printf("Mardi"); } \
41: /Wednesday/ { printf("Mercredi"); } \
42: /Thursday/ { printf("Jeudi"); } \
43: /Friday/ { printf("Vendredi"); } \
44: /Saturday/ { printf("Samedi"); } \
45: /Sunday/ { printf("Dimanche"); }') \
46: $(shell LC_ALL=C date +'%d/%m/%Y, %X %Z' | \
47: $(AWK) '{ v=$$0; gsub(/^[ \t]+/, "", v); gsub(/[ \t]+$$/, "", v); \
48: printf("%s\n", v);}')\"" \
49: -Dd_date_en_rpl="\"$(shell LC_ALL=C date +'%A %x, %X %Z' | \
50: $(AWK) '{ v=$$0; gsub(/^[ \t]+/, "", v); gsub(/[ \t]+$$/, "", v); \
51: printf("%s\n", v);}')\""
52:
53: hash = -Drplpp_md5="\"$(shell @RPLTOOLS@/rplsums/rplmd5sum$(EXEEXT) \
54: $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT))\"" \
55: -Drplpp_sha1="\"$(shell @RPLTOOLS@/rplsums/rplsha1sum$(EXEEXT) \
56: $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT))\"" \
57: -Drplfile_md5="\"$(shell @RPLTOOLS@/rplsums/rplmd5sum$(EXEEXT) \
58: $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT))\"" \
59: -Drplfile_sha1="\"$(shell @RPLTOOLS@/rplsums/rplsha1sum$(EXEEXT) \
60: $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT))\"" \
61: -Drpliconv_md5="\"$(shell @RPLTOOLS@/rplsums/rplmd5sum$(EXEEXT) \
62: $(top_builddir)/rpliconv/rpliconv$(EXEEXT))\"" \
63: -Drpliconv_sha1="\"$(shell @RPLTOOLS@/rplsums/rplsha1sum$(EXEEXT) \
64: $(top_builddir)/rpliconv/rpliconv$(EXEEXT))\"" \
65: -Drplawk_md5="\"$(shell @RPLTOOLS@/rplsums/rplmd5sum$(EXEEXT) \
66: $(top_builddir)/rplawk/rplawk$(EXEEXT))\"" \
67: -Drplawk_sha1="\"$(shell @RPLTOOLS@/rplsums/rplsha1sum$(EXEEXT) \
68: $(top_builddir)/rplawk/rplawk$(EXEEXT))\"" \
69: -Drplconvert_md5="\"$(shell @RPLTOOLS@/rplsums/rplmd5sum$(EXEEXT) \
70: $(top_builddir)/tools/@UNITS@/units$(EXEEXT))\"" \
71: -Drplconvert_sha1="\"$(shell @RPLTOOLS@/rplsums/rplsha1sum$(EXEEXT) \
72: $(top_builddir)/tools/@UNITS@/units$(EXEEXT))\""
73:
74: SRCC=\
75: algebre_lineaire1.c\
76: algebre_lineaire2.c\
77: algebre_lineaire3.c\
78: algebre_lineaire4.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_tex.c\
214: interruptions.c\
215: messages.c\
216: occupation_memoire.c\
217: operations_atomiques.c\
218: operations_binaires.c\
219: optimisation.c\
220: profilage.c\
221: rpl.c\
222: rplcore.c\
223: semaphores.c\
224: sequenceur.c\
225: simplification.c\
226: sommations.c\
227: sql.c\
228: statistiques.c\
229: transliteration.c\
230: types.c
231:
232: SRCCPP=\
233: interface_cas.cpp
234:
235: SRCH=\
236: completion.h\
237: convert.h\
238: copyright.h\
239: garanties.h\
240: getaddrinfo.h\
241: gnuplot.h\
242: librpl.h\
243: licence.h\
244: rpl.h\
245: rplexternals.h\
246: rpltypes.h\
247: tex.h\
248: usages.h\
249: vim.h
250:
251: SRCF=\
252: arithmetique.f\
253: bibliotheque_logarithmique.f\
254: bibliotheque_trigonometrique.f
255:
256: SRCF90=\
257: combinaisons.F90\
258: distributions.F90\
259: fonctions_speciales.F90
260:
261: SRCINC=\
262: rplftypes.inc
263:
264: SRCXPM=\
265: rpl.xpm
266:
267: INIT_EXE=init.c
268:
269: INIT_LIB=librpl.c
270:
271: LIB=@MALLOC@
272:
273: bin_PROGRAMS = rpl
274: lib_LIBRARIES = librpl.a
275:
276: SRCCc=$(SRCC:.c=-conv.c)
277: SRCHc=$(SRCH:.h=-conv.h)
278: SRCCPPc=$(SRCCPP:.cpp=-conv.cpp)
279: SRCFc=$(SRCF:.f=-conv.f)
280: SRCF90c=$(SRCF90:.F90=-conv.F90)
281: SRCINCc=$(SRCINC:.inc=-conv.inc)
282: INIT_LIBc=$(INIT_LIB:.c=-conv.c)
283: INIT_EXEc=$(INIT_EXE:.c=-conv.c)
284:
285: %-conv.c: %.c
286: @echo " CONV $<"
287: @@RPLTOOLS@/rpliconv/rpliconv \
288: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
289: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
290: $(AWK) -F= '{print $$2;}'` \
291: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
292:
293: %-conv.cpp: %.cpp
294: @echo " CONV $<"
295: @@RPLTOOLS@/rpliconv/rpliconv \
296: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
297: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
298: $(AWK) -F= '{print $$2;}'` \
299: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
300:
301: %-conv.h: %.h
302: @echo " CONV $<"
303: @@RPLTOOLS@/rpliconv/rpliconv \
304: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
305: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
306: $(AWK) -F= '{print $$2;}'` \
307: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
308:
309: %-conv.f: %.f
310: @echo " CONV $<"
311: @@RPLTOOLS@/rpliconv/rpliconv \
312: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
313: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
314: $(AWK) -F= '{print $$2;}'` \
315: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
316:
317: %-conv.F90: %.F90
318: @echo " CONV $<"
319: @@RPLTOOLS@/rpliconv/rpliconv \
320: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
321: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
322: $(AWK) -F= '{print $$2;}'` \
323: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
324:
325: %-conv.inc: %.inc
326: @echo " CONV $<"
327: @@RPLTOOLS@/rpliconv/rpliconv \
328: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
329: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
330: $(AWK) -F= '{print $$2;}'` \
331: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
332:
333: licences:
334: cat $(srcdir)/../HEADER > $(srcdir)/licence.h
335: echo >> $(srcdir)/licence.h
336: echo >> $(srcdir)/licence.h
337: echo "#ifndef INCLUSION_LICENCE" >> $(srcdir)/licence.h
338: echo "# define INCLUSION_LICENCE" >> $(srcdir)/licence.h
339: echo " unsigned char CeCILL_fr[] =" >> $(srcdir)/licence.h
340: sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-fr.txt | \
341: $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
342: >> $(srcdir)/licence.h
343: echo " ;" >> $(srcdir)/licence.h
344: echo " unsigned char CeCILL_en[] =" >> $(srcdir)/licence.h
345: sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-en.txt | \
346: $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
347: >> $(srcdir)/licence.h
348: echo " ;" >> $(srcdir)/licence.h
349: echo "#endif" >> $(srcdir)/licence.h
350: echo >> $(srcdir)/licence.h
351: echo "// vim: ts=4" >> $(srcdir)/licence.h
352: for i in $(SRCC) $(SRCCPP) $(SRCH) $(INIT_EXE) $(INIT_LIB); \
353: do \
354: cat $(srcdir)/../HEADER > $(srcdir)/tmp; \
355: echo >> $(srcdir)/tmp; \
356: echo >> $(srcdir)/tmp; \
357: $(AWK) -F'\n' 'BEGIN {d=0;} /^#/ {d=1;} {if(d==1) print $$1;}' \
358: $(srcdir)/$$i >> $(srcdir)/tmp; \
359: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
360: done
361: for i in $(SRCINC); \
362: do \
363: iconv -f `file -i $(srcdir)/../HEADER | $(AWK) -F= '{print $$2;}'` \
364: $(srcdir)/../HEADER | \
365: $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
366: {printf("!%s\n", substr($$1,2));}' | \
367: iconv -t `file -i $(srcdir)/../HEADER | \
368: $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
369: $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
370: $(srcdir)/$$i >> $(srcdir)/tmp; \
371: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
372: done
373: for i in $(SRCF); \
374: do \
375: iconv -f `file -i $(srcdir)/../HEADER | $(AWK) -F= '{print $$2;}'` \
376: $(srcdir)/../HEADER | \
377: $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
378: {printf("C%s\n", substr($$1,2));}' | \
379: iconv -t `file -i $(srcdir)/../HEADER | \
380: $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
381: $(AWK) -F'\n' 'BEGIN {d=0;} ! /^C/ {d=1;} {if(d==1) print $$1;}' \
382: $(srcdir)/$$i >> $(srcdir)/tmp; \
383: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
384: done
385: for i in $(SRCF90); \
386: do \
387: iconv -f `file -i $(srcdir)/../HEADER | $(AWK) -F= '{print $$2;}'` \
388: $(srcdir)/../HEADER | \
389: $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
390: {printf("!%s\n", substr($$1,2));}' | \
391: iconv -t `file -i $(srcdir)/../HEADER | \
392: $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
393: $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
394: $(srcdir)/$$i >> $(srcdir)/tmp; \
395: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
396: done
397:
398: librplprototypes.h: rpl.h conversion.awk
399: @echo " AWK $@"
400: @$(AWK) -f $(srcdir)/conversion.awk $(srcdir)/rpl.h > \
401: $(top_builddir)/src/librplprototypes.h
402:
403: generateurs.c: generateurs_aleatoires.awk
404: @echo " AWK $@"
405: @$(AWK) -f $(srcdir)/generateurs_aleatoires.awk \
406: $(srcdir)/../tools/@GSL@/rng/gsl_rng.h > \
407: $(top_builddir)/src/generateurs.c
408:
409: rpl.inc:
410: @echo " BUILD $@"
411: @echo RPL_BUILDPATH=$(top_builddir)/.. > $@
412: @echo RPL_COMPILE="$(DEFS) @ABI@" | sed -e '1,$$s/"/\\"/g' | \
413: sed -e '1,$$s/=\\"/="\\"/g' | sed -e '1,$$s/\\" /\\"" /g' >> $@
414: @echo -n RPL_LINK=@libX@ @libMySQLlib@ @libPgSQLlib@ @LIBS@ -lgfortran >> $@
415: @if [ -f $(top_builddir)/tools/openmotif.lib ]; then \
416: $(AWK) -F= '/^LD_MOTIF_LIBS/ { printf(" %s", $$2); }' \
417: $(top_builddir)/tools/openmotif.lib >> $@; \
418: $(AWK) -F= '/^LD_MOTIF_X_XMU/ { printf(" %s", $$2); }' \
419: $(top_builddir)/tools/openmotif.lib >> $@; \
420: fi
421: @echo >> $@
422: @echo RPL_FLAGS=-Wno-pointer-sign >> $@
423: @echo RPL_OBJECTS=$(SRCCc:.c=.$(OBJEXT)) $(SRCFc:.f=.$(OBJEXT)) \
424: $(SRCF90c:.F90=.$(OBJEXT)) $(SRCCPPc:.cpp=.$(OBJEXT)) \
425: librpl-conv.$(OBJEXT) >> $@
426: @echo RPL_EXTOBJECTS= @EXT_SQL@ \
427: $(top_builddir)/lapack/lapack/liblapack.a \
428: $(top_builddir)/lapack/blas/libblas.a \
429: $(ldadd_libhistory) \
430: $(ldadd_libreadline) \
431: $(ldadd_libncurses) \
432: $(ldadd_libgsl) \
433: $(ldadd_libiconv) \
434: $(ldadd_libcrypto) \
435: $(ldadd_libssl) \
436: $(ldadd_libsqlite) \
437: $(ldadd_librplcas) \
438: $(ldadd_libsigsegv) \
439: $(ldadd_libmotif) \
440: $(ldadd_libz) \
441: >> $@
442:
443: EXTRA_DIST = $(SRCC) $(SRCH) $(SRCCPP) $(SRCF) $(SRCF90) $(SRCINC) \
444: $(INIT_EXE) $(INIT_LIB) $(SRCXPM) \
445: conversion.awk generateurs_aleatoires.awk
446: BUILT_SOURCES = librplprototypes.h generateurs.c \
447: $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) \
448: $(INIT_LIBc) $(SRCINCc) $(INIT_EXEc) \
449: rpl.inc
450: CLEANFILES= $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) $(SRCINCc) \
451: $(INIT_LIBc) $(INIT_EXEc) librplprototypes.h generateurs.c \
452: rpl.inc rpl-librpl-conv.$(OBJEXT)
453:
454: nodist_rpl_SOURCES = \
455: $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) $(INIT_EXEc) \
456: $(SRCXPM) $(SRCINCc)
457: rpl_LDFLAGS = -g @PROFILAGE@ $(LIB) @EXPORT_DYNAMIC@ @ELF@ @WHOLE_LIB1@ \
458: $(ldadd_libmotif) $(ldadd_libz) $(LD_MOTIF_LIBS) \
459: $(LD_MOTIF_X_XMU) @WHOLE_LIB2@
460: rpl_CFLAGS = $(AM_CFLAGS) @C_STANDARD@ -Wall -Wextra -Wno-unused-function \
461: -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@ \
462: -Wconversion
463: rpl_CXXFLAGS = $(AM_CFLAGS) -Wall -Wextra
464: rpl_FFLAGS = $(AM_FFLAGS) -fno-f2c
465: rpl_FCFLAGS = $(AM_FCFLAGS) -fno-second-underscore -fno-f2c
466:
467: nodist_librpl_a_SOURCES = \
468: $(SRCCc) $(SRCHc) $(SRCFc) $(SRCCPPc) $(SRCF90c) $(INIT_LIBc) \
469: $(SRCXPM) $(SRCINCc)
470: librpl_a_CFLAGS = $(AM_CFLAGS) @C_STANDARD@ -Wall -Wextra -Wno-unused-function \
471: -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@ \
472: -Wconversion
473: librpl_a_CXXFLAGS = $(AM_CFLAGS) -Wall -Wextra
474: librpl_a_FFLAGS = $(AM_FFLAGS) -ff2c
475: librpl_a_FCFLAGS = $(AM_FCLAGS) -fno-second-underscore
476:
477: include_HEADERS = rplexternals.h rpltypes.h rpl.h librpl.h rpl.inc \
478: librplprototypes.h
479:
480: INCLUDES = -I$(srcdir) -I$(top_builddir) \
481: $(include_libreadline) $(include_libncurses) $(include_libgsl) \
482: $(include_libiconv) $(include_libcrypto) $(include_libsqlite) \
483: $(include_librplcas) $(include_libsigsegv) \
484: $(include_libmotif) $(include_libz) \
485: @SYSROOT@ @includeX@ @libMySQLinc@ @libPgSQLinc@
486: DEFS = -DHAVE_CONFIG_H -Dd_version_rpl=\"@VERSION@\" \
487: -Dd_exec_path=\"@RUNPATH@\" @FORCE_GNUPLOT_PATH@ @DEBUG@ \
488: @MOTIF_SUPPORT@ @POSTSCRIPT_SUPPORT@ @GNUPLOT_SUPPORT@ \
489: @VIM_SUPPORT@ @MYSQL_SUPPORT@ @POSTGRESQL_SUPPORT@ \
490: @SEMAPHORES_NOMMES@ @IPCS_SYSV@ @SEMUN@ @IPV6@ \
491: @EXPERIMENTAL_CODE@ $(date) $(hash) -g @PROFILAGE@ \
492: -Dd_locale=\"@FINAL_ENCODING@\" \
493: -Dd_forced_locale=@FORCED_FINAL_ENCODING@ \
494: -D@OS@ @BSH_PATH@ @RPLCAS@ -DHOST=\"@HOST@\" @SHARED_MEMORY@ \
495: @PSELECT@
496: rpl_LDADD = -lgfortran \
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) \
502: $(ldadd_libgsl) $(ldadd_librplcas) @libX@ @libMySQLlib@ @libPgSQLlib@
503:
504: always: $(top_builddir)/src/rpl-conv.c
505: @touch $<;
506: @if [ x$(shell which ctags) != x ]; then \
507: (cd $(srcdir); ctags $(SRCC) $(SRCF) $(SRCF90) $(SRCCPP) \
508: $(INIT_LIB) $(INIT_EXE) 2>&1 /dev/null); \
509: fi;
510:
511: .PHONY: always librpl licences rpl.inc
512:
513: all-local: always
514:
515: install-exec-local: librpl
516:
517: librpl: install-libLIBRARIES
518: @echo " BUILD $@"
519: @if [ -d $(top_builddir)/librpl ]; then \
520: rm -rf $(top_builddir)/librpl; \
521: fi
522: @mkdir -p $(top_builddir)/librpl;
523: @for i in $(top_builddir)/src/librpl.a \
524: $(ldadd_libhistory) $(ldadd_libreadline) \
525: $(top_builddir)/lapack/lapack/liblapack.a \
526: $(top_builddir)/lapack/blas/libblas.a \
527: $(ldadd_libncurses) $(ldadd_libgsl) $(ldadd_libiconv) \
528: $(ldadd_libcrypto) $(ldadd_libssl) $(ldadd_libsqlite) \
529: $(ldadd_librplcas) $(ldadd_libsigsegv) $(ldadd_libmotif); \
530: do \
531: cp -f $$i $(top_builddir)/librpl; \
532: done
533: @(cd $(top_builddir)/librpl && n=0 && \
534: echo " Building standalone librpl.a"; \
535: for i in *.a; \
536: do echo " Extracting $$i"; ar x $$i; \
537: for j in `ar t $$i`; \
538: do cp -f $$j rpl-$$n-$$j; \
539: rm -f $$j; \
540: done; \
541: n=`expr $$n + 1`; \
542: rm -f $$i; \
543: done; \
544: L="start"; \
545: while test -n "$$L"; \
546: do \
547: echo -n " Remaining files "; \
548: find . -name "*.$(OBJEXT)" | wc -l; \
549: L=""; j=0; \
550: for i in `find . -name "*.$(OBJEXT)"`; \
551: do \
552: k=`echo $$i | wc -c`; \
553: j=`expr $$j + $$k + 1`; \
554: if test $$j -le 8000; then \
555: L="$$L $$i"; \
556: else \
557: break; \
558: fi; \
559: done; \
560: if test -n "$$L"; then \
561: echo -n " Adding files to librpl.a archive... "; \
562: ar cru librpl.a $$L; \
563: rm -f $$L; \
564: echo "done"; \
565: fi; \
566: done; \
567: echo " Archive created"; \
568: ar s librpl.a; \
569: if [ @OS@ != OS2 -a @OS@ != Darwin ]; then \
570: echo " STRIP librpl.a" && strip -d librpl.a; \
571: fi;);
572: $(INSTALL_DATA) $(top_builddir)/librpl/librpl.a $(DESTDIR)$(libdir)/librpl.a
573:
CVSweb interface <joel.bertrand@systella.fr>