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