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