Mercurial > octave
annotate src/module.mk @ 33552:129d335e4b78 bytecode-interpreter tip
maint: Merge default to bytecode-interpreter
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Wed, 08 May 2024 15:17:17 -0400 |
parents | 15ae4d97a632 |
children |
rev | line source |
---|---|
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
1 %canon_reldir%_EXTRA_DIST = |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20365
diff
changeset
|
2 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
3 %canon_reldir%_CLEANFILES = |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
4 %canon_reldir%_DISTCLEANFILES = |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
5 %canon_reldir%_MAINTAINERCLEANFILES = |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20365
diff
changeset
|
6 |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 ## Search local directories before those specified by the user. |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 SRC_DIR_CPPFLAGS = \ |
21608
80258bb3a14b
store hg id info in libgui and main exe and check for consistency (bug #45659)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
10 -Iliboctave -I$(srcdir)/liboctave \ |
21290
1309edb344e1
use top_srcdir, top_builddir, abs_top_srcdir or abs_top_builddir only if needed
John W. Eaton <jwe@octave.org>
parents:
20713
diff
changeset
|
11 -I$(srcdir)/liboctave/array \ |
1309edb344e1
use top_srcdir, top_builddir, abs_top_srcdir or abs_top_builddir only if needed
John W. Eaton <jwe@octave.org>
parents:
20713
diff
changeset
|
12 -I$(srcdir)/liboctave/numeric \ |
1309edb344e1
use top_srcdir, top_builddir, abs_top_srcdir or abs_top_builddir only if needed
John W. Eaton <jwe@octave.org>
parents:
20713
diff
changeset
|
13 -I$(srcdir)/liboctave/system \ |
1309edb344e1
use top_srcdir, top_builddir, abs_top_srcdir or abs_top_builddir only if needed
John W. Eaton <jwe@octave.org>
parents:
20713
diff
changeset
|
14 -I$(srcdir)/liboctave/util \ |
21921
ecfcc8527661
hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents:
21608
diff
changeset
|
15 -Iliboctave/wrappers -I$(srcdir)/liboctave/wrappers \ |
21608
80258bb3a14b
store hg id info in libgui and main exe and check for consistency (bug #45659)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
16 -Ilibinterp -I$(srcdir)/libinterp \ |
21290
1309edb344e1
use top_srcdir, top_builddir, abs_top_srcdir or abs_top_builddir only if needed
John W. Eaton <jwe@octave.org>
parents:
20713
diff
changeset
|
17 -Ilibinterp/corefcn -I$(srcdir)/libinterp/corefcn \ |
21942
aab79a1885cc
limit gnulib headers to liboctave/wrappers directory
John W. Eaton <jwe@octave.org>
parents:
21927
diff
changeset
|
18 -I$(srcdir)/src |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 EXTRA_DIST += \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
21 %reldir%/main.in.cc \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
22 %reldir%/mkoctfile.in.cc \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
23 %reldir%/octave-build-info.in.cc \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
24 %reldir%/octave-config.in.cc |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 bin_PROGRAMS += \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
27 %reldir%/mkoctfile \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
28 %reldir%/octave \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
29 %reldir%/octave-cli \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
30 %reldir%/octave-config |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 |
20329
110005dcf8a1
create correct version links in build tree
John W. Eaton <jwe@octave.org>
parents:
20326
diff
changeset
|
32 OCTAVE_INTERPRETER_TARGETS += \ |
20365
0932426e3866
Fix dependency of built images on the interpreter
Mike Miller <mtmiller@octave.org>
parents:
20334
diff
changeset
|
33 $(bin_PROGRAMS) \ |
20329
110005dcf8a1
create correct version links in build tree
John W. Eaton <jwe@octave.org>
parents:
20326
diff
changeset
|
34 $(OCTAVE_VERSION_LINKS) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 |
21608
80258bb3a14b
store hg id info in libgui and main exe and check for consistency (bug #45659)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
36 octinclude_HEADERS += \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
37 %reldir%/octave-build-info.h |
21608
80258bb3a14b
store hg id info in libgui and main exe and check for consistency (bug #45659)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
38 |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
39 noinst_HEADERS += \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
40 %reldir%/display-available.h \ |
29519
78f42413e20f
octave-svgconvert: Don't use Qt's SVG module (bug #59546)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
26027
diff
changeset
|
41 %reldir%/octave-qsvghandler.h \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
42 %reldir%/shared-fcns.h |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
43 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
44 OCTAVE_VERSION_LINKS += %reldir%/octave-cli-$(version)$(EXEEXT) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
45 |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21290
diff
changeset
|
46 if AMCOND_BUILD_QT_GUI |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
47 archlib_PROGRAMS += %reldir%/octave-gui |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
48 OCTAVE_VERSION_LINKS += %reldir%/octave-gui-$(version)$(EXEEXT) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
49 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
50 OCTAVE_INTERPRETER_TARGETS += %reldir%/octave-gui$(EXEEXT) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
51 endif |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
52 |
26027
98d7a111786a
Add SVG convertion option for printing to PDF and raster outputs (bug #52193)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
25596
diff
changeset
|
53 if AMCOND_BUILD_QT_GUI |
98d7a111786a
Add SVG convertion option for printing to PDF and raster outputs (bug #52193)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
25596
diff
changeset
|
54 archlib_PROGRAMS += %reldir%/octave-svgconvert |
98d7a111786a
Add SVG convertion option for printing to PDF and raster outputs (bug #52193)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
25596
diff
changeset
|
55 OCTAVE_INTERPRETER_TARGETS += %reldir%/octave-svgconvert$(EXEEXT) |
98d7a111786a
Add SVG convertion option for printing to PDF and raster outputs (bug #52193)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
25596
diff
changeset
|
56 endif |
98d7a111786a
Add SVG convertion option for printing to PDF and raster outputs (bug #52193)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
25596
diff
changeset
|
57 |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
58 OCTAVE_CORE_LIBS = \ |
21290
1309edb344e1
use top_srcdir, top_builddir, abs_top_srcdir or abs_top_builddir only if needed
John W. Eaton <jwe@octave.org>
parents:
20713
diff
changeset
|
59 libinterp/liboctinterp.la \ |
21921
ecfcc8527661
hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents:
21608
diff
changeset
|
60 liboctave/liboctave.la \ |
ecfcc8527661
hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents:
21608
diff
changeset
|
61 libgnu/libgnu.la |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
62 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
63 nodist_%canon_reldir%_octave_SOURCES = %reldir%/main.cc |
21608
80258bb3a14b
store hg id info in libgui and main exe and check for consistency (bug #45659)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
64 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
65 %canon_reldir%_octave_SOURCES = %reldir%/display-available.c |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
66 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
67 %canon_reldir%_octave_LDADD = \ |
21921
ecfcc8527661
hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents:
21608
diff
changeset
|
68 liboctave/wrappers/libwrappers.la \ |
21290
1309edb344e1
use top_srcdir, top_builddir, abs_top_srcdir or abs_top_builddir only if needed
John W. Eaton <jwe@octave.org>
parents:
20713
diff
changeset
|
69 libgnu/libgnu.la \ |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
70 $(X11_LIBS) \ |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
71 $(CARBON_LIBS) \ |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
72 $(GNULIB_LINK_DEPS) |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
73 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
74 %canon_reldir%_octave_LDFLAGS = \ |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
75 $(NO_UNDEFINED_LDFLAG) \ |
20712
4a25c398ffa2
configure option to build with address sanitizer (bugg #46449)
John W. Eaton <jwe@octave.org>
parents:
20461
diff
changeset
|
76 $(OCTAVE_LINK_OPTS) \ |
29540
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29519
diff
changeset
|
77 $(WARN_LDFLAGS) \ |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29519
diff
changeset
|
78 $(OCTAVE_UNICODE_EXE_LDFLAGS) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
79 |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21290
diff
changeset
|
80 if AMCOND_BUILD_QT_GUI |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21290
diff
changeset
|
81 OCTAVE_CPPFLAGS = -DHAVE_OCTAVE_QT_GUI |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
82 endif |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
83 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
84 %canon_reldir%_octave_CPPFLAGS = \ |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
85 $(SRC_DIR_CPPFLAGS) \ |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
86 $(OCTAVE_CPPFLAGS) |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
87 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
88 %canon_reldir%_octave_cli_SOURCES = %reldir%/main-cli.cc |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
89 nodist_%canon_reldir%_octave_cli_SOURCES = %reldir%/octave-build-info.cc |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
90 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
91 %canon_reldir%_octave_cli_LDADD = \ |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
92 $(OCTAVE_CORE_LIBS) \ |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
93 $(OCTAVE_LINK_DEPS) |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
94 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
95 %canon_reldir%_octave_cli_LDFLAGS = \ |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
96 $(NO_UNDEFINED_LDFLAG) \ |
20712
4a25c398ffa2
configure option to build with address sanitizer (bugg #46449)
John W. Eaton <jwe@octave.org>
parents:
20461
diff
changeset
|
97 $(OCTAVE_LINK_OPTS) \ |
29540
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29519
diff
changeset
|
98 $(WARN_LDFLAGS) \ |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29519
diff
changeset
|
99 $(OCTAVE_UNICODE_EXE_LDFLAGS) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
100 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
101 %canon_reldir%_octave_cli_CPPFLAGS = \ |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
102 $(SRC_DIR_CPPFLAGS) \ |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
103 $(OCTAVE_CPPFLAGS) |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
104 |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21290
diff
changeset
|
105 if AMCOND_BUILD_QT_GUI |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
106 %canon_reldir%_octave_gui_SOURCES = %reldir%/main-gui.cc |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
107 nodist_%canon_reldir%_octave_gui_SOURCES = %reldir%/octave-build-info.cc |
21290
1309edb344e1
use top_srcdir, top_builddir, abs_top_srcdir or abs_top_builddir only if needed
John W. Eaton <jwe@octave.org>
parents:
20713
diff
changeset
|
108 OCTAVE_GUI_LIBS = libgui/liboctgui.la |
23427
48fd5980e29a
Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents:
23426
diff
changeset
|
109 OCTAVE_GUI_CPPFLAGS = -I$(srcdir)/libgui -Ilibgui/src -I$(srcdir)/libgui/src |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
110 endif |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
111 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
112 %canon_reldir%_octave_gui_CPPFLAGS = \ |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
113 $(SRC_DIR_CPPFLAGS) \ |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
114 $(OCTAVE_GUI_CPPFLAGS) |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
115 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
116 %canon_reldir%_octave_gui_LDADD = \ |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
117 $(OCTAVE_GUI_LIBS) \ |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
118 $(OCTAVE_CORE_LIBS) \ |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
119 $(OCTAVE_GUI_LINK_DEPS) |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
120 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
121 %canon_reldir%_octave_gui_LDFLAGS = \ |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
122 $(NO_UNDEFINED_LDFLAG) \ |
20712
4a25c398ffa2
configure option to build with address sanitizer (bugg #46449)
John W. Eaton <jwe@octave.org>
parents:
20461
diff
changeset
|
123 $(OCTAVE_GUI_LINK_OPTS) \ |
29540
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29519
diff
changeset
|
124 $(WARN_LDFLAGS) \ |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29519
diff
changeset
|
125 $(OCTAVE_UNICODE_EXE_LDFLAGS) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
126 |
26027
98d7a111786a
Add SVG convertion option for printing to PDF and raster outputs (bug #52193)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
25596
diff
changeset
|
127 %canon_reldir%_octave_svgconvert_SOURCES = %reldir%/octave-svgconvert.cc |
98d7a111786a
Add SVG convertion option for printing to PDF and raster outputs (bug #52193)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
25596
diff
changeset
|
128 |
98d7a111786a
Add SVG convertion option for printing to PDF and raster outputs (bug #52193)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
25596
diff
changeset
|
129 %canon_reldir%_octave_svgconvert_CPPFLAGS = $(QT_CPPFLAGS) |
98d7a111786a
Add SVG convertion option for printing to PDF and raster outputs (bug #52193)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
25596
diff
changeset
|
130 |
98d7a111786a
Add SVG convertion option for printing to PDF and raster outputs (bug #52193)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
25596
diff
changeset
|
131 %canon_reldir%_octave_svgconvert_LDADD = $(QT_LIBS) |
98d7a111786a
Add SVG convertion option for printing to PDF and raster outputs (bug #52193)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
25596
diff
changeset
|
132 |
29540
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29519
diff
changeset
|
133 %canon_reldir%_octave_svgconvert_LDFLAGS = \ |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29519
diff
changeset
|
134 $(QT_LDFLAGS) \ |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29519
diff
changeset
|
135 $(OCTAVE_UNICODE_EXE_LDFLAGS) |
26027
98d7a111786a
Add SVG convertion option for printing to PDF and raster outputs (bug #52193)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
25596
diff
changeset
|
136 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
137 %canon_reldir%_mkoctfile_SOURCES = |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
138 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
139 nodist_%canon_reldir%_mkoctfile_SOURCES = %reldir%/mkoctfile.cc |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
140 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
141 %canon_reldir%_mkoctfile_LDADD = \ |
21927
6f62bd248919
use wrapper functions for mkoctfile and main
John W. Eaton <jwe@octave.org>
parents:
21921
diff
changeset
|
142 liboctave/wrappers/libwrappers.la \ |
21921
ecfcc8527661
hide sys/wait.h header and provide wrappers for waitpid macros
John W. Eaton <jwe@octave.org>
parents:
21608
diff
changeset
|
143 libgnu/libgnu.la $(LIBS) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
144 |
29540
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29519
diff
changeset
|
145 %canon_reldir%_mkoctfile_LDFLAGS = \ |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29519
diff
changeset
|
146 $(OCTAVE_UNICODE_EXE_LDFLAGS) |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29519
diff
changeset
|
147 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
148 %canon_reldir%_mkoctfile_CPPFLAGS = \ |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
149 $(SRC_DIR_CPPFLAGS) \ |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
150 $(OCTAVE_CPPFLAGS) |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
151 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
152 %canon_reldir%_octave_config_SOURCES = |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
153 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
154 nodist_%canon_reldir%_octave_config_SOURCES = %reldir%/octave-config.cc |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
155 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
156 %canon_reldir%_octave_config_LDADD = \ |
21290
1309edb344e1
use top_srcdir, top_builddir, abs_top_srcdir or abs_top_builddir only if needed
John W. Eaton <jwe@octave.org>
parents:
20713
diff
changeset
|
157 libinterp/corefcn/libcorefcn.la \ |
1309edb344e1
use top_srcdir, top_builddir, abs_top_srcdir or abs_top_builddir only if needed
John W. Eaton <jwe@octave.org>
parents:
20713
diff
changeset
|
158 libgnu/libgnu.la \ |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
159 $(LIBS) |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
160 |
29540
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29519
diff
changeset
|
161 %canon_reldir%_octave_config_LDFLAGS = \ |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29519
diff
changeset
|
162 $(OCTAVE_UNICODE_EXE_LDFLAGS) |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29519
diff
changeset
|
163 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
164 %canon_reldir%_octave_config_CPPFLAGS = \ |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
165 $(SRC_DIR_CPPFLAGS) \ |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
166 $(OCTAVE_CPPFLAGS) |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
167 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
168 DIRSTAMP_FILES += %reldir%/$(octave_dirstamp) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
169 |
20461
0fe7133da8ce
don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents:
20402
diff
changeset
|
170 mostlyclean-local: src-mostlyclean-local |
0fe7133da8ce
don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents:
20402
diff
changeset
|
171 .PHONY: src-mostlyclean-local |
0fe7133da8ce
don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents:
20402
diff
changeset
|
172 |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
173 if AMCOND_CROSS_TOOLS |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
174 |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
175 ## Building cross mkoctfile. |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
176 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
177 OCTAVE_CROSS_TOOLS += %reldir%/$(host_triplet)-mkoctfile$(BUILD_EXEEXT) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
178 |
30368
15ae4d97a632
mkoctfile: Correctly handle relocation in cross-compiler.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29540
diff
changeset
|
179 if AMCOND_RELOCATE_ALL |
15ae4d97a632
mkoctfile: Correctly handle relocation in cross-compiler.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29540
diff
changeset
|
180 OCTAVE_REPLACE_PREFIX_CPPFLAGS = -DOCTAVE_REPLACE_PREFIX |
15ae4d97a632
mkoctfile: Correctly handle relocation in cross-compiler.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29540
diff
changeset
|
181 endif |
15ae4d97a632
mkoctfile: Correctly handle relocation in cross-compiler.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29540
diff
changeset
|
182 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
183 %reldir%/$(host_triplet)-mkoctfile$(BUILD_EXEEXT): %reldir%/$(host_triplet)-mkoctfile.cc |
30368
15ae4d97a632
mkoctfile: Correctly handle relocation in cross-compiler.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29540
diff
changeset
|
184 $(BUILD_CXX) -o %reldir%/$(host_triplet)-mkoctfile$(BUILD_EXEEXT) $(OCTAVE_REPLACE_PREFIX_CPPFLAGS) -DCROSS=1 $(DEFAULT_INCLUDES) $(BUILD_CXXFLAGS) $(BUILD_LDFLAGS) -I$(srcdir)/src %reldir%/$(host_triplet)-mkoctfile.cc |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
185 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
186 %reldir%/$(host_triplet)-mkoctfile.cc: %reldir%/mkoctfile.in.cc build-aux/subst-cross-config-vals.sh | %reldir%/$(octave_dirstamp) |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21374
diff
changeset
|
187 $(AM_V_GEN)$(call simple-filter-rule,build-aux/subst-cross-config-vals.sh) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
188 |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
189 ## Building cross octave-config. |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
190 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
191 OCTAVE_CROSS_TOOLS += %reldir%/$(host_triplet)-octave-config$(BUILD_EXEEXT) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
192 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
193 %reldir%/$(host_triplet)-octave-config$(BUILD_EXEEXT): %reldir%/$(host_triplet)-octave-config.cc |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
194 $(BUILD_CXX) -o %reldir%/$(host_triplet)-octave-config$(BUILD_EXEEXT) -DCROSS=1 $(DEFAULT_INCLUDES) $(BUILD_CXXFLAGS) $(BUILD_LDFLAGS) -I$(srcdir)/src %reldir%/$(host_triplet)-octave-config.cc |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
195 |
25556
cbef9fc53fef
include all octave-config vars in mkoctfile (bug #54260)
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
196 %reldir%/$(host_triplet)-octave-config.cc: %reldir%/octave-config.in.cc build-aux/subst-config-vals.sh | %reldir%/$(octave_dirstamp) |
cbef9fc53fef
include all octave-config vars in mkoctfile (bug #54260)
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
197 $(AM_V_GEN)$(call simple-filter-rule,build-aux/subst-config-vals.sh) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
198 |
20461
0fe7133da8ce
don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents:
20402
diff
changeset
|
199 src-mostlyclean-local: |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
200 -rm -f $(OCTAVE_CROSS_TOOLS) |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
201 |
20461
0fe7133da8ce
don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents:
20402
diff
changeset
|
202 else |
0fe7133da8ce
don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents:
20402
diff
changeset
|
203 |
0fe7133da8ce
don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents:
20402
diff
changeset
|
204 src-mostlyclean-local: |
0fe7133da8ce
don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents:
20402
diff
changeset
|
205 |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
206 endif |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
207 |
25556
cbef9fc53fef
include all octave-config vars in mkoctfile (bug #54260)
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
208 %reldir%/octave-config.cc: %reldir%/octave-config.in.cc build-aux/subst-config-vals.sh | %reldir%/$(octave_dirstamp) |
cbef9fc53fef
include all octave-config vars in mkoctfile (bug #54260)
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
209 $(AM_V_GEN)$(call simple-filter-rule,build-aux/subst-config-vals.sh) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
210 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
211 %reldir%/mkoctfile.cc: %reldir%/mkoctfile.in.cc build-aux/subst-config-vals.sh | %reldir%/$(octave_dirstamp) |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21374
diff
changeset
|
212 $(AM_V_GEN)$(call simple-filter-rule,build-aux/subst-config-vals.sh) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
213 |
25556
cbef9fc53fef
include all octave-config vars in mkoctfile (bug #54260)
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
214 %reldir%/main.cc: %reldir%/main.in.cc build-aux/subst-config-vals.sh | %reldir%/$(octave_dirstamp) |
cbef9fc53fef
include all octave-config vars in mkoctfile (bug #54260)
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
215 $(AM_V_GEN)$(call simple-filter-rule,build-aux/subst-config-vals.sh) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
216 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
217 %reldir%/octave-build-info.cc: %reldir%/octave-build-info.in.cc HG-ID | %reldir%/$(octave_dirstamp) |
23427
48fd5980e29a
Refactor and normalize generated build info source files
Mike Miller <mtmiller@octave.org>
parents:
23426
diff
changeset
|
218 $(AM_V_GEN)$(build-info-commands) |
21608
80258bb3a14b
store hg id info in libgui and main exe and check for consistency (bug #45659)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
219 |
22075
7a4897e07727
build: ensure all files needed to run octave in build dir are declared
Mike Miller <mtmiller@octave.org>
parents:
22074
diff
changeset
|
220 ALL_LOCAL_TARGETS += $(OCTAVE_CROSS_TOOLS) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
221 |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
222 install-exec-hook: make-version-links |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
223 |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
224 uninstall-local: remove-version-links |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
225 |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
226 make-version-links: |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
227 cd $(DESTDIR)$(bindir) && \ |
20333
23172e987766
Fix 'make install' errors for non-recursive build
Mike Miller <mtmiller@octave.org>
parents:
20329
diff
changeset
|
228 for f in $(notdir $(basename $(bin_PROGRAMS))); do \ |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
229 mv $$f$(EXEEXT) $$f-$(version)$(EXEEXT) && \ |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
230 $(LN_S) $$f-$(version)$(EXEEXT) $$f$(EXEEXT); \ |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
231 done |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
232 |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
233 remove-version-links: |
20333
23172e987766
Fix 'make install' errors for non-recursive build
Mike Miller <mtmiller@octave.org>
parents:
20329
diff
changeset
|
234 for f in $(notdir $(basename $(bin_PROGRAMS))); do \ |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
235 rm -f $(DESTDIR)$(bindir)/$$f-$(version)$(EXEEXT); \ |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
236 done |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
237 |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
238 .PHONY: make-version-links remove-version-links |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
239 |
20713
2469d78a1d8b
Consistently use 'filename' rather than 'file name' throughout code base.
Rik <rik@octave.org>
parents:
20712
diff
changeset
|
240 ## We need these filenames in the build tree because the wrapper |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
241 ## program (main.cc) will try to invoke the versioned binaries. |
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
242 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
243 %reldir%/octave-cli-$(version)$(EXEEXT): %reldir%/octave-cli$(EXEEXT) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
244 $(AM_V_GEN)rm -f $@ && \ |
20334
07dd8e602f4e
Portably create version links in build tree
Mike Miller <mtmiller@octave.org>
parents:
20333
diff
changeset
|
245 cd $(@D) && $(LN_S) $(<F) $(@F) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
246 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
247 %reldir%/octave-gui-$(version)$(EXEEXT): %reldir%/octave-gui$(EXEEXT) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
248 $(AM_V_GEN)rm -f $@ && \ |
20334
07dd8e602f4e
Portably create version links in build tree
Mike Miller <mtmiller@octave.org>
parents:
20333
diff
changeset
|
249 cd $(@D) && $(LN_S) $(<F) $(@F) |
20325
2d84d27dc9f0
eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
250 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
251 %canon_reldir%_CLEANFILES += \ |
22024
659731a4563f
build: delete generated files, keep distributed files on clean and distclean (bug #45646)
Mike Miller <mtmiller@octave.org>
parents:
22020
diff
changeset
|
252 $(OCTAVE_VERSION_LINKS) \ |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
253 %reldir%/main.cc \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
254 %reldir%/mkoctfile.cc \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
255 %reldir%/octave-build-info.cc \ |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
256 %reldir%/octave-config.cc |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20365
diff
changeset
|
257 |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
258 CLEANFILES += $(%canon_reldir%_CLEANFILES) |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
259 DISTCLEANFILES += $(%canon_reldir%_DISTCLEANFILES) |
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
260 MAINTAINERCLEANFILES += $(%canon_reldir%_MAINTAINERCLEANFILES) |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20365
diff
changeset
|
261 |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20365
diff
changeset
|
262 src-clean: |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
263 rm -f $(%canon_reldir%_CLEANFILES) |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20365
diff
changeset
|
264 |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20365
diff
changeset
|
265 src-distclean: src-clean |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
266 rm -f $(%canon_reldir%_DISTCLEANFILES) |
20366
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20365
diff
changeset
|
267 |
9b44691a3520
provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents:
20365
diff
changeset
|
268 src-maintainer-clean: src-distclean |
23495
8308417aff1c
use automake %reldir% feature
John W. Eaton <jwe@octave.org>
parents:
23427
diff
changeset
|
269 rm -f $(%canon_reldir%_MAINTAINERCLEANFILES) |