Commit | Line | Data |
---|---|---|
61baf725 | 1 | # Copyright (C) 1989-2017 Free Software Foundation, Inc. |
c906108c SS |
2 | |
3 | # This file is part of GDB. | |
4 | ||
5 | # This program is free software; you can redistribute it and/or modify | |
6 | # it under the terms of the GNU General Public License as published by | |
5b1ba0e5 | 7 | # the Free Software Foundation; either version 3 of the License, or |
c906108c | 8 | # (at your option) any later version. |
3cf93817 | 9 | # |
c906108c SS |
10 | # This program is distributed in the hope that it will be useful, |
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | # GNU General Public License for more details. | |
3cf93817 | 14 | # |
c906108c | 15 | # You should have received a copy of the GNU General Public License |
5b1ba0e5 | 16 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
c906108c | 17 | |
b593ecca SM |
18 | # Please keep lists in this file sorted alphabetically, with one item per line. |
19 | # Here are the general guidelines for ordering files and directories: | |
20 | # | |
21 | # - Files come before directories. | |
22 | # - The extensions are not taken into account when comparing filenames, except | |
23 | # if the filenames are otherwise equal. | |
24 | # - A filename that is a prefix of another one comes before. | |
25 | # - Underscores and dashes are treated equally, and come before alphanumeric | |
26 | # characters. | |
27 | # | |
28 | # For example: | |
29 | # | |
30 | # SOME_FILES = \ | |
31 | # foo.c \ | |
32 | # foo.h \ | |
33 | # foo-bar.c \ | |
34 | # foobar.c \ | |
35 | # foo/bar.c | |
36 | ||
c906108c SS |
37 | prefix = @prefix@ |
38 | exec_prefix = @exec_prefix@ | |
39 | ||
40 | host_alias = @host_alias@ | |
41 | target_alias = @target_alias@ | |
42 | program_transform_name = @program_transform_name@ | |
43 | bindir = @bindir@ | |
44 | libdir = @libdir@ | |
45 | tooldir = $(libdir)/$(target_alias) | |
46 | ||
47 | datadir = @datadir@ | |
ddc9cd0f | 48 | localedir = @localedir@ |
c906108c SS |
49 | mandir = @mandir@ |
50 | man1dir = $(mandir)/man1 | |
51 | man2dir = $(mandir)/man2 | |
52 | man3dir = $(mandir)/man3 | |
53 | man4dir = $(mandir)/man4 | |
54 | man5dir = $(mandir)/man5 | |
55 | man6dir = $(mandir)/man6 | |
56 | man7dir = $(mandir)/man7 | |
57 | man8dir = $(mandir)/man8 | |
58 | man9dir = $(mandir)/man9 | |
59 | infodir = @infodir@ | |
89a34d1b JM |
60 | datarootdir = @datarootdir@ |
61 | docdir = @docdir@ | |
62 | htmldir = @htmldir@ | |
63 | pdfdir = @pdfdir@ | |
c906108c SS |
64 | includedir = @includedir@ |
65 | ||
4869db5e RM |
66 | install_sh = @install_sh@ |
67 | ||
20e95c23 DJ |
68 | # This can be referenced by `LIBINTL' as computed by |
69 | # ZW_GNU_GETTEXT_SISTER_DIR. | |
c906108c SS |
70 | top_builddir = . |
71 | ||
72 | SHELL = @SHELL@ | |
73 | EXEEXT = @EXEEXT@ | |
74 | ||
7a292a7a | 75 | AWK = @AWK@ |
b3a90332 | 76 | LN_S = @LN_S@ |
7a292a7a | 77 | |
c906108c SS |
78 | INSTALL = @INSTALL@ |
79 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
4869db5e RM |
80 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
81 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
c906108c SS |
82 | INSTALL_DATA = @INSTALL_DATA@ |
83 | ||
72bdd927 AC |
84 | DESTDIR = |
85 | ||
c906108c SS |
86 | AR = @AR@ |
87 | AR_FLAGS = qv | |
88 | RANLIB = @RANLIB@ | |
89 | DLLTOOL = @DLLTOOL@ | |
90 | WINDRES = @WINDRES@ | |
b9f21955 | 91 | MIG = @MIG@ |
4869db5e | 92 | STRIP = @STRIP@ |
c906108c | 93 | |
ddc9cd0f AC |
94 | XGETTEXT = @XGETTEXT@ |
95 | GMSGFMT = @GMSGFMT@ | |
96 | MSGMERGE = msgmerge | |
97 | ||
98 | PACKAGE = @PACKAGE@ | |
99 | CATALOGS = @CATALOGS@ | |
100 | ||
c906108c SS |
101 | # If you are compiling with GCC, make sure that either 1) You have the |
102 | # fixed include files where GCC can reach them, or 2) You use the | |
103 | # -traditional flag. Otherwise the ioctl calls in inflow.c | |
104 | # will be incorrectly compiled. The "fixincludes" script in the gcc | |
105 | # distribution will fix your include files up. | |
8629c02c SM |
106 | CC = @CC@ |
107 | CXX = @CXX@ | |
108 | CXX_DIALECT = @CXX_DIALECT@ | |
c906108c | 109 | |
a417dc56 RW |
110 | # Dependency tracking information. |
111 | DEPMODE = @CCDEPMODE@ | |
112 | DEPDIR = @DEPDIR@ | |
113 | depcomp = $(SHELL) $(srcdir)/../depcomp | |
114 | ||
115 | # Note that these are overridden by GNU make-specific code below if | |
116 | # GNU make is used. The overrides implement dependency tracking. | |
0bcda685 | 117 | COMPILE.pre = $(CXX) $(CXX_DIALECT) |
a417dc56 RW |
118 | COMPILE.post = -c -o $@ |
119 | COMPILE = $(COMPILE.pre) $(INTERNAL_CFLAGS) $(COMPILE.post) | |
120 | POSTCOMPILE = @true | |
121 | ||
c906108c SS |
122 | # Directory containing source files. |
123 | srcdir = @srcdir@ | |
124 | VPATH = @srcdir@ | |
39f3de7c | 125 | top_srcdir = @top_srcdir@ |
c906108c | 126 | |
8629c02c | 127 | YACC = @YACC@ |
c906108c | 128 | |
3cf93817 | 129 | # This is used to rebuild ada-lex.c from ada-lex.l. If the program is |
6d3e79c6 AS |
130 | # not defined, but ada-lex.c is present, compilation will continue, |
131 | # possibly with a warning. | |
132 | FLEX = flex | |
133 | ||
c906108c SS |
134 | YLWRAP = $(srcdir)/../ylwrap |
135 | ||
136 | # where to find makeinfo, preferably one designed for texinfo-2 | |
5048e516 JK |
137 | MAKEINFO = @MAKEINFO@ |
138 | MAKEINFOFLAGS = @MAKEINFOFLAGS@ | |
139 | MAKEINFO_EXTRA_FLAGS = @MAKEINFO_EXTRA_FLAGS@ | |
140 | MAKEINFO_CMD = $(MAKEINFO) $(MAKEINFOFLAGS) $(MAKEINFO_EXTRA_FLAGS) | |
c906108c | 141 | |
5048e516 | 142 | MAKEHTML = $(MAKEINFO_CMD) --html |
2b831889 | 143 | MAKEHTMLFLAGS = |
085dd6e6 | 144 | |
c906108c SS |
145 | # Set this up with gcc if you have gnu ld and the loader will print out |
146 | # line numbers for undefined references. | |
8629c02c SM |
147 | #CC_LD = g++ -static |
148 | CC_LD = $(CXX) $(CXX_DIALECT) | |
c906108c SS |
149 | |
150 | # Where is our "include" directory? Typically $(srcdir)/../include. | |
151 | # This is essentially the header file directory for the library | |
152 | # routines in libiberty. | |
8629c02c | 153 | INCLUDE_DIR = $(srcdir)/../include |
c906108c SS |
154 | INCLUDE_CFLAGS = -I$(INCLUDE_DIR) |
155 | ||
156 | # Where is the "-liberty" library? Typically in ../libiberty. | |
157 | LIBIBERTY = ../libiberty/libiberty.a | |
158 | ||
c906108c SS |
159 | # Where is the BFD library? Typically in ../bfd. |
160 | BFD_DIR = ../bfd | |
161 | BFD = $(BFD_DIR)/libbfd.a | |
162 | BFD_SRC = $(srcdir)/$(BFD_DIR) | |
163 | BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC) | |
164 | ||
711a72d3 L |
165 | # This is where we get zlib from. zlibdir is -L../zlib and zlibinc is |
166 | # -I../zlib, unless we were configured with --with-system-zlib, in which | |
167 | # case both are empty. | |
168 | ZLIB = @zlibdir@ -lz | |
169 | ZLIBINC = @zlibinc@ | |
170 | ||
9b913628 TJB |
171 | # Where is the decnumber library? Typically in ../libdecnumber. |
172 | LIBDECNUMBER_DIR = ../libdecnumber | |
173 | LIBDECNUMBER = $(LIBDECNUMBER_DIR)/libdecnumber.a | |
174 | LIBDECNUMBER_SRC = $(srcdir)/$(LIBDECNUMBER_DIR) | |
175 | LIBDECNUMBER_CFLAGS = -I$(LIBDECNUMBER_DIR) -I$(LIBDECNUMBER_SRC) | |
176 | ||
c906108c SS |
177 | # Where is the READLINE library? Typically in ../readline. |
178 | READLINE_DIR = ../readline | |
c906108c | 179 | READLINE_SRC = $(srcdir)/$(READLINE_DIR) |
6a30b0a5 AS |
180 | READLINE = @READLINE@ |
181 | READLINE_DEPS = @READLINE_DEPS@ | |
182 | READLINE_CFLAGS = @READLINE_CFLAGS@ | |
c906108c | 183 | |
7fa2210b DJ |
184 | # Where is expat? This will be empty if expat was not available. |
185 | LIBEXPAT = @LIBEXPAT@ | |
186 | ||
608e2dbb TT |
187 | # Where is lzma? This will be empty if lzma was not available. |
188 | LIBLZMA = @LIBLZMA@ | |
189 | ||
393fd4c3 YQ |
190 | # Where is libbabeltrace? This will be empty if lbabeltrace was not |
191 | # available. | |
192 | LIBBABELTRACE = @LIBBABELTRACE@ | |
193 | ||
58bfce93 MM |
194 | # Where is libipt? This will be empty if libipt was not available. |
195 | LIBIPT = @LIBIPT@ | |
196 | ||
c906108c | 197 | WARN_CFLAGS = @WARN_CFLAGS@ |
104c1213 | 198 | WERROR_CFLAGS = @WERROR_CFLAGS@ |
d4f3574e SS |
199 | GDB_WARN_CFLAGS = $(WARN_CFLAGS) |
200 | GDB_WERROR_CFLAGS = $(WERROR_CFLAGS) | |
c906108c | 201 | |
9a35ccf7 JK |
202 | GDB_WARN_CFLAGS_NO_FORMAT = `echo " $(GDB_WARN_CFLAGS) " \ |
203 | | sed "s/ -Wformat-nonliteral / -Wno-format-nonliteral /g"` | |
94e36acc TT |
204 | GDB_WARN_CFLAGS_NO_DEFS = `echo " $(GDB_WARN_CFLAGS) " \ |
205 | | sed "s/ -Wold-style-definition / -Wno-old-style-definition /g"` | |
46e9880c | 206 | |
f6528abd JK |
207 | RDYNAMIC = @RDYNAMIC@ |
208 | ||
c906108c | 209 | # Where is the INTL library? Typically in ../intl. |
20e95c23 DJ |
210 | INTL = @LIBINTL@ |
211 | INTL_DEPS = @LIBINTL_DEP@ | |
212 | INTL_CFLAGS = @INCINTL@ | |
c906108c | 213 | |
016a3251 DD |
214 | # Where is the ICONV library? This will be empty if in libc or not available. |
215 | LIBICONV = @LIBICONV@ | |
216 | ||
a96d9b2e | 217 | # Did the user give us a --with-gdb-datadir option? |
11e6390e | 218 | GDB_DATADIR = @GDB_DATADIR@ |
a96d9b2e | 219 | |
9b557b58 DE |
220 | # Flags to pass to gdb when invoked with "make run". |
221 | GDBFLAGS = | |
222 | ||
e28b3332 | 223 | # Helper code from gnulib. |
c971b7fa PA |
224 | GNULIB_BUILDDIR = build-gnulib |
225 | LIBGNU = $(GNULIB_BUILDDIR)/import/libgnu.a | |
226 | INCGNU = -I$(srcdir)/gnulib/import -I$(GNULIB_BUILDDIR)/import | |
e28b3332 | 227 | |
aa11fd3f DJ |
228 | # Generated headers in the gnulib directory. These must be listed |
229 | # so that they are generated before other files are compiled. | |
c971b7fa | 230 | GNULIB_H = $(GNULIB_BUILDDIR)/import/string.h @GNULIB_STDINT_H@ |
aa11fd3f | 231 | |
d318976c FN |
232 | # |
233 | # CLI sub directory definitons | |
234 | # | |
235 | SUBDIR_CLI_OBS = \ | |
b593ecca SM |
236 | cli-cmds.o \ |
237 | cli-decode.o \ | |
f02df580 | 238 | cli-dump.o \ |
b593ecca | 239 | cli-interp.o \ |
0fac0b41 | 240 | cli-logging.o \ |
b593ecca SM |
241 | cli-script.o \ |
242 | cli-setshow.o \ | |
243 | cli-utils.o | |
244 | ||
d318976c | 245 | SUBDIR_CLI_SRCS = \ |
b593ecca SM |
246 | cli/cli-cmds.c \ |
247 | cli/cli-decode.c \ | |
f02df580 | 248 | cli/cli-dump.c \ |
b593ecca | 249 | cli/cli-interp.c \ |
0fac0b41 | 250 | cli/cli-logging.c \ |
b593ecca SM |
251 | cli/cli-script.c \ |
252 | cli/cli-setshow.c \ | |
253 | cli/cli-utils.c | |
254 | ||
d318976c | 255 | SUBDIR_CLI_DEPS = |
8629c02c SM |
256 | SUBDIR_CLI_LDFLAGS = |
257 | SUBDIR_CLI_CFLAGS = | |
d318976c | 258 | |
fb40c209 AC |
259 | # |
260 | # MI sub directory definitons | |
261 | # | |
262 | SUBDIR_MI_OBS = \ | |
b593ecca SM |
263 | mi-cmd-break.o \ |
264 | mi-cmd-catch.o \ | |
265 | mi-cmd-disas.o \ | |
266 | mi-cmd-env.o \ | |
267 | mi-cmd-file.o \ | |
268 | mi-cmd-info.o \ | |
269 | mi-cmd-stack.o \ | |
270 | mi-cmd-target.o \ | |
271 | mi-cmd-var.o \ | |
272 | mi-cmds.o \ | |
273 | mi-console.o \ | |
274 | mi-getopt.o \ | |
275 | mi-interp.o \ | |
276 | mi-main.o \ | |
277 | mi-out.o \ | |
278 | mi-parse.o \ | |
279 | mi-symbol-cmds.o | |
280 | ||
fb40c209 | 281 | SUBDIR_MI_SRCS = \ |
b593ecca SM |
282 | mi/mi-cmd-break.c \ |
283 | mi/mi-cmd-catch.c \ | |
284 | mi/mi-cmd-disas.c \ | |
285 | mi/mi-cmd-env.c \ | |
286 | mi/mi-cmd-file.c \ | |
287 | mi/mi-cmd-info.c \ | |
288 | mi/mi-cmd-stack.c \ | |
289 | mi/mi-cmd-target.c \ | |
290 | mi/mi-cmd-var.c \ | |
291 | mi/mi-cmds.c \ | |
292 | mi/mi-console.c \ | |
293 | mi/mi-getopt.c \ | |
294 | mi/mi-interp.c \ | |
295 | mi/mi-main.c \ | |
296 | mi/mi-out.c \ | |
297 | mi/mi-parse.c \ | |
298 | mi/mi-symbol-cmds.c | |
299 | ||
fb40c209 | 300 | SUBDIR_MI_DEPS = |
8629c02c SM |
301 | SUBDIR_MI_LDFLAGS = |
302 | SUBDIR_MI_CFLAGS = | |
fb40c209 | 303 | |
ed952ac5 AC |
304 | # |
305 | # TUI sub directory definitions | |
306 | # | |
307 | SUBDIR_TUI_OBS = \ | |
b593ecca | 308 | tui.o \ |
d7b2e967 AC |
309 | tui-command.o \ |
310 | tui-data.o \ | |
311 | tui-disasm.o \ | |
8574e74b | 312 | tui-file.o \ |
d7b2e967 | 313 | tui-hooks.o \ |
021e7609 | 314 | tui-interp.o \ |
d7b2e967 AC |
315 | tui-io.o \ |
316 | tui-layout.o \ | |
317 | tui-out.o \ | |
318 | tui-regs.o \ | |
319 | tui-source.o \ | |
320 | tui-stack.o \ | |
321 | tui-win.o \ | |
322 | tui-windata.o \ | |
323 | tui-wingeneral.o \ | |
b593ecca | 324 | tui-winsource.o |
311e6ab3 | 325 | |
ed952ac5 | 326 | SUBDIR_TUI_SRCS = \ |
b593ecca | 327 | tui/tui.c \ |
d7b2e967 AC |
328 | tui/tui-command.c \ |
329 | tui/tui-data.c \ | |
330 | tui/tui-disasm.c \ | |
331 | tui/tui-file.c \ | |
332 | tui/tui-hooks.c \ | |
021e7609 | 333 | tui/tui-interp.c \ |
d7b2e967 AC |
334 | tui/tui-io.c \ |
335 | tui/tui-layout.c \ | |
336 | tui/tui-out.c \ | |
337 | tui/tui-regs.c \ | |
338 | tui/tui-source.c \ | |
339 | tui/tui-stack.c \ | |
340 | tui/tui-win.c \ | |
341 | tui/tui-windata.c \ | |
342 | tui/tui-wingeneral.c \ | |
b593ecca | 343 | tui/tui-winsource.c |
311e6ab3 | 344 | |
ed952ac5 | 345 | SUBDIR_TUI_DEPS = |
8629c02c SM |
346 | SUBDIR_TUI_LDFLAGS = |
347 | SUBDIR_TUI_CFLAGS = -DTUI=1 | |
ed952ac5 | 348 | |
bb2ec1b3 TT |
349 | # |
350 | # GCC Compile support sub-directory definitions | |
351 | # | |
352 | SUBDIR_GCC_COMPILE_OBS = \ | |
b593ecca SM |
353 | compile.o \ |
354 | compile-c-support.o \ | |
355 | compile-c-symbols.o \ | |
356 | compile-c-types.o \ | |
357 | compile-loc2c.o \ | |
358 | compile-object-load.o \ | |
359 | compile-object-run.o | |
360 | ||
bb2ec1b3 TT |
361 | SUBDIR_GCC_COMPILE_SRCS = \ |
362 | compile/compile.c \ | |
b593ecca | 363 | compile/compile-c-support.c \ |
bb2ec1b3 TT |
364 | compile/compile-c-symbols.c \ |
365 | compile/compile-c-types.c \ | |
b593ecca | 366 | compile/compile-loc2c.c \ |
bb2ec1b3 TT |
367 | compile/compile-object-load.c \ |
368 | compile/compile-object-load.h \ | |
369 | compile/compile-object-run.c \ | |
b593ecca | 370 | compile/compile-object-run.h |
bb2ec1b3 | 371 | |
8629c02c | 372 | # |
ed3ef339 | 373 | # Guile sub directory definitons for guile support. |
8629c02c | 374 | # |
ed3ef339 DE |
375 | SUBDIR_GUILE_OBS = \ |
376 | guile.o \ | |
377 | scm-arch.o \ | |
378 | scm-auto-load.o \ | |
379 | scm-block.o \ | |
380 | scm-breakpoint.o \ | |
e698b8c4 | 381 | scm-cmd.o \ |
ed3ef339 DE |
382 | scm-disasm.o \ |
383 | scm-exception.o \ | |
384 | scm-frame.o \ | |
f01c1940 | 385 | scm-gsmob.o \ |
ed3ef339 DE |
386 | scm-iterator.o \ |
387 | scm-lazy-string.o \ | |
ed3ef339 | 388 | scm-math.o \ |
b593ecca | 389 | scm-objfile.o \ |
06eb1586 | 390 | scm-param.o \ |
ed3ef339 DE |
391 | scm-ports.o \ |
392 | scm-pretty-print.o \ | |
ded03782 | 393 | scm-progspace.o \ |
ed3ef339 | 394 | scm-safe-call.o \ |
ed3ef339 DE |
395 | scm-string.o \ |
396 | scm-symbol.o \ | |
397 | scm-symtab.o \ | |
398 | scm-type.o \ | |
399 | scm-utils.o \ | |
400 | scm-value.o | |
b593ecca | 401 | |
ed3ef339 DE |
402 | SUBDIR_GUILE_SRCS = \ |
403 | guile/guile.c \ | |
404 | guile/scm-arch.c \ | |
405 | guile/scm-auto-load.c \ | |
406 | guile/scm-block.c \ | |
407 | guile/scm-breakpoint.c \ | |
e698b8c4 | 408 | guile/scm-cmd.c \ |
ed3ef339 DE |
409 | guile/scm-disasm.c \ |
410 | guile/scm-exception.c \ | |
411 | guile/scm-frame.c \ | |
f01c1940 | 412 | guile/scm-gsmob.c \ |
ed3ef339 DE |
413 | guile/scm-iterator.c \ |
414 | guile/scm-lazy-string.c \ | |
ed3ef339 | 415 | guile/scm-math.c \ |
b593ecca | 416 | guile/scm-objfile.c \ |
06eb1586 | 417 | guile/scm-param.c \ |
ed3ef339 DE |
418 | guile/scm-ports.c \ |
419 | guile/scm-pretty-print.c \ | |
ded03782 | 420 | guile/scm-progspace.c \ |
ed3ef339 | 421 | guile/scm-safe-call.c \ |
ed3ef339 DE |
422 | guile/scm-string.c \ |
423 | guile/scm-symbol.c \ | |
424 | guile/scm-symtab.c \ | |
425 | guile/scm-type.c \ | |
426 | guile/scm-utils.c \ | |
427 | guile/scm-value.c | |
b593ecca | 428 | |
ed3ef339 | 429 | SUBDIR_GUILE_DEPS = |
8629c02c SM |
430 | SUBDIR_GUILE_LDFLAGS = |
431 | SUBDIR_GUILE_CFLAGS = | |
ed3ef339 | 432 | |
d57a3c85 TJB |
433 | # |
434 | # python sub directory definitons | |
435 | # | |
436 | SUBDIR_PYTHON_OBS = \ | |
bea883fd | 437 | py-arch.o \ |
8a1ea21f | 438 | py-auto-load.o \ |
f3e9a817 | 439 | py-block.o \ |
505500db | 440 | py-bpevent.o \ |
adc36818 | 441 | py-breakpoint.o \ |
5172aecb | 442 | py-cmd.o \ |
505500db SW |
443 | py-continueevent.o \ |
444 | py-event.o \ | |
445 | py-evtregistry.o \ | |
446 | py-evts.o \ | |
447 | py-exitedevent.o \ | |
cc72b2a2 | 448 | py-finishbreakpoint.o \ |
5172aecb | 449 | py-frame.o \ |
1e611234 | 450 | py-framefilter.o \ |
5172aecb | 451 | py-function.o \ |
037bbc8e | 452 | py-gdb-readline.o \ |
595939de | 453 | py-inferior.o \ |
162078c8 | 454 | py-infevents.o \ |
595939de | 455 | py-infthread.o \ |
be759fcf | 456 | py-lazy-string.o \ |
bc79de95 | 457 | py-linetable.o \ |
20c168b5 | 458 | py-newobjfileevent.o \ |
5172aecb | 459 | py-objfile.o \ |
d7b32ed3 | 460 | py-param.o \ |
5172aecb | 461 | py-prettyprint.o \ |
fa33c3cd | 462 | py-progspace.o \ |
4726b2d8 | 463 | py-record.o \ |
75c0bdf4 TW |
464 | py-record-btrace.o \ |
465 | py-record-full.o \ | |
505500db SW |
466 | py-signalevent.o \ |
467 | py-stopevent.o \ | |
f3e9a817 PM |
468 | py-symbol.o \ |
469 | py-symtab.o \ | |
505500db | 470 | py-threadevent.o \ |
5172aecb | 471 | py-type.o \ |
d11916aa | 472 | py-unwind.o \ |
5172aecb | 473 | py-utils.o \ |
e5250216 | 474 | py-value.o \ |
b593ecca SM |
475 | py-varobj.o \ |
476 | py-xmethods.o \ | |
477 | python.o | |
505500db | 478 | |
d57a3c85 | 479 | SUBDIR_PYTHON_SRCS = \ |
bea883fd | 480 | python/py-arch.c \ |
8a1ea21f | 481 | python/py-auto-load.c \ |
f3e9a817 | 482 | python/py-block.c \ |
505500db | 483 | python/py-bpevent.c \ |
adc36818 | 484 | python/py-breakpoint.c \ |
5172aecb | 485 | python/py-cmd.c \ |
505500db SW |
486 | python/py-continueevent.c \ |
487 | python/py-event.c \ | |
488 | python/py-evtregistry.c \ | |
489 | python/py-evts.c \ | |
490 | python/py-exitedevent.c \ | |
cc72b2a2 | 491 | python/py-finishbreakpoint.c \ |
5172aecb | 492 | python/py-frame.c \ |
1e611234 | 493 | python/py-framefilter.c \ |
5172aecb | 494 | python/py-function.c \ |
037bbc8e | 495 | python/py-gdb-readline.c \ |
595939de | 496 | python/py-inferior.c \ |
162078c8 | 497 | python/py-infevents.c \ |
595939de | 498 | python/py-infthread.c \ |
be759fcf | 499 | python/py-lazy-string.c \ |
bc79de95 | 500 | python/py-linetable.c \ |
20c168b5 | 501 | python/py-newobjfileevent.c \ |
5172aecb | 502 | python/py-objfile.c \ |
d7b32ed3 | 503 | python/py-param.c \ |
5172aecb | 504 | python/py-prettyprint.c \ |
fa33c3cd | 505 | python/py-progspace.c \ |
4726b2d8 | 506 | python/py-record.c \ |
75c0bdf4 TW |
507 | python/py-record-btrace.c \ |
508 | python/py-record-full.c \ | |
505500db SW |
509 | python/py-signalevent.c \ |
510 | python/py-stopevent.c \ | |
f3e9a817 PM |
511 | python/py-symbol.c \ |
512 | python/py-symtab.c \ | |
505500db | 513 | python/py-threadevent.c \ |
5172aecb | 514 | python/py-type.c \ |
d11916aa | 515 | python/py-unwind.c \ |
5172aecb | 516 | python/py-utils.c \ |
e5250216 | 517 | python/py-value.c \ |
b593ecca SM |
518 | python/py-varobj.c \ |
519 | python/py-xmethods.c \ | |
520 | python/python.c | |
521 | ||
d57a3c85 | 522 | SUBDIR_PYTHON_DEPS = |
8629c02c SM |
523 | SUBDIR_PYTHON_LDFLAGS = |
524 | SUBDIR_PYTHON_CFLAGS = | |
d57a3c85 | 525 | |
07e253aa | 526 | SUBDIR_UNITTESTS_SRCS = \ |
9c541725 | 527 | unittests/function-view-selftests.c \ |
436252de | 528 | unittests/offset-type-selftests.c \ |
26fcd539 | 529 | unittests/optional-selftests.c \ |
9bcb1f16 PA |
530 | unittests/ptid-selftests.c \ |
531 | unittests/scoped_restore-selftests.c | |
07e253aa PA |
532 | |
533 | SUBDIR_UNITTESTS_OBS = \ | |
9c541725 | 534 | function-view-selftests.o \ |
436252de | 535 | offset-type-selftests.o \ |
26fcd539 | 536 | optional-selftests.o \ |
9bcb1f16 PA |
537 | ptid-selftests.o \ |
538 | scoped_restore-selftests.o | |
07e253aa | 539 | |
c906108c SS |
540 | # Opcodes currently live in one of two places. Either they are in the |
541 | # opcode library, typically ../opcodes, or they are in a header file | |
542 | # in INCLUDE_DIR. | |
543 | # Where is the "-lopcodes" library, with (some of) the opcode tables and | |
544 | # disassemblers? | |
460e6ec3 AC |
545 | OPCODES_DIR = ../opcodes |
546 | OPCODES_SRC = $(srcdir)/$(OPCODES_DIR) | |
547 | OPCODES = $(OPCODES_DIR)/libopcodes.a | |
c906108c SS |
548 | # Where are the other opcode tables which only have header file |
549 | # versions? | |
550 | OP_INCLUDE = $(INCLUDE_DIR)/opcode | |
64e3cf3d MF |
551 | # Some source files like to use #include "opcodes/file.h" |
552 | OPCODES_CFLAGS = -I$(OP_INCLUDE) -I$(OPCODES_SRC)/.. | |
c906108c SS |
553 | |
554 | # The simulator is usually nonexistent; targets that include one | |
555 | # should set this to list all the .o or .a files to be linked in. | |
9b624dbe | 556 | SIM = @SIM@ |
c906108c | 557 | |
cd0fc7c3 SS |
558 | WIN32LIBS = @WIN32LIBS@ |
559 | ||
5062cc19 KS |
560 | # Tcl et al cflags and libraries |
561 | TCL = @TCL_LIBRARY@ | |
562 | TCL_CFLAGS = @TCL_INCLUDE@ | |
3fc11d3e JM |
563 | GDBTKLIBS = @GDBTKLIBS@ |
564 | # Extra flags that the GDBTK files need: | |
565 | GDBTK_CFLAGS = @GDBTK_CFLAGS@ | |
566 | ||
5062cc19 KS |
567 | TK = @TK_LIBRARY@ |
568 | TK_CFLAGS = @TK_INCLUDE@ | |
3fc11d3e | 569 | |
3fc11d3e JM |
570 | X11_CFLAGS = @TK_XINCLUDES@ |
571 | X11_LDFLAGS = | |
572 | X11_LIBS = | |
573 | ||
574 | WIN32LDAPP = @WIN32LDAPP@ | |
575 | ||
3fc11d3e JM |
576 | LIBGUI = @LIBGUI@ |
577 | GUI_CFLAGS_X = @GUI_CFLAGS_X@ | |
50cc587f | 578 | IDE_CFLAGS = $(GUI_CFLAGS_X) $(IDE_CFLAGS_X) |
4226a5a5 | 579 | |
5062cc19 KS |
580 | ALL_TCL_CFLAGS = $(TCL_CFLAGS) $(TK_CFLAGS) |
581 | ||
f0b743a9 KS |
582 | # The version of gdbtk we're building. This should be kept |
583 | # in sync with GDBTK_VERSION and friends in gdbtk.h. | |
584 | GDBTK_VERSION = 1.0 | |
585 | GDBTK_LIBRARY = $(datadir)/insight$(GDBTK_VERSION) | |
586 | ||
d1c3b63a KS |
587 | # Gdbtk requires an absolute path to the source directory or |
588 | # the testsuite won't run properly. | |
589 | GDBTK_SRC_DIR = @GDBTK_SRC_DIR@ | |
590 | ||
4226a5a5 | 591 | SUBDIR_GDBTK_OBS = \ |
b593ecca SM |
592 | gdbtk.o \ |
593 | gdbtk-bp.o \ | |
594 | gdbtk-cmds.o \ | |
595 | gdbtk-hooks.o \ | |
596 | gdbtk-interp.o \ | |
597 | gdbtk-register.o \ | |
598 | gdbtk-stack.o \ | |
599 | gdbtk-varobj.o \ | |
600 | gdbtk-wrapper.o | |
601 | ||
4226a5a5 | 602 | SUBDIR_GDBTK_SRCS = \ |
b593ecca SM |
603 | gdbtk/generic/gdbtk.c \ |
604 | gdbtk/generic/gdbtk-bp.c \ | |
605 | gdbtk/generic/gdbtk-cmds.c \ | |
606 | gdbtk/generic/gdbtk-hooks.c \ | |
b9fb98bd | 607 | gdbtk/generic/gdbtk-interp.c \ |
b593ecca SM |
608 | gdbtk/generic/gdbtk-main.c \ |
609 | gdbtk/generic/gdbtk-register.c \ | |
610 | gdbtk/generic/gdbtk-stack.c \ | |
611 | gdbtk/generic/gdbtk-varobj.c \ | |
612 | gdbtk/generic/gdbtk-wrapper.c | |
613 | ||
5062cc19 | 614 | SUBDIR_GDBTK_DEPS = $(LIBGUI) $(TCL_DEPS) $(TK_DEPS) |
8629c02c SM |
615 | SUBDIR_GDBTK_LDFLAGS = |
616 | SUBDIR_GDBTK_CFLAGS = -DGDBTK | |
c906108c | 617 | |
8629c02c SM |
618 | CONFIG_OBS = @CONFIG_OBS@ |
619 | CONFIG_SRCS = @CONFIG_SRCS@ | |
620 | CONFIG_DEPS = @CONFIG_DEPS@ | |
fb40c209 | 621 | CONFIG_LDFLAGS = @CONFIG_LDFLAGS@ |
8629c02c SM |
622 | ENABLE_CFLAGS = @ENABLE_CFLAGS@ |
623 | CONFIG_ALL = @CONFIG_ALL@ | |
624 | CONFIG_CLEAN = @CONFIG_CLEAN@ | |
e56ac5c3 AC |
625 | CONFIG_INSTALL = @CONFIG_INSTALL@ |
626 | CONFIG_UNINSTALL = @CONFIG_UNINSTALL@ | |
b292c783 | 627 | HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@ |
c906108c SS |
628 | |
629 | # -I. for config files. | |
f77b92bf | 630 | # -I$(srcdir) for gdb internal headers. |
c906108c SS |
631 | # -I$(srcdir)/config for more generic config files. |
632 | ||
633 | # It is also possible that you will need to add -I/usr/include/sys if | |
634 | # your system doesn't have fcntl.h in /usr/include (which is where it | |
635 | # should be according to Posix). | |
636 | DEFS = @DEFS@ | |
2aecd87f DE |
637 | GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/common -I$(srcdir)/config \ |
638 | -DLOCALEDIR="\"$(localedir)\"" $(DEFS) | |
c906108c | 639 | |
a4ce5b0d UW |
640 | # MH_CFLAGS, if defined, has host-dependent CFLAGS from the config directory. |
641 | GLOBAL_CFLAGS = $(MH_CFLAGS) | |
d28f9cdf DJ |
642 | |
643 | PROFILE_CFLAGS = @PROFILE_CFLAGS@ | |
c906108c | 644 | |
a994041d PA |
645 | # These are specifically reserved for setting from the command line |
646 | # when running make. I.E.: "make CFLAGS=-Wmissing-prototypes". | |
1decb323 | 647 | CFLAGS = @CFLAGS@ |
a994041d | 648 | CXXFLAGS = @CXXFLAGS@ |
c906108c | 649 | |
ac534cba JB |
650 | # Set by configure, for e.g. expat. Python installations are such that |
651 | # C headers are included using their basename (for example, we #include | |
652 | # <Python.h> rather than, say, <python/Python.h>). Since the file names | |
653 | # are sometimes a little generic, we think that the risk of collision | |
654 | # with other header files is high. If that happens, we try to mitigate | |
655 | # a bit the consequences by putting the Python includes last in the list. | |
ed3ef339 | 656 | INTERNAL_CPPFLAGS = @CPPFLAGS@ @GUILE_CPPFLAGS@ @PYTHON_CPPFLAGS@ |
d3f4f91a | 657 | |
c906108c | 658 | # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros. |
46e9880c | 659 | INTERNAL_CFLAGS_BASE = \ |
cf6de44d | 660 | $(CXXFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \ |
711a72d3 | 661 | $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) $(ZLIBINC) \ |
9b913628 | 662 | $(BFD_CFLAGS) $(INCLUDE_CFLAGS) $(LIBDECNUMBER_CFLAGS) \ |
fc3b640d | 663 | $(INTL_CFLAGS) $(INCGNU) $(ENABLE_CFLAGS) $(INTERNAL_CPPFLAGS) |
46e9880c | 664 | INTERNAL_WARN_CFLAGS = $(INTERNAL_CFLAGS_BASE) $(GDB_WARN_CFLAGS) |
d4f3574e | 665 | INTERNAL_CFLAGS = $(INTERNAL_WARN_CFLAGS) $(GDB_WERROR_CFLAGS) |
c906108c SS |
666 | |
667 | # LDFLAGS is specifically reserved for setting from the command line | |
668 | # when running make. | |
697f7479 | 669 | LDFLAGS = @LDFLAGS@ |
c906108c SS |
670 | |
671 | # Profiling options need to go here to work. | |
672 | # I think it's perfectly reasonable for a user to set -pg in CFLAGS | |
673 | # and have it work; that's why CFLAGS is here. | |
d28f9cdf | 674 | # PROFILE_CFLAGS is _not_ included, however, because we use monstartup. |
a994041d | 675 | INTERNAL_LDFLAGS = \ |
cf6de44d | 676 | $(CXXFLAGS) $(GLOBAL_CFLAGS) $(MH_LDFLAGS) \ |
a994041d | 677 | $(LDFLAGS) $(CONFIG_LDFLAGS) |
c906108c | 678 | |
c906108c SS |
679 | # If your system is missing alloca(), or, more likely, it's there but |
680 | # it doesn't work, then refer to libiberty. | |
681 | ||
682 | # Libraries and corresponding dependencies for compiling gdb. | |
36238dbc | 683 | # XM_CLIBS, defined in *config files, have host-dependent libs. |
c906108c | 684 | # LIBIBERTY appears twice on purpose. |
711a72d3 | 685 | CLIBS = $(SIM) $(READLINE) $(OPCODES) $(BFD) $(ZLIB) $(INTL) $(LIBIBERTY) $(LIBDECNUMBER) \ |
ed3ef339 DE |
686 | $(XM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) \ |
687 | @LIBS@ @GUILE_LIBS@ @PYTHON_LIBS@ \ | |
58bfce93 | 688 | $(LIBEXPAT) $(LIBLZMA) $(LIBBABELTRACE) $(LIBIPT) \ |
016a3251 | 689 | $(LIBIBERTY) $(WIN32LIBS) $(LIBGNU) $(LIBICONV) |
f0323ca0 | 690 | CDEPS = $(XM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) \ |
e637a4f5 | 691 | $(OPCODES) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS) $(LIBGNU) |
c906108c | 692 | |
f77b92bf MK |
693 | ADD_FILES = $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES) |
694 | ADD_DEPS = $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES) | |
c906108c | 695 | |
8629c02c | 696 | DIST = gdb |
c906108c | 697 | |
8629c02c SM |
698 | LINT = /usr/5bin/lint |
699 | LINTFLAGS = $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \ | |
9175c9a3 | 700 | $(BFD_CFLAGS) $(INCLUDE_CFLAGS) \ |
5565b556 | 701 | $(INTL_CFLAGS) |
c906108c | 702 | |
eb2dec72 | 703 | RUNTEST = runtest |
8629c02c | 704 | RUNTESTFLAGS = |
c906108c | 705 | |
108546a0 | 706 | # XML files to build in to GDB. |
b593ecca SM |
707 | XMLFILES = \ |
708 | $(srcdir)/features/btrace.dtd \ | |
709 | $(srcdir)/features/btrace-conf.dtd \ | |
710 | $(srcdir)/features/gdb-target.dtd \ | |
2268b414 | 711 | $(srcdir)/features/library-list.dtd \ |
4d1eb6b4 | 712 | $(srcdir)/features/library-list-aix.dtd \ |
b593ecca SM |
713 | $(srcdir)/features/library-list-svr4.dtd \ |
714 | $(srcdir)/features/osdata.dtd \ | |
715 | $(srcdir)/features/threads.dtd \ | |
716 | $(srcdir)/features/traceframe-info.dtd \ | |
717 | $(srcdir)/features/xinclude.dtd | |
108546a0 | 718 | |
c906108c SS |
719 | # This is ser-unix.o for any system which supports a v7/BSD/SYSV/POSIX |
720 | # interface to the serial port. Hopefully if get ported to OS/2, VMS, | |
721 | # etc., then there will be (as part of the C library or perhaps as | |
722 | # part of libiberty) a POSIX interface. But at least for now the | |
723 | # host-dependent makefile fragment might need to use something else | |
724 | # besides ser-unix.o | |
6688f7e9 | 725 | SER_HARDWIRE = @SER_HARDWIRE@ |
c906108c SS |
726 | |
727 | # The `remote' debugging target is supported for most architectures, | |
728 | # but not all (e.g. 960) | |
b593ecca SM |
729 | REMOTE_OBS = \ |
730 | ax-gdb.o \ | |
731 | ax-general.o \ | |
732 | ctf.o \ | |
733 | dcache.o \ | |
734 | remote.o \ | |
735 | remote-fileio.o \ | |
736 | remote-notif.o \ | |
737 | tracefile.o \ | |
738 | tracefile-tfile.o \ | |
739 | tracepoint.o | |
c906108c SS |
740 | |
741 | # This is remote-sim.o if a simulator is to be linked in. | |
9b624dbe | 742 | SIM_OBS = @SIM_OBS@ |
c906108c | 743 | |
a4ce5b0d UW |
744 | # Target-dependent object files. |
745 | TARGET_OBS = @TARGET_OBS@ | |
746 | ||
c0993dbe UW |
747 | # All target-dependent objects files that require 64-bit CORE_ADDR |
748 | # (used with --enable-targets=all --enable-64-bit-bfd). | |
749 | ALL_64_TARGET_OBS = \ | |
b593ecca SM |
750 | aarch64-insn.o \ |
751 | aarch64-linux-tdep.o \ | |
752 | aarch64-newlib-tdep.o \ | |
753 | aarch64-tdep.o \ | |
03b62bbb | 754 | alpha-bsd-tdep.o \ |
b593ecca SM |
755 | alpha-linux-tdep.o \ |
756 | alpha-mdebug-tdep.o \ | |
03b62bbb SM |
757 | alpha-nbsd-tdep.o \ |
758 | alpha-obsd-tdep.o \ | |
b593ecca | 759 | alpha-tdep.o \ |
b593ecca SM |
760 | amd64-darwin-tdep.o \ |
761 | amd64-dicos-tdep.o \ | |
03b62bbb | 762 | amd64-fbsd-tdep.o \ |
b593ecca | 763 | amd64-linux-tdep.o \ |
03b62bbb SM |
764 | amd64-nbsd-tdep.o \ |
765 | amd64-obsd-tdep.o \ | |
b593ecca SM |
766 | amd64-sol2-tdep.o \ |
767 | amd64-tdep.o \ | |
768 | amd64-windows-tdep.o \ | |
b593ecca SM |
769 | ia64-linux-tdep.o \ |
770 | ia64-tdep.o \ | |
771 | ia64-vms-tdep.o \ | |
03b62bbb SM |
772 | mips64-obsd-tdep.o \ |
773 | sparc64-fbsd-tdep.o \ | |
b593ecca | 774 | sparc64-linux-tdep.o \ |
03b62bbb SM |
775 | sparc64-nbsd-tdep.o \ |
776 | sparc64-obsd-tdep.o \ | |
b593ecca | 777 | sparc64-sol2-tdep.o \ |
03b62bbb | 778 | sparc64-tdep.o |
c0993dbe UW |
779 | |
780 | # All other target-dependent objects files (used with --enable-targets=all). | |
781 | ALL_TARGET_OBS = \ | |
ad0a504f | 782 | arc-tdep.o \ |
b593ecca | 783 | arm.o \ |
03b62bbb | 784 | arm-bsd-tdep.o \ |
b593ecca SM |
785 | arm-get-next-pcs.o \ |
786 | arm-linux.o \ | |
787 | arm-linux-tdep.o \ | |
03b62bbb SM |
788 | arm-nbsd-tdep.o \ |
789 | arm-obsd-tdep.o \ | |
b593ecca SM |
790 | arm-symbian-tdep.o \ |
791 | arm-tdep.o \ | |
792 | arm-wince-tdep.o \ | |
d0c678e6 | 793 | avr-tdep.o \ |
b593ecca SM |
794 | bfin-linux-tdep.o \ |
795 | bfin-tdep.o \ | |
796 | bsd-uthread.o \ | |
797 | cris-linux-tdep.o \ | |
798 | cris-tdep.o \ | |
4c1d2973 | 799 | dicos-tdep.o \ |
a904c024 | 800 | fbsd-tdep.o \ |
b593ecca SM |
801 | frv-linux-tdep.o \ |
802 | frv-tdep.o \ | |
49d45b20 | 803 | ft32-tdep.o \ |
b593ecca | 804 | glibc-tdep.o \ |
d0c678e6 | 805 | h8300-tdep.o \ |
03b62bbb | 806 | hppa-bsd-tdep.o \ |
b593ecca | 807 | hppa-linux-tdep.o \ |
03b62bbb SM |
808 | hppa-nbsd-tdep.o \ |
809 | hppa-obsd-tdep.o \ | |
b593ecca | 810 | hppa-tdep.o \ |
03b62bbb | 811 | i386-bsd-tdep.o \ |
b593ecca SM |
812 | i386-cygwin-tdep.o \ |
813 | i386-darwin-tdep.o \ | |
814 | i386-dicos-tdep.o \ | |
03b62bbb SM |
815 | i386-fbsd-tdep.o \ |
816 | i386-gnu-tdep.o \ | |
8f10c932 | 817 | i386-go32-tdep.o \ |
b593ecca | 818 | i386-linux-tdep.o \ |
03b62bbb | 819 | i386-nbsd-tdep.o \ |
b593ecca | 820 | i386-nto-tdep.o \ |
03b62bbb | 821 | i386-obsd-tdep.o \ |
b593ecca SM |
822 | i386-sol2-tdep.o \ |
823 | i386-tdep.o \ | |
b593ecca | 824 | i387-tdep.o \ |
d0c678e6 | 825 | iq2000-tdep.o \ |
b593ecca | 826 | linux-record.o \ |
4aa995e1 | 827 | linux-tdep.o \ |
c28c63d8 | 828 | lm32-tdep.o \ |
d0c678e6 | 829 | m32c-tdep.o \ |
b593ecca SM |
830 | m32r-linux-tdep.o \ |
831 | m32r-tdep.o \ | |
d0c678e6 | 832 | m68hc11-tdep.o \ |
03b62bbb SM |
833 | m68k-bsd-tdep.o \ |
834 | m68k-linux-tdep.o \ | |
b593ecca | 835 | m68k-tdep.o \ |
d0c678e6 UW |
836 | m88k-tdep.o \ |
837 | mep-tdep.o \ | |
b593ecca SM |
838 | microblaze-linux-tdep.o \ |
839 | microblaze-tdep.o \ | |
387360da | 840 | mips-fbsd-tdep.o \ |
b593ecca | 841 | mips-linux-tdep.o \ |
03b62bbb | 842 | mips-nbsd-tdep.o \ |
b593ecca SM |
843 | mips-sde-tdep.o \ |
844 | mips-tdep.o \ | |
b593ecca SM |
845 | mn10300-linux-tdep.o \ |
846 | mn10300-tdep.o \ | |
6d10c194 | 847 | moxie-tdep.o \ |
586cf749 | 848 | msp430-tdep.o \ |
d0c678e6 | 849 | mt-tdep.o \ |
b593ecca | 850 | nbsd-tdep.o \ |
a28d8e50 | 851 | nds32-tdep.o \ |
b593ecca SM |
852 | nios2-linux-tdep.o \ |
853 | nios2-tdep.o \ | |
d0c678e6 | 854 | nto-tdep.o \ |
b593ecca | 855 | obsd-tdep.o \ |
03b62bbb | 856 | ppc-fbsd-tdep.o \ |
b593ecca | 857 | ppc-linux-tdep.o \ |
03b62bbb SM |
858 | ppc-nbsd-tdep.o \ |
859 | ppc-obsd-tdep.o \ | |
b593ecca SM |
860 | ppc-ravenscar-thread.o \ |
861 | ppc-sysv-tdep.o \ | |
862 | ppc64-tdep.o \ | |
b593ecca SM |
863 | ravenscar-thread.o \ |
864 | rl78-tdep.o \ | |
865 | rs6000-aix-tdep.o \ | |
d5367fe1 | 866 | rs6000-lynx178-tdep.o \ |
b593ecca | 867 | rs6000-tdep.o \ |
e5586183 | 868 | rx-tdep.o \ |
0e5fae36 | 869 | s390-linux-tdep.o \ |
d0c678e6 | 870 | score-tdep.o \ |
b593ecca | 871 | sh-linux-tdep.o \ |
03b62bbb | 872 | sh-nbsd-tdep.o \ |
b593ecca SM |
873 | sh-tdep.o \ |
874 | sh64-tdep.o \ | |
d0c678e6 | 875 | sol2-tdep.o \ |
b593ecca SM |
876 | solib-aix.o \ |
877 | solib-darwin.o \ | |
878 | solib-dsbt.o \ | |
879 | solib-frv.o \ | |
880 | solib-spu.o \ | |
881 | solib-svr4.o \ | |
882 | sparc-linux-tdep.o \ | |
03b62bbb SM |
883 | sparc-nbsd-tdep.o \ |
884 | sparc-obsd-tdep.o \ | |
b593ecca SM |
885 | sparc-ravenscar-thread.o \ |
886 | sparc-sol2-tdep.o \ | |
887 | sparc-tdep.o \ | |
b593ecca SM |
888 | spu-multiarch.o \ |
889 | spu-tdep.o \ | |
d0c678e6 | 890 | symfile-mem.o \ |
b593ecca SM |
891 | tic6x-linux-tdep.o \ |
892 | tic6x-tdep.o \ | |
893 | tilegx-linux-tdep.o \ | |
894 | tilegx-tdep.o \ | |
895 | v850-tdep.o \ | |
03b62bbb | 896 | vax-nbsd-tdep.o \ |
b593ecca | 897 | vax-tdep.o \ |
b7f6bf22 | 898 | windows-tdep.o \ |
b593ecca SM |
899 | xcoffread.o \ |
900 | xstormy16-tdep.o \ | |
901 | xtensa-config.o \ | |
902 | xtensa-linux-tdep.o \ | |
903 | xtensa-tdep.o | |
d0c678e6 | 904 | |
a4ce5b0d | 905 | # Host-dependent makefile fragment comes in here. |
c906108c | 906 | @host_makefile_frag@ |
a4ce5b0d | 907 | # End of host-dependent makefile fragment |
c906108c SS |
908 | |
909 | FLAGS_TO_PASS = \ | |
910 | "prefix=$(prefix)" \ | |
911 | "exec_prefix=$(exec_prefix)" \ | |
6688f7e9 | 912 | "infodir=$(infodir)" \ |
89a34d1b JM |
913 | "datarootdir=$(datarootdir)" \ |
914 | "docdir=$(docdir)" \ | |
915 | "htmldir=$(htmldir)" \ | |
9453113a | 916 | "pdfdir=$(pdfdir)" \ |
36af0b35 L |
917 | "libdir=$(libdir)" \ |
918 | "mandir=$(mandir)" \ | |
919 | "datadir=$(datadir)" \ | |
920 | "includedir=$(includedir)" \ | |
c906108c | 921 | "against=$(against)" \ |
c938e9b0 | 922 | "DESTDIR=$(DESTDIR)" \ |
c906108c SS |
923 | "AR=$(AR)" \ |
924 | "AR_FLAGS=$(AR_FLAGS)" \ | |
925 | "CC=$(CC)" \ | |
926 | "CFLAGS=$(CFLAGS)" \ | |
c906108c | 927 | "CXX=$(CXX)" \ |
0bcda685 | 928 | "CXX_DIALECT=$(CXX_DIALECT)" \ |
c906108c SS |
929 | "CXXFLAGS=$(CXXFLAGS)" \ |
930 | "DLLTOOL=$(DLLTOOL)" \ | |
ed363b1b | 931 | "LDFLAGS=$(LDFLAGS)" \ |
c906108c SS |
932 | "RANLIB=$(RANLIB)" \ |
933 | "MAKEINFO=$(MAKEINFO)" \ | |
5048e516 JK |
934 | "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \ |
935 | "MAKEINFO_EXTRA_FLAGS=$(MAKEINFO_EXTRA_FLAGS)" \ | |
085dd6e6 JM |
936 | "MAKEHTML=$(MAKEHTML)" \ |
937 | "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \ | |
c906108c SS |
938 | "INSTALL=$(INSTALL)" \ |
939 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
4869db5e | 940 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ |
c906108c SS |
941 | "INSTALL_DATA=$(INSTALL_DATA)" \ |
942 | "RUNTEST=$(RUNTEST)" \ | |
943 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" | |
944 | ||
945 | # Flags that we pass when building the testsuite. | |
946 | ||
947 | # empty for native, $(target_alias)/ for cross | |
948 | target_subdir = @target_subdir@ | |
949 | ||
950 | CC_FOR_TARGET = ` \ | |
951 | if [ -f $${rootme}/../gcc/xgcc ] ; then \ | |
952 | if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \ | |
953 | echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/ -idirafter $${rootme}/$(target_subdir)newlib/targ-include -idirafter $${rootsrc}/../$(target_subdir)newlib/libc/include -nostdinc -B$${rootme}/../$(target_subdir)newlib/; \ | |
954 | else \ | |
955 | echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \ | |
956 | fi; \ | |
957 | else \ | |
958 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ | |
959 | echo $(CC); \ | |
960 | else \ | |
961 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ | |
962 | fi; \ | |
963 | fi` | |
964 | ||
c906108c | 965 | CXX_FOR_TARGET = ` \ |
3bc3d82a | 966 | if [ -f $${rootme}/../gcc/xg++ ] ; then \ |
c906108c | 967 | if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \ |
3bc3d82a | 968 | echo $${rootme}/../gcc/xg++ -B$${rootme}/../gcc/ -idirafter $${rootme}/$(target_subdir)newlib/targ-include -idirafter $${rootsrc}/../$(target_subdir)newlib/libc/include -nostdinc -B$${rootme}/../$(target_subdir)newlib/; \ |
c906108c | 969 | else \ |
3bc3d82a | 970 | echo $${rootme}/../gcc/xg++ -B$${rootme}/../gcc/; \ |
c906108c SS |
971 | fi; \ |
972 | else \ | |
973 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ | |
974 | echo $(CXX); \ | |
975 | else \ | |
3bc3d82a | 976 | t='$(program_transform_name)'; echo g++ | sed -e '' $$t; \ |
c906108c SS |
977 | fi; \ |
978 | fi` | |
979 | ||
c906108c SS |
980 | # The use of $$(x_FOR_TARGET) reduces the command line length by not |
981 | # duplicating the lengthy definition. | |
982 | TARGET_FLAGS_TO_PASS = \ | |
983 | "prefix=$(prefix)" \ | |
984 | "exec_prefix=$(exec_prefix)" \ | |
985 | "against=$(against)" \ | |
986 | 'CC=$$(CC_FOR_TARGET)' \ | |
987 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ | |
988 | "CFLAGS=$(CFLAGS)" \ | |
c906108c SS |
989 | 'CXX=$$(CXX_FOR_TARGET)' \ |
990 | "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ | |
991 | "CXXFLAGS=$(CXXFLAGS)" \ | |
992 | "INSTALL=$(INSTALL)" \ | |
993 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
994 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
995 | "MAKEINFO=$(MAKEINFO)" \ | |
085dd6e6 | 996 | "MAKEHTML=$(MAKEHTML)" \ |
c906108c | 997 | "RUNTEST=$(RUNTEST)" \ |
59dd3af6 | 998 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ |
6d03af93 PA |
999 | "FORCE_PARALLEL=$(FORCE_PARALLEL)" \ |
1000 | "TESTS=$(TESTS)" | |
c906108c SS |
1001 | |
1002 | # All source files that go into linking GDB. | |
1003 | # Links made at configuration time should not be specified here, since | |
1004 | # SFILES is used in building the distribution archive. | |
1005 | ||
b593ecca SM |
1006 | SFILES = \ |
1007 | ada-exp.y \ | |
1008 | ada-lang.c \ | |
1009 | ada-tasks.c \ | |
1010 | ada-typeprint.c \ | |
1011 | ada-valprint.c \ | |
181875a4 | 1012 | ada-varobj.c \ |
b593ecca | 1013 | addrmap.c \ |
d1feda86 | 1014 | agent.c \ |
b593ecca SM |
1015 | annotate.c \ |
1016 | arch-utils.c \ | |
1017 | auto-load.c \ | |
1018 | auxv.c \ | |
1019 | ax-gdb.c \ | |
1020 | ax-general.c \ | |
bba2d28d AC |
1021 | bcache.c \ |
1022 | bfd-target.c \ | |
b593ecca SM |
1023 | block.c \ |
1024 | blockframe.c \ | |
1025 | break-catch-sig.c \ | |
10304ef3 | 1026 | break-catch-syscall.c \ |
b593ecca SM |
1027 | break-catch-throw.c \ |
1028 | breakpoint.c \ | |
1029 | btrace.c \ | |
1030 | build-id.c \ | |
1031 | buildsym.c \ | |
1032 | c-exp.y \ | |
1033 | c-lang.c \ | |
1034 | c-typeprint.c \ | |
1035 | c-valprint.c \ | |
1036 | c-varobj.c \ | |
1037 | charset.c \ | |
1038 | cli-out.c \ | |
1039 | coff-pe-read.c \ | |
1040 | coffread.c \ | |
1041 | complaints.c \ | |
1042 | completer.c \ | |
1043 | continuations.c \ | |
1044 | copying.c \ | |
1045 | corefile.c \ | |
1046 | corelow.c \ | |
1047 | cp-abi.c \ | |
847f5ce8 | 1048 | cp-name-parser.y \ |
b593ecca SM |
1049 | cp-namespace.c \ |
1050 | cp-support.c \ | |
1051 | cp-valprint.c \ | |
1052 | ctf.c \ | |
1053 | d-exp.y \ | |
1054 | d-lang.c \ | |
1055 | d-namespace.c \ | |
1056 | d-valprint.c \ | |
1057 | dbxread.c \ | |
1058 | demangle.c \ | |
1059 | dfp.c \ | |
1060 | dictionary.c \ | |
1061 | disasm.c \ | |
79843d45 | 1062 | disasm-selftests.c \ |
b593ecca SM |
1063 | doublest.c \ |
1064 | dtrace-probe.c \ | |
1065 | dummy-frame.c \ | |
1066 | dwarf2-frame.c \ | |
111c6489 | 1067 | dwarf2-frame-tailcall.c \ |
b593ecca SM |
1068 | dwarf2expr.c \ |
1069 | dwarf2loc.c \ | |
1070 | dwarf2read.c \ | |
1071 | elfread.c \ | |
b593ecca SM |
1072 | eval.c \ |
1073 | event-loop.c \ | |
1074 | event-top.c \ | |
1075 | exceptions.c \ | |
1076 | expprint.c \ | |
1077 | extension.c \ | |
1078 | f-exp.y \ | |
1079 | f-lang.c \ | |
1080 | f-typeprint.c \ | |
1081 | f-valprint.c \ | |
1082 | filesystem.c \ | |
1083 | findcmd.c \ | |
1084 | findvar.c \ | |
1085 | frame.c \ | |
1086 | frame-base.c \ | |
1087 | frame-unwind.c \ | |
1088 | gcore.c \ | |
1089 | gdb.c \ | |
1090 | gdb_bfd.c \ | |
1091 | gdb-dlfcn.c \ | |
1092 | gdb_obstack.c \ | |
1093 | gdb_usleep.c \ | |
1094 | gdbarch.c \ | |
1095 | gdbtypes.c \ | |
1096 | gnu-v2-abi.c \ | |
1097 | gnu-v3-abi.c \ | |
1098 | go-exp.y \ | |
1099 | go-lang.c \ | |
1100 | go-typeprint.c \ | |
1101 | go-valprint.c \ | |
1102 | inf-child.c \ | |
04714b91 AC |
1103 | inf-loop.c \ |
1104 | infcall.c \ | |
b593ecca SM |
1105 | infcmd.c \ |
1106 | inferior.c \ | |
1107 | inflow.c \ | |
1108 | infrun.c \ | |
edb3359d | 1109 | inline-frame.c \ |
4389a95a | 1110 | interps.c \ |
b593ecca SM |
1111 | jit.c \ |
1112 | language.c \ | |
1113 | linespec.c \ | |
1114 | location.c \ | |
1115 | m2-exp.y \ | |
1116 | m2-lang.c \ | |
1117 | m2-typeprint.c \ | |
1118 | m2-valprint.c \ | |
1119 | macrocmd.c \ | |
1120 | macroexp.c \ | |
1121 | macroscope.c \ | |
1122 | macrotab.c \ | |
1123 | main.c \ | |
1124 | maint.c \ | |
1125 | mdebugread.c \ | |
1126 | mem-break.c \ | |
1127 | memattr.c \ | |
1128 | memory-map.c \ | |
1129 | memrange.c \ | |
1130 | minidebug.c \ | |
1131 | minsyms.c \ | |
1132 | mipsread.c \ | |
22cee43f | 1133 | namespace.c \ |
f2e8016f | 1134 | objc-lang.c \ |
b593ecca SM |
1135 | objfiles.c \ |
1136 | observer.c \ | |
f4b8a18d | 1137 | opencl-lang.c \ |
b593ecca SM |
1138 | osabi.c \ |
1139 | osdata.c \ | |
1140 | p-exp.y \ | |
1141 | p-lang.c \ | |
1142 | p-typeprint.c \ | |
1143 | p-valprint.c \ | |
1144 | parse.c \ | |
1145 | printcmd.c \ | |
1146 | probe.c \ | |
1147 | proc-service.list \ | |
1148 | progspace.c \ | |
1149 | prologue-value.c \ | |
1150 | psymtab.c \ | |
1151 | record.c \ | |
1152 | record-btrace.c \ | |
1153 | record-full.c \ | |
1154 | regcache.c \ | |
1155 | reggroups.c \ | |
1156 | remote.c \ | |
1157 | remote-fileio.c \ | |
1158 | remote-notif.c \ | |
1159 | reverse.c \ | |
1160 | rust-exp.y \ | |
1161 | rust-lang.c \ | |
1162 | selftest.c \ | |
79843d45 | 1163 | selftest-arch.c \ |
b593ecca SM |
1164 | sentinel-frame.c \ |
1165 | ser-base.c \ | |
1166 | ser-event.c \ | |
1167 | ser-unix.c \ | |
1168 | serial.c \ | |
1169 | skip.c \ | |
1170 | sol-thread.c \ | |
1171 | solib.c \ | |
1172 | solib-target.c \ | |
1173 | source.c \ | |
1174 | stabsread.c \ | |
1175 | stack.c \ | |
1176 | stap-probe.c \ | |
1177 | std-regs.c \ | |
1178 | stub-termcap.c \ | |
1179 | symfile.c \ | |
1180 | symfile-debug.c \ | |
1181 | symfile-mem.c \ | |
1182 | symmisc.c \ | |
1183 | symtab.c \ | |
1184 | target.c \ | |
1185 | target-dcache.c \ | |
1186 | target-descriptions.c \ | |
1187 | target-memory.c \ | |
1188 | thread.c \ | |
1189 | tid-parse.c \ | |
1190 | top.c \ | |
1191 | tracepoint.c \ | |
a0f267c7 | 1192 | trad-frame.c \ |
d2259dd3 | 1193 | tramp-frame.c \ |
a0f267c7 | 1194 | typeprint.c \ |
b593ecca SM |
1195 | ui-file.c \ |
1196 | ui-file.h \ | |
1197 | ui-out.c \ | |
eb8bc282 | 1198 | user-regs.c \ |
b593ecca SM |
1199 | utils.c \ |
1200 | valarith.c \ | |
1201 | valops.c \ | |
1202 | valprint.c \ | |
1203 | value.c \ | |
1204 | varobj.c \ | |
1205 | xml-support.c \ | |
a96d9b2e | 1206 | xml-syscall.c \ |
b593ecca SM |
1207 | xml-tdesc.c \ |
1208 | common/agent.c \ | |
1209 | common/btrace-common.c \ | |
1210 | common/buffer.c \ | |
1211 | common/cleanups.c \ | |
1212 | common/common-debug.c \ | |
1213 | common/common-exceptions.c \ | |
1214 | common/common-regcache.c \ | |
1215 | common/common-utils.c \ | |
1216 | common/errors.c \ | |
1672e0d9 | 1217 | common/environ.c \ |
b593ecca SM |
1218 | common/fileio.c \ |
1219 | common/filestuff.c \ | |
1220 | common/format.c \ | |
1221 | common/gdb_vecs.c \ | |
1222 | common/new-op.c \ | |
1223 | common/print-utils.c \ | |
1224 | common/ptid.c \ | |
1225 | common/rsp-low.c \ | |
dcb07cfa | 1226 | common/run-time-clock.c \ |
b593ecca SM |
1227 | common/signals.c \ |
1228 | common/signals-state-save-restore.c \ | |
1229 | common/vec.c \ | |
1230 | common/xml-utils.c \ | |
1231 | mi/mi-common.c \ | |
1232 | target/waitstatus.c \ | |
bb2ec1b3 | 1233 | $(SUBDIR_GCC_COMPILE_SRCS) |
c906108c | 1234 | |
fb40c209 | 1235 | LINTFILES = $(SFILES) $(YYFILES) $(CONFIG_SRCS) init.c |
c906108c | 1236 | |
c906108c SS |
1237 | # Header files that need to have srcdir added. Note that in the cases |
1238 | # where we use a macro like $(gdbcmd_h), things are carefully arranged | |
1239 | # so that each .h file is listed exactly once (M-x tags-search works | |
1240 | # wrong if TAGS has files twice). Because this is tricky to get | |
1241 | # right, it is probably easiest just to list .h files here directly. | |
1242 | ||
2cb50f9d | 1243 | HFILES_NO_SRCDIR = \ |
b593ecca SM |
1244 | aarch64-tdep.h \ |
1245 | ada-lang.h \ | |
1246 | addrmap.h \ | |
03b62bbb | 1247 | alpha-bsd-tdep.h \ |
b593ecca | 1248 | alpha-tdep.h \ |
b593ecca SM |
1249 | amd64-darwin-tdep.h \ |
1250 | amd64-linux-tdep.h \ | |
1251 | amd64-nat.h \ | |
1252 | amd64-tdep.h \ | |
1253 | annotate.h \ | |
1254 | arc-tdep.h \ | |
1255 | arch-utils.h \ | |
1256 | arm-linux-tdep.h \ | |
1257 | arm-tdep.h \ | |
1258 | auto-load.h \ | |
1259 | auxv.h \ | |
1260 | ax.h \ | |
1261 | ax-gdb.h \ | |
1262 | bcache.h \ | |
1263 | bfd-target.h \ | |
1264 | bfin-tdep.h \ | |
1265 | block.h \ | |
1266 | breakpoint.h \ | |
1267 | bsd-kvm.h \ | |
1268 | bsd-uthread.h \ | |
1269 | build-id.h \ | |
1270 | buildsym.h \ | |
1271 | c-lang.h \ | |
1272 | charset.h \ | |
1273 | charset-list.h \ | |
1274 | cli-out.h \ | |
1275 | coff-pe-read.h \ | |
1276 | command.h \ | |
1277 | complaints.h \ | |
1278 | completer.h \ | |
1279 | cp-abi.h \ | |
1280 | cp-support.h \ | |
1281 | ctf.h \ | |
1282 | d-lang.h \ | |
1283 | darwin-nat.h \ | |
1284 | dcache.h \ | |
1285 | defs.h \ | |
1286 | dfp.h \ | |
1287 | dicos-tdep.h \ | |
1288 | dictionary.h \ | |
1289 | disasm.h \ | |
1290 | doublest.h \ | |
1291 | dummy-frame.h \ | |
1292 | dwarf2-frame.h \ | |
1293 | dwarf2-frame-tailcall.h \ | |
1294 | dwarf2expr.h \ | |
1295 | dwarf2loc.h \ | |
b593ecca SM |
1296 | event-loop.h \ |
1297 | event-top.h \ | |
1298 | exceptions.h \ | |
1299 | exec.h \ | |
1300 | expression.h \ | |
1301 | extension.h \ | |
1302 | extension-priv.h \ | |
1303 | f-lang.h \ | |
1304 | fbsd-nat.h \ | |
1305 | fbsd-tdep.h \ | |
1306 | filesystem.h \ | |
1307 | frame.h \ | |
1308 | frame-base.h \ | |
1309 | frame-unwind.h \ | |
1310 | frv-tdep.h \ | |
1311 | ft32-tdep.h \ | |
1312 | gcore.h \ | |
1313 | gdb.h \ | |
1314 | gdb_bfd.h \ | |
1315 | gdb_curses.h \ | |
1316 | gdb-dlfcn.h \ | |
1317 | gdb_expat.h \ | |
1318 | gdb_obstack.h \ | |
1319 | gdb_proc_service.h \ | |
b593ecca SM |
1320 | gdb_regex.h \ |
1321 | gdb_select.h \ | |
1322 | gdb-stabs.h \ | |
1323 | gdb_usleep.h \ | |
1324 | gdb_vfork.h \ | |
1325 | gdb_wchar.h \ | |
1326 | gdbarch.h \ | |
1327 | gdbcmd.h \ | |
1328 | gdbcore.h \ | |
1329 | gdbthread.h \ | |
1330 | gdbtypes.h \ | |
1331 | glibc-tdep.h \ | |
1332 | gnu-nat.h \ | |
1333 | go-lang.h \ | |
1334 | gregset.h \ | |
03b62bbb | 1335 | hppa-bsd-tdep.h \ |
b593ecca SM |
1336 | hppa-linux-offsets.h \ |
1337 | hppa-tdep.h \ | |
03b62bbb | 1338 | i386-bsd-nat.h \ |
b593ecca SM |
1339 | i386-darwin-tdep.h \ |
1340 | i386-linux-nat.h \ | |
1341 | i386-linux-tdep.h \ | |
1342 | i386-tdep.h \ | |
b593ecca SM |
1343 | i387-tdep.h \ |
1344 | ia64-libunwind-tdep.h \ | |
1345 | ia64-tdep.h \ | |
1346 | inf-child.h \ | |
1347 | inf-loop.h \ | |
1348 | inf-ptrace.h \ | |
1349 | infcall.h \ | |
1350 | inferior.h \ | |
1351 | inflow.h \ | |
1352 | inline-frame.h \ | |
1353 | interps.h \ | |
1354 | jit.h \ | |
1355 | language.h \ | |
1356 | linespec.h \ | |
1357 | linux-fork.h \ | |
1358 | linux-nat.h \ | |
1359 | linux-record.h \ | |
1360 | linux-tdep.h \ | |
1361 | location.h \ | |
1362 | m2-lang.h \ | |
1363 | m32r-tdep.h \ | |
1364 | m68k-tdep.h \ | |
1365 | m88k-tdep.h \ | |
1366 | macroexp.h \ | |
1367 | macroscope.h \ | |
1368 | macrotab.h \ | |
1369 | main.h \ | |
1370 | mdebugread.h \ | |
1371 | memattr.h \ | |
1372 | memory-map.h \ | |
1373 | memrange.h \ | |
1374 | microblaze-tdep.h \ | |
1375 | mips-linux-tdep.h \ | |
03b62bbb | 1376 | mips-nbsd-tdep.h \ |
b593ecca | 1377 | mips-tdep.h \ |
b593ecca SM |
1378 | mn10300-tdep.h \ |
1379 | moxie-tdep.h \ | |
1380 | nbsd-nat.h \ | |
1381 | nbsd-tdep.h \ | |
1382 | nds32-tdep.h \ | |
1383 | nios2-tdep.h \ | |
1384 | nto-tdep.h \ | |
1385 | objc-lang.h \ | |
1386 | objfiles.h \ | |
1387 | obsd-nat.h \ | |
1388 | obsd-tdep.h \ | |
1389 | osabi.h \ | |
1390 | osdata.h \ | |
1391 | p-lang.h \ | |
1392 | parser-defs.h \ | |
03b62bbb | 1393 | ppc-fbsd-tdep.h \ |
b593ecca | 1394 | ppc-linux-tdep.h \ |
03b62bbb SM |
1395 | ppc-nbsd-tdep.h \ |
1396 | ppc-obsd-tdep.h \ | |
b593ecca SM |
1397 | ppc-ravenscar-thread.h \ |
1398 | ppc-tdep.h \ | |
1399 | ppc64-tdep.h \ | |
b593ecca SM |
1400 | probe.h \ |
1401 | proc-utils.h \ | |
1402 | procfs.h \ | |
1403 | progspace.h \ | |
1404 | prologue-value.h \ | |
1405 | psympriv.h \ | |
1406 | psymtab.h \ | |
1407 | ravenscar-thread.h \ | |
1408 | record.h \ | |
1409 | record-full.h \ | |
1410 | regcache.h \ | |
1411 | reggroups.h \ | |
1412 | regset.h \ | |
1413 | remote.h \ | |
1414 | remote-fileio.h \ | |
1415 | remote-notif.h \ | |
1416 | rs6000-aix-tdep.h \ | |
1417 | rs6000-tdep.h \ | |
1418 | s390-linux-tdep.h \ | |
1419 | score-tdep.h \ | |
79843d45 | 1420 | selftest-arch.h \ |
b593ecca SM |
1421 | sentinel-frame.h \ |
1422 | ser-base.h \ | |
1423 | ser-event.h \ | |
1424 | ser-tcp.h \ | |
1425 | ser-unix.h \ | |
1426 | serial.h \ | |
1427 | sh-tdep.h \ | |
1428 | sh64-tdep.h \ | |
1429 | sim-regno.h \ | |
1430 | skip.h \ | |
1431 | sol2-tdep.h \ | |
1432 | solib.h \ | |
1433 | solib-aix.h \ | |
1434 | solib-darwin.h \ | |
1435 | solib-spu.h \ | |
1436 | solib-svr4.h \ | |
1437 | solib-target.h \ | |
1438 | solist.h \ | |
1439 | source.h \ | |
1440 | sparc-nat.h \ | |
1441 | sparc-ravenscar-thread.h \ | |
1442 | sparc-tdep.h \ | |
1443 | sparc64-tdep.h \ | |
1444 | spu-tdep.h \ | |
1445 | stabsread.h \ | |
1446 | stack.h \ | |
1447 | stap-probe.h \ | |
1448 | symfile.h \ | |
1449 | symtab.h \ | |
1450 | target.h \ | |
1451 | target-dcache.h \ | |
1452 | target-descriptions.h \ | |
1453 | terminal.h \ | |
1454 | tid-parse.h \ | |
1455 | top.h \ | |
1456 | tracefile.h \ | |
1457 | tracepoint.h \ | |
1458 | trad-frame.h \ | |
1459 | tramp-frame.h \ | |
1460 | typeprint.h \ | |
1461 | ui-file.h \ | |
1462 | ui-out.h \ | |
1463 | user-regs.h \ | |
1464 | utils.h \ | |
1465 | valprint.h \ | |
1466 | value.h \ | |
1467 | varobj.h \ | |
1468 | varobj-iter.h \ | |
1469 | vax-tdep.h \ | |
1470 | windows-nat.h \ | |
1471 | windows-tdep.h \ | |
03b62bbb | 1472 | x86-bsd-nat.h \ |
b593ecca SM |
1473 | x86-linux-nat.h \ |
1474 | x86-nat.h \ | |
b593ecca SM |
1475 | xcoffread.h \ |
1476 | xml-support.h \ | |
1477 | xml-syscall.h \ | |
1478 | xml-tdesc.h \ | |
1479 | xtensa-tdep.h \ | |
1480 | arch/aarch64-insn.h \ | |
1481 | arch/arm.h \ | |
1482 | cli/cli-cmds.h \ | |
1483 | cli/cli-decode.h \ | |
1484 | cli/cli-script.h \ | |
1485 | cli/cli-setshow.h \ | |
1486 | cli/cli-utils.h \ | |
1487 | common/buffer.h \ | |
1488 | common/cleanups.h \ | |
1489 | common/common-debug.h \ | |
1490 | common/common-defs.h \ | |
1491 | common/common-exceptions.h \ | |
1492 | common/common-regcache.h \ | |
1493 | common/common-types.h \ | |
1494 | common/common-utils.h \ | |
1495 | common/errors.h \ | |
1672e0d9 | 1496 | common/environ.h \ |
b593ecca SM |
1497 | common/fileio.h \ |
1498 | common/format.h \ | |
1499 | common/gdb_assert.h \ | |
1500 | common/gdb_locale.h \ | |
1501 | common/gdb_setjmp.h \ | |
1502 | common/gdb_signals.h \ | |
1503 | common/gdb_sys_time.h \ | |
be628ab8 | 1504 | common/gdb_termios.h \ |
b593ecca SM |
1505 | common/gdb_vecs.h \ |
1506 | common/gdb_wait.h \ | |
1507 | common/host-defs.h \ | |
1508 | common/print-utils.h \ | |
1509 | common/ptid.h \ | |
1510 | common/queue.h \ | |
1511 | common/rsp-low.h \ | |
dcb07cfa | 1512 | common/run-time-clock.h \ |
b593ecca SM |
1513 | common/signals-state-save-restore.h \ |
1514 | common/symbol.h \ | |
1515 | common/vec.h \ | |
1516 | common/version.h \ | |
1517 | common/x86-xstate.h \ | |
1518 | common/xml-utils.h \ | |
1519 | compile/compile.h \ | |
1520 | config/nm-linux.h \ | |
1521 | config/nm-nto.h \ | |
1522 | config/djgpp/langinfo.h \ | |
1523 | config/djgpp/nl_types.h \ | |
1524 | config/i386/nm-fbsd.h \ | |
1525 | config/i386/nm-i386gnu.h \ | |
1526 | config/sparc/nm-sol2.h \ | |
1527 | gnulib/import/inttypes.in.h \ | |
1528 | gnulib/import/stddef.in.h \ | |
1529 | gnulib/import/stdint.in.h \ | |
1530 | gnulib/import/str-two-way.h \ | |
1531 | gnulib/import/string.in.h \ | |
1532 | gnulib/import/extra/snippet/arg-nonnull.h \ | |
1533 | gnulib/import/extra/snippet/c++defs.h \ | |
1534 | gnulib/import/extra/snippet/warn-on-use.h \ | |
1535 | mi/mi-cmds.h \ | |
1536 | mi/mi-common.h \ | |
1537 | mi/mi-console.h \ | |
1538 | mi/mi-getopt.h \ | |
1539 | mi/mi-main.h \ | |
1540 | mi/mi-out.h \ | |
1541 | mi/mi-parse.h \ | |
1542 | nat/aarch64-linux.h \ | |
1543 | nat/aarch64-linux-hw-point.h \ | |
1544 | nat/amd64-linux-siginfo.h \ | |
ad5cba2a | 1545 | nat/gdb_ptrace.h \ |
b593ecca SM |
1546 | nat/gdb_thread_db.h \ |
1547 | nat/linux-btrace.h \ | |
1548 | nat/linux-namespaces.h \ | |
1549 | nat/linux-nat.h \ | |
1550 | nat/linux-osdata.h \ | |
1551 | nat/linux-personality.h \ | |
1552 | nat/linux-ptrace.h \ | |
1553 | nat/linux-waitpid.h \ | |
1554 | nat/mips-linux-watch.h \ | |
1555 | nat/ppc-linux.h \ | |
1556 | nat/x86-cpuid.h \ | |
1557 | nat/x86-dregs.h \ | |
1558 | nat/x86-gcc-cpuid.h \ | |
1559 | nat/x86-linux.h \ | |
1560 | nat/x86-linux-dregs.h \ | |
1561 | python/py-event.h \ | |
1562 | python/py-events.h \ | |
1563 | python/py-stopevent.h \ | |
1564 | python/python.h \ | |
1565 | python/python-internal.h \ | |
1566 | regformats/regdef.h \ | |
1567 | target/resume.h \ | |
1568 | target/target.h \ | |
1569 | target/wait.h \ | |
1570 | target/waitstatus.h \ | |
1571 | tui/tui.h \ | |
1572 | tui/tui-command.h \ | |
1573 | tui/tui-data.h \ | |
1574 | tui/tui-disasm.h \ | |
1575 | tui/tui-file.h \ | |
1576 | tui/tui-hooks.h \ | |
1577 | tui/tui-io.h \ | |
1578 | tui/tui-layout.h \ | |
1579 | tui/tui-regs.h \ | |
1580 | tui/tui-source.h \ | |
1581 | tui/tui-stack.h \ | |
1582 | tui/tui-win.h \ | |
1583 | tui/tui-windata.h \ | |
1584 | tui/tui-wingeneral.h \ | |
1585 | tui/tui-winsource.h | |
c906108c SS |
1586 | |
1587 | # Header files that already have srcdir in them, or which are in objdir. | |
1588 | ||
b593ecca SM |
1589 | HFILES_WITH_SRCDIR = \ |
1590 | ../bfd/bfd.h \ | |
1591 | jit-reader.h | |
c906108c SS |
1592 | |
1593 | # GDB "info" files, which should be included in their entirety | |
1594 | INFOFILES = gdb.info* | |
1595 | ||
c906108c SS |
1596 | # {X,T,NAT}DEPFILES are something of a pain in that it's hard to |
1597 | # default their values the way we do for SER_HARDWIRE; in the future | |
1598 | # maybe much of the stuff now in {X,T,NAT}DEPFILES will go into other | |
1599 | # variables analogous to SER_HARDWIRE which get defaulted in this | |
1600 | # Makefile.in | |
1601 | ||
a4ce5b0d | 1602 | DEPFILES = $(TARGET_OBS) $(SER_HARDWIRE) $(NATDEPFILES) \ |
b9ff61f8 | 1603 | $(REMOTE_OBS) $(SIM_OBS) |
c906108c | 1604 | |
fb40c209 | 1605 | SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES) $(CONFIG_SRCS) |
8132723e | 1606 | # Don't include YYFILES (*.c) because we already include *.y in SFILES, |
c906108c SS |
1607 | # and it's more useful to see it in the .y file. |
1608 | TAGFILES_NO_SRCDIR = $(SFILES) $(HFILES_NO_SRCDIR) $(ALLDEPFILES) \ | |
b9ff61f8 | 1609 | $(CONFIG_SRCS) |
c906108c SS |
1610 | TAGFILES_WITH_SRCDIR = $(HFILES_WITH_SRCDIR) |
1611 | ||
b9ff61f8 | 1612 | COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \ |
b593ecca SM |
1613 | ada-lang.o \ |
1614 | ada-tasks.o \ | |
1615 | ada-typeprint.o \ | |
1616 | ada-valprint.o \ | |
1617 | ada-varobj.o \ | |
801e3a5b | 1618 | addrmap.o \ |
d1feda86 | 1619 | agent.o \ |
b593ecca SM |
1620 | annotate.o \ |
1621 | arch-utils.o \ | |
1622 | auto-load.o \ | |
1623 | auxv.o \ | |
1624 | bcache.o \ | |
bba2d28d | 1625 | bfd-target.o \ |
b593ecca SM |
1626 | block.o \ |
1627 | blockframe.o \ | |
1628 | break-catch-sig.o \ | |
10304ef3 | 1629 | break-catch-syscall.o \ |
b593ecca SM |
1630 | break-catch-throw.o \ |
1631 | breakpoint.o \ | |
1632 | btrace.o \ | |
1633 | btrace-common.o \ | |
1634 | buffer.o \ | |
1635 | build-id.o \ | |
1636 | buildsym.o \ | |
1637 | c-lang.o \ | |
1638 | c-typeprint.o \ | |
1639 | c-valprint.o \ | |
1640 | c-varobj.o \ | |
1641 | charset.o \ | |
1642 | cleanups.o \ | |
1643 | cli-out.o \ | |
1644 | coff-pe-read.o \ | |
1645 | coffread.o \ | |
1646 | common-agent.o \ | |
1647 | common-debug.o \ | |
1648 | common-exceptions.o \ | |
1649 | common-regcache.o \ | |
1650 | common-utils.o \ | |
1651 | complaints.o \ | |
1652 | completer.o \ | |
1653 | continuations.o \ | |
1654 | copying.o \ | |
1655 | corefile.o \ | |
1656 | corelow.o \ | |
1657 | cp-abi.o \ | |
1658 | cp-namespace.o \ | |
1659 | cp-support.o \ | |
1660 | cp-valprint.o \ | |
1661 | d-lang.o \ | |
1662 | d-namespace.o \ | |
1663 | d-valprint.o \ | |
1664 | dbxread.o \ | |
1665 | debug.o \ | |
1666 | demangle.o \ | |
1667 | dfp.o \ | |
1668 | dictionary.o \ | |
1669 | disasm.o \ | |
79843d45 | 1670 | disasm-selftests.o \ |
b593ecca SM |
1671 | doublest.o \ |
1672 | dummy-frame.o \ | |
1673 | dwarf2-frame.o \ | |
1674 | dwarf2-frame-tailcall.o \ | |
1675 | dwarf2expr.o \ | |
1676 | dwarf2loc.o \ | |
1677 | dwarf2read.o \ | |
1678 | environ.o \ | |
1679 | errors.o \ | |
1680 | eval.o \ | |
1681 | event-loop.o \ | |
1682 | event-top.o \ | |
60250e8b | 1683 | exceptions.o \ |
b593ecca SM |
1684 | exec.o \ |
1685 | expprint.o \ | |
6dddc817 | 1686 | extension.o \ |
b593ecca SM |
1687 | f-lang.o \ |
1688 | f-typeprint.o \ | |
1689 | f-valprint.o \ | |
1690 | fileio.o \ | |
614c279d | 1691 | filestuff.o \ |
b593ecca SM |
1692 | filesystem.o \ |
1693 | findcmd.o \ | |
1694 | findvar.o \ | |
1695 | format.o \ | |
1696 | frame.o \ | |
1697 | frame-base.o \ | |
1698 | frame-unwind.o \ | |
1699 | gcore.o \ | |
1700 | gdb_bfd.o \ | |
1701 | gdb-dlfcn.o \ | |
1702 | gdb_obstack.o \ | |
1703 | gdb_usleep.o \ | |
1704 | gdb_vecs.o \ | |
1705 | gdbarch.o \ | |
1706 | gdbtypes.o \ | |
1707 | gnu-v2-abi.o \ | |
1708 | gnu-v3-abi.o \ | |
1709 | go-lang.o \ | |
1710 | go-typeprint.o \ | |
1711 | go-valprint.o \ | |
3f3db248 | 1712 | inf-child.o \ |
b593ecca SM |
1713 | inf-loop.o \ |
1714 | infcall.o \ | |
1715 | infcmd.o \ | |
1716 | inferior.o \ | |
1717 | infrun.o \ | |
1718 | inline-frame.o \ | |
4389a95a | 1719 | interps.o \ |
b593ecca SM |
1720 | jit.o \ |
1721 | language.o \ | |
1722 | linespec.o \ | |
1723 | location.o \ | |
1724 | m2-lang.o \ | |
1725 | m2-typeprint.o \ | |
1726 | m2-valprint.o \ | |
1727 | macrocmd.o \ | |
1728 | macroexp.o \ | |
1729 | macroscope.o \ | |
1730 | macrotab.o \ | |
d836ee13 | 1731 | main.o \ |
b593ecca SM |
1732 | maint.o \ |
1733 | mdebugread.o \ | |
1734 | mem-break.o \ | |
1735 | memattr.o \ | |
1736 | memory-map.o \ | |
1737 | memrange.o \ | |
2f9e05b4 | 1738 | mi-common.o \ |
b593ecca SM |
1739 | minidebug.o \ |
1740 | minsyms.o \ | |
1741 | mipsread.o \ | |
1742 | namespace.o \ | |
1743 | new-op.o \ | |
1744 | objc-lang.o \ | |
1745 | objfiles.o \ | |
1746 | observer.o \ | |
1747 | opencl-lang.o \ | |
1748 | osabi.o \ | |
1749 | osdata.o \ | |
1750 | p-lang.o \ | |
1751 | p-typeprint.o \ | |
1752 | p-valprint.o \ | |
1753 | parse.o \ | |
1754 | print-utils.o \ | |
1755 | printcmd.o \ | |
1756 | probe.o \ | |
1757 | progspace.o \ | |
1758 | prologue-value.o \ | |
1759 | psymtab.o \ | |
1760 | ptid.o \ | |
1761 | record.o \ | |
1762 | record-btrace.o \ | |
1763 | record-full.o \ | |
1764 | regcache.o \ | |
2648dfed | 1765 | reggroups.o \ |
b593ecca SM |
1766 | registry.o \ |
1767 | reverse.o \ | |
1768 | rsp-low.o \ | |
dcb07cfa | 1769 | run-time-clock.o \ |
edef7b8c | 1770 | rust-lang.o \ |
b593ecca | 1771 | selftest.o \ |
79843d45 | 1772 | selftest-arch.o \ |
b593ecca SM |
1773 | sentinel-frame.o \ |
1774 | ser-event.o \ | |
1775 | serial.o \ | |
1776 | signals.o \ | |
1777 | signals-state-save-restore.o \ | |
1778 | skip.o \ | |
1779 | solib.o \ | |
1780 | solib-target.o \ | |
1781 | source.o \ | |
1782 | stabsread.o \ | |
1783 | stack.o \ | |
1784 | std-regs.o \ | |
1785 | symfile.o \ | |
1786 | symfile-debug.o \ | |
1787 | symmisc.o \ | |
1788 | symtab.o \ | |
1789 | target.o \ | |
1790 | target-dcache.o \ | |
1791 | target-descriptions.o \ | |
1792 | target-memory.o \ | |
1793 | thread.o \ | |
1794 | thread-fsm.o \ | |
1795 | tid-parse.o \ | |
1796 | top.o \ | |
d2259dd3 | 1797 | trad-frame.o \ |
a77053c2 | 1798 | tramp-frame.o \ |
b593ecca SM |
1799 | typeprint.o \ |
1800 | ui-file.o \ | |
1801 | ui-out.o \ | |
1802 | user-regs.o \ | |
1803 | utils.o \ | |
1804 | utils-selftests.o \ | |
1805 | valarith.o \ | |
1806 | valops.o \ | |
1807 | valprint.o \ | |
1808 | value.o \ | |
1809 | varobj.o \ | |
1810 | vec.o \ | |
1811 | version.o \ | |
1812 | waitstatus.o \ | |
1813 | xml-builtin.o \ | |
1814 | xml-support.o \ | |
1815 | xml-syscall.o \ | |
1816 | xml-tdesc.o \ | |
1817 | xml-utils.o \ | |
bb2ec1b3 | 1818 | $(SUBDIR_GCC_COMPILE_OBS) |
c906108c | 1819 | |
c906108c SS |
1820 | TSOBS = inflow.o |
1821 | ||
c971b7fa PA |
1822 | SUBDIRS = doc @subdirs@ data-directory $(GNULIB_BUILDDIR) |
1823 | CLEANDIRS = $(SUBDIRS) | |
c906108c | 1824 | |
9c9606fb DE |
1825 | # List of subdirectories in the build tree that must exist. |
1826 | # This is used to force build failures in existing trees when | |
1827 | # a new directory is added. | |
1828 | # The format here is for the `case' shell command. | |
c971b7fa | 1829 | REQUIRED_SUBDIRS = doc | testsuite | $(GNULIB_BUILDDIR) | data-directory |
9c9606fb | 1830 | |
c906108c | 1831 | # For now, shortcut the "configure GDB for fewer languages" stuff. |
b593ecca | 1832 | YYFILES = \ |
8132723e | 1833 | ada-exp.c \ |
b593ecca SM |
1834 | ada-lex.c \ |
1835 | c-exp.c \ | |
1836 | cp-name-parser.c \ | |
1837 | d-exp.c \ | |
1838 | f-exp.c \ | |
1839 | go-exp.c \ | |
1840 | m2-exp.c \ | |
1841 | p-exp.c \ | |
1842 | rust-exp.c | |
1843 | ||
1844 | YYOBJ = \ | |
1f8173e6 | 1845 | ada-exp.o \ |
b593ecca SM |
1846 | c-exp.o \ |
1847 | cp-name-parser.o \ | |
1848 | d-exp.o \ | |
1849 | f-exp.o \ | |
1850 | go-exp.o \ | |
1851 | m2-exp.o \ | |
1852 | p-exp.o \ | |
1853 | rust-exp.o | |
c906108c SS |
1854 | |
1855 | # Things which need to be built when making a distribution. | |
1856 | ||
1857 | DISTSTUFF = $(YYFILES) | |
1858 | ||
a417dc56 RW |
1859 | |
1860 | # All generated files which can be included by another file. | |
b593ecca SM |
1861 | generated_files = \ |
1862 | ada-lex.c \ | |
1863 | config.h \ | |
1864 | gcore \ | |
1865 | jit-reader.h \ | |
1866 | observer.h \ | |
1867 | observer.inc \ | |
1868 | $(GNULIB_H) \ | |
1869 | $(NAT_GENERATED_FILES) | |
a417dc56 | 1870 | |
470dd0a6 | 1871 | # Flags needed to compile Python code |
8629c02c | 1872 | PYTHON_CFLAGS = @PYTHON_CFLAGS@ |
470dd0a6 SM |
1873 | |
1874 | all: gdb$(EXEEXT) $(CONFIG_ALL) | |
1875 | @$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do | |
1876 | ||
1877 | # Rule for compiling .c files in the top-level gdb directory. | |
5443506e | 1878 | %.o: %.c |
a417dc56 RW |
1879 | $(COMPILE) $< |
1880 | $(POSTCOMPILE) | |
c906108c | 1881 | |
470dd0a6 SM |
1882 | # Rules for compiling .c files in the various source subdirectories. |
1883 | %.o: ${srcdir}/arch/%.c | |
1884 | $(COMPILE) $< | |
1885 | $(POSTCOMPILE) | |
1886 | ||
1887 | %.o: $(srcdir)/cli/%.c | |
1888 | $(COMPILE) $< | |
1889 | $(POSTCOMPILE) | |
1890 | ||
1891 | %.o: ${srcdir}/common/%.c | |
1892 | $(COMPILE) $< | |
1893 | $(POSTCOMPILE) | |
1894 | ||
1895 | %.o: $(srcdir)/compile/%.c | |
1896 | $(COMPILE) $< | |
1897 | $(POSTCOMPILE) | |
1898 | ||
1899 | %.o: $(srcdir)/gdbtk/generic/%.c | |
ef787763 | 1900 | $(COMPILE) $(all_gdbtk_cflags) $< |
470dd0a6 SM |
1901 | $(POSTCOMPILE) |
1902 | ||
1903 | %.o: $(srcdir)/guile/%.c | |
1904 | $(COMPILE) $< | |
1905 | $(POSTCOMPILE) | |
1906 | ||
1907 | %.o: $(srcdir)/mi/%.c | |
1908 | $(COMPILE) $< | |
d0de53e2 | 1909 | $(POSTCOMPILE) |
470dd0a6 SM |
1910 | |
1911 | %.o: ${srcdir}/nat/%.c | |
1912 | $(COMPILE) $< | |
1913 | $(POSTCOMPILE) | |
1914 | ||
1915 | %.o: $(srcdir)/python/%.c | |
1916 | $(COMPILE) $(PYTHON_CFLAGS) $< | |
1917 | $(POSTCOMPILE) | |
1918 | ||
1919 | %.o: ${srcdir}/target/%.c | |
1920 | $(COMPILE) $< | |
1921 | $(POSTCOMPILE) | |
1922 | ||
1923 | %.o: $(srcdir)/tui/%.c | |
1924 | $(COMPILE) $< | |
1925 | $(POSTCOMPILE) | |
1926 | ||
07e253aa PA |
1927 | %.o: ${srcdir}/unittests/%.c |
1928 | $(COMPILE) $< | |
1929 | $(POSTCOMPILE) | |
1930 | ||
470dd0a6 SM |
1931 | # Specify an explicit rule for gdb/common/agent.c, to avoid a clash with the |
1932 | # object file generate by gdb/agent.c. | |
1933 | common-agent.o: $(srcdir)/common/agent.c | |
1934 | $(COMPILE) $(srcdir)/common/agent.c | |
1935 | $(POSTCOMPILE) | |
c906108c SS |
1936 | |
1937 | installcheck: | |
1938 | ||
1939 | # The check target can not use subdir_do, because subdir_do does not | |
1940 | # use TARGET_FLAGS_TO_PASS. | |
1941 | check: force | |
1942 | @if [ -f testsuite/Makefile ]; then \ | |
1943 | rootme=`pwd`; export rootme; \ | |
1944 | rootsrc=`cd $(srcdir); pwd`; export rootsrc; \ | |
1945 | cd testsuite; \ | |
1946 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check; \ | |
1947 | else true; fi | |
1948 | ||
7636ccf9 YQ |
1949 | check-perf: force |
1950 | @if [ -f testsuite/Makefile ]; then \ | |
1951 | rootme=`pwd`; export rootme; \ | |
1952 | rootsrc=`cd $(srcdir); pwd`; export rootsrc; \ | |
1953 | cd testsuite; \ | |
1954 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check-perf; \ | |
1955 | else true; fi | |
1956 | ||
2a31c623 PA |
1957 | check-read1: force |
1958 | @if [ -f testsuite/Makefile ]; then \ | |
1959 | rootme=`pwd`; export rootme; \ | |
1960 | rootsrc=`cd $(srcdir); pwd`; export rootsrc; \ | |
1961 | cd testsuite; \ | |
1962 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check-read1; \ | |
1963 | else true; fi | |
1964 | ||
e352bf0a PA |
1965 | check-parallel: force |
1966 | @if [ -f testsuite/Makefile ]; then \ | |
1967 | rootme=`pwd`; export rootme; \ | |
1968 | rootsrc=`cd $(srcdir); pwd`; export rootsrc; \ | |
1969 | cd testsuite; \ | |
1970 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check-parallel; \ | |
1971 | else true; fi | |
1972 | ||
e75d110c AO |
1973 | # The idea is to parallelize testing of multilibs, for example: |
1974 | # make -j3 check//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu} | |
1975 | # will run 3 concurrent sessions of check, eventually testing all 10 | |
1976 | # combinations. GNU make is required for the % pattern to work, as is | |
1977 | # a shell that expands alternations within braces. If GNU make is not | |
59dd3af6 JK |
1978 | # used, this rule will harmlessly fail to match. Used FORCE_PARALLEL to |
1979 | # prevent serialized checking due to the passed RUNTESTFLAGS. | |
a5bbabf3 | 1980 | # FIXME: use config.status --config not --version, when available. |
e75d110c AO |
1981 | check//%: force |
1982 | @if [ -f testsuite/config.status ]; then \ | |
1983 | rootme=`pwd`; export rootme; \ | |
1984 | rootsrc=`cd $(srcdir); pwd`; export rootsrc; \ | |
1985 | target=`echo "$@" | sed 's,//.*,,'`; \ | |
1986 | variant=`echo "$@" | sed 's,^[^/]*//,,'`; \ | |
1987 | vardots=`echo "$$variant" | sed 's,/,.,g'`; \ | |
1988 | testdir=testsuite.$$vardots; \ | |
a5bbabf3 RW |
1989 | if [ ! -f $$testdir/Makefile ] && [ -f testsuite/config.status ]; then \ |
1990 | configargs=`cd testsuite && ./config.status --version | \ | |
1991 | sed -n -e 's,"$$,,' -e 's,^ *with options ",,p'`; \ | |
1992 | $(SHELL) $(srcdir)/../mkinstalldirs $$testdir && \ | |
1993 | (cd $$testdir && \ | |
1994 | eval $(SHELL) "\"\$$rootsrc/testsuite/configure\" $$configargs" \ | |
1995 | "\"--srcdir=\$$rootsrc/testsuite\"" \ | |
1996 | ); \ | |
e75d110c AO |
1997 | else :; fi && cd $$testdir && \ |
1998 | $(MAKE) $(TARGET_FLAGS_TO_PASS) \ | |
1999 | RUNTESTFLAGS="--target_board=$$variant $(RUNTESTFLAGS)" \ | |
59dd3af6 | 2000 | FORCE_PARALLEL=$(if $(FORCE_PARALLEL),1,$(if $(RUNTESTFLAGS),,1)) \ |
e75d110c AO |
2001 | "$$target"; \ |
2002 | else true; fi | |
2003 | ||
f71e1a8d PA |
2004 | # The set of headers checked by 'check-headers' by default. |
2005 | CHECK_HEADERS = $(HFILES_NO_SRCDIR) | |
2006 | ||
2007 | # Try to compile each header in isolation, thus ensuring headers are | |
2008 | # self-contained. | |
2009 | # | |
2010 | # Defaults to checking all $HFILES_NO_SRCDIR headers. | |
2011 | # | |
2012 | # Do: | |
2013 | # | |
2014 | # make check-headers CHECK_HEADERS="header.h list.h" | |
2015 | # | |
2016 | # to check specific headers. | |
2017 | # | |
2018 | check-headers: | |
2019 | @echo Checking headers. | |
2020 | for i in $(CHECK_HEADERS) ; do \ | |
e4241ace YQ |
2021 | $(CXX) $(CXX_DIALECT) -x c++-header -c -fsyntax-only \ |
2022 | $(INTERNAL_CFLAGS) -include defs.h $(srcdir)/$$i ; \ | |
f71e1a8d PA |
2023 | done |
2024 | .PHONY: check-headers | |
2025 | ||
9453113a | 2026 | info install-info clean-info dvi pdf install-pdf html install-html: force |
c906108c SS |
2027 | @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do |
2028 | ||
c906108c | 2029 | # Traditionally "install" depends on "all". But it may be useful |
3cf93817 | 2030 | # not to; for example, if the user has made some trivial change to a |
c906108c SS |
2031 | # source file and doesn't care about rebuilding or just wants to save the |
2032 | # time it takes for make to check that all is up to date. | |
2033 | # install-only is intended to address that need. | |
f474844c JZ |
2034 | install: all |
2035 | @$(MAKE) $(FLAGS_TO_PASS) install-only | |
a96d9b2e | 2036 | |
aa2e2d8d | 2037 | install-only: $(CONFIG_INSTALL) |
c906108c | 2038 | transformed_name=`t='$(program_transform_name)'; \ |
95303a68 | 2039 | echo gdb | sed -e "$$t"` ; \ |
c906108c SS |
2040 | if test "x$$transformed_name" = x; then \ |
2041 | transformed_name=gdb ; \ | |
2042 | else \ | |
2043 | true ; \ | |
2044 | fi ; \ | |
c938e9b0 | 2045 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir) ; \ |
72bdd927 AC |
2046 | $(INSTALL_PROGRAM) gdb$(EXEEXT) \ |
2047 | $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \ | |
f997c383 SD |
2048 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(includedir)/gdb ; \ |
2049 | $(INSTALL_DATA) jit-reader.h $(DESTDIR)$(includedir)/gdb/jit-reader.h | |
b292c783 JK |
2050 | if test "x$(HAVE_NATIVE_GCORE_TARGET)$(HAVE_NATIVE_GCORE_HOST)" != x; \ |
2051 | then \ | |
2052 | transformed_name=`t='$(program_transform_name)'; \ | |
2053 | echo gcore | sed -e "$$t"` ; \ | |
2054 | if test "x$$transformed_name" = x; then \ | |
2055 | transformed_name=gcore ; \ | |
2056 | else \ | |
2057 | true ; \ | |
2058 | fi ; \ | |
2059 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir) ; \ | |
4869db5e | 2060 | $(INSTALL_SCRIPT) gcore \ |
b292c783 JK |
2061 | $(DESTDIR)$(bindir)/$$transformed_name; \ |
2062 | fi | |
3cf93817 | 2063 | @$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do |
226361c4 | 2064 | |
4869db5e RM |
2065 | install-strip: |
2066 | $(MAKE) $(FLAGS_TO_PASS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
2067 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
2068 | `test -z '$(STRIP)' || \ | |
2069 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install-only | |
2070 | ||
ed3ef339 DE |
2071 | install-guile: |
2072 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/guile/gdb | |
2073 | ||
94f7449c | 2074 | install-python: |
4d2dc20a | 2075 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/python/gdb |
c906108c | 2076 | |
e56ac5c3 | 2077 | uninstall: force $(CONFIG_UNINSTALL) |
c906108c SS |
2078 | transformed_name=`t='$(program_transform_name)'; \ |
2079 | echo gdb | sed -e $$t` ; \ | |
2080 | if test "x$$transformed_name" = x; then \ | |
2081 | transformed_name=gdb ; \ | |
2082 | else \ | |
2083 | true ; \ | |
2084 | fi ; \ | |
c938e9b0 L |
2085 | rm -f $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) \ |
2086 | $(DESTDIR)$(man1dir)/$$transformed_name.1 | |
b292c783 JK |
2087 | if test "x$(HAVE_NATIVE_GCORE_TARGET)$(HAVE_NATIVE_GCORE_HOST)" != x; \ |
2088 | then \ | |
2089 | transformed_name=`t='$(program_transform_name)'; \ | |
2090 | echo gcore | sed -e "$$t"` ; \ | |
2091 | if test "x$$transformed_name" = x; then \ | |
2092 | transformed_name=gcore ; \ | |
2093 | else \ | |
2094 | true ; \ | |
2095 | fi ; \ | |
2096 | rm -f $(DESTDIR)$(bindir)/$$transformed_name; \ | |
2097 | fi | |
3cf93817 | 2098 | @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do |
c906108c | 2099 | |
fb4c6eba | 2100 | # The C++ name parser can be built standalone for testing. |
a417dc56 RW |
2101 | test-cp-name-parser.o: cp-name-parser.c |
2102 | $(COMPILE) -DTEST_CPNAMES cp-name-parser.c | |
2103 | $(POSTCOMPILE) | |
fb4c6eba | 2104 | |
847f5ce8 DJ |
2105 | test-cp-name-parser$(EXEEXT): test-cp-name-parser.o $(LIBIBERTY) |
2106 | $(CC_LD) $(INTERNAL_LDFLAGS) -o test-cp-name-parser$(EXEEXT) \ | |
2107 | test-cp-name-parser.o $(LIBIBERTY) | |
fb4c6eba | 2108 | |
c906108c SS |
2109 | # We do this by grepping through sources. If that turns out to be too slow, |
2110 | # maybe we could just require every .o file to have an initialization routine | |
9b4ff276 | 2111 | # of a given name (top.o -> _initialize_top, etc.). |
c906108c SS |
2112 | # |
2113 | # Formatting conventions: The name of the _initialize_* routines must start | |
2114 | # in column zero, and must not be inside #if. | |
2115 | # | |
2116 | # Note that the set of files with init functions might change, or the names | |
2117 | # of the functions might change, so this files needs to depend on all the | |
2118 | # object files that will be linked into gdb. | |
defc864c AC |
2119 | |
2120 | # FIXME: There is a problem with this approach - init.c may force | |
2121 | # unnecessary files to be linked in. | |
dd12a101 AC |
2122 | |
2123 | # FIXME: cagney/2002-06-09: gdb/564: gdb/563: Force the order so that | |
defc864c AC |
2124 | # the first call is to _initialize_gdbtypes (implemented by explicitly |
2125 | # putting that function's name first in the init.l-tmp file). This is | |
2126 | # a hack to ensure that all the architecture dependant global | |
2127 | # builtin_type_* variables are initialized before anything else | |
2128 | # (per-architecture code is called in the same order that it is | |
2129 | # registered). The ``correct fix'' is to have all the builtin types | |
2130 | # made part of the architecture and initialize them on-demand (using | |
2131 | # gdbarch_data) just like everything else. The catch is that other | |
2132 | # modules still take the address of these builtin types forcing them | |
2133 | # to be variables, sigh! | |
c906108c | 2134 | |
0022b738 AC |
2135 | # NOTE: cagney/2003-03-18: The sed pattern ``s|^\([^ /]...'' is |
2136 | # anchored on the first column and excludes the ``/'' character so | |
2137 | # that it doesn't add the $(srcdir) prefix to any file that already | |
2138 | # has an absolute path. It turns out that $(DEC)'s True64 make | |
2139 | # automatically adds the $(srcdir) prefixes when it encounters files | |
2140 | # in sub-directories such as cli/ and mi/. | |
2141 | ||
defc864c AC |
2142 | # NOTE: cagney/2004-02-08: The ``case "$$fs" in'' eliminates |
2143 | # duplicates. Files in the gdb/ directory can end up appearing in | |
2144 | # COMMON_OBS (as a .o file) and CONFIG_SRCS (as a .c file). | |
2145 | ||
bb2ec1b3 | 2146 | INIT_FILES = $(COMMON_OBS) $(TSOBS) $(CONFIG_SRCS) $(SUBDIR_GCC_COMPILE_SRCS) |
c2d11a7d | 2147 | init.c: $(INIT_FILES) |
c906108c | 2148 | @echo Making init.c |
6426a772 | 2149 | @rm -f init.c-tmp init.l-tmp |
defc864c AC |
2150 | @touch init.c-tmp |
2151 | @echo gdbtypes > init.l-tmp | |
25fc6591 AS |
2152 | @-LANG=C ; export LANG ; \ |
2153 | LC_ALL=C ; export LC_ALL ; \ | |
6e2c7fa1 | 2154 | echo $(INIT_FILES) | \ |
c906108c | 2155 | tr ' ' '\012' | \ |
b1364885 | 2156 | sed \ |
defc864c AC |
2157 | -e '/^gdbtypes.[co]$$/d' \ |
2158 | -e '/^init.[co]$$/d' \ | |
2159 | -e '/xdr_ld.[co]$$/d' \ | |
2160 | -e '/xdr_ptrace.[co]$$/d' \ | |
2161 | -e '/xdr_rdb.[co]$$/d' \ | |
2162 | -e '/udr.[co]$$/d' \ | |
2163 | -e '/udip2soc.[co]$$/d' \ | |
2164 | -e '/udi2go32.[co]$$/d' \ | |
2165 | -e '/version.[co]$$/d' \ | |
2166 | -e '/^[a-z0-9A-Z_]*_[SU].[co]$$/d' \ | |
2167 | -e '/[a-z0-9A-Z_]*-exp.tab.[co]$$/d' \ | |
9ab0bb2a | 2168 | -e 's/-exp\.o$$/-exp.y/' \ |
defc864c | 2169 | -e 's/\.[co]$$/.c/' \ |
2aecd87f | 2170 | -e 's,signals\.c,common/signals\.c,' \ |
0022b738 | 2171 | -e 's|^\([^ /][^ ]*\)|$(srcdir)/\1|g' | \ |
defc864c AC |
2172 | while read f; do \ |
2173 | sed -n -e 's/^_initialize_\([a-z_0-9A-Z]*\).*/\1/p' $$f 2>/dev/null; \ | |
2174 | done | \ | |
2175 | while read f; do \ | |
4ff2cc4d AC |
2176 | case " $$fs " in \ |
2177 | *" $$f "* ) ;; \ | |
2178 | * ) echo $$f ; fs="$$fs $$f";; \ | |
defc864c AC |
2179 | esac; \ |
2180 | done >> init.l-tmp | |
6426a772 JM |
2181 | @echo '/* Do not modify this file. */' >>init.c-tmp |
2182 | @echo '/* It is created automatically by the Makefile. */'>>init.c-tmp | |
defc864c | 2183 | @echo '#include "defs.h" /* For initialize_file_ftype. */' >>init.c-tmp |
ca7b0bbc | 2184 | @echo 'extern void initialize_all_files(void);' >>init.c-tmp |
defc864c | 2185 | @sed -e 's/\(.*\)/extern initialize_file_ftype _initialize_\1;/' <init.l-tmp >>init.c-tmp |
6426a772 JM |
2186 | @echo 'void' >>init.c-tmp |
2187 | @echo 'initialize_all_files (void)' >>init.c-tmp | |
2188 | @echo '{' >>init.c-tmp | |
defc864c | 2189 | @sed -e 's/\(.*\)/ _initialize_\1 ();/' <init.l-tmp >>init.c-tmp |
c906108c | 2190 | @echo '}' >>init.c-tmp |
6426a772 | 2191 | @rm init.l-tmp |
c906108c SS |
2192 | @mv init.c-tmp init.c |
2193 | ||
2194 | .PRECIOUS: init.c | |
2195 | ||
8574e74b JK |
2196 | # Create a library of the gdb object files and build GDB by linking |
2197 | # against that. | |
2198 | # | |
2199 | # init.o is very important. It pulls in the rest of GDB. | |
8629c02c | 2200 | LIBGDB_OBS = $(COMMON_OBS) $(TSOBS) $(ADD_FILES) init.o |
8574e74b JK |
2201 | libgdb.a: $(LIBGDB_OBS) |
2202 | -rm -f libgdb.a | |
2203 | $(AR) q libgdb.a $(LIBGDB_OBS) | |
2204 | $(RANLIB) libgdb.a | |
2205 | ||
c906108c | 2206 | # Removing the old gdb first works better if it is running, at least on SunOS. |
8574e74b | 2207 | gdb$(EXEEXT): gdb.o $(LIBGDB_OBS) $(ADD_DEPS) $(CDEPS) $(TDEPLIBS) |
c906108c | 2208 | rm -f gdb$(EXEEXT) |
72cfdc76 | 2209 | $(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) \ |
8574e74b | 2210 | -o gdb$(EXEEXT) gdb.o $(LIBGDB_OBS) \ |
f15ab4a7 | 2211 | $(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES) |
c906108c | 2212 | |
e28b3332 | 2213 | # Convenience rule to handle recursion. |
ac020ec5 DE |
2214 | $(LIBGNU) $(GNULIB_H): all-lib |
2215 | all-lib: $(GNULIB_BUILDDIR)/Makefile | |
c971b7fa | 2216 | @$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=$(GNULIB_BUILDDIR) subdir_do |
ac020ec5 | 2217 | .PHONY: all-lib |
e28b3332 | 2218 | |
aa2e2d8d DE |
2219 | # Convenience rule to handle recursion. |
2220 | .PHONY: all-data-directory | |
2221 | all-data-directory: data-directory/Makefile | |
2222 | @$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=data-directory subdir_do | |
2223 | ||
c906108c SS |
2224 | # This is useful when debugging GDB, because some Unix's don't let you run GDB |
2225 | # on itself without copying the executable. So "make gdb1" will make | |
2226 | # gdb and put a copy in gdb1, and you can run it with "gdb gdb1". | |
2227 | # Removing gdb1 before the copy is the right thing if gdb1 is open | |
2228 | # in another process. | |
2229 | gdb1$(EXEEXT): gdb$(EXEEXT) | |
2230 | rm -f gdb1$(EXEEXT) | |
2231 | cp gdb$(EXEEXT) gdb1$(EXEEXT) | |
2232 | ||
c906108c SS |
2233 | # Put the proper machine-specific files first, so M-. on a machine |
2234 | # specific routine gets the one for the correct machine. (FIXME: those | |
2235 | # files go in twice; we should be removing them from the main list). | |
2236 | ||
2237 | # TAGS depends on all the files that go into it so you can rebuild TAGS | |
2238 | # with `make TAGS' and not have to say `rm TAGS' first. | |
2239 | ||
cfd53605 | 2240 | GDB_NM_FILE = @GDB_NM_FILE@ |
5998129b | 2241 | TAGS: $(TAGFILES_NO_SRCDIR) $(TAGFILES_WITH_SRCDIR) |
c906108c | 2242 | @echo Making TAGS |
9025569e | 2243 | etags `(test -n "$(GDB_NM_FILE)" && echo "$(srcdir)/$(GDB_NM_FILE)")` \ |
bd31016f | 2244 | `(for i in $(DEPFILES) $(TAGFILES_NO_SRCDIR); do \ |
c906108c SS |
2245 | echo $(srcdir)/$$i ; \ |
2246 | done ; for i in $(TAGFILES_WITH_SRCDIR); do \ | |
2247 | echo $$i ; \ | |
2248 | done) | sed -e 's/\.o$$/\.c/'` \ | |
2249 | `find $(srcdir)/config -name '*.h' -print` | |
2250 | ||
2251 | tags: TAGS | |
2252 | ||
b3a90332 | 2253 | clean mostlyclean: $(CONFIG_CLEAN) |
e28b3332 | 2254 | @$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(CLEANDIRS)" subdir_do |
d3814881 | 2255 | rm -f *.o *.a $(ADD_FILES) *~ init.c-tmp init.l-tmp version.c-tmp |
2c9de912 | 2256 | rm -f init.c version.c observer.h observer.inc |
104c1213 | 2257 | rm -f gdb$(EXEEXT) core make.log |
c906108c | 2258 | rm -f gdb[0-9]$(EXEEXT) |
847f5ce8 | 2259 | rm -f test-cp-name-parser$(EXEEXT) |
05a4558a | 2260 | rm -f xml-builtin.c stamp-xml |
3c54f140 | 2261 | rm -f $(DEPDIR)/* |
fb4c6eba | 2262 | |
8132723e | 2263 | # This used to depend on c-exp.c m2-exp.c TAGS |
c906108c SS |
2264 | # I believe this is wrong; the makefile standards for distclean just |
2265 | # describe removing files; the only sort of "re-create a distribution" | |
2266 | # functionality described is if the distributed files are unmodified. | |
4edb848c | 2267 | # NB: While GDBSERVER might be configured on native systems, it isn't |
a1f5b845 | 2268 | # always included in SUBDIRS. Remove the gdbserver files explicitly. |
c906108c | 2269 | distclean: clean |
e28b3332 | 2270 | @$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(CLEANDIRS)" subdir_do |
c971b7fa | 2271 | rm -rf $(GNULIB_BUILDDIR) |
4edb848c AC |
2272 | rm -f gdbserver/config.status gdbserver/config.log |
2273 | rm -f gdbserver/tm.h gdbserver/xm.h gdbserver/nm.h | |
2274 | rm -f gdbserver/Makefile gdbserver/config.cache | |
e2207b9a | 2275 | rm -f nm.h config.status config.h stamp-h gdb-gdb.gdb jit-reader.h |
c906108c SS |
2276 | rm -f y.output yacc.acts yacc.tmp y.tab.h |
2277 | rm -f config.log config.cache | |
2278 | rm -f Makefile | |
a417dc56 | 2279 | rm -rf $(DEPDIR) |
c906108c SS |
2280 | |
2281 | maintainer-clean: local-maintainer-clean do-maintainer-clean distclean | |
2282 | realclean: maintainer-clean | |
2283 | ||
2284 | local-maintainer-clean: | |
2285 | @echo "This command is intended for maintainers to use;" | |
2286 | @echo "it deletes files that may require special tools to rebuild." | |
8132723e | 2287 | rm -f c-exp.c \ |
847f5ce8 | 2288 | cp-name-parser.c \ |
8132723e | 2289 | ada-lex.c ada-exp.c \ |
edef7b8c | 2290 | d-exp.c f-exp.c go-exp.c m2-exp.c p-exp.c rust-exp.c |
c906108c SS |
2291 | rm -f TAGS $(INFOFILES) |
2292 | rm -f $(YYFILES) | |
db985757 | 2293 | rm -f nm.h config.status |
c906108c SS |
2294 | |
2295 | do-maintainer-clean: | |
e28b3332 | 2296 | @$(MAKE) $(FLAGS_TO_PASS) DO=maintainer-clean "DODIRS=$(CLEANDIRS)" \ |
c906108c SS |
2297 | subdir_do |
2298 | ||
ddc9cd0f | 2299 | diststuff: $(DISTSTUFF) $(PACKAGE).pot $(CATALOGS) |
1a645206 | 2300 | cd doc; $(MAKE) $(MFLAGS) diststuff |
c906108c SS |
2301 | |
2302 | subdir_do: force | |
2303 | @for i in $(DODIRS); do \ | |
9c9606fb DE |
2304 | case $$i in \ |
2305 | $(REQUIRED_SUBDIRS)) \ | |
2306 | if [ ! -f ./$$i/Makefile ] ; then \ | |
2307 | echo "Missing $$i/Makefile" >&2 ; \ | |
2308 | exit 1 ; \ | |
2309 | fi ;; \ | |
2310 | esac ; \ | |
c906108c SS |
2311 | if [ -f ./$$i/Makefile ] ; then \ |
2312 | if (cd ./$$i; \ | |
2313 | $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \ | |
2314 | else exit 1 ; fi ; \ | |
2315 | else true ; fi ; \ | |
2316 | done | |
2317 | ||
2318 | Makefile: Makefile.in config.status @frags@ | |
4e8d927d | 2319 | # Regenerate the Makefile and the tm.h / nm.h links. |
aa11fd3f | 2320 | CONFIG_FILES="Makefile" \ |
4e8d927d DJ |
2321 | CONFIG_COMMANDS= \ |
2322 | CONFIG_HEADERS= \ | |
2323 | $(SHELL) config.status | |
aa11fd3f | 2324 | |
c971b7fa PA |
2325 | $(GNULIB_BUILDDIR)/Makefile: gnulib/Makefile.in config.status @frags@ |
2326 | @cd $(GNULIB_BUILDDIR); CONFIG_FILES="Makefile" \ | |
aa11fd3f DJ |
2327 | CONFIG_COMMANDS="depfiles" \ |
2328 | CONFIG_HEADERS= \ | |
2329 | CONFIG_LINKS= \ | |
2330 | $(SHELL) config.status | |
c906108c | 2331 | |
aa2e2d8d DE |
2332 | data-directory/Makefile: data-directory/Makefile.in config.status @frags@ |
2333 | CONFIG_FILES="data-directory/Makefile" \ | |
2334 | CONFIG_COMMANDS="depfiles" \ | |
2335 | CONFIG_HEADERS= \ | |
2336 | CONFIG_LINKS= \ | |
2337 | $(SHELL) config.status | |
2338 | ||
9b557b58 DE |
2339 | .PHONY: run |
2340 | run: Makefile | |
2341 | ./gdb$(EXEEXT) --data-directory=`pwd`/data-directory $(GDBFLAGS) | |
2342 | ||
f997c383 SD |
2343 | jit-reader.h: $(srcdir)/jit-reader.in |
2344 | $(SHELL) config.status $@ | |
2345 | ||
b292c783 JK |
2346 | gcore: $(srcdir)/gcore.in |
2347 | $(SHELL) config.status $@ | |
2348 | ||
c906108c | 2349 | config.h: stamp-h ; @true |
1983cb9a | 2350 | stamp-h: $(srcdir)/config.in config.status |
4e8d927d | 2351 | CONFIG_HEADERS=config.h:config.in \ |
c068b4e8 | 2352 | CONFIG_COMMANDS="default depdir" \ |
4e8d927d DJ |
2353 | CONFIG_FILES= \ |
2354 | CONFIG_LINKS= \ | |
2355 | $(SHELL) config.status | |
2356 | ||
270c9937 | 2357 | config.status: $(srcdir)/configure configure.tgt configure.host ../bfd/development.sh |
c906108c SS |
2358 | $(SHELL) config.status --recheck |
2359 | ||
1983cb9a | 2360 | ACLOCAL = aclocal |
c971b7fa | 2361 | ACLOCAL_AMFLAGS = -I ../config |
7d928dac PA |
2362 | |
2363 | # Keep these in sync with the includes in acinclude.m4. | |
1983cb9a RW |
2364 | aclocal_m4_deps = \ |
2365 | configure.ac \ | |
c971b7fa | 2366 | acx_configure_dir.m4 \ |
17ef446e | 2367 | libmcheck.m4 \ |
f6a88844 | 2368 | transform.m4 \ |
1983cb9a RW |
2369 | ../bfd/bfd.m4 \ |
2370 | ../config/acinclude.m4 \ | |
7d928dac PA |
2371 | ../config/plugins.m4 \ |
2372 | ../config/lead-dot.m4 \ | |
1983cb9a | 2373 | ../config/override.m4 \ |
7d928dac | 2374 | ../config/largefile.m4 \ |
1983cb9a RW |
2375 | ../config/gettext-sister.m4 \ |
2376 | ../config/lib-ld.m4 \ | |
2377 | ../config/lib-prefix.m4 \ | |
2378 | ../config/lib-link.m4 \ | |
2379 | ../config/acx.m4 \ | |
2380 | ../config/tcl.m4 \ | |
2381 | ../config/depstand.m4 \ | |
2382 | ../config/lcmessage.m4 \ | |
7d928dac PA |
2383 | ../config/codeset.m4 \ |
2384 | ../config/zlib.m4 | |
1983cb9a RW |
2385 | |
2386 | $(srcdir)/aclocal.m4: @MAINTAINER_MODE_TRUE@ $(aclocal_m4_deps) | |
2387 | cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | |
2388 | ||
2389 | AUTOCONF = autoconf | |
2390 | configure_deps = $(srcdir)/configure.ac $(srcdir)/aclocal.m4 | |
2391 | $(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(configure_deps) | |
2392 | cd $(srcdir) && $(AUTOCONF) | |
2393 | ||
2394 | AUTOHEADER = autoheader | |
2395 | $(srcdir)/config.in: @MAINTAINER_MODE_TRUE@ $(configure_deps) | |
2396 | cd $(srcdir) && $(AUTOHEADER) | |
2397 | rm -f stamp-h | |
2398 | touch $@ | |
2399 | ||
2400 | # automatic rebuilding in automake-generated Makefiles requires | |
2401 | # this rule in the toplevel Makefile, which, with GNU make, causes | |
2402 | # the desired updates through the implicit regeneration of the Makefile | |
2403 | # and all of its prerequisites. | |
2404 | am--refresh: | |
2405 | @: | |
2406 | ||
c906108c SS |
2407 | force: |
2408 | ||
2409 | # Documentation! | |
2410 | # GDB QUICK REFERENCE (TeX dvi file, CM fonts) | |
2411 | doc/refcard.dvi: | |
2412 | cd doc; $(MAKE) refcard.dvi $(FLAGS_TO_PASS) | |
2413 | ||
2414 | # GDB QUICK REFERENCE (PostScript output, common PS fonts) | |
2415 | doc/refcard.ps: | |
2416 | cd doc; $(MAKE) refcard.ps $(FLAGS_TO_PASS) | |
2417 | ||
2418 | # GDB MANUAL: TeX dvi file | |
2419 | doc/gdb.dvi: | |
2420 | cd doc; $(MAKE) gdb.dvi $(FLAGS_TO_PASS) | |
2421 | ||
2422 | # GDB MANUAL: info file | |
2423 | doc/gdb.info: | |
2424 | cd doc; $(MAKE) gdb.info $(FLAGS_TO_PASS) | |
2425 | ||
2426 | # Make copying.c from COPYING | |
a417dc56 | 2427 | $(srcdir)/copying.c: @MAINTAINER_MODE_TRUE@ $(srcdir)/../COPYING3 $(srcdir)/copying.awk |
413ccac7 | 2428 | awk -f $(srcdir)/copying.awk \ |
4de6a07e | 2429 | < $(srcdir)/../COPYING3 > $(srcdir)/copying.tmp |
413ccac7 | 2430 | mv $(srcdir)/copying.tmp $(srcdir)/copying.c |
c906108c | 2431 | |
d6c2da54 | 2432 | version.c: Makefile version.in $(srcdir)/../bfd/version.h $(srcdir)/common/create-version.sh |
01208463 TT |
2433 | $(SHELL) $(srcdir)/common/create-version.sh $(srcdir) \ |
2434 | $(host_alias) $(target_alias) version.c | |
c906108c | 2435 | |
7a464420 AC |
2436 | observer.h: observer.sh doc/observer.texi |
2437 | ${srcdir}/observer.sh h ${srcdir}/doc/observer.texi observer.h | |
2438 | ||
2439 | observer.inc: observer.sh doc/observer.texi | |
2440 | ${srcdir}/observer.sh inc ${srcdir}/doc/observer.texi observer.inc | |
c906108c | 2441 | |
c906108c SS |
2442 | lint: $(LINTFILES) |
2443 | $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \ | |
b9ff61f8 | 2444 | `echo $(DEPFILES) $(CONFIG_OBS) | sed 's/\.o /\.c /g'` |
c906108c SS |
2445 | |
2446 | gdb.cxref: $(SFILES) | |
2447 | cxref -I. $(SFILES) >gdb.cxref | |
2448 | ||
2449 | force_update: | |
2450 | ||
2451 | # GNU Make has an annoying habit of putting *all* the Makefile variables | |
2452 | # into the environment, unless you include this target as a circumvention. | |
2453 | # Rumor is that this will be fixed (and this target can be removed) | |
2454 | # in GNU Make 4.0. | |
2455 | .NOEXPORT: | |
2456 | ||
2457 | # GNU Make 3.63 has a different problem: it keeps tacking command line | |
2458 | # overrides onto the definition of $(MAKE). This variable setting | |
2459 | # will remove them. | |
8629c02c | 2460 | MAKEOVERRIDES = |
c906108c | 2461 | |
b1364885 | 2462 | ALLDEPFILES = \ |
9d19df75 | 2463 | aarch64-linux-nat.c \ |
b593ecca SM |
2464 | aarch64-linux-tdep.c \ |
2465 | aarch64-newlib-tdep.c \ | |
2466 | aarch64-tdep.c \ | |
c41669e0 | 2467 | aix-thread.c \ |
03b62bbb SM |
2468 | alpha-bsd-nat.c \ |
2469 | alpha-bsd-tdep.c \ | |
b593ecca | 2470 | alpha-linux-nat.c \ |
32a8097b | 2471 | alpha-linux-tdep.c \ |
b593ecca | 2472 | alpha-mdebug-tdep.c \ |
03b62bbb SM |
2473 | alpha-nbsd-tdep.c \ |
2474 | alpha-obsd-tdep.c \ | |
b593ecca | 2475 | alpha-tdep.c \ |
03b62bbb | 2476 | amd64-bsd-nat.c \ |
5cd226f2 | 2477 | amd64-darwin-tdep.c \ |
4c1d2973 | 2478 | amd64-dicos-tdep.c \ |
03b62bbb SM |
2479 | amd64-fbsd-nat.c \ |
2480 | amd64-fbsd-tdep.c \ | |
b593ecca SM |
2481 | amd64-linux-nat.c \ |
2482 | amd64-linux-tdep.c \ | |
2483 | amd64-nat.c \ | |
03b62bbb SM |
2484 | amd64-nbsd-nat.c \ |
2485 | amd64-nbsd-tdep.c \ | |
2486 | amd64-obsd-nat.c \ | |
2487 | amd64-obsd-tdep.c \ | |
0bbc026e | 2488 | amd64-sol2-tdep.c \ |
b593ecca | 2489 | amd64-tdep.c \ |
b593ecca SM |
2490 | arc-tdep.c \ |
2491 | arm.c \ | |
03b62bbb | 2492 | arm-bsd-tdep.c \ |
b593ecca SM |
2493 | arm-get-next-pcs.c \ |
2494 | arm-linux.c \ | |
2495 | arm-linux-nat.c \ | |
2496 | arm-linux-tdep.c \ | |
03b62bbb SM |
2497 | arm-nbsd-nat.c \ |
2498 | arm-nbsd-tdep.c \ | |
2499 | arm-obsd-tdep.c \ | |
b593ecca SM |
2500 | arm-symbian-tdep.c \ |
2501 | arm-tdep.c \ | |
8818c391 | 2502 | avr-tdep.c \ |
b593ecca SM |
2503 | bfin-linux-tdep.c \ |
2504 | bfin-tdep.c \ | |
2505 | bsd-kvm.c \ | |
2506 | bsd-uthread.c \ | |
06b9f45f | 2507 | core-regset.c \ |
b593ecca SM |
2508 | darwin-nat.c \ |
2509 | dcache.c \ | |
2510 | dcache.c \ | |
2511 | dicos-tdep.c \ | |
4c1d2973 | 2512 | exec.c \ |
578c1c03 | 2513 | fbsd-nat.c \ |
a904c024 | 2514 | fbsd-tdep.c \ |
578c1c03 | 2515 | fork-child.c \ |
49d45b20 | 2516 | ft32-tdep.c \ |
a3640c75 | 2517 | glibc-tdep.c \ |
b593ecca SM |
2518 | go32-nat.c \ |
2519 | h8300-tdep.c \ | |
03b62bbb | 2520 | hppa-bsd-tdep.c \ |
b593ecca SM |
2521 | hppa-linux-nat.c \ |
2522 | hppa-linux-tdep.c \ | |
03b62bbb SM |
2523 | hppa-nbsd-nat.c \ |
2524 | hppa-nbsd-tdep.c \ | |
2525 | hppa-obsd-nat.c \ | |
2526 | hppa-obsd-tdep.c \ | |
61a12cfa | 2527 | hppa-tdep.c \ |
03b62bbb SM |
2528 | i386-bsd-nat.c \ |
2529 | i386-bsd-tdep.c \ | |
b593ecca SM |
2530 | i386-cygwin-tdep.c \ |
2531 | i386-darwin-nat.c \ | |
2532 | i386-darwin-tdep.c \ | |
a15c5c83 | 2533 | i386-dicos-tdep.c \ |
03b62bbb SM |
2534 | i386-fbsd-nat.c \ |
2535 | i386-fbsd-tdep.c \ | |
2536 | i386-gnu-nat.c \ | |
2537 | i386-gnu-tdep.c \ | |
b593ecca SM |
2538 | i386-linux-nat.c \ |
2539 | i386-linux-tdep.c \ | |
03b62bbb SM |
2540 | i386-nbsd-nat.c \ |
2541 | i386-nbsd-tdep.c \ | |
2542 | i386-obsd-nat.c \ | |
2543 | i386-obsd-tdep.c \ | |
b593ecca SM |
2544 | i386-sol2-nat.c \ |
2545 | i386-sol2-tdep.c \ | |
2546 | i386-tdep.c \ | |
03b62bbb | 2547 | i386-v4-nat.c \ |
b593ecca | 2548 | i387-tdep.c \ |
05e7c244 | 2549 | ia64-libunwind-tdep.c \ |
b593ecca SM |
2550 | ia64-linux-nat.c \ |
2551 | ia64-linux-tdep.c \ | |
2552 | ia64-tdep.c \ | |
2553 | ia64-vms-tdep.c \ | |
2554 | inf-ptrace.c \ | |
8a112c90 | 2555 | linux-fork.c \ |
b7f6bf22 | 2556 | linux-record.c \ |
b593ecca | 2557 | linux-tdep.c \ |
c28c63d8 | 2558 | lm32-tdep.c \ |
b593ecca SM |
2559 | m32r-linux-nat.c \ |
2560 | m32r-linux-tdep.c \ | |
9b32d526 | 2561 | m32r-tdep.c \ |
b593ecca | 2562 | m68hc11-tdep.c \ |
03b62bbb SM |
2563 | m68k-bsd-nat.c \ |
2564 | m68k-bsd-tdep.c \ | |
2565 | m68k-linux-nat.c \ | |
2566 | m68k-linux-tdep.c \ | |
c906108c | 2567 | m68k-tdep.c \ |
03b62bbb | 2568 | m88k-bsd-nat.c \ |
b593ecca | 2569 | m88k-tdep.c \ |
b593ecca SM |
2570 | microblaze-linux-tdep.c \ |
2571 | microblaze-tdep.c \ | |
2572 | mingw-hdep.c \ | |
b268007c | 2573 | mips-fbsd-nat.c \ |
387360da | 2574 | mips-fbsd-tdep.c \ |
b593ecca SM |
2575 | mips-linux-nat.c \ |
2576 | mips-linux-tdep.c \ | |
03b62bbb SM |
2577 | mips-nbsd-nat.c \ |
2578 | mips-nbsd-tdep.c \ | |
bb7e3f4d | 2579 | mips-sde-tdep.c \ |
d0e5500c | 2580 | mips-tdep.c \ |
03b62bbb SM |
2581 | mips64-obsd-nat.c \ |
2582 | mips64-obsd-tdep.c \ | |
586cf749 | 2583 | msp430-tdep.c \ |
b593ecca SM |
2584 | nbsd-nat.c \ |
2585 | nbsd-tdep.c \ | |
a28d8e50 | 2586 | nds32-tdep.c \ |
b593ecca SM |
2587 | nios2-linux-tdep.c \ |
2588 | nios2-tdep.c \ | |
2589 | obsd-nat.c \ | |
2590 | obsd-tdep.c \ | |
2591 | posix-hdep.c \ | |
03b62bbb SM |
2592 | ppc-fbsd-nat.c \ |
2593 | ppc-fbsd-tdep.c \ | |
b593ecca SM |
2594 | ppc-linux-nat.c \ |
2595 | ppc-linux-tdep.c \ | |
03b62bbb SM |
2596 | ppc-nbsd-nat.c \ |
2597 | ppc-nbsd-tdep.c \ | |
2598 | ppc-obsd-nat.c \ | |
2599 | ppc-obsd-tdep.c \ | |
b593ecca SM |
2600 | ppc-ravenscar-thread.c \ |
2601 | ppc-sysv-tdep.c \ | |
2602 | ppc64-tdep.c \ | |
c5bb1243 | 2603 | procfs.c \ |
67c50e6e | 2604 | ravenscar-thread.c \ |
1f5befc1 | 2605 | remote-sim.c \ |
a58b110a | 2606 | rl78-tdep.c \ |
d5367fe1 | 2607 | rs6000-lynx178-tdep.c \ |
b593ecca SM |
2608 | rs6000-nat.c \ |
2609 | rs6000-tdep.c \ | |
e5586183 | 2610 | rx-tdep.c \ |
b593ecca SM |
2611 | s390-linux-nat.c \ |
2612 | s390-linux-tdep.c \ | |
27fd2f50 | 2613 | score-tdep.c \ |
b593ecca SM |
2614 | ser-go32.c \ |
2615 | ser-mingw.c \ | |
2616 | ser-pipe.c \ | |
2617 | ser-tcp.c \ | |
03b62bbb SM |
2618 | sh-nbsd-nat.c \ |
2619 | sh-nbsd-tdep.c \ | |
b593ecca SM |
2620 | sh-tdep.c \ |
2621 | sh64-tdep.c \ | |
081bf9da | 2622 | sol2-tdep.c \ |
b593ecca SM |
2623 | solib-aix.c \ |
2624 | solib-spu.c \ | |
3831839c | 2625 | solib-svr4.c \ |
b593ecca SM |
2626 | sparc-linux-nat.c \ |
2627 | sparc-linux-tdep.c \ | |
2628 | sparc-nat.c \ | |
03b62bbb SM |
2629 | sparc-nbsd-nat.c \ |
2630 | sparc-nbsd-tdep.c \ | |
2631 | sparc-obsd-tdep.c \ | |
e6f9c00b | 2632 | sparc-ravenscar-thread.c \ |
b593ecca SM |
2633 | sparc-sol2-nat.c \ |
2634 | sparc-sol2-tdep.c \ | |
2635 | sparc-tdep.c \ | |
03b62bbb SM |
2636 | sparc64-fbsd-nat.c \ |
2637 | sparc64-fbsd-tdep.c \ | |
b593ecca SM |
2638 | sparc64-linux-nat.c \ |
2639 | sparc64-linux-tdep.c \ | |
2640 | sparc64-nat.c \ | |
03b62bbb SM |
2641 | sparc64-nbsd-nat.c \ |
2642 | sparc64-nbsd-tdep.c \ | |
2643 | sparc64-obsd-nat.c \ | |
2644 | sparc64-obsd-tdep.c \ | |
b593ecca SM |
2645 | sparc64-sol2-tdep.c \ |
2646 | sparc64-tdep.c \ | |
b593ecca SM |
2647 | spu-linux-nat.c \ |
2648 | spu-multiarch.c \ | |
2649 | spu-tdep.c \ | |
2650 | tilegx-linux-nat.c \ | |
2651 | tilegx-linux-tdep.c \ | |
2652 | tilegx-tdep.c \ | |
181124bc | 2653 | v850-tdep.c \ |
03b62bbb SM |
2654 | vax-bsd-nat.c \ |
2655 | vax-nbsd-tdep.c \ | |
b593ecca | 2656 | vax-tdep.c \ |
b593ecca SM |
2657 | windows-nat.c \ |
2658 | windows-tdep.c \ | |
2659 | x86-nat.c \ | |
4d1eb6b4 | 2660 | xcoffread.c \ |
ca3bf3bd | 2661 | xstormy16-tdep.c \ |
b593ecca SM |
2662 | xtensa-config.c \ |
2663 | xtensa-linux-nat.c \ | |
2664 | xtensa-linux-tdep.c \ | |
2665 | xtensa-tdep.c \ | |
2666 | xtensa-xtregs.c \ | |
2667 | common/mingw-strerror.c \ | |
2668 | common/posix-strerror.c | |
c906108c | 2669 | |
a1f5b845 | 2670 | # Some files need explicit build rules (due to -Werror problems) or due |
f92d4a7b AC |
2671 | # to sub-directory fun 'n' games. |
2672 | ||
cf6a0e73 AC |
2673 | # FIXME: cagney/2003-08-10: "monitor.c" gets -Wformat-nonliteral |
2674 | # errors. It turns out that that is the least of monitor.c's | |
2675 | # problems. The function print_vsprintf appears to be using | |
2676 | # va_arg(long) to extract CORE_ADDR parameters - something that | |
2677 | # definitly will not work. "monitor.c" needs to be rewritten so that | |
2678 | # it doesn't use format strings and instead uses callbacks. | |
2679 | monitor.o: $(srcdir)/monitor.c | |
9a35ccf7 JK |
2680 | $(COMPILE.pre) $(INTERNAL_CFLAGS) $(GDB_WARN_CFLAGS_NO_FORMAT) \ |
2681 | $(COMPILE.post) $(srcdir)/monitor.c | |
a417dc56 | 2682 | $(POSTCOMPILE) |
cf6a0e73 | 2683 | |
46e9880c DJ |
2684 | # Do not try to build "printcmd.c" with -Wformat-nonliteral. It manually |
2685 | # checks format strings. | |
4677b456 | 2686 | printcmd.o: $(srcdir)/printcmd.c |
9a35ccf7 JK |
2687 | $(COMPILE.pre) $(INTERNAL_CFLAGS) $(GDB_WARN_CFLAGS_NO_FORMAT) \ |
2688 | $(COMPILE.post) $(srcdir)/printcmd.c | |
a417dc56 | 2689 | $(POSTCOMPILE) |
4677b456 | 2690 | |
94e36acc TT |
2691 | # ada-exp.c can appear in srcdir, for releases; or in ., for |
2692 | # development builds. | |
2693 | ADA_EXP_C = `if test -f ada-exp.c; then echo ada-exp.c; else echo $(srcdir)/ada-exp.c; fi` | |
2694 | ||
2695 | # Some versions of flex give output that triggers | |
2696 | # -Wold-style-definition. | |
2697 | ada-exp.o: ada-exp.c | |
2698 | $(COMPILE.pre) $(INTERNAL_CFLAGS) $(GDB_WARN_CFLAGS_NO_DEFS) \ | |
2699 | $(COMPILE.post) $(ADA_EXP_C) | |
2700 | $(POSTCOMPILE) | |
2701 | ||
ddc9cd0f AC |
2702 | # Message files. Based on code in gcc/Makefile.in. |
2703 | ||
2704 | # Rules for generating translated message descriptions. Disabled by | |
2705 | # autoconf if the tools are not available. | |
2706 | ||
ddc9cd0f AC |
2707 | .PHONY: all-po install-po uninstall-po clean-po update-po $(PACKAGE).pot |
2708 | ||
2709 | all-po: $(CATALOGS) | |
2710 | ||
2711 | # This notation should be acceptable to all Make implementations used | |
2712 | # by people who are interested in updating .po files. | |
2713 | update-po: $(CATALOGS:.gmo=.pox) | |
2714 | ||
2715 | # N.B. We do not attempt to copy these into $(srcdir). The snapshot | |
2716 | # script does that. | |
5443506e | 2717 | %.gmo: %.po |
ddc9cd0f AC |
2718 | -test -d po || mkdir po |
2719 | $(GMSGFMT) --statistics -o $@ $< | |
2720 | ||
2721 | # The new .po has to be gone over by hand, so we deposit it into | |
2722 | # build/po with a different extension. If build/po/$(PACKAGE).pot | |
2723 | # exists, use it (it was just created), else use the one in srcdir. | |
5443506e | 2724 | %.pox: %.po |
ddc9cd0f AC |
2725 | -test -d po || mkdir po |
2726 | $(MSGMERGE) $< `if test -f po/$(PACKAGE).pot; \ | |
2727 | then echo po/$(PACKAGE).pot; \ | |
2728 | else echo $(srcdir)/po/$(PACKAGE).pot; fi` -o $@ | |
2729 | ||
2730 | # This rule has to look for .gmo modules in both srcdir and the cwd, | |
2731 | # and has to check that we actually have a catalog for each language, | |
2732 | # in case they weren't built or included with the distribution. | |
2733 | install-po: | |
2734 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(datadir) | |
2735 | cats="$(CATALOGS)"; for cat in $$cats; do \ | |
2736 | lang=`basename $$cat | sed 's/\.gmo$$//'`; \ | |
2737 | if [ -f $$cat ]; then :; \ | |
2738 | elif [ -f $(srcdir)/$$cat ]; then cat=$(srcdir)/$$cat; \ | |
2739 | else continue; \ | |
2740 | fi; \ | |
2741 | dir=$(localedir)/$$lang/LC_MESSAGES; \ | |
2742 | echo $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$$dir; \ | |
2743 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$$dir || exit 1; \ | |
2744 | echo $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \ | |
2745 | $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \ | |
2746 | done | |
2747 | uninstall-po: | |
2748 | cats="$(CATALOGS)"; for cat in $$cats; do \ | |
2749 | lang=`basename $$cat | sed 's/\.gmo$$//'`; \ | |
2750 | if [ -f $$cat ]; then :; \ | |
2751 | elif [ -f $(srcdir)/$$cat ]; then cat=$(srcdir)/$$cat; \ | |
2752 | else continue; \ | |
2753 | fi; \ | |
2754 | dir=$(localedir)/$$lang/LC_MESSAGES; \ | |
2755 | rm -f $(DESTDIR)$$dir/$(PACKAGE).mo; \ | |
2756 | done | |
2757 | # Delete po/*.gmo only if we are not building in the source directory. | |
2758 | clean-po: | |
2759 | -if [ ! -f Makefile.in ]; then rm -f po/*.gmo; fi | |
2760 | ||
2761 | # Rule for regenerating the message template (gdb.pot). Instead of | |
2762 | # forcing everyone to edit POTFILES.in, which proved impractical, this | |
2763 | # rule has no dependencies and always regenerates gdb.pot. This is | |
2764 | # relatively harmless since the .po files do not directly depend on | |
2765 | # it. The .pot file is left in the build directory. Since GDB's | |
2766 | # Makefile lacks a cannonical list of sources (missing xm, tm and nm | |
2767 | # files) force this rule. | |
2768 | $(PACKAGE).pot: po/$(PACKAGE).pot | |
2769 | po/$(PACKAGE).pot: force | |
2770 | -test -d po || mkdir po | |
2771 | sh -e $(srcdir)/po/gdbtext $(XGETTEXT) $(PACKAGE) . $(srcdir) | |
2772 | ||
84367a3e | 2773 | |
0e0d15ca | 2774 | # |
1517c6d1 | 2775 | # YACC/LEX dependencies |
0e0d15ca | 2776 | # |
8132723e AC |
2777 | # LANG-exp.c is generated in objdir from LANG-exp.y if it doesn't |
2778 | # exist in srcdir, then compiled in objdir to LANG-exp.o. If we | |
2779 | # said LANG-exp.c rather than ./c-exp.c some makes would | |
2780 | # sometimes re-write it into $(srcdir)/c-exp.c. Remove bogus | |
1517c6d1 | 2781 | # decls for malloc/realloc/free which conflict with everything else. |
8132723e | 2782 | # Strictly speaking c-exp.c should therefore depend on |
1517c6d1 | 2783 | # Makefile.in, but that was a pretty big annoyance. |
0e0d15ca | 2784 | |
5443506e | 2785 | %.c: %.y |
954d8cae TT |
2786 | rm -f $@ $@.tmp |
2787 | $(SHELL) $(YLWRAP) $< y.tab.c $@ -- $(YACC) $(YFLAGS) && mv $@ $@.tmp \ | |
2788 | || (rm -f $@; false) | |
2789 | sed -e '/extern.*malloc/d' \ | |
1517c6d1 AC |
2790 | -e '/extern.*realloc/d' \ |
2791 | -e '/extern.*free/d' \ | |
2792 | -e '/include.*malloc.h/d' \ | |
2941da8c MC |
2793 | -e 's/\([^x]\)malloc/\1xmalloc/g' \ |
2794 | -e 's/\([^x]\)realloc/\1xrealloc/g' \ | |
676e87b3 PA |
2795 | -e 's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \ |
2796 | -e 's/\([ \t;,(]\)free$$/\1xfree/g' \ | |
91092ee5 | 2797 | -e '/^#line.*y.tab.c/d' \ |
722bcb33 | 2798 | -e 's/YY_NULL/YY_NULLPTR/g' \ |
954d8cae TT |
2799 | < $@.tmp > $@ |
2800 | rm -f $@.tmp | |
5443506e | 2801 | %.c: %.l |
23485554 PH |
2802 | if [ "$(FLEX)" ] && $(FLEX) --version >/dev/null 2>&1; then \ |
2803 | $(FLEX) -o$@ $< && \ | |
2804 | rm -f $@.new && \ | |
2805 | sed -e '/extern.*malloc/d' \ | |
2806 | -e '/extern.*realloc/d' \ | |
2807 | -e '/extern.*free/d' \ | |
2808 | -e '/include.*malloc.h/d' \ | |
2941da8c MC |
2809 | -e 's/\([^x]\)malloc/\1xmalloc/g' \ |
2810 | -e 's/\([^x]\)realloc/\1xrealloc/g' \ | |
676e87b3 PA |
2811 | -e 's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \ |
2812 | -e 's/\([ \t;,(]\)free$$/\1xfree/g' \ | |
23485554 PH |
2813 | -e 's/yy_flex_xrealloc/yyxrealloc/g' \ |
2814 | < $@ > $@.new && \ | |
2815 | rm -f $@ && \ | |
2816 | mv $@.new $@; \ | |
2817 | elif [ -f $@ ]; then \ | |
8132723e | 2818 | echo "Warning: $*.c older than $*.l and flex not available."; \ |
23485554 PH |
2819 | else \ |
2820 | echo "$@ missing and flex not available."; \ | |
2821 | false; \ | |
1517c6d1 | 2822 | fi |
8132723e | 2823 | |
7ba86c9e | 2824 | .PRECIOUS: ada-lex.c |
0e0d15ca | 2825 | |
108546a0 DJ |
2826 | # XML rules |
2827 | ||
2828 | xml-builtin.c: stamp-xml; @true | |
2829 | stamp-xml: $(srcdir)/features/feature_to_c.sh Makefile $(XMLFILES) | |
2830 | rm -f xml-builtin.tmp | |
2831 | AWK="$(AWK)" \ | |
2832 | $(SHELL) $(srcdir)/features/feature_to_c.sh \ | |
2833 | xml-builtin.tmp $(XMLFILES) | |
2834 | $(SHELL) $(srcdir)/../move-if-change xml-builtin.tmp xml-builtin.c | |
2835 | echo stamp > stamp-xml | |
2836 | ||
2837 | .PRECIOUS: xml-builtin.c | |
2838 | ||
541a7aac AC |
2839 | # |
2840 | # GDBTK sub-directory | |
2841 | # | |
2842 | ||
f15ab4a7 AC |
2843 | all-gdbtk: insight$(EXEEXT) |
2844 | ||
2845 | install-gdbtk: | |
2846 | transformed_name=`t='$(program_transform_name)'; \ | |
2847 | echo insight | sed -e $$t` ; \ | |
2848 | if test "x$$transformed_name" = x; then \ | |
2849 | transformed_name=insight ; \ | |
2850 | else \ | |
2851 | true ; \ | |
2852 | fi ; \ | |
c938e9b0 | 2853 | $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir); \ |
72bdd927 AC |
2854 | $(INSTALL_PROGRAM) insight$(EXEEXT) \ |
2855 | $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \ | |
2856 | $(SHELL) $(srcdir)/../mkinstalldirs \ | |
2857 | $(DESTDIR)$(GDBTK_LIBRARY) ; \ | |
2858 | $(SHELL) $(srcdir)/../mkinstalldirs \ | |
2859 | $(DESTDIR)$(libdir)/insight$(GDBTK_VERSION) ; \ | |
2860 | $(INSTALL_DATA) $(srcdir)/gdbtk/plugins/plugins.tcl \ | |
2861 | $(DESTDIR)$(libdir)/insight$(GDBTK_VERSION)/plugins.tcl ; \ | |
2862 | $(SHELL) $(srcdir)/../mkinstalldirs \ | |
2863 | $(DESTDIR)$(GDBTK_LIBRARY)/images \ | |
2864 | $(DESTDIR)$(GDBTK_LIBRARY)/images2 ; \ | |
f15ab4a7 | 2865 | $(SHELL) $(srcdir)/../mkinstalldirs \ |
72bdd927 AC |
2866 | $(DESTDIR)$(GDBTK_LIBRARY)/help \ |
2867 | $(DESTDIR)$(GDBTK_LIBRARY)/help/images \ | |
2868 | $(DESTDIR)$(GDBTK_LIBRARY)/help/trace ; \ | |
f15ab4a7 | 2869 | cd $(srcdir)/gdbtk/library ; \ |
df21e465 | 2870 | for i in *.tcl *.itcl *.ith *.itb images/*.gif images2/*.gif images/icons.txt images2/icons.txt tclIndex help/*.html help/trace/*.html help/trace/index.toc help/images/*.gif help/images/*.png; \ |
f15ab4a7 | 2871 | do \ |
72bdd927 | 2872 | $(INSTALL_DATA) $$i $(DESTDIR)$(GDBTK_LIBRARY)/$$i ; \ |
f15ab4a7 AC |
2873 | done ; |
2874 | ||
2875 | uninstall-gdbtk: | |
2876 | transformed_name=`t='$(program_transform_name)'; \ | |
2877 | echo insight | sed -e $$t` ; \ | |
2878 | if test "x$$transformed_name" = x; then \ | |
2879 | transformed_name=insight ; \ | |
2880 | else \ | |
2881 | true ; \ | |
2882 | fi ; \ | |
72bdd927 AC |
2883 | rm -f $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \ |
2884 | rm -rf $(DESTDIR)$(GDBTK_LIBRARY) | |
f15ab4a7 AC |
2885 | |
2886 | clean-gdbtk: | |
2887 | rm -f insight$(EXEEXT) | |
2888 | ||
2889 | # Removing the old gdb first works better if it is running, at least on SunOS. | |
d836ee13 | 2890 | insight$(EXEEXT): gdbtk-main.o libgdb.a $(ADD_DEPS) \ |
f15ab4a7 AC |
2891 | $(CDEPS) $(TDEPLIBS) |
2892 | rm -f insight$(EXEEXT) | |
72cfdc76 | 2893 | $(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) \ |
d836ee13 | 2894 | -o insight$(EXEEXT) gdbtk-main.o libgdb.a \ |
f15ab4a7 AC |
2895 | $(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES) |
2896 | ||
541a7aac AC |
2897 | gdbres.o: $(srcdir)/gdbtk/gdb.rc $(srcdir)/gdbtk/gdbtool.ico |
2898 | $(WINDRES) --include $(srcdir)/gdbtk $(srcdir)/gdbtk/gdb.rc gdbres.o | |
2899 | ||
a417dc56 RW |
2900 | all_gdbtk_cflags = $(IDE_CFLAGS) $(ITCL_CFLAGS) \ |
2901 | $(ITK_CFLAGS) $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) \ | |
2902 | $(GDBTK_CFLAGS) \ | |
2903 | -DGDBTK_LIBRARY=\"$(GDBTK_LIBRARY)\" \ | |
2904 | -DSRC_DIR=\"$(GDBTK_SRC_DIR)\" | |
2905 | ||
a417dc56 | 2906 | # |
3b165252 | 2907 | # Dependency tracking. |
a417dc56 RW |
2908 | # |
2909 | ||
3b165252 | 2910 | ifeq ($(DEPMODE),depmode=gcc3) |
a417dc56 RW |
2911 | # Note that we put the dependencies into a .Tpo file, then move them |
2912 | # into place if the compile succeeds. We need this because gcc does | |
2913 | # not atomically write the dependency output file. | |
3b165252 SM |
2914 | override COMPILE.post = -c -o $@ -MT $@ -MMD -MP \ |
2915 | -MF $(DEPDIR)/$(basename $(@F)).Tpo | |
2916 | override POSTCOMPILE = @mv $(DEPDIR)/$(basename $(@F)).Tpo \ | |
2917 | $(DEPDIR)/$(basename $(@F)).Po | |
2918 | else | |
2919 | override COMPILE.pre = source='$<' object='$@' libtool=no \ | |
2920 | DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC) | |
a417dc56 RW |
2921 | # depcomp handles atomicity for us, so we don't need a postcompile |
2922 | # step. | |
3b165252 SM |
2923 | override POSTCOMPILE = |
2924 | endif | |
a417dc56 RW |
2925 | |
2926 | # A list of all the objects we might care about in this build, for | |
2927 | # dependency tracking. | |
217bff3e | 2928 | all_object_files = gdb.o $(LIBGDB_OBS) gdbtk-main.o \ |
a417dc56 RW |
2929 | test-cp-name-parser.o |
2930 | ||
2931 | # Ensure that generated files are created early. Use order-only | |
2932 | # dependencies if available. They require GNU make 3.80 or newer, | |
2933 | # and the .VARIABLES variable was introduced at the same time. | |
3b165252 SM |
2934 | ifdef .VARIABLES |
2935 | $(all_object_files): | $(generated_files) | |
2936 | else | |
a417dc56 | 2937 | $(all_object_files) : $(generated_files) |
3b165252 | 2938 | endif |
a417dc56 RW |
2939 | |
2940 | # Dependencies. | |
3b165252 | 2941 | -include $(patsubst %.o, $(DEPDIR)/%.Po, $(all_object_files)) |
ed952ac5 | 2942 | |
ad02e4fe SM |
2943 | # Disable implicit make rules. |
2944 | include $(srcdir)/disable-implicit-rules.mk | |
2945 | ||
c906108c | 2946 | ### end of the gdb Makefile.in. |