annotate liboctave/Makefile.am @ 21638:acaf1e137c5e stable release-4-0-2

Version 4.0.2 released. * configure.ac: Bump version to 4.0.2. (OCTAVE_PATCH_VERSION): Bump to 2. (OCTAVE_RELEASE_DATE): Update. * liboctave/Makefile.am (liboctave_revision): Increment. * libinterp/Makefile.am (liboctinterp_revision): Increment.
author John W. Eaton <jwe@octave.org>
date Wed, 20 Apr 2016 15:00:37 -0400
parents 7bb71bf2f30f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15269
b42167e9d805 maint: Update Makefile.am comments to refer to Octave (program) rather than octave (command).
Rik <rik@octave.org>
parents: 15252
diff changeset
1 # Makefile for Octave's liboctave directory
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 #
19697
4197fc428c7d maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents: 19596
diff changeset
3 # Copyright (C) 1993-2015 John W. Eaton
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 #
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 # This file is part of Octave.
13141
e81ddf9cacd5 maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents: 13022
diff changeset
6 #
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 # Octave is free software; you can redistribute it and/or modify it
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 # under the terms of the GNU General Public License as published by the
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 # Free Software Foundation; either version 3 of the License, or (at
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 # your option) any later version.
13141
e81ddf9cacd5 maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents: 13022
diff changeset
11 #
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 # Octave is distributed in the hope that it will be useful, but WITHOUT
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 # for more details.
13141
e81ddf9cacd5 maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents: 13022
diff changeset
16 #
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 # You should have received a copy of the GNU General Public License
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 # along with Octave; see the file COPYING. If not, see
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 # <http://www.gnu.org/licenses/>.
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 12717
diff changeset
21 include $(top_srcdir)/build-aux/common.mk
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22
14397
670feb71afde maint: Move @CPPFLAGS@ to end of AM_CPPFLAGS lists in Makefiles.
John W. Eaton <jwe@octave.org>
parents: 14348
diff changeset
23 ## Search local directories before those specified by the user.
10061
ec0c445d0d6f include -I../libgnu in AM_CPPFLAGS
John W. Eaton <jwe@octave.org>
parents: 10027
diff changeset
24 AM_CPPFLAGS = \
15272
dd794aa84232 additional changes for merger of libcruft with liboctave
John W. Eaton <jwe@octave.org>
parents: 15271
diff changeset
25 -I$(srcdir)/array \
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
26 -I$(srcdir)/cruft/misc \
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
27 -Inumeric -I$(srcdir)/numeric \
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
28 -Ioperators -I$(srcdir)/operators \
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
29 -I$(srcdir)/system \
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
30 -I$(srcdir)/util \
17215
7c06875c2dcc Backed out changeset 3d1205d5771e
John W. Eaton <jwe@octave.org>
parents: 17214
diff changeset
31 -I$(top_builddir)/libgnu -I$(top_srcdir)/libgnu
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32
15363
482d92904aa4 don't use WARN_CXXFLAGS for qterminal library
John W. Eaton <jwe@octave.org>
parents: 15278
diff changeset
33 AM_CFLAGS += $(WARN_CFLAGS)
482d92904aa4 don't use WARN_CXXFLAGS for qterminal library
John W. Eaton <jwe@octave.org>
parents: 15278
diff changeset
34
482d92904aa4 don't use WARN_CXXFLAGS for qterminal library
John W. Eaton <jwe@octave.org>
parents: 15278
diff changeset
35 AM_CXXFLAGS += $(WARN_CXXFLAGS)
482d92904aa4 don't use WARN_CXXFLAGS for qterminal library
John W. Eaton <jwe@octave.org>
parents: 15278
diff changeset
36
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
37 octlib_LTLIBRARIES = liboctave.la
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
39 EXTRA_DIST =
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
41 DISTCLEANFILES =
10376
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 10350
diff changeset
42
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
43 BUILT_INCS = \
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
44 operators/mx-ops.h \
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
45 $(OPT_INC) \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
46 $(MX_OP_INC) \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
47 $(VX_OP_INC) \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
48 $(SMX_OP_INC)
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 BUILT_SOURCES = $(BUILT_INCS)
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
51
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
52 octinclude_HEADERS = \
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
53 $(ARRAY_INC) \
19124
3087dc835497 eliminate recursive build in liboctave/cruft directory
John W. Eaton <jwe@octave.org>
parents: 18041
diff changeset
54 $(CRUFT_INC) \
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
55 $(NUMERIC_INC) \
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
56 $(OPERATORS_INC) \
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
57 $(SYSTEM_INC) \
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
58 $(UTIL_INC) \
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
59 $(OTHER_INC) \
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
60 $(TEMPLATE_SRC)
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
61
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
62 nodist_octinclude_HEADERS = \
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
63 $(BUILT_INCS)
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
64
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
65 noinst_LTLIBRARIES =
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
66
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
67 ## C++ files that are #included, not compiled
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
68 OTHER_INC =
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
69
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
70 ## C++ files with templates that are #included, not compiled
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
71 TEMPLATE_SRC =
9979
3878bae57c12 Clean liboctave/Makefile.am to use more standard automake syntax
Rik <rdrider0-list@yahoo.com>
parents: 9946
diff changeset
72
16019
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
73 ## A list of all files that could include tests
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
74
19124
3087dc835497 eliminate recursive build in liboctave/cruft directory
John W. Eaton <jwe@octave.org>
parents: 18041
diff changeset
75 liboctave_la_LIBADD =
3087dc835497 eliminate recursive build in liboctave/cruft directory
John W. Eaton <jwe@octave.org>
parents: 18041
diff changeset
76
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
77 include array/module.mk
19124
3087dc835497 eliminate recursive build in liboctave/cruft directory
John W. Eaton <jwe@octave.org>
parents: 18041
diff changeset
78 include cruft/module.mk
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
79 include numeric/module.mk
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
80 include operators/module.mk
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
81 include system/module.mk
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
82 include util/module.mk
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
83
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
84 ## liboctave merely collects a bunch of compiled convenience libraries.
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
85 ## It has no source code itself.
19593
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 18041
diff changeset
86 liboctave_la_SOURCES =
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
87
15601
35bc8f16538f Use CRUFT_DLL when compiling liboctave.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 15600
diff changeset
88 liboctave_la_CPPFLAGS = @OCTAVE_DLL_DEFS@ @CRUFT_DLL_DEFS@ $(AM_CPPFLAGS)
9816
b1462c588dd5 add -DX_DLL_DEFS to CPPFLAGS
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
89
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
90 include link-deps.mk
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
91
15416
a0fb36acbd0d build: Only use extra CPPFLAGS in the convenience libraries that need them.
Rik <rik@octave.org>
parents: 15386
diff changeset
92 # Dummy C++ source to force C++ linking.
15386
5546fe4dd77f force C++ linking for liboctave and liboctgui
John W. Eaton <jwe@octave.org>
parents: 15363
diff changeset
93 nodist_EXTRA_liboctave_la_SOURCES = dummy.cc
5546fe4dd77f force C++ linking for liboctave and liboctgui
John W. Eaton <jwe@octave.org>
parents: 15363
diff changeset
94
19124
3087dc835497 eliminate recursive build in liboctave/cruft directory
John W. Eaton <jwe@octave.org>
parents: 18041
diff changeset
95 liboctave_la_LIBADD += \
15278
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15272
diff changeset
96 $(top_builddir)/libgnu/libgnu.la \
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
97 $(LIBOCTAVE_LINK_DEPS)
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
98
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
99 # Increment these as needed and according to the rules in the libtool manual:
20134
57b6e06ed811 maint: update library version numbers for upcoming release
Mike Miller <mtmiller@octave.org>
parents: 19697
diff changeset
100 liboctave_current = 3
21638
acaf1e137c5e Version 4.0.2 released.
John W. Eaton <jwe@octave.org>
parents: 21429
diff changeset
101 liboctave_revision = 2
14630
9e4ad3f1f291 maint: periodic merge of stable to default
John W. Eaton <jwe@octave.org>
parents: 14629
diff changeset
102 liboctave_age = 0
12708
e34f2bf7319d maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents: 12338
diff changeset
103
e34f2bf7319d maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents: 12338
diff changeset
104 liboctave_version_info = $(liboctave_current):$(liboctave_revision):$(liboctave_age)
e34f2bf7319d maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents: 12338
diff changeset
105
e34f2bf7319d maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents: 12338
diff changeset
106 liboctave_la_LDFLAGS = \
e34f2bf7319d maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents: 12338
diff changeset
107 -version-info $(liboctave_version_info) \
e34f2bf7319d maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents: 12338
diff changeset
108 $(NO_UNDEFINED_LDFLAG) \
15600
fcdc284f96ef Fix cruft.def location and usage.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 15416
diff changeset
109 @XTRA_CRUFT_SH_LDFLAGS@ \
10342
7f6b4c6838ea Add -bindir flags to _LDFLAGS variables.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10331
diff changeset
110 -bindir $(bindir) \
13010
edc5ec6e949b maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents: 13004
diff changeset
111 $(LIBOCTAVE_LINK_OPTS)
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
112
16019
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
113 ## Rules to build test files
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
114
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
115 LIBOCTAVE_TST_SRC = \
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
116 $(array_libarray_la_SOURCES) \
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
117 $(numeric_libnumeric_la_SOURCES) \
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
118 $(system_libsystem_la_SOURCES) \
17279
9a2422e40f76 build: Ensure that tests in TEMPLATE_SRC are also run with "make check"
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 17215
diff changeset
119 $(util_libutil_la_SOURCES) \
17282
a69dd4b0e571 Use spaces, not tab, for alignment in Makefile.am (cset 9a2422e40f76).
Rik <rik@octave.org>
parents: 17279
diff changeset
120 $(TEMPLATE_SRC)
16019
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
121
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
122 TST_FILES_SRC := $(shell $(top_srcdir)/build-aux/find-files-with-tests.sh "$(srcdir)" $(LIBOCTAVE_TST_SRC))
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
123
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
124 TST_FILES := $(addsuffix -tst,$(TST_FILES_SRC))
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
125
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
126 liboctavetestsdir := $(octtestsdir)/liboctave
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
127
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
128 nobase_liboctavetests_DATA = $(TST_FILES)
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15601
diff changeset
129
16056
f4f0aea29b21 build: remove *-tst files with distclean rule.
Rik <rik@octave.org>
parents: 16019
diff changeset
130 DISTCLEANFILES += \
f4f0aea29b21 build: remove *-tst files with distclean rule.
Rik <rik@octave.org>
parents: 16019
diff changeset
131 $(BUILT_INCS) \
f4f0aea29b21 build: remove *-tst files with distclean rule.
Rik <rik@octave.org>
parents: 16019
diff changeset
132 $(TST_FILES)
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
133