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