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