annotate src/module.mk @ 20654:b65888ec820e draft default tip gccjit

dmalcom gcc jit import
author Stefan Mahr <dac922@gmx.de>
date Fri, 27 Feb 2015 16:59:36 +0100
parents 0fe7133da8ce
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20401
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
1 src_EXTRA_DIST =
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
2
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
3 src_CLEANFILES =
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
4 src_DISTCLEANFILES =
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
5 src_MAINTAINERCLEANFILES =
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
6
20360
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 = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 -I$(top_srcdir)/liboctave/array \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 -I$(top_srcdir)/liboctave/cruft/misc \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 -I$(top_srcdir)/liboctave/numeric \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 -I$(top_srcdir)/liboctave/system \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 -I$(top_srcdir)/liboctave/util \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 -I$(top_srcdir)/libinterp \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 -I$(top_builddir)/libinterp/corefcn -I$(top_srcdir)/libinterp/corefcn \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 -I$(top_srcdir)/src \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 -I$(top_builddir)/libgnu -I$(top_srcdir)/libgnu
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 += \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 src/main.in.cc \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 src/mkoctfile.in.cc \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 src/octave-config.in.cc
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 DISTCLEANFILES += \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 src/main.cc \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 src/mkoctfile.cc \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 src/octave-config.cc
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 bin_PROGRAMS += \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 src/mkoctfile \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 src/octave \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 src/octave-cli \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 src/octave-config
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35
20364
110005dcf8a1 create correct version links in build tree
John W. Eaton <jwe@octave.org>
parents: 20361
diff changeset
36 OCTAVE_INTERPRETER_TARGETS += \
20400
0932426e3866 Fix dependency of built images on the interpreter
Mike Miller <mtmiller@octave.org>
parents: 20369
diff changeset
37 $(bin_PROGRAMS) \
20364
110005dcf8a1 create correct version links in build tree
John W. Eaton <jwe@octave.org>
parents: 20361
diff changeset
38 $(OCTAVE_VERSION_LINKS)
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40 noinst_HEADERS += \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
41 src/display-available.h \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
42 src/shared-fcns.h
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
43
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
44 OCTAVE_VERSION_LINKS += src/octave-cli-$(version)$(EXEEXT)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
45
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
46 if AMCOND_BUILD_GUI
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
47 archlib_PROGRAMS += src/octave-gui
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
48 OCTAVE_VERSION_LINKS += src/octave-gui-$(version)$(EXEEXT)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
49
20437
be6720faab96 update of targets for cross build
John D
parents: 20402
diff changeset
50 OCTAVE_INTERPRETER_TARGETS += src/octave-gui$(EXEEXT)
20360
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
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
53 OCTAVE_CORE_LIBS = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
54 $(top_builddir)/libinterp/liboctinterp.la \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
55 $(top_builddir)/liboctave/liboctave.la
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
56
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
57 nodist_src_octave_SOURCES = src/main.cc
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
58 src_octave_SOURCES = src/display-available.c
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
59
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
60 src_octave_LDADD = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
61 $(top_builddir)/libgnu/libgnu.la \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
62 $(X11_LIBS) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
63 $(CARBON_LIBS) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
64 $(GNULIB_LINK_DEPS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
65
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
66 src_octave_LDFLAGS = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
67 $(NO_UNDEFINED_LDFLAG) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
68 $(OCTAVE_LINK_OPTS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
69
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
70 if AMCOND_BUILD_GUI
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
71 OCTAVE_CPPFLAGS = -DHAVE_OCTAVE_GUI
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
72 endif
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
73
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
74 src_octave_CPPFLAGS = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
75 $(SRC_DIR_CPPFLAGS) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
76 $(OCTAVE_CPPFLAGS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
77
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
78 src_octave_CXXFLAGS = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
79 $(AM_CXXFLAGS) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
80 $(WARN_CXXFLAGS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
81
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
82 src_octave_cli_SOURCES = src/main-cli.cc
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
83
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
84 src_octave_cli_LDADD = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
85 $(OCTAVE_CORE_LIBS) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
86 $(OCTAVE_LINK_DEPS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
87
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
88 src_octave_cli_LDFLAGS = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
89 $(NO_UNDEFINED_LDFLAG) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
90 $(OCTAVE_LINK_OPTS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
91
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
92 src_octave_cli_CPPFLAGS = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
93 $(SRC_DIR_CPPFLAGS) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
94 $(OCTAVE_CPPFLAGS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
95
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
96 src_octave_cli_CXXFLAGS = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
97 $(AM_CXXFLAGS) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
98 $(WARN_CXXFLAGS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
99
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
100 if AMCOND_BUILD_GUI
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
101 src_octave_gui_SOURCES = src/main-gui.cc
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
102 OCTAVE_GUI_LIBS = $(top_builddir)/libgui/liboctgui.la
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
103 OCTAVE_GUI_CPPFLAGS = -I$(top_srcdir)/libgui/src
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
104 endif
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
105
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
106 src_octave_gui_CPPFLAGS = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
107 $(SRC_DIR_CPPFLAGS) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
108 $(OCTAVE_GUI_CPPFLAGS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
109
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
110 src_octave_gui_LDADD = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
111 $(OCTAVE_GUI_LIBS) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
112 $(OCTAVE_CORE_LIBS) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
113 $(OCTAVE_GUI_LINK_DEPS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
114
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
115 src_octave_gui_LDFLAGS = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
116 $(NO_UNDEFINED_LDFLAG) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
117 $(OCTAVE_GUI_LINK_OPTS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
118
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
119 src_octave_gui_CXXFLAGS = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
120 $(AM_CXXFLAGS) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
121 $(WARN_CXXFLAGS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
122
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
123 src_mkoctfile_SOURCES =
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
124
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
125 nodist_src_mkoctfile_SOURCES = src/mkoctfile.cc
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
126
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
127 src_mkoctfile_LDADD = $(top_builddir)/libgnu/libgnu.la $(LIBS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
128
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
129 src_mkoctfile_CPPFLAGS = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
130 $(SRC_DIR_CPPFLAGS) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
131 $(OCTAVE_CPPFLAGS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
132
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
133 src_mkoctfile_CXXFLAGS = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
134 $(AM_CXXFLAGS) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
135 $(WARN_CXXFLAGS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
136
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
137 src_octave_config_SOURCES =
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
138
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
139 nodist_src_octave_config_SOURCES = src/octave-config.cc
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
140
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
141 src_octave_config_LDADD = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
142 $(top_builddir)/libinterp/corefcn/libcorefcn.la \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
143 $(top_builddir)/libgnu/libgnu.la \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
144 $(LIBS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
145
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
146 src_octave_config_CPPFLAGS = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
147 $(SRC_DIR_CPPFLAGS) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
148 $(OCTAVE_CPPFLAGS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
149
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
150 src_octave_config_CXXFLAGS = \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
151 $(AM_CXXFLAGS) \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
152 $(WARN_CXXFLAGS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
153
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
154 DIRSTAMP_FILES += src/$(octave_dirstamp)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
155
20496
0fe7133da8ce don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents: 20437
diff changeset
156 mostlyclean-local: src-mostlyclean-local
0fe7133da8ce don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents: 20437
diff changeset
157 .PHONY: src-mostlyclean-local
0fe7133da8ce don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents: 20437
diff changeset
158
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
159 if AMCOND_CROSS_TOOLS
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
160
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
161 ## Building cross mkoctfile.
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
162
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
163 OCTAVE_CROSS_TOOLS += src/$(host_triplet)-mkoctfile$(BUILD_EXEEXT)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
164
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
165 src/$(host_triplet)-mkoctfile$(BUILD_EXEEXT): src/$(host_triplet)-mkoctfile.cc
20437
be6720faab96 update of targets for cross build
John D
parents: 20402
diff changeset
166 $(BUILD_CXX) -o src/$(host_triplet)-mkoctfile$(BUILD_EXEEXT) -Dgnulib='' -Doctave_idx_type=int $(DEFAULT_INCLUDES) $(BUILD_CXXFLAGS) $(BUILD_LDFLAGS) -I$(top_srcdir)/src src/$(host_triplet)-mkoctfile.cc
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
167
20402
6b7c10920dfe make interpreter targets and dirstamp files order-only prerequisites
John W. Eaton <jwe@octave.org>
parents: 20401
diff changeset
168 src/$(host_triplet)-mkoctfile.cc: src/mkoctfile.in.cc Makefile | src/$(octave_dirstamp)
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
169 $(AM_V_GEN)$(do_subst_cross_config_vals)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
170
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
171 ## Building cross octave-config.
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
172
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
173 OCTAVE_CROSS_TOOLS += src/$(host_triplet)-octave-config$(BUILD_EXEEXT)
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 src/$(host_triplet)-octave-config$(BUILD_EXEEXT): src/$(host_triplet)-octave-config.cc
20437
be6720faab96 update of targets for cross build
John D
parents: 20402
diff changeset
176 $(BUILD_CXX) -o src/$(host_triplet)-octave-config$(BUILD_EXEEXT) -Dgnulib='' -Doctave_idx_type=int $(DEFAULT_INCLUDES) $(BUILD_CXXFLAGS) $(BUILD_LDFLAGS) -I$(top_srcdir)/src src/$(host_triplet)-octave-config.cc
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
177
20402
6b7c10920dfe make interpreter targets and dirstamp files order-only prerequisites
John W. Eaton <jwe@octave.org>
parents: 20401
diff changeset
178 src/$(host_triplet)-octave-config.cc: src/octave-config.in.cc Makefile | src/$(octave_dirstamp)
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
179 $(AM_V_GEN)$(do_subst_default_vals)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
180
20496
0fe7133da8ce don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents: 20437
diff changeset
181 src-mostlyclean-local:
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
182 -rm -f $(OCTAVE_CROSS_TOOLS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
183
20496
0fe7133da8ce don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents: 20437
diff changeset
184 else
0fe7133da8ce don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents: 20437
diff changeset
185
0fe7133da8ce don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents: 20437
diff changeset
186 src-mostlyclean-local:
0fe7133da8ce don't define mostlyclean-local target in module.mk file
John W. Eaton <jwe@octave.org>
parents: 20437
diff changeset
187
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
188 endif
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
189
20402
6b7c10920dfe make interpreter targets and dirstamp files order-only prerequisites
John W. Eaton <jwe@octave.org>
parents: 20401
diff changeset
190 src/octave-config.cc: src/octave-config.in.cc Makefile | src/$(octave_dirstamp)
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
191 $(AM_V_GEN)$(do_subst_default_vals)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
192
20402
6b7c10920dfe make interpreter targets and dirstamp files order-only prerequisites
John W. Eaton <jwe@octave.org>
parents: 20401
diff changeset
193 src/mkoctfile.cc: src/mkoctfile.in.cc Makefile | src/$(octave_dirstamp)
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
194 $(AM_V_GEN)$(do_subst_config_vals)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
195
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
196 ## main.cc must depend on Makefile. Calling configure may change
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
197 ## default/config values. However, calling configure will also
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
198 ## regenerate the Makefiles from Makefile.am and trigger the rules below.
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
199
20402
6b7c10920dfe make interpreter targets and dirstamp files order-only prerequisites
John W. Eaton <jwe@octave.org>
parents: 20401
diff changeset
200 src/main.cc: src/main.in.cc Makefile | src/$(octave_dirstamp)
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
201 $(AM_V_GEN)$(do_subst_default_vals)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
202
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
203 ALL_LOCAL_TARGETS += $(OCTAVE_VERSION_LINKS) $(OCTAVE_CROSS_TOOLS)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
204
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
205 install-exec-hook: make-version-links
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
206
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
207 uninstall-local: remove-version-links
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
208
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
209 make-version-links:
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
210 cd $(DESTDIR)$(bindir) && \
20368
23172e987766 Fix 'make install' errors for non-recursive build
Mike Miller <mtmiller@octave.org>
parents: 20364
diff changeset
211 for f in $(notdir $(basename $(bin_PROGRAMS))); do \
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
212 mv $$f$(EXEEXT) $$f-$(version)$(EXEEXT) && \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
213 $(LN_S) $$f-$(version)$(EXEEXT) $$f$(EXEEXT); \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
214 done
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
215
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
216 remove-version-links:
20368
23172e987766 Fix 'make install' errors for non-recursive build
Mike Miller <mtmiller@octave.org>
parents: 20364
diff changeset
217 for f in $(notdir $(basename $(bin_PROGRAMS))); do \
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
218 rm -f $(DESTDIR)$(bindir)/$$f-$(version)$(EXEEXT); \
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
219 done
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
220
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
221 .PHONY: make-version-links remove-version-links
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
222
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
223 ## We need these file names in the build tree because the wrapper
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
224 ## 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
225
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
226 src/octave-cli-$(version)$(EXEEXT): src/octave-cli$(EXEEXT)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
227 $(AM_V_GEN)rm -f $@ && \
20369
07dd8e602f4e Portably create version links in build tree
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
228 cd $(@D) && $(LN_S) $(<F) $(@F)
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
229
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
230 src/octave-gui-$(version)$(EXEEXT): src/octave-gui$(EXEEXT)
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
231 $(AM_V_GEN)rm -f $@ && \
20369
07dd8e602f4e Portably create version links in build tree
Mike Miller <mtmiller@octave.org>
parents: 20368
diff changeset
232 cd $(@D) && $(LN_S) $(<F) $(@F)
20360
2d84d27dc9f0 eliminate recursive make invocation in src directory
John W. Eaton <jwe@octave.org>
parents:
diff changeset
233
20401
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
234 src_CLEANFILES += $(OCTAVE_VERSION_LINKS)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
235
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
236 CLEANFILES += $(src_CLEANFILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
237 DISTCLEANFILES += $(src_DISTCLEANFILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
238 MAINTAINERCLEANFILES += $(src_MAINTAINERCLEANFILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
239
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
240 src-clean:
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
241 rm -f $(src_CLEANFILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
242
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
243 src-distclean: src-clean
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
244 rm -f $(src_DISTCLEANFILES)
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
245
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
246 src-maintainer-clean: src-distclean
9b44691a3520 provide per-directory clean targets
John W. Eaton <jwe@octave.org>
parents: 20400
diff changeset
247 rm -f $(src_MAINTAINERCLEANFILES)