Annotation of rpl/src/Makefile.am, revision 1.90
1.62 bertrand 1: include $(top_builddir)/tools/openmotif.lib
2:
1.68 bertrand 3: ldadd_libncurses = $(top_builddir)/tools/@NCURSES@/lib/@LIB_PREFIX@ncurses.a
1.1 bertrand 4: include_libncurses = -I$(top_builddir)/tools/@NCURSES@/include \
5: -I$(top_srcdir)/tools/@NCURSES@/include
6:
1.69 bertrand 7: ldadd_libhistory = $(top_builddir)/tools/@READLINE@/libhistory.a
8: ldadd_libreadline = $(top_builddir)/tools/@READLINE@/libreadline.a
1.1 bertrand 9: include_libreadline = -I$(top_srcdir)/tools/@READLINE@ \
10: -I$(top_builddir)/tools/@READLINE@ -DREADLINE_LIBRARY
11:
1.68 bertrand 12: ldadd_libgsl = $(top_builddir)/tools/@GSL@/.libs/@LIB_PREFIX@gsl.a
1.1 bertrand 13: include_libgsl = -I$(top_builddir)/tools/@GSL@
14:
1.68 bertrand 15: ldadd_libiconv = $(top_builddir)/tools/@ICONV@/lib/.libs/@LIB_PREFIX@iconv.a
1.1 bertrand 16: include_libiconv = -I$(top_builddir)/tools/@ICONV@/include
17:
1.68 bertrand 18: ldadd_libcrypto = $(top_builddir)/tools/@OPENSSL@/@LIB_PREFIX@crypto.a
19: ldadd_libssl = $(top_builddir)/tools/@OPENSSL@/@LIB_PREFIX@ssl.a
1.8 bertrand 20: include_libcrypto = -I$(top_builddir)/tools/@OPENSSL@/include
1.6 bertrand 21:
1.68 bertrand 22: ldadd_libsqlite = $(top_builddir)/tools/@SQLITE@/.libs/@LIB_PREFIX@sqlite3.a
1.11 bertrand 23: include_libsqlite = -I$(top_srcdir)/tools/@SQLITE@
1.6 bertrand 24:
1.68 bertrand 25: ldadd_libsigsegv = $(top_builddir)/tools/@SIGSEGV@/src/.libs/@LIB_PREFIX@sigsegv.a
1.61 bertrand 26: include_libsigsegv = -I$(top_builddir)/tools/@SIGSEGV@/src
1.60 bertrand 27:
1.85 bertrand 28: ldadd_libz = $(top_builddir)/tools/@ZLIB@/libz.a
29: include_libz = -I$(top_builddir)/tools/@ZLIB@
30:
1.54 bertrand 31: ldadd_librplcas = @LIBRPLCAS@
1.53 bertrand 32: include_librplcas = -I$(top_builddir)/rplcas/include/giac \
33: -I$(top_builddir)/rplcas/include
1.52 bertrand 34:
1.62 bertrand 35: ldadd_libmotif = @LIBMOTIF@
36: include_libmotif = @INCMOTIF@
37:
1.88 bertrand 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);}')\"" \
1.5 bertrand 49: -Dd_date_en_rpl="\"$(shell LC_ALL=C date +'%A %x, %X %Z' | \
1.88 bertrand 50: $(AWK) '{ v=$$0; gsub(/^[ \t]+/, "", v); gsub(/[ \t]+$$/, "", v); \
51: printf("%s\n", v);}')\""
1.1 bertrand 52:
1.65 bertrand 53: hash = -Drplpp_md5="\"$(shell @RPLTOOLS@/rplsums/rplmd5sum$(EXEEXT) \
1.7 bertrand 54: $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT))\"" \
1.65 bertrand 55: -Drplpp_sha1="\"$(shell @RPLTOOLS@/rplsums/rplsha1sum$(EXEEXT) \
1.7 bertrand 56: $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT))\"" \
1.65 bertrand 57: -Drplfile_md5="\"$(shell @RPLTOOLS@/rplsums/rplmd5sum$(EXEEXT) \
1.7 bertrand 58: $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT))\"" \
1.65 bertrand 59: -Drplfile_sha1="\"$(shell @RPLTOOLS@/rplsums/rplsha1sum$(EXEEXT) \
1.7 bertrand 60: $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT))\"" \
1.65 bertrand 61: -Drpliconv_md5="\"$(shell @RPLTOOLS@/rplsums/rplmd5sum$(EXEEXT) \
1.7 bertrand 62: $(top_builddir)/rpliconv/rpliconv$(EXEEXT))\"" \
1.65 bertrand 63: -Drpliconv_sha1="\"$(shell @RPLTOOLS@/rplsums/rplsha1sum$(EXEEXT) \
1.7 bertrand 64: $(top_builddir)/rpliconv/rpliconv$(EXEEXT))\"" \
1.65 bertrand 65: -Drplawk_md5="\"$(shell @RPLTOOLS@/rplsums/rplmd5sum$(EXEEXT) \
1.41 bertrand 66: $(top_builddir)/rplawk/rplawk$(EXEEXT))\"" \
1.65 bertrand 67: -Drplawk_sha1="\"$(shell @RPLTOOLS@/rplsums/rplsha1sum$(EXEEXT) \
1.41 bertrand 68: $(top_builddir)/rplawk/rplawk$(EXEEXT))\"" \
1.65 bertrand 69: -Drplconvert_md5="\"$(shell @RPLTOOLS@/rplsums/rplmd5sum$(EXEEXT) \
1.7 bertrand 70: $(top_builddir)/tools/@UNITS@/units$(EXEEXT))\"" \
1.65 bertrand 71: -Drplconvert_sha1="\"$(shell @RPLTOOLS@/rplsums/rplsha1sum$(EXEEXT) \
1.7 bertrand 72: $(top_builddir)/tools/@UNITS@/units$(EXEEXT))\""
73:
1.1 bertrand 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\
1.2 bertrand 82: asprintf.c\
1.1 bertrand 83: bibliotheques_externes.c\
84: calcul_differentiel.c\
85: calcul_integral.c\
86: chainage.c\
1.78 bertrand 87: chiffrement.c\
1.1 bertrand 88: compilation.c\
89: completion.c\
1.6 bertrand 90: controle.c \
1.1 bertrand 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\
1.48 bertrand 100: formateur_flux.c\
1.1 bertrand 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\
1.29 bertrand 115: getaddrinfo.c\
1.1 bertrand 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\
1.79 bertrand 130: instructions_c8.c\
1.85 bertrand 131: instructions_c9.c\
1.1 bertrand 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\
1.57 bertrand 163: instructions_l6.c\
1.1 bertrand 164: instructions_m1.c\
165: instructions_m2.c\
166: instructions_m3.c\
167: instructions_m4.c\
1.21 bertrand 168: instructions_m5.c\
1.1 bertrand 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\
1.73 bertrand 180: instructions_p8.c\
1.1 bertrand 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\
1.72 bertrand 188: instructions_r7.c\
1.1 bertrand 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\
1.58 bertrand 199: instructions_s11.c\
1.1 bertrand 200: instructions_t1.c\
201: instructions_t2.c\
202: instructions_t3.c\
203: instructions_u1.c\
1.85 bertrand 204: instructions_u2.c\
1.1 bertrand 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\
1.16 bertrand 223: semaphores.c\
1.1 bertrand 224: sequenceur.c\
225: simplification.c\
226: sommations.c\
227: sql.c\
228: statistiques.c\
229: transliteration.c\
230: types.c
231:
1.51 bertrand 232: SRCCPP=\
233: interface_cas.cpp
234:
1.1 bertrand 235: SRCH=\
236: completion.h\
237: convert.h\
238: copyright.h\
239: garanties.h\
1.29 bertrand 240: getaddrinfo.h\
1.1 bertrand 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:
1.85 bertrand 271: LIB=@MALLOC@
1.1 bertrand 272:
273: bin_PROGRAMS = rpl
274: lib_LIBRARIES = librpl.a
275:
1.29 bertrand 276: SRCCc=$(SRCC:.c=-conv.c)
277: SRCHc=$(SRCH:.h=-conv.h)
1.51 bertrand 278: SRCCPPc=$(SRCCPP:.cpp=-conv.cpp)
1.29 bertrand 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)
1.1 bertrand 284:
1.29 bertrand 285: %-conv.c: %.c
1.70 bertrand 286: @echo " CONV $<"
287: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 288: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
289: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 290: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 291: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
292:
1.51 bertrand 293: %-conv.cpp: %.cpp
1.70 bertrand 294: @echo " CONV $<"
295: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 296: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
297: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.51 bertrand 298: $(AWK) -F= '{print $$2;}'` \
299: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
300:
1.29 bertrand 301: %-conv.h: %.h
1.70 bertrand 302: @echo " CONV $<"
303: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 304: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
305: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 306: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 307: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
308:
1.29 bertrand 309: %-conv.f: %.f
1.70 bertrand 310: @echo " CONV $<"
311: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 312: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
313: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 314: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 315: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
316:
1.65 bertrand 317: %-conv.F90: %.F90
1.70 bertrand 318: @echo " CONV $<"
319: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 320: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
321: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 322: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 323: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
324:
1.29 bertrand 325: %-conv.inc: %.inc
1.70 bertrand 326: @echo " CONV $<"
327: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 328: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
329: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 330: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 331: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
332:
333: licences:
1.87 bertrand 334: cat $(srcdir)/../HEADER > $(srcdir)/licence.h
1.1 bertrand 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 | \
1.11 bertrand 341: $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1 bertrand 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 | \
1.11 bertrand 346: $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1 bertrand 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
1.51 bertrand 352: for i in $(SRCC) $(SRCCPP) $(SRCH) $(INIT_EXE) $(INIT_LIB); \
1.1 bertrand 353: do \
1.87 bertrand 354: cat $(srcdir)/../HEADER > $(srcdir)/tmp; \
1.1 bertrand 355: echo >> $(srcdir)/tmp; \
356: echo >> $(srcdir)/tmp; \
1.11 bertrand 357: $(AWK) -F'\n' 'BEGIN {d=0;} /^#/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 358: $(srcdir)/$$i >> $(srcdir)/tmp; \
359: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
360: done
361: for i in $(SRCINC); \
362: do \
1.87 bertrand 363: iconv -f `file -i $(srcdir)/../HEADER | $(AWK) -F= '{print $$2;}'` \
364: $(srcdir)/../HEADER | \
1.11 bertrand 365: $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1 bertrand 366: {printf("!%s\n", substr($$1,2));}' | \
1.87 bertrand 367: iconv -t `file -i $(srcdir)/../HEADER | \
1.11 bertrand 368: $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
369: $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 370: $(srcdir)/$$i >> $(srcdir)/tmp; \
371: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
372: done
373: for i in $(SRCF); \
374: do \
1.87 bertrand 375: iconv -f `file -i $(srcdir)/../HEADER | $(AWK) -F= '{print $$2;}'` \
376: $(srcdir)/../HEADER | \
1.11 bertrand 377: $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1 bertrand 378: {printf("C%s\n", substr($$1,2));}' | \
1.87 bertrand 379: iconv -t `file -i $(srcdir)/../HEADER | \
1.11 bertrand 380: $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
381: $(AWK) -F'\n' 'BEGIN {d=0;} ! /^C/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 382: $(srcdir)/$$i >> $(srcdir)/tmp; \
383: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
384: done
385: for i in $(SRCF90); \
386: do \
1.87 bertrand 387: iconv -f `file -i $(srcdir)/../HEADER | $(AWK) -F= '{print $$2;}'` \
388: $(srcdir)/../HEADER | \
1.11 bertrand 389: $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1 bertrand 390: {printf("!%s\n", substr($$1,2));}' | \
1.87 bertrand 391: iconv -t `file -i $(srcdir)/../HEADER | \
1.11 bertrand 392: $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
393: $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 394: $(srcdir)/$$i >> $(srcdir)/tmp; \
395: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
396: done
397:
398: librplprototypes.h: rpl.h conversion.awk
1.71 bertrand 399: @echo " AWK $@"
1.70 bertrand 400: @$(AWK) -f $(srcdir)/conversion.awk $(srcdir)/rpl.h > \
1.1 bertrand 401: $(top_builddir)/src/librplprototypes.h
1.10 bertrand 402:
1.1 bertrand 403: generateurs.c: generateurs_aleatoires.awk
1.71 bertrand 404: @echo " AWK $@"
1.70 bertrand 405: @$(AWK) -f $(srcdir)/generateurs_aleatoires.awk \
1.1 bertrand 406: $(srcdir)/../tools/@GSL@/rng/gsl_rng.h > \
407: $(top_builddir)/src/generateurs.c
408:
1.10 bertrand 409: rpl.inc:
1.70 bertrand 410: @echo " BUILD $@"
1.90 ! bertrand 411: @echo RPL_BUILDPATH=$(top_builddir)/.. > $@
! 412: @echo RPL_COMPILE="$(DEFS) @ABI@" | sed -e '1,$$s/"/\\"/g' | \
1.56 bertrand 413: sed -e '1,$$s/=\\"/="\\"/g' | sed -e '1,$$s/\\" /\\"" /g' >> $@
1.90 ! bertrand 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)) \
1.89 bertrand 424: $(SRCF90c:.F90=.$(OBJEXT)) $(SRCCPPc:.cpp=.$(OBJEXT)) \
1.29 bertrand 425: librpl-conv.$(OBJEXT) >> $@
1.90 ! bertrand 426: @echo RPL_EXTOBJECTS= @EXT_SQL@ \
1.89 bertrand 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: >> $@
1.10 bertrand 442:
1.51 bertrand 443: EXTRA_DIST = $(SRCC) $(SRCH) $(SRCCPP) $(SRCF) $(SRCF90) $(SRCINC) \
1.1 bertrand 444: $(INIT_EXE) $(INIT_LIB) $(SRCXPM) \
445: conversion.awk generateurs_aleatoires.awk
446: BUILT_SOURCES = librplprototypes.h generateurs.c \
1.51 bertrand 447: $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) \
1.10 bertrand 448: $(INIT_LIBc) $(SRCINCc) $(INIT_EXEc) \
449: rpl.inc
1.51 bertrand 450: CLEANFILES= $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) $(SRCINCc) \
1.10 bertrand 451: $(INIT_LIBc) $(INIT_EXEc) librplprototypes.h generateurs.c \
1.29 bertrand 452: rpl.inc rpl-librpl-conv.$(OBJEXT)
1.1 bertrand 453:
1.27 bertrand 454: nodist_rpl_SOURCES = \
1.51 bertrand 455: $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) $(INIT_EXEc) \
1.1 bertrand 456: $(SRCXPM) $(SRCINCc)
1.67 bertrand 457: rpl_LDFLAGS = -g @PROFILAGE@ $(LIB) @EXPORT_DYNAMIC@ @ELF@ @WHOLE_LIB1@ \
1.85 bertrand 458: $(ldadd_libmotif) $(ldadd_libz) $(LD_MOTIF_LIBS) \
1.81 bertrand 459: $(LD_MOTIF_X_XMU) @WHOLE_LIB2@
1.31 bertrand 460: rpl_CFLAGS = $(AM_CFLAGS) @C_STANDARD@ -Wall -Wextra -Wno-unused-function \
1.82 bertrand 461: -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@ \
1.84 bertrand 462: -Wconversion
1.89 bertrand 463: rpl_CXXFLAGS = $(AM_CFLAGS) -Wall -Wextra
1.1 bertrand 464: rpl_FFLAGS = $(AM_FFLAGS) -fno-f2c
465: rpl_FCFLAGS = $(AM_FCFLAGS) -fno-second-underscore -fno-f2c
466:
1.27 bertrand 467: nodist_librpl_a_SOURCES = \
1.51 bertrand 468: $(SRCCc) $(SRCHc) $(SRCFc) $(SRCCPPc) $(SRCF90c) $(INIT_LIBc) \
1.27 bertrand 469: $(SRCXPM) $(SRCINCc)
1.31 bertrand 470: librpl_a_CFLAGS = $(AM_CFLAGS) @C_STANDARD@ -Wall -Wextra -Wno-unused-function \
1.82 bertrand 471: -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@ \
1.84 bertrand 472: -Wconversion
1.89 bertrand 473: librpl_a_CXXFLAGS = $(AM_CFLAGS) -Wall -Wextra
1.1 bertrand 474: librpl_a_FFLAGS = $(AM_FFLAGS) -ff2c
475: librpl_a_FCFLAGS = $(AM_FCLAGS) -fno-second-underscore
476:
1.18 bertrand 477: include_HEADERS = rplexternals.h rpltypes.h rpl.h librpl.h rpl.inc \
478: librplprototypes.h
1.1 bertrand 479:
480: INCLUDES = -I$(srcdir) -I$(top_builddir) \
481: $(include_libreadline) $(include_libncurses) $(include_libgsl) \
1.52 bertrand 482: $(include_libiconv) $(include_libcrypto) $(include_libsqlite) \
1.60 bertrand 483: $(include_librplcas) $(include_libsigsegv) \
1.85 bertrand 484: $(include_libmotif) $(include_libz) \
1.74 bertrand 485: @SYSROOT@ @includeX@ @libMySQLinc@ @libPgSQLinc@
1.61 bertrand 486: DEFS = -DHAVE_CONFIG_H -Dd_version_rpl=\"@VERSION@\" \
1.3 bertrand 487: -Dd_exec_path=\"@RUNPATH@\" @FORCE_GNUPLOT_PATH@ @DEBUG@ \
1.1 bertrand 488: @MOTIF_SUPPORT@ @POSTSCRIPT_SUPPORT@ @GNUPLOT_SUPPORT@ \
489: @VIM_SUPPORT@ @MYSQL_SUPPORT@ @POSTGRESQL_SUPPORT@ \
1.40 bertrand 490: @SEMAPHORES_NOMMES@ @IPCS_SYSV@ @SEMUN@ @IPV6@ \
1.7 bertrand 491: @EXPERIMENTAL_CODE@ $(date) $(hash) -g @PROFILAGE@ \
1.12 bertrand 492: -Dd_locale=\"@FINAL_ENCODING@\" \
1.76 bertrand 493: -Dd_forced_locale=@FORCED_FINAL_ENCODING@ \
1.68 bertrand 494: -D@OS@ @BSH_PATH@ @RPLCAS@ -DHOST=\"@HOST@\" @SHARED_MEMORY@ \
495: @PSELECT@
1.53 bertrand 496: rpl_LDADD = -lgfortran \
1.20 bertrand 497: $(top_builddir)/lapack/lapack/liblapack.a \
1.1 bertrand 498: $(top_builddir)/lapack/blas/libblas.a \
499: $(ldadd_libhistory) $(ldadd_libreadline) $(ldadd_libncurses) \
1.10 bertrand 500: $(ldadd_libiconv) $(ldadd_libcrypto) $(ldadd_libssl) \
1.60 bertrand 501: $(ldadd_libsqlite) $(ldadd_libsigsegv) \
1.53 bertrand 502: $(ldadd_libgsl) $(ldadd_librplcas) @libX@ @libMySQLlib@ @libPgSQLlib@
1.1 bertrand 503:
1.29 bertrand 504: always: $(top_builddir)/src/rpl-conv.c
1.70 bertrand 505: @touch $<;
506: @if [ x$(shell which ctags) != x ]; then \
1.89 bertrand 507: (cd $(srcdir); ctags $(SRCC) $(SRCF) $(SRCF90) $(SRCCPP) \
1.16 bertrand 508: $(INIT_LIB) $(INIT_EXE) 2>&1 /dev/null); \
509: fi;
1.1 bertrand 510:
1.10 bertrand 511: .PHONY: always librpl licences rpl.inc
1.1 bertrand 512:
513: all-local: always
514:
515: install-exec-local: librpl
516:
517: librpl: install-libLIBRARIES
1.70 bertrand 518: @echo " BUILD $@"
519: @if [ -d $(top_builddir)/librpl ]; then \
1.32 bertrand 520: rm -rf $(top_builddir)/librpl; \
1.31 bertrand 521: fi
1.70 bertrand 522: @mkdir -p $(top_builddir)/librpl;
523: @for i in $(top_builddir)/src/librpl.a \
1.16 bertrand 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) \
1.52 bertrand 528: $(ldadd_libcrypto) $(ldadd_libssl) $(ldadd_libsqlite) \
1.62 bertrand 529: $(ldadd_librplcas) $(ldadd_libsigsegv) $(ldadd_libmotif); \
1.16 bertrand 530: do \
1.32 bertrand 531: cp -f $$i $(top_builddir)/librpl; \
1.16 bertrand 532: done
1.70 bertrand 533: @(cd $(top_builddir)/librpl && n=0 && \
534: echo " Building standalone librpl.a"; \
1.37 bertrand 535: for i in *.a; \
1.70 bertrand 536: do echo " Extracting $$i"; ar x $$i; \
1.37 bertrand 537: for j in `ar t $$i`; \
1.90 ! bertrand 538: do cp -f $$j rpl-$$n-$$j; \
1.37 bertrand 539: rm -f $$j; \
540: done; \
541: n=`expr $$n + 1`; \
542: rm -f $$i; \
543: done; \
1.34 bertrand 544: L="start"; \
545: while test -n "$$L"; \
546: do \
1.70 bertrand 547: echo -n " Remaining files "; \
1.39 bertrand 548: find . -name "*.$(OBJEXT)" | wc -l; \
1.34 bertrand 549: L=""; j=0; \
1.39 bertrand 550: for i in `find . -name "*.$(OBJEXT)"`; \
1.34 bertrand 551: do \
552: k=`echo $$i | wc -c`; \
553: j=`expr $$j + $$k + 1`; \
1.64 bertrand 554: if test $$j -le 8000; then \
1.34 bertrand 555: L="$$L $$i"; \
556: else \
557: break; \
558: fi; \
559: done; \
1.39 bertrand 560: if test -n "$$L"; then \
1.70 bertrand 561: echo -n " Adding files to librpl.a archive... "; \
1.39 bertrand 562: ar cru librpl.a $$L; \
563: rm -f $$L; \
564: echo "done"; \
565: fi; \
1.34 bertrand 566: done; \
1.70 bertrand 567: echo " Archive created"; \
1.35 bertrand 568: ar s librpl.a; \
1.63 bertrand 569: if [ @OS@ != OS2 -a @OS@ != Darwin ]; then \
1.70 bertrand 570: echo " STRIP librpl.a" && strip -d librpl.a; \
571: fi;);
1.37 bertrand 572: $(INSTALL_DATA) $(top_builddir)/librpl/librpl.a $(DESTDIR)$(libdir)/librpl.a
1.31 bertrand 573:
CVSweb interface <joel.bertrand@systella.fr>