1: ldadd_libncurses = $(top_builddir)/tools/@NCURSES@/lib/libncurses.a
2: include_libncurses = -I$(top_builddir)/tools/@NCURSES@/include \
3: -I$(top_srcdir)/tools/@NCURSES@/include
4:
5: ldadd_libhistory = $(top_builddir)/tools/@READLINE@/libhistory.a
6: ldadd_libreadline = $(top_builddir)/tools/@READLINE@/libreadline.a
7: include_libreadline = -I$(top_srcdir)/tools/@READLINE@ \
8: -I$(top_builddir)/tools/@READLINE@ -DREADLINE_LIBRARY
9:
10: ldadd_libgsl = $(top_builddir)/tools/@GSL@/.libs/libgsl.a
11: include_libgsl = -I$(top_builddir)/tools/@GSL@
12:
13: ldadd_libiconv = $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a
14: include_libiconv = -I$(top_builddir)/tools/@ICONV@/include
15:
16: date := -Dd_date_rpl="\"$(shell LC_ALL=fr_FR date +'%A %x, %X %Z')\"" \
17: -Dd_date_en_rpl="\"$(shell LC_ALL=C date +'%A %x, %X %Z')\""
18:
19: SRCC=\
20: algebre_lineaire1.c\
21: algebre_lineaire2.c\
22: algebre_lineaire3.c\
23: algebre_lineaire4.c\
24: analyse.c\
25: analyse_notation_algebrique.c\
26: analyse_notation_rpn.c\
27: bibliotheques_externes.c\
28: calcul_differentiel.c\
29: calcul_integral.c\
30: chainage.c\
31: compilation.c\
32: completion.c\
33: daemon.c\
34: date.c\
35: depassements.c\
36: dft.c\
37: encart.c\
38: evaluation.c\
39: fonctions_trigonometriques.c\
40: formateur.c\
41: formateur_fichiers.c\
42: fusible.c\
43: generateurs_aleatoires.c\
44: gestion_fichiers.c\
45: gestion_interruptions.c\
46: gestion_niveaux.c\
47: gestion_objets.c\
48: gestion_pile.c\
49: gestion_pile_last.c\
50: gestion_pile_systeme.c\
51: gestion_processus.c\
52: gestion_threads.c\
53: gestion_variables.c\
54: gestion_variables_statiques.c\
55: gestion_variables_partagees.c\
56: indicateurs.c\
57: instructions_a1.c\
58: instructions_a2.c\
59: instructions_a3.c\
60: instructions_a4.c\
61: instructions_a5.c\
62: instructions_b1.c\
63: instructions_c1.c\
64: instructions_c2.c\
65: instructions_c3.c\
66: instructions_c4.c\
67: instructions_c5.c\
68: instructions_c6.c\
69: instructions_c7.c\
70: instructions_d1.c\
71: instructions_d2.c\
72: instructions_d3.c\
73: instructions_d4.c\
74: instructions_d5.c\
75: instructions_d6.c\
76: instructions_e1.c\
77: instructions_e2.c\
78: instructions_e3.c\
79: instructions_e4.c\
80: instructions_f1.c\
81: instructions_f2.c\
82: instructions_f3.c\
83: instructions_f4.c\
84: instructions_g1.c\
85: instructions_g2.c\
86: instructions_g3.c\
87: instructions_g4.c\
88: instructions_h1.c\
89: instructions_h2.c\
90: instructions_i1.c\
91: instructions_i2.c\
92: instructions_i3.c\
93: instructions_i4.c\
94: instructions_j1.c\
95: instructions_k1.c\
96: instructions_l1.c\
97: instructions_l2.c\
98: instructions_l3.c\
99: instructions_l4.c\
100: instructions_l5.c\
101: instructions_m1.c\
102: instructions_m2.c\
103: instructions_m3.c\
104: instructions_m4.c\
105: instructions_n1.c\
106: instructions_n2.c\
107: instructions_o1.c\
108: instructions_o2.c\
109: instructions_p1.c\
110: instructions_p2.c\
111: instructions_p3.c\
112: instructions_p4.c\
113: instructions_p5.c\
114: instructions_p6.c\
115: instructions_p7.c\
116: instructions_q1.c\
117: instructions_r1.c\
118: instructions_r2.c\
119: instructions_r3.c\
120: instructions_r4.c\
121: instructions_r5.c\
122: instructions_r6.c\
123: instructions_s1.c\
124: instructions_s2.c\
125: instructions_s3.c\
126: instructions_s4.c\
127: instructions_s5.c\
128: instructions_s6.c\
129: instructions_s7.c\
130: instructions_s8.c\
131: instructions_s9.c\
132: instructions_s10.c\
133: instructions_t1.c\
134: instructions_t2.c\
135: instructions_t3.c\
136: instructions_u1.c\
137: instructions_v1.c\
138: instructions_v2.c\
139: instructions_w1.c\
140: instructions_w2.c\
141: instructions_x1.c\
142: instructions_x2.c\
143: instructions_y1.c\
144: interface_gnuplot.c\
145: interface_tex.c\
146: interruptions.c\
147: messages.c\
148: occupation_memoire.c\
149: operations_atomiques.c\
150: operations_binaires.c\
151: optimisation.c\
152: profilage.c\
153: rpl.c\
154: rplcore.c\
155: sequenceur.c\
156: simplification.c\
157: sommations.c\
158: sql.c\
159: statistiques.c\
160: transliteration.c\
161: types.c
162:
163: SRCH=\
164: completion.h\
165: convert.h\
166: copyright.h\
167: garanties.h\
168: gnuplot.h\
169: librpl.h\
170: licence.h\
171: rpl.h\
172: rplexternals.h\
173: rpltypes.h\
174: tex.h\
175: usages.h\
176: vim.h
177:
178: SRCF=\
179: arithmetique.f\
180: bibliotheque_logarithmique.f\
181: bibliotheque_trigonometrique.f
182:
183: SRCF90=\
184: combinaisons.F90\
185: distributions.F90\
186: fonctions_speciales.F90
187:
188: SRCINC=\
189: rplftypes.inc
190:
191: SRCXPM=\
192: rpl.xpm
193:
194: INIT_EXE=init.c
195:
196: INIT_LIB=librpl.c
197:
198: LIB=-lz @LIBMTMALLOC@
199:
200: bin_PROGRAMS = rpl
201: lib_LIBRARIES = librpl.a
202:
203: SRCCc=$(SRCC:.c=.conv.c)
204: SRCHc=$(SRCH:.h=.conv.h)
205: SRCFc=$(SRCF:.f=.conv.f)
206: SRCF90c=$(SRCF90:.F90=.conv.F90)
207: SRCINCc=$(SRCINC:.inc=.conv.inc)
208: INIT_LIBc=$(INIT_LIB:.c=.conv.c)
209: INIT_EXEc=$(INIT_EXE:.c=.conv.c)
210:
211: %.conv.c: %.c
212: $(top_builddir)/rpliconv/rpliconv \
213: -f `$(top_builddir)/tools/@FILE@/src/rplfile \
214: -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
215: awk -F= '{print $$2;}'` \
216: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
217:
218: %.conv.h: %.h
219: $(top_builddir)/rpliconv/rpliconv \
220: -f `$(top_builddir)/tools/@FILE@/src/rplfile \
221: -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
222: awk -F= '{print $$2;}'` \
223: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
224:
225: %.conv.f: %.f
226: $(top_builddir)/rpliconv/rpliconv \
227: -f `$(top_builddir)/tools/@FILE@/src/rplfile \
228: -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
229: awk -F= '{print $$2;}'` \
230: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
231:
232: %.conv.F90: %.F90
233: $(top_builddir)/rpliconv/rpliconv \
234: -f `$(top_builddir)/tools/@FILE@/src/rplfile \
235: -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
236: awk -F= '{print $$2;}'` \
237: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
238:
239: %.conv.inc: %.inc
240: $(top_builddir)/rpliconv/rpliconv \
241: -f `$(top_builddir)/tools/@FILE@/src/rplfile \
242: -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
243: awk -F= '{print $$2;}'` \
244: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
245:
246: licences:
247: cat $(srcdir)/../COPYING > $(srcdir)/licence.h
248: echo >> $(srcdir)/licence.h
249: echo >> $(srcdir)/licence.h
250: echo "#ifndef INCLUSION_LICENCE" >> $(srcdir)/licence.h
251: echo "# define INCLUSION_LICENCE" >> $(srcdir)/licence.h
252: echo " unsigned char CeCILL_fr[] =" >> $(srcdir)/licence.h
253: sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-fr.txt | \
254: awk -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
255: >> $(srcdir)/licence.h
256: echo " ;" >> $(srcdir)/licence.h
257: echo " unsigned char CeCILL_en[] =" >> $(srcdir)/licence.h
258: sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-en.txt | \
259: awk -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
260: >> $(srcdir)/licence.h
261: echo " ;" >> $(srcdir)/licence.h
262: echo "#endif" >> $(srcdir)/licence.h
263: echo >> $(srcdir)/licence.h
264: echo "// vim: ts=4" >> $(srcdir)/licence.h
265: for i in $(SRCC) $(SRCH) $(INIT_EXE) $(INIT_LIB); \
266: do \
267: cat $(srcdir)/../COPYING > $(srcdir)/tmp; \
268: echo >> $(srcdir)/tmp; \
269: echo >> $(srcdir)/tmp; \
270: awk -F'\n' 'BEGIN {d=0;} /^#/ {d=1;} {if(d==1) print $$1;}' \
271: $(srcdir)/$$i >> $(srcdir)/tmp; \
272: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
273: done
274: for i in $(SRCINC); \
275: do \
276: iconv -f `file -i $(srcdir)/../COPYING | awk -F= '{print $$2;}'` \
277: $(srcdir)/../COPYING | \
278: awk -F'\n' '! (/^\/\*/ || /^\*\//) \
279: {printf("!%s\n", substr($$1,2));}' | \
280: iconv -t `file -i $(srcdir)/../COPYING | \
281: awk -F= '{print $$2;}'` > $(srcdir)/tmp; \
282: awk -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
283: $(srcdir)/$$i >> $(srcdir)/tmp; \
284: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
285: done
286: for i in $(SRCF); \
287: do \
288: iconv -f `file -i $(srcdir)/../COPYING | awk -F= '{print $$2;}'` \
289: $(srcdir)/../COPYING | \
290: awk -F'\n' '! (/^\/\*/ || /^\*\//) \
291: {printf("C%s\n", substr($$1,2));}' | \
292: iconv -t `file -i $(srcdir)/../COPYING | \
293: awk -F= '{print $$2;}'` > $(srcdir)/tmp; \
294: awk -F'\n' 'BEGIN {d=0;} ! /^C/ {d=1;} {if(d==1) print $$1;}' \
295: $(srcdir)/$$i >> $(srcdir)/tmp; \
296: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
297: done
298: for i in $(SRCF90); \
299: do \
300: iconv -f `file -i $(srcdir)/../COPYING | awk -F= '{print $$2;}'` \
301: $(srcdir)/../COPYING | \
302: awk -F'\n' '! (/^\/\*/ || /^\*\//) \
303: {printf("!%s\n", substr($$1,2));}' | \
304: iconv -t `file -i $(srcdir)/../COPYING | \
305: awk -F= '{print $$2;}'` > $(srcdir)/tmp; \
306: awk -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
307: $(srcdir)/$$i >> $(srcdir)/tmp; \
308: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
309: done
310:
311: librplprototypes.h: rpl.h conversion.awk
312: awk -f $(srcdir)/conversion.awk $(srcdir)/rpl.h > \
313: $(top_builddir)/src/librplprototypes.h
314: generateurs.c: generateurs_aleatoires.awk
315: awk -f $(srcdir)/generateurs_aleatoires.awk \
316: $(srcdir)/../tools/@GSL@/rng/gsl_rng.h > \
317: $(top_builddir)/src/generateurs.c
318:
319: EXTRA_DIST = $(SRCC) $(SRCH) $(SRCF) $(SRCF90) $(SRCINC) \
320: $(INIT_EXE) $(INIT_LIB) $(SRCXPM) \
321: conversion.awk generateurs_aleatoires.awk
322: BUILT_SOURCES = librplprototypes.h generateurs.c \
323: $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) \
324: $(INIT_LIBc) $(SRCINCc) $(INIT_EXEc)
325: CLEANFILES= $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) $(SRCINCc) \
326: $(INIT_LIBc) $(INIT_EXEc) librplprototypes.h
327:
328: nodist_rpl_SOURCES = $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) $(INIT_EXEc) \
329: $(SRCXPM) $(SRCINCc)
330: #rpl_LDFLAGS = -g @DEBUG@ @PROFILAGE@ $(LIB) -rdynamic
331: rpl_LDFLAGS = -g @DEBUG@ @PROFILAGE@ $(LIB) -export-dynamic
332:
333: rpl_CFLAGS = $(AM_CFLAGS) -D_REENTRANT -Wall -Wextra \
334: -Wno-pointer-sign -Wno-unused-parameter
335: rpl_FFLAGS = $(AM_FFLAGS) -fno-f2c
336: rpl_FCFLAGS = $(AM_FCFLAGS) -fno-second-underscore -fno-f2c
337:
338: nodist_librpl_a_SOURCES = $(SRCCc) $(SRCHc) $(SRCFc) $(SRCF90c) $(INIT_LIBc) \
339: $(SRCXPM) $(SRCINCc)
340: librpl_a_CFLAGS = $(AM_CFLAGS) -DLIBRPL -D_REENTRANT \
341: -Wall -Wextra -Wno-pointer-sign -Wno-unused-parameter
342: librpl_a_FFLAGS = $(AM_FFLAGS) -ff2c
343: librpl_a_FCFLAGS = $(AM_FCLAGS) -fno-second-underscore
344:
345: include_HEADERS = rplexternals.h rpltypes.h rpl.h librpl.h
346:
347: INCLUDES = -I$(srcdir) -I$(top_builddir) \
348: $(include_libreadline) $(include_libncurses) $(include_libgsl) \
349: $(include_libiconv) \
350: @includeX@ @libMySQLinc@ @libPgSQLinc@
351: DEFS = -DHAVE_CONFIG_H -Dd_version_rpl=\"@VERSION@\" \
352: -Dd_exec_path=\"@RUNPATH@\" @FORCE_GNUPLOT_PATH@ @DEBUG_CODE@ \
353: @MOTIF_SUPPORT@ @POSTSCRIPT_SUPPORT@ @GNUPLOT_SUPPORT@ \
354: @VIM_SUPPORT@ @MYSQL_SUPPORT@ @POSTGRESQL_SUPPORT@ \
355: @EXPERIMENTAL_CODE@ $(date) -g @PROFILAGE@ \
356: -Dd_locale=\"$(shell locale charmap)\" \
357: -D$(shell uname)
358: rpl_LDADD = $(top_builddir)/lapack/lapack/liblapack.a \
359: $(top_builddir)/lapack/blas/libblas.a \
360: $(ldadd_libhistory) $(ldadd_libreadline) $(ldadd_libncurses) \
361: $(ldadd_libiconv) \
362: $(ldadd_libgsl) @libX@ @libMySQLlib@ @libPgSQLlib@
363:
364: always: $(top_builddir)/src/rpl.conv.c
365: touch $(top_builddir)/src/rpl.conv.c; \
366: (cd $(srcdir); ctags $(SRCC) $(SRCF) $(SRCF90) $(SRCH) $(SRCINC) \
367: $(INIT_LIB) $(INIT_EXE) 2>&1 /dev/null);
368:
369: .PHONY: always librpl licences
370:
371: all-local: always
372:
373: install-exec-local: librpl
374:
375: librpl: install-libLIBRARIES
376: echo \
377: open $(libdir)/librpl.a+ \
378: addlib $(top_builddir)/lapack/lapack/liblapack.a+ \
379: addlib $(top_builddir)/lapack/blas/libblas.a+ \
380: addlib $(ldadd_libhistory)+ \
381: addlib $(ldadd_libreadline)+ \
382: addlib $(ldadd_libncurses)+ \
383: addlib $(ldadd_libgsl)+ \
384: addlib $(ldadd_libiconv)+ \
385: save+ \
386: end \
387: | tr '+' '\n' | ar -M; \
388: $(RANLIB) $(libdir)/librpl.a
CVSweb interface <joel.bertrand@systella.fr>