Annotation of rpl/src/Makefile.am, revision 1.115
1.96 bertrand 1: -include $(top_builddir)/tools/openmotif.lib
1.62 bertrand 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.106 bertrand 25: ldadd_libsigsegv = @LIBSIGSEGV@
26: include_libsigsegv = @INCSIGSEGV@
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\
1.97 bertrand 78: allocateur.c\
1.1 bertrand 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\
1.98 bertrand 213: interface_readline.c\
1.1 bertrand 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\
1.16 bertrand 224: semaphores.c\
1.1 bertrand 225: sequenceur.c\
226: simplification.c\
227: sommations.c\
228: sql.c\
229: statistiques.c\
230: transliteration.c\
231: types.c
232:
1.51 bertrand 233: SRCCPP=\
234: interface_cas.cpp
235:
1.1 bertrand 236: SRCH=\
237: completion.h\
238: convert.h\
239: copyright.h\
240: garanties.h\
1.29 bertrand 241: getaddrinfo.h\
1.1 bertrand 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:
1.112 bertrand 272: LIB=@MALLOC@ @OPENMP@
1.1 bertrand 273:
274: bin_PROGRAMS = rpl
275: lib_LIBRARIES = librpl.a
276:
1.29 bertrand 277: SRCCc=$(SRCC:.c=-conv.c)
278: SRCHc=$(SRCH:.h=-conv.h)
1.51 bertrand 279: SRCCPPc=$(SRCCPP:.cpp=-conv.cpp)
1.29 bertrand 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)
1.1 bertrand 285:
1.29 bertrand 286: %-conv.c: %.c
1.70 bertrand 287: @echo " CONV $<"
288: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 289: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
290: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 291: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 292: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
293:
1.51 bertrand 294: %-conv.cpp: %.cpp
1.70 bertrand 295: @echo " CONV $<"
296: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 297: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
298: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.51 bertrand 299: $(AWK) -F= '{print $$2;}'` \
300: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
301:
1.29 bertrand 302: %-conv.h: %.h
1.70 bertrand 303: @echo " CONV $<"
304: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 305: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
306: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 307: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 308: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
309:
1.29 bertrand 310: %-conv.f: %.f
1.70 bertrand 311: @echo " CONV $<"
312: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 313: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
314: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 315: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 316: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
317:
1.65 bertrand 318: %-conv.F90: %.F90
1.70 bertrand 319: @echo " CONV $<"
320: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 321: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
322: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 323: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 324: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
325:
1.29 bertrand 326: %-conv.inc: %.inc
1.70 bertrand 327: @echo " CONV $<"
328: @@RPLTOOLS@/rpliconv/rpliconv \
1.65 bertrand 329: -f `@RPLTOOLS@/tools/@FILE@/src/rplfile \
330: -m @RPLTOOLS@/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 331: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 332: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
333:
334: licences:
1.87 bertrand 335: cat $(srcdir)/../HEADER > $(srcdir)/licence.h
1.1 bertrand 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 | \
1.11 bertrand 342: $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1 bertrand 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 | \
1.11 bertrand 347: $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1 bertrand 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
1.51 bertrand 353: for i in $(SRCC) $(SRCCPP) $(SRCH) $(INIT_EXE) $(INIT_LIB); \
1.1 bertrand 354: do \
1.87 bertrand 355: cat $(srcdir)/../HEADER > $(srcdir)/tmp; \
1.1 bertrand 356: echo >> $(srcdir)/tmp; \
357: echo >> $(srcdir)/tmp; \
1.11 bertrand 358: $(AWK) -F'\n' 'BEGIN {d=0;} /^#/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 359: $(srcdir)/$$i >> $(srcdir)/tmp; \
360: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
361: done
362: for i in $(SRCINC); \
363: do \
1.87 bertrand 364: iconv -f `file -i $(srcdir)/../HEADER | $(AWK) -F= '{print $$2;}'` \
365: $(srcdir)/../HEADER | \
1.11 bertrand 366: $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1 bertrand 367: {printf("!%s\n", substr($$1,2));}' | \
1.87 bertrand 368: iconv -t `file -i $(srcdir)/../HEADER | \
1.11 bertrand 369: $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
370: $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 371: $(srcdir)/$$i >> $(srcdir)/tmp; \
372: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
373: done
374: for i in $(SRCF); \
375: do \
1.87 bertrand 376: iconv -f `file -i $(srcdir)/../HEADER | $(AWK) -F= '{print $$2;}'` \
377: $(srcdir)/../HEADER | \
1.11 bertrand 378: $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1 bertrand 379: {printf("C%s\n", substr($$1,2));}' | \
1.87 bertrand 380: iconv -t `file -i $(srcdir)/../HEADER | \
1.11 bertrand 381: $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
382: $(AWK) -F'\n' 'BEGIN {d=0;} ! /^C/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 383: $(srcdir)/$$i >> $(srcdir)/tmp; \
384: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
385: done
386: for i in $(SRCF90); \
387: do \
1.87 bertrand 388: iconv -f `file -i $(srcdir)/../HEADER | $(AWK) -F= '{print $$2;}'` \
389: $(srcdir)/../HEADER | \
1.11 bertrand 390: $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1 bertrand 391: {printf("!%s\n", substr($$1,2));}' | \
1.87 bertrand 392: iconv -t `file -i $(srcdir)/../HEADER | \
1.11 bertrand 393: $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
394: $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 395: $(srcdir)/$$i >> $(srcdir)/tmp; \
396: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
397: done
398:
399: librplprototypes.h: rpl.h conversion.awk
1.71 bertrand 400: @echo " AWK $@"
1.70 bertrand 401: @$(AWK) -f $(srcdir)/conversion.awk $(srcdir)/rpl.h > \
1.1 bertrand 402: $(top_builddir)/src/librplprototypes.h
1.10 bertrand 403:
1.1 bertrand 404: generateurs.c: generateurs_aleatoires.awk
1.71 bertrand 405: @echo " AWK $@"
1.70 bertrand 406: @$(AWK) -f $(srcdir)/generateurs_aleatoires.awk \
1.1 bertrand 407: $(srcdir)/../tools/@GSL@/rng/gsl_rng.h > \
408: $(top_builddir)/src/generateurs.c
409:
1.10 bertrand 410: rpl.inc:
1.70 bertrand 411: @echo " BUILD $@"
1.90 bertrand 412: @echo RPL_BUILDPATH=$(top_builddir)/.. > $@
413: @echo RPL_COMPILE="$(DEFS) @ABI@" | sed -e '1,$$s/"/\\"/g' | \
1.56 bertrand 414: sed -e '1,$$s/=\\"/="\\"/g' | sed -e '1,$$s/\\" /\\"" /g' >> $@
1.90 bertrand 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)) \
1.89 bertrand 425: $(SRCF90c:.F90=.$(OBJEXT)) $(SRCCPPc:.cpp=.$(OBJEXT)) \
1.29 bertrand 426: librpl-conv.$(OBJEXT) >> $@
1.90 bertrand 427: @echo RPL_EXTOBJECTS= @EXT_SQL@ \
1.89 bertrand 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: >> $@
1.10 bertrand 443:
1.51 bertrand 444: EXTRA_DIST = $(SRCC) $(SRCH) $(SRCCPP) $(SRCF) $(SRCF90) $(SRCINC) \
1.1 bertrand 445: $(INIT_EXE) $(INIT_LIB) $(SRCXPM) \
446: conversion.awk generateurs_aleatoires.awk
447: BUILT_SOURCES = librplprototypes.h generateurs.c \
1.51 bertrand 448: $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) \
1.10 bertrand 449: $(INIT_LIBc) $(SRCINCc) $(INIT_EXEc) \
450: rpl.inc
1.51 bertrand 451: CLEANFILES= $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) $(SRCINCc) \
1.10 bertrand 452: $(INIT_LIBc) $(INIT_EXEc) librplprototypes.h generateurs.c \
1.111 bertrand 453: rpl.inc
1.1 bertrand 454:
1.27 bertrand 455: nodist_rpl_SOURCES = \
1.51 bertrand 456: $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) $(INIT_EXEc) \
1.1 bertrand 457: $(SRCXPM) $(SRCINCc)
1.107 bertrand 458: rpl_LDFLAGS = -g @PROFILAGE@ @EXPORT_DYNAMIC@ @ELF@ @CYGWIN_LDFLAGS@ \
1.106 bertrand 459: -Wl,--exclude-libs,libssl.a:libcrypto.a:libsqlite3.a:liblapack.a:libblas.a:librplcas.a:libncurses.a:libz.a:libgsl.a:libreadline.a:libhistory.a:libsigsegv.a
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.106 bertrand 492: @BROKEN_SIGSEGV@ \
1.12 bertrand 493: -Dd_locale=\"@FINAL_ENCODING@\" \
1.76 bertrand 494: -Dd_forced_locale=@FORCED_FINAL_ENCODING@ \
1.101 bertrand 495: -D@OS@ @BSH_PATH@ @RPLCAS@ -DHOST=\"@HOST@\" @SHARED_MEMORY@
1.91 bertrand 496: rpl_LDADD = \
1.103 bertrand 497: $(LIB) \
1.1 bertrand 498: $(ldadd_libhistory) $(ldadd_libreadline) $(ldadd_libncurses) \
1.10 bertrand 499: $(ldadd_libiconv) $(ldadd_libcrypto) $(ldadd_libssl) \
1.100 bertrand 500: $(ldadd_libsqlite) $(ldadd_libsigsegv) $(ldadd_libz) \
1.103 bertrand 501: $(ldadd_libgsl) $(ldadd_librplcas) @libMySQLlib@ @libPgSQLlib@ \
1.110 bertrand 502: $(top_builddir)/lapack/lapack/liblapack.a \
503: $(top_builddir)/lapack/blas/libblas.a \
1.103 bertrand 504: @WHOLE_LIB1@ \
505: $(ldadd_libmotif) $(LD_MOTIF_LIBS) $(LD_MOTIF_X_XMU) \
1.115 ! bertrand 506: @WHOLE_LIB2@ @libX@ \
1.91 bertrand 507: -lgfortran
1.1 bertrand 508:
1.29 bertrand 509: always: $(top_builddir)/src/rpl-conv.c
1.70 bertrand 510: @touch $<;
511: @if [ x$(shell which ctags) != x ]; then \
1.89 bertrand 512: (cd $(srcdir); ctags $(SRCC) $(SRCF) $(SRCF90) $(SRCCPP) \
1.16 bertrand 513: $(INIT_LIB) $(INIT_EXE) 2>&1 /dev/null); \
514: fi;
1.1 bertrand 515:
1.10 bertrand 516: .PHONY: always librpl licences rpl.inc
1.1 bertrand 517:
518: all-local: always
519:
1.113 bertrand 520: install-exec-local: s-librpl s-rpl
1.94 bertrand 521:
522: s-rpl: install-binPROGRAMS
523: @if [ @OS@ != OS2 -a @OS@ != Darwin ]; then \
524: echo " STRIP rpl" && strip -d $(DESTDIR)$(bindir)/rpl; \
1.109 bertrand 525: if [ @OS@ = Cygwin ]; then \
1.108 bertrand 526: cp $(top_builddir)/src/rpl.exe.a $(DESTDIR)$(libdir)/rpl.exe.a; \
527: fi; \
1.94 bertrand 528: fi
1.1 bertrand 529:
1.113 bertrand 530: s-librpl: install-libLIBRARIES librpl
531: $(INSTALL_DATA) $(top_builddir)/librpl/librpl.a $(DESTDIR)$(libdir)/librpl.a
532:
533: librpl:
1.70 bertrand 534: @echo " BUILD $@"
535: @if [ -d $(top_builddir)/librpl ]; then \
1.32 bertrand 536: rm -rf $(top_builddir)/librpl; \
1.31 bertrand 537: fi
1.70 bertrand 538: @mkdir -p $(top_builddir)/librpl;
539: @for i in $(top_builddir)/src/librpl.a \
1.100 bertrand 540: $(ldadd_libhistory) $(ldadd_libreadline) $(ldadd_libz) \
1.16 bertrand 541: $(top_builddir)/lapack/lapack/liblapack.a \
542: $(top_builddir)/lapack/blas/libblas.a \
543: $(ldadd_libncurses) $(ldadd_libgsl) $(ldadd_libiconv) \
1.52 bertrand 544: $(ldadd_libcrypto) $(ldadd_libssl) $(ldadd_libsqlite) \
1.62 bertrand 545: $(ldadd_librplcas) $(ldadd_libsigsegv) $(ldadd_libmotif); \
1.16 bertrand 546: do \
1.32 bertrand 547: cp -f $$i $(top_builddir)/librpl; \
1.16 bertrand 548: done
1.70 bertrand 549: @(cd $(top_builddir)/librpl && n=0 && \
550: echo " Building standalone librpl.a"; \
1.37 bertrand 551: for i in *.a; \
1.70 bertrand 552: do echo " Extracting $$i"; ar x $$i; \
1.37 bertrand 553: for j in `ar t $$i`; \
1.90 bertrand 554: do cp -f $$j rpl-$$n-$$j; \
1.37 bertrand 555: rm -f $$j; \
556: done; \
557: n=`expr $$n + 1`; \
558: rm -f $$i; \
559: done; \
1.34 bertrand 560: L="start"; \
561: while test -n "$$L"; \
562: do \
1.70 bertrand 563: echo -n " Remaining files "; \
1.39 bertrand 564: find . -name "*.$(OBJEXT)" | wc -l; \
1.34 bertrand 565: L=""; j=0; \
1.39 bertrand 566: for i in `find . -name "*.$(OBJEXT)"`; \
1.34 bertrand 567: do \
568: k=`echo $$i | wc -c`; \
569: j=`expr $$j + $$k + 1`; \
1.64 bertrand 570: if test $$j -le 8000; then \
1.34 bertrand 571: L="$$L $$i"; \
572: else \
573: break; \
574: fi; \
575: done; \
1.39 bertrand 576: if test -n "$$L"; then \
1.70 bertrand 577: echo -n " Adding files to librpl.a archive... "; \
1.99 bertrand 578: ar cr librpl.a $$L; \
1.39 bertrand 579: rm -f $$L; \
580: echo "done"; \
581: fi; \
1.34 bertrand 582: done; \
1.70 bertrand 583: echo " Archive created"; \
1.35 bertrand 584: ar s librpl.a; \
1.63 bertrand 585: if [ @OS@ != OS2 -a @OS@ != Darwin ]; then \
1.70 bertrand 586: echo " STRIP librpl.a" && strip -d librpl.a; \
587: fi;);
CVSweb interface <joel.bertrand@systella.fr>