Annotation of rpl/src/Makefile.am, revision 1.121
1.96 bertrand 1: -include $(top_builddir)/tools/openmotif.lib
1.62 bertrand 2:
1.121 ! bertrand 3: ldadd_libncurses = $(top_builddir)/tools/@NCURSES@/lib/@LIB_PREFIX@ncursesw.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.117 bertrand 12: ldadd_libgsl = $(top_builddir)/tools/@GSL@/.libs/@LIB_PREFIX@gsl.a \
13: $(top_builddir)/tools/@GSL@/cblas/.libs/@LIB_PREFIX@gslcblas.a
1.1 bertrand 14: include_libgsl = -I$(top_builddir)/tools/@GSL@
15:
1.68 bertrand 16: ldadd_libiconv = $(top_builddir)/tools/@ICONV@/lib/.libs/@LIB_PREFIX@iconv.a
1.1 bertrand 17: include_libiconv = -I$(top_builddir)/tools/@ICONV@/include
18:
1.68 bertrand 19: ldadd_libcrypto = $(top_builddir)/tools/@OPENSSL@/@LIB_PREFIX@crypto.a
20: ldadd_libssl = $(top_builddir)/tools/@OPENSSL@/@LIB_PREFIX@ssl.a
1.8 bertrand 21: include_libcrypto = -I$(top_builddir)/tools/@OPENSSL@/include
1.6 bertrand 22:
1.68 bertrand 23: ldadd_libsqlite = $(top_builddir)/tools/@SQLITE@/.libs/@LIB_PREFIX@sqlite3.a
1.11 bertrand 24: include_libsqlite = -I$(top_srcdir)/tools/@SQLITE@
1.6 bertrand 25:
1.106 bertrand 26: ldadd_libsigsegv = @LIBSIGSEGV@
27: include_libsigsegv = @INCSIGSEGV@
1.60 bertrand 28:
1.85 bertrand 29: ldadd_libz = $(top_builddir)/tools/@ZLIB@/libz.a
30: include_libz = -I$(top_builddir)/tools/@ZLIB@
31:
1.116 bertrand 32: ldadd_librplcas = @LIBRPLCAS@ @LIBGIAC@
1.95 bertrand 33: include_librplcas = @INCRPLCAS@
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\
1.97 bertrand 79: allocateur.c\
1.1 bertrand 80: analyse.c\
81: analyse_notation_algebrique.c\
82: analyse_notation_rpn.c\
1.2 bertrand 83: asprintf.c\
1.1 bertrand 84: bibliotheques_externes.c\
85: calcul_differentiel.c\
86: calcul_integral.c\
87: chainage.c\
1.78 bertrand 88: chiffrement.c\
1.1 bertrand 89: compilation.c\
90: completion.c\
1.6 bertrand 91: controle.c \
1.1 bertrand 92: daemon.c\
93: date.c\
94: depassements.c\
95: dft.c\
96: encart.c\
97: evaluation.c\
98: fonctions_trigonometriques.c\
99: formateur.c\
100: formateur_fichiers.c\
1.48 bertrand 101: formateur_flux.c\
1.1 bertrand 102: fusible.c\
103: generateurs_aleatoires.c\
104: gestion_fichiers.c\
105: gestion_interruptions.c\
106: gestion_niveaux.c\
107: gestion_objets.c\
108: gestion_pile.c\
109: gestion_pile_last.c\
110: gestion_pile_systeme.c\
111: gestion_processus.c\
112: gestion_threads.c\
113: gestion_variables.c\
114: gestion_variables_statiques.c\
115: gestion_variables_partagees.c\
1.29 bertrand 116: getaddrinfo.c\
1.1 bertrand 117: indicateurs.c\
118: instructions_a1.c\
119: instructions_a2.c\
120: instructions_a3.c\
121: instructions_a4.c\
122: instructions_a5.c\
123: instructions_b1.c\
124: instructions_c1.c\
125: instructions_c2.c\
126: instructions_c3.c\
127: instructions_c4.c\
128: instructions_c5.c\
129: instructions_c6.c\
130: instructions_c7.c\
1.79 bertrand 131: instructions_c8.c\
1.85 bertrand 132: instructions_c9.c\
1.1 bertrand 133: instructions_d1.c\
134: instructions_d2.c\
135: instructions_d3.c\
136: instructions_d4.c\
137: instructions_d5.c\
138: instructions_d6.c\
139: instructions_e1.c\
140: instructions_e2.c\
141: instructions_e3.c\
142: instructions_e4.c\
143: instructions_f1.c\
144: instructions_f2.c\
145: instructions_f3.c\
146: instructions_f4.c\
147: instructions_g1.c\
148: instructions_g2.c\
149: instructions_g3.c\
150: instructions_g4.c\
151: instructions_h1.c\
152: instructions_h2.c\
153: instructions_i1.c\
154: instructions_i2.c\
155: instructions_i3.c\
156: instructions_i4.c\
157: instructions_j1.c\
158: instructions_k1.c\
159: instructions_l1.c\
160: instructions_l2.c\
161: instructions_l3.c\
162: instructions_l4.c\
163: instructions_l5.c\
1.57 bertrand 164: instructions_l6.c\
1.1 bertrand 165: instructions_m1.c\
166: instructions_m2.c\
167: instructions_m3.c\
168: instructions_m4.c\
1.21 bertrand 169: instructions_m5.c\
1.1 bertrand 170: instructions_n1.c\
171: instructions_n2.c\
172: instructions_o1.c\
173: instructions_o2.c\
174: instructions_p1.c\
175: instructions_p2.c\
176: instructions_p3.c\
177: instructions_p4.c\
178: instructions_p5.c\
179: instructions_p6.c\
180: instructions_p7.c\
1.73 bertrand 181: instructions_p8.c\
1.1 bertrand 182: instructions_q1.c\
183: instructions_r1.c\
184: instructions_r2.c\
185: instructions_r3.c\
186: instructions_r4.c\
187: instructions_r5.c\
188: instructions_r6.c\
1.72 bertrand 189: instructions_r7.c\
1.1 bertrand 190: instructions_s1.c\
191: instructions_s2.c\
192: instructions_s3.c\
193: instructions_s4.c\
194: instructions_s5.c\
195: instructions_s6.c\
196: instructions_s7.c\
197: instructions_s8.c\
198: instructions_s9.c\
199: instructions_s10.c\
1.58 bertrand 200: instructions_s11.c\
1.1 bertrand 201: instructions_t1.c\
202: instructions_t2.c\
203: instructions_t3.c\
204: instructions_u1.c\
1.85 bertrand 205: instructions_u2.c\
1.1 bertrand 206: instructions_v1.c\
207: instructions_v2.c\
208: instructions_w1.c\
209: instructions_w2.c\
210: instructions_x1.c\
211: instructions_x2.c\
212: instructions_y1.c\
213: interface_gnuplot.c\
1.98 bertrand 214: interface_readline.c\
1.1 bertrand 215: interface_tex.c\
216: interruptions.c\
217: messages.c\
218: occupation_memoire.c\
219: operations_atomiques.c\
220: operations_binaires.c\
221: optimisation.c\
222: profilage.c\
223: rpl.c\
224: rplcore.c\
1.16 bertrand 225: semaphores.c\
1.1 bertrand 226: sequenceur.c\
227: simplification.c\
228: sommations.c\
229: sql.c\
230: statistiques.c\
231: transliteration.c\
232: types.c
233:
1.51 bertrand 234: SRCCPP=\
235: interface_cas.cpp
236:
1.1 bertrand 237: SRCH=\
238: completion.h\
239: convert.h\
240: copyright.h\
241: garanties.h\
1.29 bertrand 242: getaddrinfo.h\
1.1 bertrand 243: gnuplot.h\
244: librpl.h\
245: licence.h\
246: rpl.h\
247: rplexternals.h\
248: rpltypes.h\
249: tex.h\
250: usages.h\
251: vim.h
252:
253: SRCF=\
254: arithmetique.f\
255: bibliotheque_logarithmique.f\
256: bibliotheque_trigonometrique.f
257:
258: SRCF90=\
259: combinaisons.F90\
260: distributions.F90\
261: fonctions_speciales.F90
262:
263: SRCINC=\
264: rplftypes.inc
265:
266: SRCXPM=\
267: rpl.xpm
268:
269: INIT_EXE=init.c
270:
271: INIT_LIB=librpl.c
272:
1.120 bertrand 273: LIB=@MALLOC@
1.1 bertrand 274:
275: bin_PROGRAMS = rpl
276: lib_LIBRARIES = librpl.a
277:
1.29 bertrand 278: SRCCc=$(SRCC:.c=-conv.c)
279: SRCHc=$(SRCH:.h=-conv.h)
1.51 bertrand 280: SRCCPPc=$(SRCCPP:.cpp=-conv.cpp)
1.29 bertrand 281: SRCFc=$(SRCF:.f=-conv.f)
282: SRCF90c=$(SRCF90:.F90=-conv.F90)
283: SRCINCc=$(SRCINC:.inc=-conv.inc)
284: INIT_LIBc=$(INIT_LIB:.c=-conv.c)
285: INIT_EXEc=$(INIT_EXE:.c=-conv.c)
1.1 bertrand 286:
1.29 bertrand 287: %-conv.c: %.c
1.70 bertrand 288: @echo " CONV $<"
289: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 290: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
291: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 292: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 293: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
294:
1.51 bertrand 295: %-conv.cpp: %.cpp
1.70 bertrand 296: @echo " CONV $<"
297: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 298: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
299: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.51 bertrand 300: $(AWK) -F= '{print $$2;}'` \
301: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
302:
1.29 bertrand 303: %-conv.h: %.h
1.70 bertrand 304: @echo " CONV $<"
305: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 306: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
307: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 308: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 309: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
310:
1.29 bertrand 311: %-conv.f: %.f
1.70 bertrand 312: @echo " CONV $<"
313: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 314: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
315: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 316: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 317: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
318:
1.65 bertrand 319: %-conv.F90: %.F90
1.70 bertrand 320: @echo " CONV $<"
321: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 322: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
323: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 324: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 325: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
326:
1.29 bertrand 327: %-conv.inc: %.inc
1.70 bertrand 328: @echo " CONV $<"
329: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 330: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
331: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 332: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 333: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
334:
335: licences:
1.87 bertrand 336: cat $(srcdir)/../HEADER > $(srcdir)/licence.h
1.1 bertrand 337: echo >> $(srcdir)/licence.h
338: echo >> $(srcdir)/licence.h
339: echo "#ifndef INCLUSION_LICENCE" >> $(srcdir)/licence.h
340: echo "# define INCLUSION_LICENCE" >> $(srcdir)/licence.h
341: echo " unsigned char CeCILL_fr[] =" >> $(srcdir)/licence.h
342: sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-fr.txt | \
1.11 bertrand 343: $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1 bertrand 344: >> $(srcdir)/licence.h
345: echo " ;" >> $(srcdir)/licence.h
346: echo " unsigned char CeCILL_en[] =" >> $(srcdir)/licence.h
347: sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-en.txt | \
1.11 bertrand 348: $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1 bertrand 349: >> $(srcdir)/licence.h
350: echo " ;" >> $(srcdir)/licence.h
351: echo "#endif" >> $(srcdir)/licence.h
352: echo >> $(srcdir)/licence.h
353: echo "// vim: ts=4" >> $(srcdir)/licence.h
1.51 bertrand 354: for i in $(SRCC) $(SRCCPP) $(SRCH) $(INIT_EXE) $(INIT_LIB); \
1.1 bertrand 355: do \
1.87 bertrand 356: cat $(srcdir)/../HEADER > $(srcdir)/tmp; \
1.1 bertrand 357: echo >> $(srcdir)/tmp; \
358: echo >> $(srcdir)/tmp; \
1.11 bertrand 359: $(AWK) -F'\n' 'BEGIN {d=0;} /^#/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 360: $(srcdir)/$$i >> $(srcdir)/tmp; \
361: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
362: done
363: for i in $(SRCINC); \
364: do \
1.87 bertrand 365: iconv -f `file -i $(srcdir)/../HEADER | $(AWK) -F= '{print $$2;}'` \
366: $(srcdir)/../HEADER | \
1.11 bertrand 367: $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1 bertrand 368: {printf("!%s\n", substr($$1,2));}' | \
1.87 bertrand 369: iconv -t `file -i $(srcdir)/../HEADER | \
1.11 bertrand 370: $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
371: $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 372: $(srcdir)/$$i >> $(srcdir)/tmp; \
373: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
374: done
375: for i in $(SRCF); \
376: do \
1.87 bertrand 377: iconv -f `file -i $(srcdir)/../HEADER | $(AWK) -F= '{print $$2;}'` \
378: $(srcdir)/../HEADER | \
1.11 bertrand 379: $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1 bertrand 380: {printf("C%s\n", substr($$1,2));}' | \
1.87 bertrand 381: iconv -t `file -i $(srcdir)/../HEADER | \
1.11 bertrand 382: $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
383: $(AWK) -F'\n' 'BEGIN {d=0;} ! /^C/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 384: $(srcdir)/$$i >> $(srcdir)/tmp; \
385: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
386: done
387: for i in $(SRCF90); \
388: do \
1.87 bertrand 389: iconv -f `file -i $(srcdir)/../HEADER | $(AWK) -F= '{print $$2;}'` \
390: $(srcdir)/../HEADER | \
1.11 bertrand 391: $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1 bertrand 392: {printf("!%s\n", substr($$1,2));}' | \
1.87 bertrand 393: iconv -t `file -i $(srcdir)/../HEADER | \
1.11 bertrand 394: $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
395: $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 396: $(srcdir)/$$i >> $(srcdir)/tmp; \
397: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
398: done
399:
400: librplprototypes.h: rpl.h conversion.awk
1.71 bertrand 401: @echo " AWK $@"
1.70 bertrand 402: @$(AWK) -f $(srcdir)/conversion.awk $(srcdir)/rpl.h > \
1.1 bertrand 403: $(top_builddir)/src/librplprototypes.h
1.10 bertrand 404:
1.1 bertrand 405: generateurs.c: generateurs_aleatoires.awk
1.71 bertrand 406: @echo " AWK $@"
1.70 bertrand 407: @$(AWK) -f $(srcdir)/generateurs_aleatoires.awk \
1.1 bertrand 408: $(srcdir)/../tools/@GSL@/rng/gsl_rng.h > \
409: $(top_builddir)/src/generateurs.c
410:
1.10 bertrand 411: rpl.inc:
1.70 bertrand 412: @echo " BUILD $@"
1.90 bertrand 413: @echo RPL_BUILDPATH=$(top_builddir)/.. > $@
414: @echo RPL_COMPILE="$(DEFS) @ABI@" | sed -e '1,$$s/"/\\"/g' | \
1.56 bertrand 415: sed -e '1,$$s/=\\"/="\\"/g' | sed -e '1,$$s/\\" /\\"" /g' >> $@
1.90 bertrand 416: @echo -n RPL_LINK=@libX@ @libMySQLlib@ @libPgSQLlib@ @LIBS@ -lgfortran >> $@
417: @if [ -f $(top_builddir)/tools/openmotif.lib ]; then \
418: $(AWK) -F= '/^LD_MOTIF_LIBS/ { printf(" %s", $$2); }' \
419: $(top_builddir)/tools/openmotif.lib >> $@; \
420: $(AWK) -F= '/^LD_MOTIF_X_XMU/ { printf(" %s", $$2); }' \
421: $(top_builddir)/tools/openmotif.lib >> $@; \
422: fi
423: @echo >> $@
424: @echo RPL_FLAGS=-Wno-pointer-sign >> $@
425: @echo RPL_OBJECTS=$(SRCCc:.c=.$(OBJEXT)) $(SRCFc:.f=.$(OBJEXT)) \
1.89 bertrand 426: $(SRCF90c:.F90=.$(OBJEXT)) $(SRCCPPc:.cpp=.$(OBJEXT)) \
1.29 bertrand 427: librpl-conv.$(OBJEXT) >> $@
1.90 bertrand 428: @echo RPL_EXTOBJECTS= @EXT_SQL@ \
1.89 bertrand 429: $(top_builddir)/lapack/lapack/liblapack.a \
430: $(top_builddir)/lapack/blas/libblas.a \
431: $(ldadd_libhistory) \
432: $(ldadd_libreadline) \
433: $(ldadd_libncurses) \
434: $(ldadd_libgsl) \
435: $(ldadd_libiconv) \
436: $(ldadd_libcrypto) \
437: $(ldadd_libssl) \
438: $(ldadd_libsqlite) \
439: $(ldadd_librplcas) \
440: $(ldadd_libsigsegv) \
441: $(ldadd_libmotif) \
442: $(ldadd_libz) \
443: >> $@
1.10 bertrand 444:
1.51 bertrand 445: EXTRA_DIST = $(SRCC) $(SRCH) $(SRCCPP) $(SRCF) $(SRCF90) $(SRCINC) \
1.1 bertrand 446: $(INIT_EXE) $(INIT_LIB) $(SRCXPM) \
447: conversion.awk generateurs_aleatoires.awk
448: BUILT_SOURCES = librplprototypes.h generateurs.c \
1.51 bertrand 449: $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) \
1.10 bertrand 450: $(INIT_LIBc) $(SRCINCc) $(INIT_EXEc) \
451: rpl.inc
1.51 bertrand 452: CLEANFILES= $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) $(SRCINCc) \
1.10 bertrand 453: $(INIT_LIBc) $(INIT_EXEc) librplprototypes.h generateurs.c \
1.111 bertrand 454: rpl.inc
1.1 bertrand 455:
1.27 bertrand 456: nodist_rpl_SOURCES = \
1.51 bertrand 457: $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) $(INIT_EXEc) \
1.1 bertrand 458: $(SRCXPM) $(SRCINCc)
1.107 bertrand 459: rpl_LDFLAGS = -g @PROFILAGE@ @EXPORT_DYNAMIC@ @ELF@ @CYGWIN_LDFLAGS@ \
1.121 ! bertrand 460: -Wl,--exclude-libs,libssl.a:libcrypto.a:libsqlite3.a:liblapack.a:libblas.a:librplcas.a:libncursesn.a:libz.a:libgsl.a:libreadline.a:libhistory.a:libsigsegv.a
1.31 bertrand 461: rpl_CFLAGS = $(AM_CFLAGS) @C_STANDARD@ -Wall -Wextra -Wno-unused-function \
1.82 bertrand 462: -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@ \
1.118 bertrand 463: -Wconversion -ftabstop=4
1.89 bertrand 464: rpl_CXXFLAGS = $(AM_CFLAGS) -Wall -Wextra
1.1 bertrand 465: rpl_FFLAGS = $(AM_FFLAGS) -fno-f2c
466: rpl_FCFLAGS = $(AM_FCFLAGS) -fno-second-underscore -fno-f2c
467:
1.27 bertrand 468: nodist_librpl_a_SOURCES = \
1.51 bertrand 469: $(SRCCc) $(SRCHc) $(SRCFc) $(SRCCPPc) $(SRCF90c) $(INIT_LIBc) \
1.27 bertrand 470: $(SRCXPM) $(SRCINCc)
1.31 bertrand 471: librpl_a_CFLAGS = $(AM_CFLAGS) @C_STANDARD@ -Wall -Wextra -Wno-unused-function \
1.82 bertrand 472: -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@ \
1.84 bertrand 473: -Wconversion
1.89 bertrand 474: librpl_a_CXXFLAGS = $(AM_CFLAGS) -Wall -Wextra
1.1 bertrand 475: librpl_a_FFLAGS = $(AM_FFLAGS) -ff2c
476: librpl_a_FCFLAGS = $(AM_FCLAGS) -fno-second-underscore
477:
1.18 bertrand 478: include_HEADERS = rplexternals.h rpltypes.h rpl.h librpl.h rpl.inc \
479: librplprototypes.h
1.1 bertrand 480:
481: INCLUDES = -I$(srcdir) -I$(top_builddir) \
482: $(include_libreadline) $(include_libncurses) $(include_libgsl) \
1.52 bertrand 483: $(include_libiconv) $(include_libcrypto) $(include_libsqlite) \
1.60 bertrand 484: $(include_librplcas) $(include_libsigsegv) \
1.85 bertrand 485: $(include_libmotif) $(include_libz) \
1.74 bertrand 486: @SYSROOT@ @includeX@ @libMySQLinc@ @libPgSQLinc@
1.61 bertrand 487: DEFS = -DHAVE_CONFIG_H -Dd_version_rpl=\"@VERSION@\" \
1.3 bertrand 488: -Dd_exec_path=\"@RUNPATH@\" @FORCE_GNUPLOT_PATH@ @DEBUG@ \
1.1 bertrand 489: @MOTIF_SUPPORT@ @POSTSCRIPT_SUPPORT@ @GNUPLOT_SUPPORT@ \
490: @VIM_SUPPORT@ @MYSQL_SUPPORT@ @POSTGRESQL_SUPPORT@ \
1.40 bertrand 491: @SEMAPHORES_NOMMES@ @IPCS_SYSV@ @SEMUN@ @IPV6@ \
1.7 bertrand 492: @EXPERIMENTAL_CODE@ $(date) $(hash) -g @PROFILAGE@ \
1.106 bertrand 493: @BROKEN_SIGSEGV@ \
1.12 bertrand 494: -Dd_locale=\"@FINAL_ENCODING@\" \
1.76 bertrand 495: -Dd_forced_locale=@FORCED_FINAL_ENCODING@ \
1.101 bertrand 496: -D@OS@ @BSH_PATH@ @RPLCAS@ -DHOST=\"@HOST@\" @SHARED_MEMORY@
1.91 bertrand 497: rpl_LDADD = \
1.103 bertrand 498: $(LIB) \
1.1 bertrand 499: $(ldadd_libhistory) $(ldadd_libreadline) $(ldadd_libncurses) \
1.10 bertrand 500: $(ldadd_libiconv) $(ldadd_libcrypto) $(ldadd_libssl) \
1.100 bertrand 501: $(ldadd_libsqlite) $(ldadd_libsigsegv) $(ldadd_libz) \
1.117 bertrand 502: $(ldadd_librplcas) $(ldadd_libgsl) @libMySQLlib@ @libPgSQLlib@ \
1.110 bertrand 503: $(top_builddir)/lapack/lapack/liblapack.a \
504: $(top_builddir)/lapack/blas/libblas.a \
1.103 bertrand 505: @WHOLE_LIB1@ \
506: $(ldadd_libmotif) $(LD_MOTIF_LIBS) $(LD_MOTIF_X_XMU) \
1.115 bertrand 507: @WHOLE_LIB2@ @libX@ \
1.91 bertrand 508: -lgfortran
1.1 bertrand 509:
1.29 bertrand 510: always: $(top_builddir)/src/rpl-conv.c
1.70 bertrand 511: @touch $<;
512: @if [ x$(shell which ctags) != x ]; then \
1.89 bertrand 513: (cd $(srcdir); ctags $(SRCC) $(SRCF) $(SRCF90) $(SRCCPP) \
1.16 bertrand 514: $(INIT_LIB) $(INIT_EXE) 2>&1 /dev/null); \
515: fi;
1.1 bertrand 516:
1.10 bertrand 517: .PHONY: always librpl licences rpl.inc
1.1 bertrand 518:
519: all-local: always
520:
1.113 bertrand 521: install-exec-local: s-librpl s-rpl
1.94 bertrand 522:
523: s-rpl: install-binPROGRAMS
524: @if [ @OS@ != OS2 -a @OS@ != Darwin ]; then \
525: echo " STRIP rpl" && strip -d $(DESTDIR)$(bindir)/rpl; \
1.109 bertrand 526: if [ @OS@ = Cygwin ]; then \
1.108 bertrand 527: cp $(top_builddir)/src/rpl.exe.a $(DESTDIR)$(libdir)/rpl.exe.a; \
528: fi; \
1.94 bertrand 529: fi
1.1 bertrand 530:
1.113 bertrand 531: s-librpl: install-libLIBRARIES librpl
532: $(INSTALL_DATA) $(top_builddir)/librpl/librpl.a $(DESTDIR)$(libdir)/librpl.a
533:
534: librpl:
1.70 bertrand 535: @echo " BUILD $@"
536: @if [ -d $(top_builddir)/librpl ]; then \
1.32 bertrand 537: rm -rf $(top_builddir)/librpl; \
1.31 bertrand 538: fi
1.70 bertrand 539: @mkdir -p $(top_builddir)/librpl;
540: @for i in $(top_builddir)/src/librpl.a \
1.100 bertrand 541: $(ldadd_libhistory) $(ldadd_libreadline) $(ldadd_libz) \
1.16 bertrand 542: $(top_builddir)/lapack/lapack/liblapack.a \
543: $(top_builddir)/lapack/blas/libblas.a \
544: $(ldadd_libncurses) $(ldadd_libgsl) $(ldadd_libiconv) \
1.52 bertrand 545: $(ldadd_libcrypto) $(ldadd_libssl) $(ldadd_libsqlite) \
1.62 bertrand 546: $(ldadd_librplcas) $(ldadd_libsigsegv) $(ldadd_libmotif); \
1.16 bertrand 547: do \
1.119 bertrand 548: if [ -e $$i ]; then cp -f $$i $(top_builddir)/librpl; fi; \
1.16 bertrand 549: done
1.70 bertrand 550: @(cd $(top_builddir)/librpl && n=0 && \
551: echo " Building standalone librpl.a"; \
1.37 bertrand 552: for i in *.a; \
1.70 bertrand 553: do echo " Extracting $$i"; ar x $$i; \
1.37 bertrand 554: for j in `ar t $$i`; \
1.90 bertrand 555: do cp -f $$j rpl-$$n-$$j; \
1.37 bertrand 556: rm -f $$j; \
557: done; \
558: n=`expr $$n + 1`; \
559: rm -f $$i; \
560: done; \
1.34 bertrand 561: L="start"; \
562: while test -n "$$L"; \
563: do \
1.70 bertrand 564: echo -n " Remaining files "; \
1.39 bertrand 565: find . -name "*.$(OBJEXT)" | wc -l; \
1.34 bertrand 566: L=""; j=0; \
1.39 bertrand 567: for i in `find . -name "*.$(OBJEXT)"`; \
1.34 bertrand 568: do \
569: k=`echo $$i | wc -c`; \
570: j=`expr $$j + $$k + 1`; \
1.64 bertrand 571: if test $$j -le 8000; then \
1.34 bertrand 572: L="$$L $$i"; \
573: else \
574: break; \
575: fi; \
576: done; \
1.39 bertrand 577: if test -n "$$L"; then \
1.70 bertrand 578: echo -n " Adding files to librpl.a archive... "; \
1.99 bertrand 579: ar cr librpl.a $$L; \
1.39 bertrand 580: rm -f $$L; \
581: echo "done"; \
582: fi; \
1.34 bertrand 583: done; \
1.70 bertrand 584: echo " Archive created"; \
1.35 bertrand 585: ar s librpl.a; \
1.63 bertrand 586: if [ @OS@ != OS2 -a @OS@ != Darwin ]; then \
1.70 bertrand 587: echo " STRIP librpl.a" && strip -d librpl.a; \
588: fi;);
CVSweb interface <joel.bertrand@systella.fr>