annotate libgui/Makefile.am @ 15596:5f031158c693

Use pkg-config to discover Qt (pkg-config is already a requirement anyway). * build-aux/common.mk (do_subst_config_vals): Replace QT_INCDIR and QT_LIBDIR with QT_CPPFLAGS, QT_LDFLAGS and QT_LIBS. * configure.ac: Likewise and use pkg-config to discover the new variables. * libgui/Makefile.am (QT_INCDIR, QT_LIBDIR, QT_LIBS, QT_LDFLAGS): Delete variable definitions. * libgui/link-deps.mk (LIBOCTGUI_LINK_DEPS): Use automake @QT_LIBS@. (LIBOCTGUI_LIK_OPTS): Use automake @QT_LDFLAGS@. * libgui/qterminal-module.mk (qterminal_libqterminal_la_CPPFLAGS): Use automake @QT_CPPFLAGS@ instead of QT_INCDIR-based include paths. (MOC_CPPFLAGS): Define Q_OS_WIN32 instead of WIN32. * libgui/src/module.mk (src_libgui_src_la_CPPFLAGS): Use automake @QT_CPPFLAGS@ instead of QT_INCDIR-based include paths. * libinterp/interpfcn/toplev.cc (Foctave_config_info): Replace QT_INCDIR and QT_LIBDIR with QT_CPPFLAGS, QT_LDFLAGS and QT_LIBS. * libinterp/oct-conf.in.h: Replace OCTAVE_CONF_QT_INCDIR and OCTAVE_CONF_QT_LIBDIR with OCTAVE_CONF_QT_CPPFLAGS, OCTAVE_CONF_QT_LDFLAGS and OCTAVE_CONF_QT_LIBS. * m4/acinclude.m4 (OCTAVE_CHECK_FUNC_FINDFIRST_MODERN, OCTAVE_CHECK_FUNC_SETPLACEHOLDERTEXT): Use QT_CPPFLAGS instead of QT_INCDIR.
author Michael Goffioul <michael.goffioul@gmail.com>
date Mon, 05 Nov 2012 01:47:49 +0000
parents c7fd43f5a89d
children e27d9b9b71f4
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: 15211
diff changeset
1 # Makefile for Octave's libgui directory
b42167e9d805 maint: Update Makefile.am comments to refer to Octave (program) rather than octave (command).
Rik <rik@octave.org>
parents: 15211
diff changeset
2 #
15206
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
3 # Copyright (C) 2012 John W. Eaton
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
4 #
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
5 # This file is part of Octave.
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
6 #
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
7 # Octave is free software; you can redistribute it and/or modify it
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
8 # under the terms of the GNU General Public License as published by the
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
9 # Free Software Foundation; either version 3 of the License, or (at
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
10 # your option) any later version.
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
11 #
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
12 # Octave is distributed in the hope that it will be useful, but WITHOUT
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
15 # for more details.
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
16 #
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
17 # You should have received a copy of the GNU General Public License
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
18 # along with Octave; see the file COPYING. If not, see
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
19 # <http://www.gnu.org/licenses/>.
38d8306e7df1 * libgui/Makefile.am, libgui/src/Makefile.am: Style fixes.
John W. Eaton <jwe@octave.org>
parents: 15199
diff changeset
20
15211
efd2024c7d56 fix installation of default-qt-settings file (bug #37161)
John W. Eaton <jwe@octave.org>
parents: 15206
diff changeset
21 include $(top_srcdir)/build-aux/common.mk
efd2024c7d56 fix installation of default-qt-settings file (bug #37161)
John W. Eaton <jwe@octave.org>
parents: 15206
diff changeset
22
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
23 AUTOMAKE_OPTIONS = subdir-objects
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
24
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
25 MOC_CPPFLAGS =
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
26
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
27 octlib_LTLIBRARIES = liboctgui.la
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
28
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
29 EXTRA_DIST = default-qt-settings
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
30
15392
c7fd43f5a89d build: Re-arrange libgui Makefile.am to follow same ordering as liboctave.
Rik <rik@octave.org>
parents: 15391
diff changeset
31 CLEANFILES =
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
32
15392
c7fd43f5a89d build: Re-arrange libgui Makefile.am to follow same ordering as liboctave.
Rik <rik@octave.org>
parents: 15391
diff changeset
33 BUILT_SOURCES =
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
34
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
35 noinst_HEADERS =
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
36
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
37 noinst_LTLIBRARIES =
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
38
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
39 include src/module.mk
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
40 include qterminal-module.mk
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
41
15392
c7fd43f5a89d build: Re-arrange libgui Makefile.am to follow same ordering as liboctave.
Rik <rik@octave.org>
parents: 15391
diff changeset
42 ## liboctgui merely collects a bunch of compiled convenience libraries.
15391
1ddf5772fb1a fix broken libgui build
John W. Eaton <jwe@octave.org>
parents: 15386
diff changeset
43 ## It has no source code itself.
1ddf5772fb1a fix broken libgui build
John W. Eaton <jwe@octave.org>
parents: 15386
diff changeset
44 liboctgui_la_SOURCES =
1ddf5772fb1a fix broken libgui build
John W. Eaton <jwe@octave.org>
parents: 15386
diff changeset
45
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
46 include link-deps.mk
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
47
15392
c7fd43f5a89d build: Re-arrange libgui Makefile.am to follow same ordering as liboctave.
Rik <rik@octave.org>
parents: 15391
diff changeset
48 # 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
49 nodist_EXTRA_liboctgui_la_SOURCES = dummy.cc
5546fe4dd77f force C++ linking for liboctave and liboctgui
John W. Eaton <jwe@octave.org>
parents: 15363
diff changeset
50
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
51 liboctgui_la_LIBADD = \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
52 qterminal/libqterminal.la \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
53 src/libgui-src.la \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
54 $(top_builddir)/libinterp/liboctinterp.la \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
55 $(top_builddir)/liboctave/liboctave.la \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
56 $(LIBOCTGUI_LINK_DEPS)
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
57
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
58 # Increment these as needed and according to the rules in the libtool manual:
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
59 liboctgui_current = 0
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
60 liboctgui_revision = 0
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
61 liboctgui_age = 0
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
62
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
63 liboctgui_version_info = $(liboctgui_current):$(liboctgui_revision):$(liboctgui_age)
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
64
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
65 liboctgui_la_LDFLAGS = \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
66 -version-info $(liboctgui_version_info) \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
67 $(NO_UNDEFINED_LDFLAG) \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
68 -bindir $(bindir) \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
69 $(LIBOCTGUI_LINK_OPTS)
15159
098546e95a5e allow location of default settings file to be configurable
John W. Eaton <jwe@octave.org>
parents: 15110
diff changeset
70
098546e95a5e allow location of default settings file to be configurable
John W. Eaton <jwe@octave.org>
parents: 15110
diff changeset
71 octetc_DATA = default-qt-settings
15199
d0715b430286 fix gui sources missing from dist
John W. Eaton <jwe@octave.org>
parents: 15196
diff changeset
72
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
73 moc-%.cc: %.h
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
74 @MOC@ -o$@ $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(MOC_CPPFLAGS) $(liboctgui_la_CPPFLAGS) $<
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
75
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
76 ui-%.h: %.ui
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
77 @UIC@ -o $@ $<
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
78
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
79 qrc-%.cc: %.qrc
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
80 @RCC@ -o $@ $<
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
81