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