annotate src/Makefile.am @ 20164:df437a52bcaf stable

doc: Update more docstrings to have one sentence summary as first line. Reviewed miscellaneous, sparse, strings in scripts directory. * scripts/miscellaneous/bzip2.m, scripts/miscellaneous/citation.m, scripts/miscellaneous/compare_versions.m, scripts/miscellaneous/computer.m, scripts/miscellaneous/debug.m, scripts/miscellaneous/dir.m, scripts/miscellaneous/edit.m, scripts/miscellaneous/error_ids.m, scripts/miscellaneous/fileattrib.m, scripts/miscellaneous/fullfile.m, scripts/miscellaneous/genvarname.m, scripts/miscellaneous/gzip.m, scripts/miscellaneous/mkoctfile.m, scripts/miscellaneous/news.m, scripts/miscellaneous/open.m, scripts/miscellaneous/parseparams.m, scripts/miscellaneous/recycle.m, scripts/miscellaneous/run.m, scripts/miscellaneous/swapbytes.m, scripts/miscellaneous/tar.m, scripts/miscellaneous/tmpnam.m, scripts/miscellaneous/unpack.m, scripts/miscellaneous/what.m, scripts/sparse/bicg.m, scripts/sparse/bicgstab.m, scripts/sparse/cgs.m, scripts/sparse/colperm.m, scripts/sparse/eigs.m, scripts/sparse/etreeplot.m, scripts/sparse/gmres.m, scripts/sparse/gplot.m, scripts/sparse/ichol.m, scripts/sparse/ilu.m, scripts/sparse/pcg.m, scripts/sparse/pcr.m, scripts/sparse/qmr.m, scripts/sparse/spaugment.m, scripts/sparse/spconvert.m, scripts/sparse/spdiags.m, scripts/sparse/spfun.m, scripts/sparse/spones.m, scripts/sparse/sprandsym.m, scripts/sparse/spstats.m, scripts/sparse/spy.m, scripts/sparse/svds.m, scripts/sparse/treelayout.m, scripts/sparse/treeplot.m, scripts/strings/base2dec.m, scripts/strings/bin2dec.m, scripts/strings/blanks.m, scripts/strings/cstrcat.m, scripts/strings/deblank.m, scripts/strings/dec2base.m, scripts/strings/dec2bin.m, scripts/strings/dec2hex.m, scripts/strings/findstr.m, scripts/strings/hex2dec.m, scripts/strings/index.m, scripts/strings/isletter.m, scripts/strings/isstrprop.m, scripts/strings/mat2str.m, scripts/strings/ostrsplit.m, scripts/strings/regexptranslate.m, scripts/strings/rindex.m, scripts/strings/str2num.m, scripts/strings/strcat.m, scripts/strings/strchr.m, scripts/strings/strjoin.m, scripts/strings/strjust.m, scripts/strings/strmatch.m, scripts/strings/strsplit.m, scripts/strings/strtok.m, scripts/strings/strtrim.m, scripts/strings/strtrunc.m, scripts/strings/substr.m, scripts/strings/untabify.m, scripts/time/datenum.m: Update more docstrings to have one sentence summary as first line.
author Rik <rik@octave.org>
date Mon, 04 May 2015 14:22:02 -0700
parents 28a9e59d0714
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15096
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15088
diff changeset
1 # Makefile for Octave's src 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: 13024
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: 13024
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: 13024
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: 12730
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.
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 AM_CPPFLAGS = \
15278
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15272
diff changeset
25 -I$(top_srcdir)/liboctave/array \
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15272
diff changeset
26 -I$(top_srcdir)/liboctave/cruft/misc \
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15272
diff changeset
27 -I$(top_srcdir)/liboctave/numeric \
15884
9ede91b3872b do system-specific initialization before installing default variable values
John W. Eaton <jwe@octave.org>
parents: 15459
diff changeset
28 -I$(top_srcdir)/liboctave/system \
15278
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15272
diff changeset
29 -I$(top_srcdir)/liboctave/util \
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15272
diff changeset
30 -I$(top_srcdir)/libinterp \
16892
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16156
diff changeset
31 -I$(top_builddir)/libinterp/corefcn -I$(top_srcdir)/libinterp/corefcn \
15132
3e5b00d964ad Use $(top_builddir)/libgnu for parallelism with $(top_srcdir)/libgnu
Rik <rik@octave.org>
parents: 15131
diff changeset
32 -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
33
15363
482d92904aa4 don't use WARN_CXXFLAGS for qterminal library
John W. Eaton <jwe@octave.org>
parents: 15362
diff changeset
34 AM_CFLAGS += $(WARN_CFLAGS)
482d92904aa4 don't use WARN_CXXFLAGS for qterminal library
John W. Eaton <jwe@octave.org>
parents: 15362
diff changeset
35
482d92904aa4 don't use WARN_CXXFLAGS for qterminal library
John W. Eaton <jwe@octave.org>
parents: 15362
diff changeset
36 AM_CXXFLAGS += $(WARN_CXXFLAGS)
482d92904aa4 don't use WARN_CXXFLAGS for qterminal library
John W. Eaton <jwe@octave.org>
parents: 15362
diff changeset
37
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38 EXTRA_DIST = \
17778
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
39 main.in.cc \
14547
1bf39e944e43 rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents: 14432
diff changeset
40 mkoctfile.in.cc \
18342
ee7f66925267 Always build mkoctfile and octave-config as executables (bug #41296)
Mike Miller <mtmiller@ieee.org>
parents: 18163
diff changeset
41 octave-config.in.cc
15039
e753177cde93 maint: Move non-dynamically linked functions from DLD-FUNCTIONS/ to corefcn/ directory
Rik <rik@octave.org>
parents: 15016
diff changeset
42
17778
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
43 DISTCLEANFILES = \
18342
ee7f66925267 Always build mkoctfile and octave-config as executables (bug #41296)
Mike Miller <mtmiller@ieee.org>
parents: 18163
diff changeset
44 main.cc \
ee7f66925267 Always build mkoctfile and octave-config as executables (bug #41296)
Mike Miller <mtmiller@ieee.org>
parents: 18163
diff changeset
45 mkoctfile.cc \
ee7f66925267 Always build mkoctfile and octave-config as executables (bug #41296)
Mike Miller <mtmiller@ieee.org>
parents: 18163
diff changeset
46 octave-config.cc
15459
abf34bbcd053 build: Fix make distcheck on platforms that use compiled auxiliary programs.
Rik <rik@octave.org>
parents: 15457
diff changeset
47
18342
ee7f66925267 Always build mkoctfile and octave-config as executables (bug #41296)
Mike Miller <mtmiller@ieee.org>
parents: 18163
diff changeset
48 bin_PROGRAMS = \
ee7f66925267 Always build mkoctfile and octave-config as executables (bug #41296)
Mike Miller <mtmiller@ieee.org>
parents: 18163
diff changeset
49 mkoctfile \
15459
abf34bbcd053 build: Fix make distcheck on platforms that use compiled auxiliary programs.
Rik <rik@octave.org>
parents: 15457
diff changeset
50 octave \
18342
ee7f66925267 Always build mkoctfile and octave-config as executables (bug #41296)
Mike Miller <mtmiller@ieee.org>
parents: 18163
diff changeset
51 octave-cli \
ee7f66925267 Always build mkoctfile and octave-config as executables (bug #41296)
Mike Miller <mtmiller@ieee.org>
parents: 18163
diff changeset
52 octave-config
15459
abf34bbcd053 build: Fix make distcheck on platforms that use compiled auxiliary programs.
Rik <rik@octave.org>
parents: 15457
diff changeset
53
18360
f1ee47866e6b use common code to get OCTAVE_HOME in main, octave-config and mkoctfile
John W. Eaton <jwe@octave.org>
parents: 18352
diff changeset
54 noinst_HEADERS = \
19793
d17628a27a39 Include in tarball, but don't install, display-available.h
Avinoam Kalma
parents: 19785
diff changeset
55 display-available.h \
18360
f1ee47866e6b use common code to get OCTAVE_HOME in main, octave-config and mkoctfile
John W. Eaton <jwe@octave.org>
parents: 18352
diff changeset
56 shared-fcns.h
f1ee47866e6b use common code to get OCTAVE_HOME in main, octave-config and mkoctfile
John W. Eaton <jwe@octave.org>
parents: 18352
diff changeset
57
18162
bce3a82a4a8d Add $EXEEXT to octave-XXXX-${version} rules.
John Donoghue <john.donoghue@ieee.org>
parents: 18152
diff changeset
58 OCTAVE_VERSION_LINKS = octave-cli-$(version)$(EXEEXT)
18152
91a3858ef8cf invoke versioned binaries from octave driver program (bug #40957)
John W. Eaton <jwe@octave.org>
parents: 17994
diff changeset
59
19963
8ba35b7b355d Add cross buioldable mkoctfile target
John Donoghue
parents: 19810
diff changeset
60 archlib_PROGRAMS =
8ba35b7b355d Add cross buioldable mkoctfile target
John Donoghue
parents: 19810
diff changeset
61
17778
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
62 if AMCOND_BUILD_GUI
19963
8ba35b7b355d Add cross buioldable mkoctfile target
John Donoghue
parents: 19810
diff changeset
63 archlib_PROGRAMS += octave-gui
18162
bce3a82a4a8d Add $EXEEXT to octave-XXXX-${version} rules.
John Donoghue <john.donoghue@ieee.org>
parents: 18152
diff changeset
64 OCTAVE_VERSION_LINKS += octave-gui-$(version)$(EXEEXT)
17778
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
65 endif
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
66
15139
bfc220d1de67 include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents: 15132
diff changeset
67 OCTAVE_CORE_LIBS = \
15278
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15272
diff changeset
68 $(top_builddir)/libinterp/liboctinterp.la \
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15272
diff changeset
69 $(top_builddir)/liboctave/liboctave.la
15139
bfc220d1de67 include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents: 15132
diff changeset
70
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15278
diff changeset
71 include ../libgui/link-deps.mk
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
72
17778
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
73 nodist_octave_SOURCES = main.cc
19785
299fe39163a2 avoid C-style cast warnings from GCC
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
74 octave_SOURCES = display-available.c
17778
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
75
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
76 octave_LDADD = \
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
77 $(top_builddir)/libgnu/libgnu.la \
17994
a99b7d656a6c start in CLI mode if display is not available (bug #40685)
John W. Eaton <jwe@octave.org>
parents: 17786
diff changeset
78 $(X11_LIBS) \
a99b7d656a6c start in CLI mode if display is not available (bug #40685)
John W. Eaton <jwe@octave.org>
parents: 17786
diff changeset
79 $(CARBON_LIBS) \
17778
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
80 $(GNULIB_LINK_DEPS)
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
81
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
82 octave_LDFLAGS = \
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
83 $(NO_UNDEFINED_LDFLAG) \
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
84 $(OCTAVE_LINK_OPTS)
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
85
17784
7ae9bc04ec07 allow octave binary to work if building GUI is disabled (bug #40395)
John W. Eaton <jwe@octave.org>
parents: 17778
diff changeset
86 if AMCOND_BUILD_GUI
7ae9bc04ec07 allow octave binary to work if building GUI is disabled (bug #40395)
John W. Eaton <jwe@octave.org>
parents: 17778
diff changeset
87 OCTAVE_CPPFLAGS = -DHAVE_OCTAVE_GUI
7ae9bc04ec07 allow octave binary to work if building GUI is disabled (bug #40395)
John W. Eaton <jwe@octave.org>
parents: 17778
diff changeset
88 endif
7ae9bc04ec07 allow octave binary to work if building GUI is disabled (bug #40395)
John W. Eaton <jwe@octave.org>
parents: 17778
diff changeset
89
7ae9bc04ec07 allow octave binary to work if building GUI is disabled (bug #40395)
John W. Eaton <jwe@octave.org>
parents: 17778
diff changeset
90 octave_CPPFLAGS = \
7ae9bc04ec07 allow octave binary to work if building GUI is disabled (bug #40395)
John W. Eaton <jwe@octave.org>
parents: 17778
diff changeset
91 $(AM_CPPFLAGS) \
17786
34d9812a943b build: Fix OCTAVE_CPPFLAGS typo
Mike Miller <mtmiller@ieee.org>
parents: 17784
diff changeset
92 $(OCTAVE_CPPFLAGS)
17784
7ae9bc04ec07 allow octave binary to work if building GUI is disabled (bug #40395)
John W. Eaton <jwe@octave.org>
parents: 17778
diff changeset
93
15139
bfc220d1de67 include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents: 15132
diff changeset
94 octave_cli_SOURCES = main-cli.cc
bfc220d1de67 include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents: 15132
diff changeset
95
bfc220d1de67 include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents: 15132
diff changeset
96 octave_cli_LDADD = \
18352
c460566106f0 configure.ac: Find Qt libs in framework option for Macs (bug #41236)
Michael C. Grant <mcg@cvxr.com>
parents: 18342
diff changeset
97 $(OCTAVE_CORE_LIBS) \
13022
05534f03377d maint: ensure we always link with local libtool libraries
John W. Eaton <jwe@octave.org>
parents: 13016
diff changeset
98 $(OCTAVE_LINK_DEPS)
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
99
15139
bfc220d1de67 include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents: 15132
diff changeset
100 octave_cli_LDFLAGS = \
13024
f3c53fea9fb5 maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents: 13022
diff changeset
101 $(NO_UNDEFINED_LDFLAG) \
f3c53fea9fb5 maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents: 13022
diff changeset
102 $(OCTAVE_LINK_OPTS)
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
103
15156
141b0b108292 allow building without gui to work
John W. Eaton <jwe@octave.org>
parents: 15139
diff changeset
104 if AMCOND_BUILD_GUI
17778
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
105 octave_gui_SOURCES = main-gui.cc
15362
48cb1a5bb64d reorganize libgui build
John W. Eaton <jwe@octave.org>
parents: 15278
diff changeset
106 OCTAVE_GUI_LIBS = $(top_builddir)/libgui/liboctgui.la
15196
017f0b2e6933 rename gui directory to libgu
John W. Eaton <jwe@octave.org>
parents: 15195
diff changeset
107 OCTAVE_GUI_CPPFLAGS = -I$(top_srcdir)/libgui/src
15156
141b0b108292 allow building without gui to work
John W. Eaton <jwe@octave.org>
parents: 15139
diff changeset
108 endif
15139
bfc220d1de67 include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents: 15132
diff changeset
109
17778
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
110 octave_gui_CPPFLAGS = \
15195
2fc554ffbc28 split libinterp from src
John W. Eaton <jwe@octave.org>
parents: 15174
diff changeset
111 $(AM_CPPFLAGS) \
2fc554ffbc28 split libinterp from src
John W. Eaton <jwe@octave.org>
parents: 15174
diff changeset
112 $(OCTAVE_GUI_CPPFLAGS)
15139
bfc220d1de67 include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents: 15132
diff changeset
113
17778
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
114 octave_gui_LDADD = \
15208
2a36a5b89f98 link gui in way that is more consistent with the rest of Octave
John W. Eaton <jwe@octave.org>
parents: 15196
diff changeset
115 $(OCTAVE_GUI_LIBS) \
15139
bfc220d1de67 include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents: 15132
diff changeset
116 $(OCTAVE_CORE_LIBS) \
15208
2a36a5b89f98 link gui in way that is more consistent with the rest of Octave
John W. Eaton <jwe@octave.org>
parents: 15196
diff changeset
117 $(OCTAVE_GUI_LINK_DEPS)
15139
bfc220d1de67 include gui in default Octave binary
John W. Eaton <jwe@octave.org>
parents: 15132
diff changeset
118
17778
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
119 octave_gui_LDFLAGS = \
15208
2a36a5b89f98 link gui in way that is more consistent with the rest of Octave
John W. Eaton <jwe@octave.org>
parents: 15196
diff changeset
120 $(NO_UNDEFINED_LDFLAG) \
2a36a5b89f98 link gui in way that is more consistent with the rest of Octave
John W. Eaton <jwe@octave.org>
parents: 15196
diff changeset
121 $(OCTAVE_GUI_LINK_OPTS)
12727
40b16bb69fec maint: Don't distribute files in tarball which must be re-built for each installation
Rik <octave@nomad.inbox5.com>
parents: 12720
diff changeset
122
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 12730
diff changeset
123 mkoctfile_SOURCES =
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 12730
diff changeset
124 nodist_mkoctfile_SOURCES = mkoctfile.cc
15459
abf34bbcd053 build: Fix make distcheck on platforms that use compiled auxiliary programs.
Rik <rik@octave.org>
parents: 15457
diff changeset
125 mkoctfile_LDADD = $(top_builddir)/libgnu/libgnu.la $(LIBS)
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 12730
diff changeset
126
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 12730
diff changeset
127 octave_config_SOURCES =
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 12730
diff changeset
128 nodist_octave_config_SOURCES = octave-config.cc
15459
abf34bbcd053 build: Fix make distcheck on platforms that use compiled auxiliary programs.
Rik <rik@octave.org>
parents: 15457
diff changeset
129 octave_config_LDADD = \
abf34bbcd053 build: Fix make distcheck on platforms that use compiled auxiliary programs.
Rik <rik@octave.org>
parents: 15457
diff changeset
130 $(top_builddir)/libinterp/corefcn/libcorefcn.la \
abf34bbcd053 build: Fix make distcheck on platforms that use compiled auxiliary programs.
Rik <rik@octave.org>
parents: 15457
diff changeset
131 $(top_builddir)/libgnu/libgnu.la \
abf34bbcd053 build: Fix make distcheck on platforms that use compiled auxiliary programs.
Rik <rik@octave.org>
parents: 15457
diff changeset
132 $(LIBS)
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 12730
diff changeset
133
19963
8ba35b7b355d Add cross buioldable mkoctfile target
John Donoghue
parents: 19810
diff changeset
134 OCTAVE_CROSS_TOOLS=
19971
28a9e59d0714 cross-tools: Add ability to build cross built octave-config
John Donoghue
parents: 19963
diff changeset
135 if AMCOND_CROSS_TOOLS
28a9e59d0714 cross-tools: Add ability to build cross built octave-config
John Donoghue
parents: 19963
diff changeset
136 # building cross mkoctfile
19963
8ba35b7b355d Add cross buioldable mkoctfile target
John Donoghue
parents: 19810
diff changeset
137 OCTAVE_CROSS_TOOLS += $(host_triplet)-mkoctfile$(BUILD_EXEEXT)
8ba35b7b355d Add cross buioldable mkoctfile target
John Donoghue
parents: 19810
diff changeset
138 $(host_triplet)-mkoctfile$(BUILD_EXEEXT): $(host_triplet)-mkoctfile.cc
8ba35b7b355d Add cross buioldable mkoctfile target
John Donoghue
parents: 19810
diff changeset
139 $(BUILD_CXX) -o $(host_triplet)-mkoctfile$(BUILD_EXEEXT) -Dgnulib='' -Doctave_idx_type=int $(DEFAULT_INCLUDES) $(BUILD_CXXFLAGS) $(BUILD_LDFLAGS) $(host_triplet)-mkoctfile.cc
8ba35b7b355d Add cross buioldable mkoctfile target
John Donoghue
parents: 19810
diff changeset
140 $(host_triplet)-mkoctfile.cc: mkoctfile.in.cc Makefile
8ba35b7b355d Add cross buioldable mkoctfile target
John Donoghue
parents: 19810
diff changeset
141 $(AM_V_GEN)$(do_subst_cross_config_vals)
19971
28a9e59d0714 cross-tools: Add ability to build cross built octave-config
John Donoghue
parents: 19963
diff changeset
142
28a9e59d0714 cross-tools: Add ability to build cross built octave-config
John Donoghue
parents: 19963
diff changeset
143 # building cross octave-config
28a9e59d0714 cross-tools: Add ability to build cross built octave-config
John Donoghue
parents: 19963
diff changeset
144 OCTAVE_CROSS_TOOLS += $(host_triplet)-octave-config$(BUILD_EXEEXT)
28a9e59d0714 cross-tools: Add ability to build cross built octave-config
John Donoghue
parents: 19963
diff changeset
145 $(host_triplet)-octave-config$(BUILD_EXEEXT): $(host_triplet)-octave-config.cc
28a9e59d0714 cross-tools: Add ability to build cross built octave-config
John Donoghue
parents: 19963
diff changeset
146 $(BUILD_CXX) -o $(host_triplet)-octave-config$(BUILD_EXEEXT) -Dgnulib='' -Doctave_idx_type=int $(DEFAULT_INCLUDES) $(BUILD_CXXFLAGS) $(BUILD_LDFLAGS) $(host_triplet)-octave-config.cc
28a9e59d0714 cross-tools: Add ability to build cross built octave-config
John Donoghue
parents: 19963
diff changeset
147 $(host_triplet)-octave-config.cc: octave-config.in.cc Makefile
28a9e59d0714 cross-tools: Add ability to build cross built octave-config
John Donoghue
parents: 19963
diff changeset
148 $(AM_V_GEN)$(do_subst_default_vals)
28a9e59d0714 cross-tools: Add ability to build cross built octave-config
John Donoghue
parents: 19963
diff changeset
149
28a9e59d0714 cross-tools: Add ability to build cross built octave-config
John Donoghue
parents: 19963
diff changeset
150 mostlyclean-local:
28a9e59d0714 cross-tools: Add ability to build cross built octave-config
John Donoghue
parents: 19963
diff changeset
151 -rm -f $(OCTAVE_CROSS_TOOLS)
28a9e59d0714 cross-tools: Add ability to build cross built octave-config
John Donoghue
parents: 19963
diff changeset
152
19963
8ba35b7b355d Add cross buioldable mkoctfile target
John Donoghue
parents: 19810
diff changeset
153 endif
8ba35b7b355d Add cross buioldable mkoctfile target
John Donoghue
parents: 19810
diff changeset
154
8ba35b7b355d Add cross buioldable mkoctfile target
John Donoghue
parents: 19810
diff changeset
155 all-local: $(OCTAVE_VERSION_LINKS) $(OCTAVE_CROSS_TOOLS)
18152
91a3858ef8cf invoke versioned binaries from octave driver program (bug #40957)
John W. Eaton <jwe@octave.org>
parents: 17994
diff changeset
156
14547
1bf39e944e43 rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents: 14432
diff changeset
157 octave-config.cc: octave-config.in.cc Makefile
19792
4f6ae6b94abe make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents: 19785
diff changeset
158 $(AM_V_GEN)$(do_subst_default_vals)
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
159
14547
1bf39e944e43 rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents: 14432
diff changeset
160 mkoctfile.cc: mkoctfile.in.cc Makefile
19792
4f6ae6b94abe make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents: 19785
diff changeset
161 $(AM_V_GEN)$(do_subst_config_vals)
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
162
17778
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
163 ## main.cc must depend on Makefile. Calling configure may change
19593
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 18360
diff changeset
164 ## default/config values. However, calling configure will also
17778
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
165 ## regenerate the Makefiles from Makefile.am and trigger the rules below.
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
166 main.cc: main.in.cc Makefile
19792
4f6ae6b94abe make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents: 19785
diff changeset
167 $(AM_V_GEN)$(do_subst_default_vals)
17778
b5d58667d32d new main program wrapper to handle giving up controlling tty
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
168
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
169 install-exec-hook: make-version-links
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
170
15195
2fc554ffbc28 split libinterp from src
John W. Eaton <jwe@octave.org>
parents: 15174
diff changeset
171 uninstall-local: remove-version-links
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
172
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
173 make-version-links:
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
174 cd $(DESTDIR)$(bindir) && \
12754
5ee4fc58585f * Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents: 12733
diff changeset
175 for f in $(basename $(bin_PROGRAMS)); do \
5ee4fc58585f * Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents: 12733
diff changeset
176 mv $$f$(EXEEXT) $$f-$(version)$(EXEEXT) && \
5ee4fc58585f * Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents: 12733
diff changeset
177 $(LN_S) $$f-$(version)$(EXEEXT) $$f$(EXEEXT); \
5ee4fc58585f * Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents: 12733
diff changeset
178 done
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
179
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
180 remove-version-links:
12754
5ee4fc58585f * Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents: 12733
diff changeset
181 for f in $(basename $(bin_PROGRAMS)); do \
5ee4fc58585f * Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents: 12733
diff changeset
182 rm -f $(DESTDIR)$(bindir)/$$f-$(version)$(EXEEXT); \
5ee4fc58585f * Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents: 12733
diff changeset
183 done
5ee4fc58585f * Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents: 12733
diff changeset
184
5ee4fc58585f * Makefile.am (CLEANFILES): Remove $(bin_PROGRAMS)
John W. Eaton <jwe@octave.org>
parents: 12733
diff changeset
185 .PHONY: make-version-links remove-version-links
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
186
18152
91a3858ef8cf invoke versioned binaries from octave driver program (bug #40957)
John W. Eaton <jwe@octave.org>
parents: 17994
diff changeset
187 ## We need these file names in the build tree because the wrapper
91a3858ef8cf invoke versioned binaries from octave driver program (bug #40957)
John W. Eaton <jwe@octave.org>
parents: 17994
diff changeset
188 ## program (main.cc) will try to invoke the versioned binaries.
91a3858ef8cf invoke versioned binaries from octave driver program (bug #40957)
John W. Eaton <jwe@octave.org>
parents: 17994
diff changeset
189
18162
bce3a82a4a8d Add $EXEEXT to octave-XXXX-${version} rules.
John Donoghue <john.donoghue@ieee.org>
parents: 18152
diff changeset
190 octave-cli-$(version)$(EXEEXT): octave-cli$(EXEEXT)
19810
343ca73b1507 allow rules that make symbolic links to be silenced
John W. Eaton <jwe@octave.org>
parents: 19794
diff changeset
191 $(AM_V_GEN)rm -f $@ && \
18152
91a3858ef8cf invoke versioned binaries from octave driver program (bug #40957)
John W. Eaton <jwe@octave.org>
parents: 17994
diff changeset
192 $(LN_S) $< $@
91a3858ef8cf invoke versioned binaries from octave driver program (bug #40957)
John W. Eaton <jwe@octave.org>
parents: 17994
diff changeset
193
18162
bce3a82a4a8d Add $EXEEXT to octave-XXXX-${version} rules.
John Donoghue <john.donoghue@ieee.org>
parents: 18152
diff changeset
194 octave-gui-$(version)$(EXEEXT): octave-gui$(EXEEXT)
19810
343ca73b1507 allow rules that make symbolic links to be silenced
John W. Eaton <jwe@octave.org>
parents: 19794
diff changeset
195 $(AM_V_GEN)rm -f $@ && \
18152
91a3858ef8cf invoke versioned binaries from octave driver program (bug #40957)
John W. Eaton <jwe@octave.org>
parents: 17994
diff changeset
196 $(LN_S) $< $@
91a3858ef8cf invoke versioned binaries from octave driver program (bug #40957)
John W. Eaton <jwe@octave.org>
parents: 17994
diff changeset
197
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
198 CLEANFILES = \
18152
91a3858ef8cf invoke versioned binaries from octave driver program (bug #40957)
John W. Eaton <jwe@octave.org>
parents: 17994
diff changeset
199 $(OCTAVE_VERSION_LINKS)