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