Mercurial > octave-nkf
annotate libinterp/dldfcn/config-module.awk @ 20267:a9574e3c6e9e
Deprecate Array::length() and Sparse::length() in favour of ::numel().
* liboctave/array/Array.h (Array::length): deprecate for ::numel.
* liboctave/array/Sparse.h (Sparse::length): deprecate for ::numel.
* libgui/graphics/QtHandlesUtils.cc, libgui/src/octave-qt-link.cc,
libinterp/corefcn/Cell.cc, libinterp/corefcn/__contourc__.cc,
libinterp/corefcn/__pchip_deriv__.cc, libinterp/corefcn/__qp__.cc,
libinterp/corefcn/cellfun.cc, libinterp/corefcn/daspk.cc,
libinterp/corefcn/dasrt.cc, libinterp/corefcn/dassl.cc,
libinterp/corefcn/data.cc, libinterp/corefcn/filter.cc,
libinterp/corefcn/find.cc, libinterp/corefcn/gl-render.cc,
libinterp/corefcn/gl-render.h, libinterp/corefcn/graphics.cc,
libinterp/corefcn/graphics.in.h, libinterp/corefcn/help.cc,
libinterp/corefcn/hex2num.cc, libinterp/corefcn/input.cc,
libinterp/corefcn/load-path.cc, libinterp/corefcn/load-save.cc,
libinterp/corefcn/ls-oct-ascii.h, libinterp/corefcn/lsode.cc,
libinterp/corefcn/matrix_type.cc, libinterp/corefcn/oct-hist.cc,
libinterp/corefcn/oct-map.cc, libinterp/corefcn/oct-map.h,
libinterp/corefcn/oct-obj.h, libinterp/corefcn/oct-stream.cc,
libinterp/corefcn/oct-stream.h, libinterp/corefcn/pr-output.cc,
libinterp/corefcn/quadcc.cc, libinterp/corefcn/rand.cc,
libinterp/corefcn/regexp.cc, libinterp/corefcn/strfns.cc,
libinterp/corefcn/sub2ind.cc, libinterp/corefcn/symtab.h,
libinterp/corefcn/syscalls.cc, libinterp/corefcn/tsearch.cc,
libinterp/corefcn/urlwrite.cc, libinterp/corefcn/utils.cc,
libinterp/corefcn/variables.cc, libinterp/corefcn/xdiv.cc,
libinterp/corefcn/xpow.cc, libinterp/dldfcn/__glpk__.cc,
libinterp/dldfcn/__init_fltk__.cc, libinterp/dldfcn/__magick_read__.cc,
libinterp/dldfcn/audiodevinfo.cc, libinterp/dldfcn/ccolamd.cc,
libinterp/dldfcn/colamd.cc, libinterp/octave-value/ov-cell.cc,
libinterp/octave-value/ov-class.cc, libinterp/octave-value/ov-class.h,
libinterp/octave-value/ov-fcn-inline.cc, libinterp/octave-value/ov-java.cc,
libinterp/octave-value/ov-perm.cc, libinterp/octave-value/ov-struct.cc,
libinterp/octave-value/ov-typeinfo.cc, libinterp/octave-value/ov.cc,
libinterp/operators/op-int.h, libinterp/parse-tree/pt-pr-code.cc,
liboctave/array/Array-util.cc, liboctave/array/Array.cc,
liboctave/array/CColVector.cc, liboctave/array/CDiagMatrix.cc,
liboctave/array/CMatrix.cc, liboctave/array/CRowVector.cc,
liboctave/array/DiagArray2.cc, liboctave/array/DiagArray2.h,
liboctave/array/MArray.cc, liboctave/array/PermMatrix.cc,
liboctave/array/PermMatrix.h, liboctave/array/Sparse.cc,
liboctave/array/boolMatrix.cc, liboctave/array/chMatrix.cc,
liboctave/array/chNDArray.cc, liboctave/array/dColVector.cc,
liboctave/array/dDiagMatrix.cc, liboctave/array/dMatrix.cc,
liboctave/array/dRowVector.cc, liboctave/array/fCColVector.cc,
liboctave/array/fCDiagMatrix.cc, liboctave/array/fCMatrix.cc,
liboctave/array/fCRowVector.cc, liboctave/array/fColVector.cc,
liboctave/array/fDiagMatrix.cc, liboctave/array/fMatrix.cc,
liboctave/array/fRowVector.cc, liboctave/array/idx-vector.cc,
liboctave/array/intNDArray.cc, liboctave/numeric/CmplxCHOL.cc,
liboctave/numeric/CmplxLU.cc, liboctave/numeric/CmplxQR.cc,
liboctave/numeric/DASPK.cc, liboctave/numeric/DASRT.cc,
liboctave/numeric/DASSL.cc, liboctave/numeric/LSODE.cc,
liboctave/numeric/ODES.cc, liboctave/numeric/ODES.h,
liboctave/numeric/base-dae.h, liboctave/numeric/base-lu.cc,
liboctave/numeric/dbleCHOL.cc, liboctave/numeric/dbleLU.cc,
liboctave/numeric/dbleQR.cc, liboctave/numeric/eigs-base.cc,
liboctave/numeric/fCmplxCHOL.cc, liboctave/numeric/fCmplxLU.cc,
liboctave/numeric/fCmplxQR.cc, liboctave/numeric/floatCHOL.cc,
liboctave/numeric/floatLU.cc, liboctave/numeric/floatQR.cc,
liboctave/numeric/lo-specfun.cc, liboctave/numeric/oct-rand.cc,
liboctave/numeric/oct-spparms.cc, liboctave/numeric/sparse-base-chol.cc,
liboctave/operators/mx-inlines.cc, liboctave/system/file-ops.cc,
liboctave/util/glob-match.h, liboctave/util/kpse.cc,
liboctave/util/lo-regexp.cc, liboctave/util/oct-glob.cc,
liboctave/util/pathsearch.cc, liboctave/util/str-vec.cc,
liboctave/util/str-vec.h, liboctave/util/url-transfer.cc: replace all usage
of Array::length() and Sparse::length() with ::numel().
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Sat, 30 May 2015 03:14:07 +0100 |
parents | 925fdd91abba |
children | 0ce7d8303152 |
rev | line source |
---|---|
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 BEGIN { |
13023
7d1e11d922aa
maint: split fields correctly in config-module.awk script
John W. Eaton <jwe@octave.org>
parents:
13010
diff
changeset
|
2 FS = "|"; |
7d1e11d922aa
maint: split fields correctly in config-module.awk script
John W. Eaton <jwe@octave.org>
parents:
13010
diff
changeset
|
3 nfiles = 0; |
7d1e11d922aa
maint: split fields correctly in config-module.awk script
John W. Eaton <jwe@octave.org>
parents:
13010
diff
changeset
|
4 |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 print "## DO NOT EDIT -- generated from module-files by config-module.awk"; |
10449
e85fa73ac3a0
src/DLD-FUNCTIONS/config-module.awk: emit additions to EXTRA_DIST
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
6 print "" |
e85fa73ac3a0
src/DLD-FUNCTIONS/config-module.awk: emit additions to EXTRA_DIST
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
7 print "EXTRA_DIST += \\" |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15039
diff
changeset
|
8 print " dldfcn/config-module.sh \\" |
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15039
diff
changeset
|
9 print " dldfcn/config-module.awk \\" |
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15039
diff
changeset
|
10 print " dldfcn/module-files \\" |
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15039
diff
changeset
|
11 print " dldfcn/oct-qhull.h" |
10449
e85fa73ac3a0
src/DLD-FUNCTIONS/config-module.awk: emit additions to EXTRA_DIST
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
12 print "" |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
13 } |
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
14 /^#.*/ { next; } |
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
15 { |
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
16 nfiles++; |
13023
7d1e11d922aa
maint: split fields correctly in config-module.awk script
John W. Eaton <jwe@octave.org>
parents:
13010
diff
changeset
|
17 files[nfiles] = $1; |
7d1e11d922aa
maint: split fields correctly in config-module.awk script
John W. Eaton <jwe@octave.org>
parents:
13010
diff
changeset
|
18 cppflags[nfiles] = $2; |
7d1e11d922aa
maint: split fields correctly in config-module.awk script
John W. Eaton <jwe@octave.org>
parents:
13010
diff
changeset
|
19 ldflags[nfiles] = $3; |
7d1e11d922aa
maint: split fields correctly in config-module.awk script
John W. Eaton <jwe@octave.org>
parents:
13010
diff
changeset
|
20 libraries[nfiles] = $4; |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 } END { |
12163
55ebf5df9ea6
Use Automake and GNU Make variables for increased portability in DLD-FUNCTIONS/*.oct creation
Rik <octave@nomad.inbox5.com>
parents:
12162
diff
changeset
|
22 sep = " \\\n"; |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15039
diff
changeset
|
23 print "DLDFCN_SRC = \\"; |
12162
c9f42acd84e2
Use Makefile rules based on timestamp files for src/DLD-FUNCTIONS/*.oct
John W. Eaton <jwe@octave.org>
parents:
10869
diff
changeset
|
24 for (i = 1; i <= nfiles; i++) { |
c9f42acd84e2
Use Makefile rules based on timestamp files for src/DLD-FUNCTIONS/*.oct
John W. Eaton <jwe@octave.org>
parents:
10869
diff
changeset
|
25 if (i == nfiles) |
c9f42acd84e2
Use Makefile rules based on timestamp files for src/DLD-FUNCTIONS/*.oct
John W. Eaton <jwe@octave.org>
parents:
10869
diff
changeset
|
26 sep = "\n"; |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15039
diff
changeset
|
27 printf (" dldfcn/%s%s", files[i], sep); |
12162
c9f42acd84e2
Use Makefile rules based on timestamp files for src/DLD-FUNCTIONS/*.oct
John W. Eaton <jwe@octave.org>
parents:
10869
diff
changeset
|
28 } |
c9f42acd84e2
Use Makefile rules based on timestamp files for src/DLD-FUNCTIONS/*.oct
John W. Eaton <jwe@octave.org>
parents:
10869
diff
changeset
|
29 print ""; |
c9f42acd84e2
Use Makefile rules based on timestamp files for src/DLD-FUNCTIONS/*.oct
John W. Eaton <jwe@octave.org>
parents:
10869
diff
changeset
|
30 |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 sep = " \\\n"; |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15039
diff
changeset
|
32 print "DLDFCN_LIBS = $(DLDFCN_SRC:.cc=.la)"; |
12162
c9f42acd84e2
Use Makefile rules based on timestamp files for src/DLD-FUNCTIONS/*.oct
John W. Eaton <jwe@octave.org>
parents:
10869
diff
changeset
|
33 print ""; |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
34 print "if AMCOND_ENABLE_DYNAMIC_LINKING"; |
12162
c9f42acd84e2
Use Makefile rules based on timestamp files for src/DLD-FUNCTIONS/*.oct
John W. Eaton <jwe@octave.org>
parents:
10869
diff
changeset
|
35 print ""; |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15039
diff
changeset
|
36 print "octlib_LTLIBRARIES += $(DLDFCN_LIBS)"; |
12162
c9f42acd84e2
Use Makefile rules based on timestamp files for src/DLD-FUNCTIONS/*.oct
John W. Eaton <jwe@octave.org>
parents:
10869
diff
changeset
|
37 print ""; |
c9f42acd84e2
Use Makefile rules based on timestamp files for src/DLD-FUNCTIONS/*.oct
John W. Eaton <jwe@octave.org>
parents:
10869
diff
changeset
|
38 print "## Use stamp files to avoid problems with checking timestamps"; |
c9f42acd84e2
Use Makefile rules based on timestamp files for src/DLD-FUNCTIONS/*.oct
John W. Eaton <jwe@octave.org>
parents:
10869
diff
changeset
|
39 print "## of symbolic links"; |
c9f42acd84e2
Use Makefile rules based on timestamp files for src/DLD-FUNCTIONS/*.oct
John W. Eaton <jwe@octave.org>
parents:
10869
diff
changeset
|
40 print ""; |
19832
925fdd91abba
create .oct files directly instead of using stamp files (bug #44329)
John W. Eaton <jwe@octave.org>
parents:
19826
diff
changeset
|
41 print "%.oct : %.la" |
925fdd91abba
create .oct files directly instead of using stamp files (bug #44329)
John W. Eaton <jwe@octave.org>
parents:
19826
diff
changeset
|
42 print " $(AM_V_GEN)$(INSTALL_PROGRAM) dldfcn/.libs/$(shell $(SED) -n -e \"s/dlname='\\([^']*\\)'/\\1/p\" < $<) $@" |
19826
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
19635
diff
changeset
|
43 print "" |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
44 print "else"; |
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
45 print ""; |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15039
diff
changeset
|
46 print "noinst_LTLIBRARIES += $(DLDFCN_LIBS)"; |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
47 print ""; |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
48 print "endif"; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
49 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
50 for (i = 1; i <= nfiles; i++) { |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
51 basename = files[i]; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
52 sub (/\.cc$/, "", basename); |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
53 print ""; |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15039
diff
changeset
|
54 printf ("dldfcn_%s_la_SOURCES = dldfcn/%s\n", |
18013
501cb6a90f0f
maint: Replace unnecessary tabs with spaces.
Rik <rik@octave.org>
parents:
17773
diff
changeset
|
55 basename, files[i]); |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
56 if (cppflags[i]) |
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
57 { |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15039
diff
changeset
|
58 printf ("dldfcn/%s.df: CPPFLAGS += %s\n", |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
59 basename, cppflags[i]); |
19635
228cfaf24208
put custom CPPFLAGS after AM_CPPFLAGS for dld functions (bug #44060)
John W. Eaton <jwe@octave.org>
parents:
18013
diff
changeset
|
60 printf ("dldfcn_%s_la_CPPFLAGS = $(AM_CPPFLAGS) %s\n", |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
61 basename, cppflags[i]); |
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
62 } |
15076
000587f92082
rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents:
15039
diff
changeset
|
63 printf ("dldfcn_%s_la_LDFLAGS = -avoid-version -module $(NO_UNDEFINED_LDFLAG) %s $(OCT_LINK_OPTS)\n", |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
64 basename, ldflags[i]); |
15271
648dabbb4c6b
build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents:
15195
diff
changeset
|
65 printf ("dldfcn_%s_la_LIBADD = $(DLD_LIBOCTINTERP_LIBADD) ../liboctave/liboctave.la %s $(OCT_LINK_DEPS)\n", |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12163
diff
changeset
|
66 basename, libraries[i]); |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
67 } |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
68 } |