Annotation of rpl/Makefile.am, revision 1.24
1.23 bertrand 1: SUBDIRS = tools rplsums rpliconv rplawk lapack/blas lapack/lapack src \
1.5 bertrand 2: rpltags scripts man doc
1.4 bertrand 3:
4: EXTRA_DIST = LIMITATIONS Licence_CeCILL_V2-fr.txt Licence_CeCILL_V2-en.txt \
5: COPYING.in lapack/COPYING lapack/RELEASE \
6: tests/tests.tar.gz vim/indent/rpl.vim vim/ftplugin/rpl.vim \
7: vim/syntax/rpl.vim examples/obele.rpl examples/appel.tar.gz \
8: examples/external.tar.gz
1.1 bertrand 9:
1.3 bertrand 10: licences:
11: cp -f $(top_builddir)/COPYING $(srcdir)
12: make -C src $@
13:
14: toolsdistclean:
15: for i in @NCURSES@ @READLINE@ @UNITS@ @GSL@ @GPP@ @GNUPLOT_COMPILATION@ \
1.6 bertrand 16: @FILE@ @ICONV@ @SQLITE@; \
1.3 bertrand 17: do \
1.17 bertrand 18: rm -rf $(srcdir)/tools/$$i; \
1.3 bertrand 19: done;
1.1 bertrand 20:
1.2 bertrand 21: toolsclean:
22: for i in @NCURSES@ @READLINE@ @UNITS@ @GSL@ @GPP@ @GNUPLOT_COMPILATION@ \
1.6 bertrand 23: @FILE@ @ICONV@ @SQLITE@; \
1.2 bertrand 24: do \
1.14 bertrand 25: $(MAKE) -C $(top_builddir)/tools/$$i $(AM_MAKEFLAGS) clean); \
1.3 bertrand 26: done;
27:
1.7 bertrand 28: $(top_builddir)/tools/@NCURSES@/lib/libncurses.a:
29: for i in $(shell find tools/@NCURSES@ -name Makefile \
30: -exec grep static {} /dev/null \; | cut -d: -f1); \
1.3 bertrand 31: do \
1.7 bertrand 32: echo -n Checking $$i; \
33: TMP=$$(mktemp tmp.XXXXXXXXXX); \
34: if [ -n "$$(grep static $$i | grep dynamic)" ]; then \
35: awk \
36: '{ \
37: if (index($$0, "-static") != 0 && index($$0, "-dynamic") != 0) \
38: { \
39: for(j = 1; j <= NF; j++) \
40: { \
41: if (index($$j, "-static") == 0) \
42: { \
43: printf("%s ", $$j); \
44: } \
45: } \
46: printf("\n"); \
47: } \
48: else \
49: { \
50: print; \
51: } \
52: }' $$i > $$TMP; \
1.17 bertrand 53: mv -f $$TMP $$i; \
1.7 bertrand 54: echo -n " (fixed)"; \
55: else \
56: echo -n " (nothing to do)"; \
1.17 bertrand 57: rm -f $$TMP; \
1.7 bertrand 58: fi; \
59: echo .; \
1.2 bertrand 60: done;
1.22 bertrand 61: for i in tools/@NCURSES@/test/Makefile; \
62: do \
63: echo -n Checking $$i; \
64: TMP=$$(mktemp tmp.XXXXXXXXXX); \
65: awk \
66: '/^TEST_ARGS/ \
67: { printf("TEST_ARGS = ../lib/libform.a ../lib/libmenu.a "); \
68: printf("../lib/libpanel.a ../lib/libncurses.a\n"); } \
69: ! /^TEST_ARGS/ \
70: { print; }' tools/@NCURSES@/test/Makefile > $$TMP; \
71: mv -f $$TMP $$i; \
72: echo .; \
73: done;
1.14 bertrand 74: if [ @OS@ = "OS2" ]; then \
1.11 bertrand 75: TMP=$$(mktemp tmp.XXXXXXXXXX); \
76: awk \
1.14 bertrand 77: '/^CXX_AR[ \t]/ \
78: { printf("CXX_AR = $(AR)\n"); } \
79: ! /^CXX_AR[ \t]/ \
80: { print; }' \
81: $(top_builddir)/tools/@NCURSES@/c++/Makefile | \
82: awk \
83: '/^CXX_ARFLAGS[ \t]/ \
84: { printf("CXX_ARFLAGS = $(ARFLAGS)\n"); } \
85: ! /^CXX_ARFLAGS[ \t]/ \
86: { print; }' | \
87: awk \
88: '/^CXX[ \t]/ \
89: { printf("CXX = g++\n"); } \
90: ! /^CXX[ \t]/ \
91: { print; }' > $$TMP; \
1.17 bertrand 92: mv -f $$TMP $(top_builddir)/tools/@NCURSES@/c++/Makefile; \
1.14 bertrand 93: fi;
94: $(MAKE) -C $(top_builddir)/tools/@NCURSES@ $(AM_MAKEFLAGS)
95: if [ @OS@ = "OS2" ]; then \
1.17 bertrand 96: cp -f $(top_builddir)/tools/@NCURSES@/lib/ncurses.a \
1.14 bertrand 97: $(top_builddir)/tools/@NCURSES@/lib/libncurses.a; \
98: fi
1.3 bertrand 99:
100: $(top_builddir)/tools/@READLINE@/libreadline.a \
101: $(top_builddir)/tools/@READLINE@/libhistory.a:
1.14 bertrand 102: $(MAKE) -C $(top_builddir)/tools/@READLINE@ $(AM_MAKEFLAGS)
1.3 bertrand 103:
104: $(top_builddir)/tools/@GSL@/.libs/libgsl.a:
1.17 bertrand 105: # Quick and dirty hack pour avaliser le remplacement de ${1 + "$@"}
106: # dans ltmain.sh et propager les modifications dans le script libtool.
107: if [ @OS@ = "OS2" ]; then \
108: (cd $(top_builddir)/tools/@GSL@ && configure --disable-shared;); \
1.16 bertrand 109: fi
110: $(MAKE) -C $(top_builddir)/tools/@GSL@ $(AM_MAKEFLAGS)
1.17 bertrand 111: if [ @OS@ = "OS2" ]; then \
112: cp $(top_builddir)/tools/@GSL@/.libs/gsl.a \
1.16 bertrand 113: $(top_builddir)/tools/@GSL@/.libs/libgsl.a; \
1.14 bertrand 114: fi
1.3 bertrand 115:
116: $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a:
1.4 bertrand 117: # La dépendance est faite par rpliconv.
1.14 bertrand 118: if [ @OS@ = "OS2" ]; then \
119: TMP=$$(mktemp tmp.XXXXXXXXXX); \
120: awk '! /^[ \t]cd po/ { print; }' \
121: $(top_builddir)/tools/@ICONV@/Makefile > $$TMP; \
1.17 bertrand 122: mv -f $$TMP $(top_builddir)/tools/@ICONV@/Makefile; \
1.14 bertrand 123: $(MAKE) -C $(top_builddir)/tools/@ICONV@ $(AM_MAKEFLAGS) all; \
1.17 bertrand 124: cp -f $(top_builddir)/tools/@ICONV@/lib/.libs/iconv.a \
1.14 bertrand 125: $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a; \
126: else \
127: $(MAKE) -C $(top_builddir)/tools/@ICONV@ $(AM_MAKEFLAGS) all; \
128: fi
1.3 bertrand 129:
130: $(top_builddir)/lapack/lapack/liblapack.a:
131: (cd $(top_builddir)/lapack/lapack && $(MAKE) $(AM_MAKEFLAGS))
132:
133: $(top_builddir)/lapack/blas/libblas.a:
134: (cd $(top_builddir)/lapack/blas && $(MAKE) $(AM_MAKEFLAGS))
135:
1.12 bertrand 136: $(top_builddir)/rpliconv/rpliconv$(EXEEXT): \
1.3 bertrand 137: $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a
1.14 bertrand 138: $(MAKE) -C $(top_builddir)/rpliconv $(AM_MAKEFLAGS)
1.3 bertrand 139:
1.20 bertrand 140: $(top_builddir)/rplawk/rplawk$(EXEEXT):
141: $(MAKE) -C $(top_builddir)/rplawk $(AM_MAKEFLAGS)
142:
1.14 bertrand 143: $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.3 bertrand 144: $(top_builddir)/tools/@FILE@/magic/magic.mgc: \
145: $(top_builddir)/tools/@ICONV@/lib/.libs/libiconv.a
1.7 bertrand 146: TMP=$$(mktemp tmp.XXXXXXXXXX); \
147: awk \
148: '{ \
149: if (index($$0, "LDFLAGS") == 1) \
150: { \
151: if (index($$0, "-static") == 0) \
152: { \
153: printf("%s -static\n", $$0); \
154: } \
155: else \
156: { \
157: print; \
158: } \
159: } \
160: else \
161: { \
162: print; \
163: } \
164: }' tools/@FILE@/src/Makefile > $$TMP; \
1.17 bertrand 165: mv -f $$TMP tools/@FILE@/src/Makefile
1.14 bertrand 166: $(MAKE) -C $(top_builddir)/tools/@FILE@ $(AM_MAKEFLAGS)
1.21 bertrand 167: $(CC) -o $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
168: $(top_builddir)/tools/@FILE@/src/*.o \
169: $(shell grep '^LIBS =' $(top_builddir)/tools/@FILE@/Makefile | \
170: cut -d= -f2) $(LDFLAGS)
1.3 bertrand 171:
1.5 bertrand 172: $(top_builddir)/tools/@SQLITE@/.libs/libsqlite3.a:
1.14 bertrand 173: $(MAKE) -C $(top_builddir)/tools/@SQLITE@ $(AM_MAKEFLAGS)
174: if [ @OS@ = "OS2" ]; then \
175: cp $(top_builddir)/tools/@SQLITE@/.libs/sqlite3.a \
176: $(top_builddir)/tools/@SQLITE@/.libs/libsqlite3.a; \
177: fi
1.5 bertrand 178:
179: $(top_builddir)/tools/@OPENSSL@/libcrypto.a \
180: $(top_builddir)/tools/@OPENSSL@/libssl.a:
1.14 bertrand 181: if [ @OS@ = "OS2" ]; then \
182: (cd $(top_builddir)/tools/@OPENSSL@ && \
183: sed -e '1,$$s/-m486/-mtune=i586 -DOPENSSL_USE_IPV6=0/g' \
184: OS2-EMX.mak | \
185: sed -e '1,$$s/-DBN_ASM/-UBN_ASM/g' | \
186: sed -e '1,$$s/-DMD5_ASM/-UMD5_ASM/g' | \
187: sed -e '1,$$s/-DSHA1_ASM/-USHA1_ASM/g' | \
188: sed -e '1,$$s/-DOPENSSL_BN_ASM_PART_WORDS/-UOPENSSL_BN_ASM_PART_ASM/g' \
189: > OS2-EMX.mak2; \
190: $(MAKE) -j1 -f OS2-EMX.mak2 $(AM_MAKEFLAGS)); \
1.17 bertrand 191: cp $(top_builddir)/tools/@OPENSSL@/out/ssl.a \
1.14 bertrand 192: $(top_builddir)/tools/@OPENSSL@/libssl.a; \
1.17 bertrand 193: cp $(top_builddir)/tools/@OPENSSL@/out/crypto.a \
1.14 bertrand 194: $(top_builddir)/tools/@OPENSSL@/libcrypto.a; \
195: else \
196: (cd $(top_builddir)/tools/@OPENSSL@ && $(MAKE) -j1 $(AM_MAKEFLAGS)); \
197: fi
1.5 bertrand 198:
199: $(top_builddir)/tools/rplsums/rplmd5sum \
200: $(top_builddir)/tools/rplsums/rplsha1sum: \
201: $(top_builddir)/tools/@OPENSSL@/libcrypto.a
1.14 bertrand 202: $(MAKE) -C $(top_builddir)/rplsums $(AM_MAKEFLAGS)
1.5 bertrand 203:
1.12 bertrand 204: $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT):
1.14 bertrand 205: $(MAKE) -C $(top_builddir)/tools/@GPP@ $(AM_MAKEFLAGS)
1.5 bertrand 206:
1.12 bertrand 207: .NOTPARALLEL: $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.4 bertrand 208: $(top_builddir)/tools/@FILE@/magic/magic.mgc
209:
210: .NOTPARALLEL: $(top_builddir)/tools/@READLINE@/libreadline.a \
211: $(top_builddir)/tools/@READLINE@/libhistory.a
212:
1.5 bertrand 213: .NOTPARALLEL: $(top_builddir)/tools/@OPENSSL@/libcrypto.a \
214: $(top_builddir)/tools/@OPENSSL@/libssl.a
215:
216: .NOTPARALLEL: $(top_builddir)/tools/rplsums/rplmd5sum \
217: $(top_builddir)/tools/rplsums/rplsha1sum
218:
1.13 bertrand 219: install-strip:
220: $(MAKE) $(AM_MAKEFLAGS) install
221:
1.3 bertrand 222: all: $(top_builddir)/tools/@NCURSES@/lib/libncurses.a \
223: $(top_builddir)/tools/@READLINE@/libreadline.a \
224: $(top_builddir)/tools/@READLINE@/libhistory.a \
225: $(top_builddir)/tools/@GSL@/.libs/libgsl.a \
1.5 bertrand 226: $(top_builddir)/tools/@SQLITE@/.libs/libsqlite3.a \
227: $(top_builddir)/tools/@OPENSSL@/libcrypto.a \
228: $(top_builddir)/tools/@OPENSSL@/libssl.a \
1.3 bertrand 229: $(top_builddir)/lapack/lapack/liblapack.a \
230: $(top_builddir)/lapack/blas/libblas.a \
1.12 bertrand 231: $(top_builddir)/rpliconv/rpliconv$(EXEEXT) \
1.20 bertrand 232: $(top_builddir)/rplawk/rplawk$(EXEEXT) \
1.12 bertrand 233: $(top_builddir)/tools/@FILE@/src/rplfile$(EXEEXT) \
1.5 bertrand 234: $(top_builddir)/tools/@FILE@/magic/magic.mgc \
235: $(top_builddir)/tools/rplsums/rplmd5sum \
236: $(top_builddir)/tools/rplsums/rplsha1sum \
1.12 bertrand 237: $(top_builddir)/tools/@GPP@/src/gpp$(EXEEXT)
1.4 bertrand 238: # Cette règle n'est là que pour forcer la compilation de Gnuplot.
1.14 bertrand 239: $(MAKE) -C $(top_builddir)/tools $(AM_MAKEFLAGS)
240: $(MAKE) -C $(top_builddir)/rpltags $(AM_MAKEFLAGS)
241: $(MAKE) -C $(top_builddir)/src $(AM_MAKEFLAGS)
CVSweb interface <joel.bertrand@systella.fr>