annotate libgui/Makefile.am @ 15362:48cb1a5bb64d

reorganize libgui build * configure.ac (AC_CONFIG_FILES): Remove libgui/src/Makefile from the list. * libgui/qterminal-module.mk, libgui/src/module.mk: New files, mostly extracted from libgui/src/Makefile.am. Adjust file names as needed. Build convenience libraries in each subdir. * libgui/Makefile.am: Move the remains of libgui/src/Makefile.am here. Include qterminal-module.mk and src/module.mk. * libgui/src/Makefile.am: Delete. * libgui/link-deps.mk: Rename from libgui/src/link-deps.mk. * src/Makefile.am: Include ../libgui/link-deps.mk instead of ../libgui/src/link-deps.mk. (OCTAVE_GUI_LIBS): Use $(top_builddir)/libgui/liboctgui.la instead of $(top_builddir)/libgui/src/liboctgui.la.
author John W. Eaton <jwe@octave.org>
date Wed, 12 Sep 2012 15:08:45 -0400
parents b42167e9d805
children 482d92904aa4
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 QT_INCDIR = @QT_INCDIR@
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 QT_LIBDIR = @QT_LIBDIR@
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 QT_LIBS = -lQtCore -lQtGui -lQtNetwork -lqscintilla2
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
30
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
31 QT_LDFLAGS = -L$(QT_LIBDIR)
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
32
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
33 MOC_CPPFLAGS =
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 octlib_LTLIBRARIES = liboctgui.la
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 liboctgui_la_CPPFLAGS = \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
38 @OCTGUI_DLL_DEFS@ \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
39 -I$(QT_INCDIR) \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
40 -I$(QT_INCDIR)/QtCore \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
41 -I$(QT_INCDIR)/QtGui \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
42 -I$(QT_INCDIR)/QtNetwork \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
43 -I$(srcdir)/qterminal/libqterminal \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
44 -Isrc -I$(srcdir)/src \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
45 -I$(srcdir)/src/m-editor \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
46 -I$(srcdir)/src/octave-adapter \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
47 -I$(srcdir)/src/qtinfo \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
48 -I$(top_srcdir)/liboctave/cruft/misc \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
49 -I$(top_srcdir)/liboctave/array \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
50 -I$(top_builddir)/liboctave/numeric -I$(top_srcdir)/liboctave/numeric \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
51 -I$(top_builddir)/liboctave/operators -I$(top_srcdir)/liboctave/operators \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
52 -I$(top_srcdir)/liboctave/system \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
53 -I$(top_srcdir)/liboctave/util \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
54 -I$(top_srcdir)/libinterp \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
55 -I$(top_builddir)/libinterp/parse-tree -I$(top_srcdir)/libinterp/parse-tree \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
56 -I$(top_builddir)/libinterp/interp-core -I$(top_srcdir)/libinterp/interp-core \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
57 -I$(top_builddir)/libinterp/interpfcn -I$(top_srcdir)/libinterp/interpfcn \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
58 -I$(top_srcdir)/libinterp/octave-value
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
59
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
60 EXTRA_DIST = default-qt-settings
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
61
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
62 BUILT_SOURCES =
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
63
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
64 CLEANFILES =
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
65
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
66 noinst_HEADERS =
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
67
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
68 noinst_LTLIBRARIES =
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
69
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
70 include src/module.mk
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
71 include qterminal-module.mk
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
72
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
73 include link-deps.mk
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
74
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
75 liboctgui_la_LIBADD = \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
76 qterminal/libqterminal.la \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
77 src/libgui-src.la \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
78 $(top_builddir)/libinterp/liboctinterp.la \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
79 $(top_builddir)/liboctave/liboctave.la \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
80 $(LIBOCTGUI_LINK_DEPS)
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
81
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
82 # 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
83 liboctgui_current = 0
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
84 liboctgui_revision = 0
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
85 liboctgui_age = 0
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
86
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
87 liboctgui_version_info = $(liboctgui_current):$(liboctgui_revision):$(liboctgui_age)
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
88
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
89 liboctgui_la_LDFLAGS = \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
90 -version-info $(liboctgui_version_info) \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
91 $(NO_UNDEFINED_LDFLAG) \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
92 -bindir $(bindir) \
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
93 $(LIBOCTGUI_LINK_OPTS)
15159
098546e95a5e allow location of default settings file to be configurable
John W. Eaton <jwe@octave.org>
parents: 15110
diff changeset
94
098546e95a5e allow location of default settings file to be configurable
John W. Eaton <jwe@octave.org>
parents: 15110
diff changeset
95 octetc_DATA = default-qt-settings
15199
d0715b430286 fix gui sources missing from dist
John W. Eaton <jwe@octave.org>
parents: 15196
diff changeset
96
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
97 moc-%.cc: %.h
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
98 @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
99
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
100 ui-%.h: %.ui
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
101 @UIC@ -o $@ $<
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
102
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
103 qrc-%.cc: %.qrc
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
104 @RCC@ -o $@ $<
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15269
diff changeset
105