Annotation of rpl/src/Makefile.am, revision 1.57
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\
176: instructions_t1.c\
177: instructions_t2.c\
178: instructions_t3.c\
179: instructions_u1.c\
180: instructions_v1.c\
181: instructions_v2.c\
182: instructions_w1.c\
183: instructions_w2.c\
184: instructions_x1.c\
185: instructions_x2.c\
186: instructions_y1.c\
187: interface_gnuplot.c\
188: interface_tex.c\
189: interruptions.c\
190: messages.c\
191: occupation_memoire.c\
192: operations_atomiques.c\
193: operations_binaires.c\
194: optimisation.c\
195: profilage.c\
196: rpl.c\
197: rplcore.c\
1.16 bertrand 198: semaphores.c\
1.1 bertrand 199: sequenceur.c\
1.38 bertrand 200: siginfo.c\
1.1 bertrand 201: simplification.c\
202: sommations.c\
203: sql.c\
204: statistiques.c\
205: transliteration.c\
206: types.c
207:
1.51 bertrand 208: SRCCPP=\
209: interface_cas.cpp
210:
1.1 bertrand 211: SRCH=\
212: completion.h\
213: convert.h\
214: copyright.h\
215: garanties.h\
1.29 bertrand 216: getaddrinfo.h\
1.1 bertrand 217: gnuplot.h\
218: librpl.h\
219: licence.h\
220: rpl.h\
221: rplexternals.h\
222: rpltypes.h\
223: tex.h\
224: usages.h\
225: vim.h
226:
227: SRCF=\
228: arithmetique.f\
229: bibliotheque_logarithmique.f\
230: bibliotheque_trigonometrique.f
231:
232: SRCF90=\
233: combinaisons.F90\
234: distributions.F90\
235: fonctions_speciales.F90
236:
237: SRCINC=\
238: rplftypes.inc
239:
240: SRCXPM=\
241: rpl.xpm
242:
243: INIT_EXE=init.c
244:
245: INIT_LIB=librpl.c
246:
1.47 bertrand 247: LIB=-lz @MALLOC@
1.1 bertrand 248:
249: bin_PROGRAMS = rpl
250: lib_LIBRARIES = librpl.a
251:
1.29 bertrand 252: SRCCc=$(SRCC:.c=-conv.c)
253: SRCHc=$(SRCH:.h=-conv.h)
1.51 bertrand 254: SRCCPPc=$(SRCCPP:.cpp=-conv.cpp)
1.29 bertrand 255: SRCFc=$(SRCF:.f=-conv.f)
256: SRCF90c=$(SRCF90:.F90=-conv.F90)
257: SRCINCc=$(SRCINC:.inc=-conv.inc)
258: INIT_LIBc=$(INIT_LIB:.c=-conv.c)
259: INIT_EXEc=$(INIT_EXE:.c=-conv.c)
1.1 bertrand 260:
1.29 bertrand 261: %-conv.c: %.c
1.1 bertrand 262: $(top_builddir)/rpliconv/rpliconv \
263: -f `$(top_builddir)/tools/@FILE@/src/rplfile \
264: -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 265: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 266: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
267:
1.51 bertrand 268: %-conv.cpp: %.cpp
269: $(top_builddir)/rpliconv/rpliconv \
270: -f `$(top_builddir)/tools/@FILE@/src/rplfile \
271: -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
272: $(AWK) -F= '{print $$2;}'` \
273: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
274:
1.29 bertrand 275: %-conv.h: %.h
1.1 bertrand 276: $(top_builddir)/rpliconv/rpliconv \
277: -f `$(top_builddir)/tools/@FILE@/src/rplfile \
278: -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 279: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 280: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
281:
1.29 bertrand 282: %-conv.f: %.f
1.1 bertrand 283: $(top_builddir)/rpliconv/rpliconv \
284: -f `$(top_builddir)/tools/@FILE@/src/rplfile \
285: -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 286: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 287: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
288:
1.29 bertrand 289: %-conv.F90: %.F90
1.1 bertrand 290: $(top_builddir)/rpliconv/rpliconv \
291: -f `$(top_builddir)/tools/@FILE@/src/rplfile \
292: -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 293: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 294: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
295:
1.29 bertrand 296: %-conv.inc: %.inc
1.1 bertrand 297: $(top_builddir)/rpliconv/rpliconv \
298: -f `$(top_builddir)/tools/@FILE@/src/rplfile \
299: -m $(top_builddir)/tools/@FILE@/magic/magic -i $< | \
1.11 bertrand 300: $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 301: -t @FINAL_ENCODING@//TRANSLIT $< | expand -t 4 > $@
302:
303: licences:
304: cat $(srcdir)/../COPYING > $(srcdir)/licence.h
305: echo >> $(srcdir)/licence.h
306: echo >> $(srcdir)/licence.h
307: echo "#ifndef INCLUSION_LICENCE" >> $(srcdir)/licence.h
308: echo "# define INCLUSION_LICENCE" >> $(srcdir)/licence.h
309: echo " unsigned char CeCILL_fr[] =" >> $(srcdir)/licence.h
310: sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-fr.txt | \
1.11 bertrand 311: $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1 bertrand 312: >> $(srcdir)/licence.h
313: echo " ;" >> $(srcdir)/licence.h
314: echo " unsigned char CeCILL_en[] =" >> $(srcdir)/licence.h
315: sed -e '1,$$s/"/\\"/g' $(srcdir)/../Licence_CeCILL_V2-en.txt | \
1.11 bertrand 316: $(AWK) -F'\n' '{ printf("\"%s\\n\"\n", $$1);}' \
1.1 bertrand 317: >> $(srcdir)/licence.h
318: echo " ;" >> $(srcdir)/licence.h
319: echo "#endif" >> $(srcdir)/licence.h
320: echo >> $(srcdir)/licence.h
321: echo "// vim: ts=4" >> $(srcdir)/licence.h
1.51 bertrand 322: for i in $(SRCC) $(SRCCPP) $(SRCH) $(INIT_EXE) $(INIT_LIB); \
1.1 bertrand 323: do \
324: cat $(srcdir)/../COPYING > $(srcdir)/tmp; \
325: echo >> $(srcdir)/tmp; \
326: echo >> $(srcdir)/tmp; \
1.11 bertrand 327: $(AWK) -F'\n' 'BEGIN {d=0;} /^#/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 328: $(srcdir)/$$i >> $(srcdir)/tmp; \
329: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
330: done
331: for i in $(SRCINC); \
332: do \
1.11 bertrand 333: iconv -f `file -i $(srcdir)/../COPYING | $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 334: $(srcdir)/../COPYING | \
1.11 bertrand 335: $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1 bertrand 336: {printf("!%s\n", substr($$1,2));}' | \
337: iconv -t `file -i $(srcdir)/../COPYING | \
1.11 bertrand 338: $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
339: $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 340: $(srcdir)/$$i >> $(srcdir)/tmp; \
341: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
342: done
343: for i in $(SRCF); \
344: do \
1.11 bertrand 345: iconv -f `file -i $(srcdir)/../COPYING | $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 346: $(srcdir)/../COPYING | \
1.11 bertrand 347: $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1 bertrand 348: {printf("C%s\n", substr($$1,2));}' | \
349: iconv -t `file -i $(srcdir)/../COPYING | \
1.11 bertrand 350: $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
351: $(AWK) -F'\n' 'BEGIN {d=0;} ! /^C/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 352: $(srcdir)/$$i >> $(srcdir)/tmp; \
353: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
354: done
355: for i in $(SRCF90); \
356: do \
1.11 bertrand 357: iconv -f `file -i $(srcdir)/../COPYING | $(AWK) -F= '{print $$2;}'` \
1.1 bertrand 358: $(srcdir)/../COPYING | \
1.11 bertrand 359: $(AWK) -F'\n' '! (/^\/\*/ || /^\*\//) \
1.1 bertrand 360: {printf("!%s\n", substr($$1,2));}' | \
361: iconv -t `file -i $(srcdir)/../COPYING | \
1.11 bertrand 362: $(AWK) -F= '{print $$2;}'` > $(srcdir)/tmp; \
363: $(AWK) -F'\n' 'BEGIN {d=0;} ! /^!/ {d=1;} {if(d==1) print $$1;}' \
1.1 bertrand 364: $(srcdir)/$$i >> $(srcdir)/tmp; \
365: mv -f $(srcdir)/tmp $(srcdir)/$$i; \
366: done
367:
368: librplprototypes.h: rpl.h conversion.awk
1.11 bertrand 369: $(AWK) -f $(srcdir)/conversion.awk $(srcdir)/rpl.h > \
1.1 bertrand 370: $(top_builddir)/src/librplprototypes.h
1.10 bertrand 371:
1.1 bertrand 372: generateurs.c: generateurs_aleatoires.awk
1.11 bertrand 373: $(AWK) -f $(srcdir)/generateurs_aleatoires.awk \
1.1 bertrand 374: $(srcdir)/../tools/@GSL@/rng/gsl_rng.h > \
375: $(top_builddir)/src/generateurs.c
376:
1.10 bertrand 377: rpl.inc:
1.24 bertrand 378: echo BUILDPATH=$(top_builddir)/.. > $@
1.56 bertrand 379: echo COMPILE="$(DEFS) @ABI@" | sed -e '1,$$s/"/\\"/g' | \
380: sed -e '1,$$s/=\\"/="\\"/g' | sed -e '1,$$s/\\" /\\"" /g' >> $@
1.37 bertrand 381: echo LINK=@libX@ @libMySQLlib@ @libPgSQLlib@ -lz >> $@
1.29 bertrand 382: echo OBJECTS=$(SRCCc:.c=.$(OBJEXT)) $(SRCFc:.f=.$(OBJEXT)) \
383: $(SRCF90c:.F90=.$(OBJEXT)) \
384: librpl-conv.$(OBJEXT) >> $@
1.44 bertrand 385: echo EXTOBJECTS= @EXT_SQL@ \
1.16 bertrand 386: $(top_builddir)/lapack/lapack/liblapack.a \
387: $(top_builddir)/lapack/blas/libblas.a \
388: $(ldadd_libhistory) \
389: $(ldadd_libreadline) \
390: $(ldadd_libncurses) \
391: $(ldadd_libgsl) \
392: $(ldadd_libiconv) \
393: $(ldadd_libcrypto) \
394: $(ldadd_libssl) \
395: $(ldadd_libsqlite) \
1.54 bertrand 396: $(ldadd_librplcas) \
1.10 bertrand 397: >> $@
398:
1.51 bertrand 399: EXTRA_DIST = $(SRCC) $(SRCH) $(SRCCPP) $(SRCF) $(SRCF90) $(SRCINC) \
1.1 bertrand 400: $(INIT_EXE) $(INIT_LIB) $(SRCXPM) \
401: conversion.awk generateurs_aleatoires.awk
402: BUILT_SOURCES = librplprototypes.h generateurs.c \
1.51 bertrand 403: $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) \
1.10 bertrand 404: $(INIT_LIBc) $(SRCINCc) $(INIT_EXEc) \
405: rpl.inc
1.51 bertrand 406: CLEANFILES= $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) $(SRCINCc) \
1.10 bertrand 407: $(INIT_LIBc) $(INIT_EXEc) librplprototypes.h generateurs.c \
1.29 bertrand 408: rpl.inc rpl-librpl-conv.$(OBJEXT)
1.1 bertrand 409:
1.27 bertrand 410: nodist_rpl_SOURCES = \
1.51 bertrand 411: $(SRCCc) $(SRCHc) $(SRCCPPc) $(SRCFc) $(SRCF90c) $(INIT_EXEc) \
1.1 bertrand 412: $(SRCXPM) $(SRCINCc)
1.29 bertrand 413: rpl_LDFLAGS = -g @PROFILAGE@ $(LIB) @EXPORT_DYNAMIC@
1.31 bertrand 414: rpl_CFLAGS = $(AM_CFLAGS) @C_STANDARD@ -Wall -Wextra -Wno-unused-function \
1.16 bertrand 415: -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@
1.1 bertrand 416: rpl_FFLAGS = $(AM_FFLAGS) -fno-f2c
417: rpl_FCFLAGS = $(AM_FCFLAGS) -fno-second-underscore -fno-f2c
418:
1.27 bertrand 419: nodist_librpl_a_SOURCES = \
1.51 bertrand 420: $(SRCCc) $(SRCHc) $(SRCFc) $(SRCCPPc) $(SRCF90c) $(INIT_LIBc) \
1.27 bertrand 421: $(SRCXPM) $(SRCINCc)
1.31 bertrand 422: librpl_a_CFLAGS = $(AM_CFLAGS) @C_STANDARD@ -Wall -Wextra -Wno-unused-function \
1.16 bertrand 423: -Wno-pointer-sign -Wno-unused-parameter @NESTED_FUNCTIONS@
1.1 bertrand 424: librpl_a_FFLAGS = $(AM_FFLAGS) -ff2c
425: librpl_a_FCFLAGS = $(AM_FCLAGS) -fno-second-underscore
426:
1.18 bertrand 427: include_HEADERS = rplexternals.h rpltypes.h rpl.h librpl.h rpl.inc \
428: librplprototypes.h
1.1 bertrand 429:
430: INCLUDES = -I$(srcdir) -I$(top_builddir) \
431: $(include_libreadline) $(include_libncurses) $(include_libgsl) \
1.52 bertrand 432: $(include_libiconv) $(include_libcrypto) $(include_libsqlite) \
1.53 bertrand 433: $(include_librplcas) \
1.1 bertrand 434: @includeX@ @libMySQLinc@ @libPgSQLinc@
1.35 bertrand 435: DEFS = -DHAVE_CONFIG_H -Dd_version_rpl=\"@VERSION@\" @BROKEN_SIGINFO@ \
1.3 bertrand 436: -Dd_exec_path=\"@RUNPATH@\" @FORCE_GNUPLOT_PATH@ @DEBUG@ \
1.1 bertrand 437: @MOTIF_SUPPORT@ @POSTSCRIPT_SUPPORT@ @GNUPLOT_SUPPORT@ \
438: @VIM_SUPPORT@ @MYSQL_SUPPORT@ @POSTGRESQL_SUPPORT@ \
1.40 bertrand 439: @SEMAPHORES_NOMMES@ @IPCS_SYSV@ @SEMUN@ @IPV6@ \
1.7 bertrand 440: @EXPERIMENTAL_CODE@ $(date) $(hash) -g @PROFILAGE@ \
1.12 bertrand 441: -Dd_locale=\"@FINAL_ENCODING@\" \
1.55 bertrand 442: -D@OS@ @BSH_PATH@ @RPLCAS@ -DHOST=\"@HOST@\"
1.53 bertrand 443: rpl_LDADD = -lgfortran \
1.20 bertrand 444: $(top_builddir)/lapack/lapack/liblapack.a \
1.1 bertrand 445: $(top_builddir)/lapack/blas/libblas.a \
446: $(ldadd_libhistory) $(ldadd_libreadline) $(ldadd_libncurses) \
1.10 bertrand 447: $(ldadd_libiconv) $(ldadd_libcrypto) $(ldadd_libssl) \
448: $(ldadd_libsqlite) \
1.53 bertrand 449: $(ldadd_libgsl) $(ldadd_librplcas) @libX@ @libMySQLlib@ @libPgSQLlib@
1.1 bertrand 450:
1.29 bertrand 451: always: $(top_builddir)/src/rpl-conv.c
1.46 bertrand 452: touch $<; \
1.16 bertrand 453: if [ x$(shell which ctags) != x ]; then \
454: (cd $(srcdir); ctags $(SRCC) $(SRCF) $(SRCF90) \
455: $(INIT_LIB) $(INIT_EXE) 2>&1 /dev/null); \
456: fi;
1.1 bertrand 457:
1.10 bertrand 458: .PHONY: always librpl licences rpl.inc
1.1 bertrand 459:
460: all-local: always
461:
462: install-exec-local: librpl
463:
464: librpl: install-libLIBRARIES
1.31 bertrand 465: if [ -d $(top_builddir)/librpl ]; then \
1.32 bertrand 466: rm -rf $(top_builddir)/librpl; \
1.31 bertrand 467: fi
468: mkdir -p $(top_builddir)/librpl; \
1.16 bertrand 469: for i in $(top_builddir)/src/librpl.a \
470: $(ldadd_libhistory) $(ldadd_libreadline) \
471: $(top_builddir)/lapack/lapack/liblapack.a \
472: $(top_builddir)/lapack/blas/libblas.a \
473: $(ldadd_libncurses) $(ldadd_libgsl) $(ldadd_libiconv) \
1.52 bertrand 474: $(ldadd_libcrypto) $(ldadd_libssl) $(ldadd_libsqlite) \
1.53 bertrand 475: $(ldadd_librplcas); \
1.16 bertrand 476: do \
1.32 bertrand 477: cp -f $$i $(top_builddir)/librpl; \
1.16 bertrand 478: done
1.37 bertrand 479: (cd $(top_builddir)/librpl && n=0 && \
480: echo Building standalone librpl.a; \
481: for i in *.a; \
482: do echo Extracting $$i; ar x $$i; \
483: for j in `ar t $$i`; \
484: do cp -f $$j $$n-$$j; \
485: rm -f $$j; \
486: done; \
487: n=`expr $$n + 1`; \
488: rm -f $$i; \
489: done; \
1.34 bertrand 490: L="start"; \
491: while test -n "$$L"; \
492: do \
1.39 bertrand 493: echo -n "Remaining files "; \
494: find . -name "*.$(OBJEXT)" | wc -l; \
1.34 bertrand 495: L=""; j=0; \
1.39 bertrand 496: for i in `find . -name "*.$(OBJEXT)"`; \
1.34 bertrand 497: do \
498: k=`echo $$i | wc -c`; \
499: j=`expr $$j + $$k + 1`; \
500: if test $$j -le 5000; then \
501: L="$$L $$i"; \
502: else \
503: break; \
504: fi; \
505: done; \
1.39 bertrand 506: if test -n "$$L"; then \
507: echo -n "Adding files to librpl.a archive... "; \
508: ar cru librpl.a $$L; \
509: rm -f $$L; \
510: echo "done"; \
511: fi; \
1.34 bertrand 512: done; \
1.39 bertrand 513: echo Archive created; \
1.35 bertrand 514: ar s librpl.a; \
515: if [ @OS@ != OS2 ]; then \
516: echo Stripping librpl.a && strip -d librpl.a; \
517: fi;); \
1.37 bertrand 518: $(INSTALL_DATA) $(top_builddir)/librpl/librpl.a $(DESTDIR)$(libdir)/librpl.a
1.31 bertrand 519:
CVSweb interface <joel.bertrand@systella.fr>