1 # Copyright (C) 1989-2023 Free Software Foundation, Inc.
3 # This file is part of GDB.
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
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
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.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # Please keep lists in this file sorted alphabetically, with one item per line.
19 # Here are the general guidelines for ordering files and directories:
21 # - Files come before directories.
22 # - The extensions are not taken into account when comparing filenames, except
23 # if the filenames are otherwise equal.
24 # - A filename that is a prefix of another one comes before.
25 # - Underscores and dashes are treated equally, and come before alphanumeric
38 exec_prefix = @
exec_prefix@
40 host_alias
= @host_alias@
41 target_alias
= @target_alias@
42 program_transform_name
= @program_transform_name@
45 tooldir
= $(libdir)/$(target_alias
)
48 localedir
= @localedir@
50 man1dir = $(mandir)/man1
51 man2dir = $(mandir)/man2
52 man3dir = $(mandir)/man3
53 man4dir = $(mandir)/man4
54 man5dir = $(mandir)/man5
55 man6dir = $(mandir)/man6
56 man7dir = $(mandir)/man7
57 man8dir = $(mandir)/man8
58 man9dir = $(mandir)/man9
60 datarootdir
= @datarootdir@
64 includedir = @
includedir@
66 install_sh
= @install_sh@
68 # This can be referenced by `LIBINTL' as computed by
69 # ZW_GNU_GETTEXT_SISTER_DIR.
79 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
80 INSTALL_SCRIPT
= @INSTALL_SCRIPT@
81 INSTALL_STRIP_PROGRAM
= @INSTALL_STRIP_PROGRAM@
82 INSTALL_DATA
= @INSTALL_DATA@
103 CXX_DIALECT
= @CXX_DIALECT@
105 # Dependency tracking information.
106 DEPMODE
= @CCDEPMODE@
108 depcomp
= $(SHELL
) $(srcdir)/..
/depcomp
110 # Directory containing source files.
113 top_srcdir
= @top_srcdir@
115 include $(srcdir)/silent-rules.mk
117 # Note that these are overridden by GNU make-specific code below if
118 # GNU make is used. The overrides implement dependency tracking.
119 COMPILE.pre
= $(CXX
) -x c
++ $(CXX_DIALECT
)
120 COMPILE.post
= -c
-o
$@
123 # CXXFLAGS is at the very end on purpose, so that user-supplied flags can
124 # override internal flags.
125 COMPILE
= $(ECHO_CXX
) $(COMPILE.pre
) $(INTERNAL_CFLAGS
) $(CXXFLAGS
) \
130 # This is used to rebuild ada-lex.c from ada-lex.l. If the program is
131 # not defined, but ada-lex.c is present, compilation will continue,
132 # possibly with a warning.
135 YLWRAP
= $(srcdir)/..
/ylwrap
137 # where to find makeinfo, preferably one designed for texinfo-2
138 MAKEINFO
= @MAKEINFO@
139 MAKEINFOFLAGS
= @MAKEINFOFLAGS@
140 MAKEINFO_EXTRA_FLAGS
= @MAKEINFO_EXTRA_FLAGS@
141 MAKEINFO_CMD
= $(MAKEINFO
) $(MAKEINFOFLAGS
) $(MAKEINFO_EXTRA_FLAGS
)
143 MAKEHTML
= $(MAKEINFO_CMD
) --html
148 # Set this up with gcc if you have gnu ld and the loader will print out
149 # line numbers for undefined references.
151 CC_LD
= $(LIBTOOL
) $(SILENT_FLAG
) --mode
=link
$(CXX
) $(CXX_DIALECT
)
153 # Where is our "include" directory? Typically $(srcdir)/../include.
154 # This is essentially the header file directory for the library
155 # routines in libiberty.
156 INCLUDE_DIR
= $(srcdir)/..
/include
157 INCLUDE_CFLAGS
= -I
$(INCLUDE_DIR
)
159 # Where is the "-liberty" library? Typically in ../libiberty.
160 LIBIBERTY
= ..
/libiberty
/libiberty.a
162 # Where is the CTF library? Typically in ../libctf.
164 CTF_DEPS
= @CTF_DEPS@
166 # Where is the BFD library? Typically in ../bfd.
168 BFD
= $(BFD_DIR
)/libbfd.la
169 BFD_SRC
= $(srcdir)/$(BFD_DIR
)
170 BFD_CFLAGS
= -I
$(BFD_DIR
) -I
$(BFD_SRC
)
172 # This is where we get zlib from. zlibdir is -L../zlib and zlibinc is
173 # -I../zlib, unless we were configured with --with-system-zlib, in which
174 # case both are empty.
178 ZSTD_CFLAGS
= @ZSTD_CFLAGS@
179 ZSTD_LIBS
= @ZSTD_LIBS@
181 # Where is the decnumber library? Typically in ../libdecnumber.
182 LIBDECNUMBER_DIR
= ..
/libdecnumber
183 LIBDECNUMBER
= $(LIBDECNUMBER_DIR
)/libdecnumber.a
184 LIBDECNUMBER_SRC
= $(srcdir)/$(LIBDECNUMBER_DIR
)
185 LIBDECNUMBER_CFLAGS
= -I
$(LIBDECNUMBER_DIR
) -I
$(LIBDECNUMBER_SRC
)
187 # Where is the READLINE library? Typically in ../readline/readline.
188 READLINE_DIR
= ..
/readline
/readline
189 READLINE_SRC
= $(srcdir)/$(READLINE_DIR
)
190 READLINE
= @READLINE@
191 READLINE_DEPS
= @READLINE_DEPS@
192 READLINE_CFLAGS
= @READLINE_CFLAGS@
194 # Where is expat? This will be empty if expat was not available.
195 LIBEXPAT
= @LIBEXPAT@
197 # Where is lzma? This will be empty if lzma was not available.
200 # Where is libbabeltrace? This will be empty if libbabeltrace was not
202 LIBBABELTRACE
= @LIBBABELTRACE@
204 # Where is libxxhash? This will be empty if libxxhash was not
206 LIBXXHASH
= @LIBXXHASH@
208 # Where is libipt? This will be empty if libipt was not available.
211 # How to find GMP and MPFR
215 # GNU source highlight library.
216 SRCHIGH_LIBS
= @SRCHIGH_LIBS@
217 SRCHIGH_CFLAGS
= @SRCHIGH_CFLAGS@
219 WARN_CFLAGS
= @WARN_CFLAGS@
220 WERROR_CFLAGS
= @WERROR_CFLAGS@
221 GDB_WARN_CFLAGS
= $(WARN_CFLAGS
)
222 GDB_WERROR_CFLAGS
= $(WERROR_CFLAGS
)
224 PTHREAD_CFLAGS
= @PTHREAD_CFLAGS@
225 PTHREAD_LIBS
= @PTHREAD_LIBS@
227 DEBUGINFOD_CFLAGS
= @DEBUGINFOD_CFLAGS@
228 DEBUGINFOD_LIBS
= @DEBUGINFOD_LIBS@
230 AMD_DBGAPI_CFLAGS
= @AMD_DBGAPI_CFLAGS@
231 AMD_DBGAPI_LIBS
= @AMD_DBGAPI_LIBS@
233 RDYNAMIC
= @RDYNAMIC@
235 # Where is the INTL library? Typically in ../intl.
237 INTL_DEPS
= @LIBINTL_DEP@
238 INTL_CFLAGS
= @INCINTL@
240 # Where is the ICONV library? This will be empty if in libc or not available.
241 LIBICONV
= @LIBICONV@
243 # Did the user give us a --with-gdb-datadir option?
244 GDB_DATADIR
= @GDB_DATADIR@
248 CODESIGN_CERT
= @CODESIGN_CERT@
250 # Flags to pass to gdb when invoked with "make run".
253 # Helper code from gnulib.
254 GNULIB_PARENT_DIR
= ..
255 include $(GNULIB_PARENT_DIR
)/gnulib
/Makefile.gnulib.inc
258 LIBBACKTRACE_INC
=@LIBBACKTRACE_INC@
259 LIBBACKTRACE_LIB
=@LIBBACKTRACE_LIB@
261 SUPPORT
= ..
/gdbsupport
262 LIBSUPPORT
= $(SUPPORT
)/libgdbsupport.a
263 INCSUPPORT
= -I
$(srcdir)/..
-I..
266 # CLI sub directory definitons
280 SUBDIR_CLI_OBS
= $(patsubst %.c
,%.o
,$(SUBDIR_CLI_SRCS
))
283 # MI sub directory definitons
305 SUBDIR_MI_OBS
= $(patsubst %.c
,%.o
,$(SUBDIR_MI_SRCS
))
308 # TUI sub directory definitions
326 tui
/tui-wingeneral.c \
329 SUBDIR_TUI_OBS
= $(patsubst %.c
,%.o
,$(SUBDIR_TUI_SRCS
))
333 SUBDIR_TUI_CFLAGS
= -DTUI
=1
336 # GCC Compile support sub-directory definitions
338 SUBDIR_GCC_COMPILE_SRCS
= \
340 compile
/compile-c-support.c \
341 compile
/compile-c-symbols.c \
342 compile
/compile-c-types.c \
343 compile
/compile-cplus-symbols.c \
344 compile
/compile-cplus-types.c \
345 compile
/compile-loc2c.c \
346 compile
/compile-object-load.c \
347 compile
/compile-object-run.c
349 SUBDIR_GCC_COMPILE_OBS
= $(patsubst %.c
,%.o
,$(filter %.c
,$(SUBDIR_GCC_COMPILE_SRCS
)))
352 # Guile sub directory definitons for guile support.
354 SUBDIR_GUILE_SRCS
= \
357 guile
/scm-auto-load.c \
359 guile
/scm-breakpoint.c \
362 guile
/scm-exception.c \
365 guile
/scm-iterator.c \
366 guile
/scm-lazy-string.c \
368 guile
/scm-objfile.c \
371 guile
/scm-pretty-print.c \
372 guile
/scm-progspace.c \
373 guile
/scm-safe-call.c \
381 SUBDIR_GUILE_OBS
= $(patsubst %.c
,%.o
,$(SUBDIR_GUILE_SRCS
))
384 SUBDIR_GUILE_LDFLAGS
=
385 SUBDIR_GUILE_CFLAGS
=
388 # python sub directory definitons
390 SUBDIR_PYTHON_SRCS
= \
392 python
/py-auto-load.c \
394 python
/py-bpevent.c \
395 python
/py-breakpoint.c \
397 python
/py-connection.c \
398 python
/py-continueevent.c \
402 python
/py-evtregistry.c \
404 python
/py-exitedevent.c \
405 python
/py-finishbreakpoint.c \
407 python
/py-framefilter.c \
408 python
/py-function.c \
409 python
/py-gdb-readline.c \
410 python
/py-inferior.c \
411 python
/py-infevents.c \
412 python
/py-infthread.c \
413 python
/py-instruction.c \
414 python
/py-lazy-string.c \
415 python
/py-linetable.c \
419 python
/py-newobjfileevent.c \
420 python
/py-objfile.c \
422 python
/py-prettyprint.c \
423 python
/py-progspace.c \
425 python
/py-record-btrace.c \
426 python
/py-record-full.c \
427 python
/py-registers.c \
428 python
/py-signalevent.c \
429 python
/py-stopevent.c \
432 python
/py-threadevent.c \
439 python
/py-xmethods.c \
442 SUBDIR_PYTHON_OBS
= $(patsubst %.c
,%.o
,$(SUBDIR_PYTHON_SRCS
))
445 SUBDIR_PYTHON_LDFLAGS
=
446 SUBDIR_PYTHON_CFLAGS
=
450 gdbarch-selftests.c \
452 unittests
/array-view-selftests.c \
453 unittests
/child-path-selftests.c \
454 unittests
/cli-utils-selftests.c \
455 unittests
/command-def-selftests.c \
456 unittests
/common-utils-selftests.c \
457 unittests
/copy_bitwise-selftests.c \
458 unittests
/enum-flags-selftests.c \
459 unittests
/environ-selftests.c \
460 unittests
/filtered_iterator-selftests.c \
461 unittests
/format_pieces-selftests.c \
462 unittests
/frame_info_ptr-selftests.c \
463 unittests
/function-view-selftests.c \
464 unittests
/gdb_tilde_expand-selftests.c \
465 unittests
/gmp-utils-selftests.c \
466 unittests
/intrusive_list-selftests.c \
467 unittests
/lookup_name_info-selftests.c \
468 unittests
/memory-map-selftests.c \
469 unittests
/memrange-selftests.c \
470 unittests
/offset-type-selftests.c \
471 unittests
/observable-selftests.c \
472 unittests
/optional-selftests.c \
473 unittests
/packed-selftests.c \
474 unittests
/parallel-for-selftests.c \
475 unittests
/parse-connection-spec-selftests.c \
476 unittests
/path-join-selftests.c \
477 unittests
/ptid-selftests.c \
478 unittests
/main-thread-selftests.c \
479 unittests
/mkdir-recursive-selftests.c \
480 unittests
/rsp-low-selftests.c \
481 unittests
/scoped_fd-selftests.c \
482 unittests
/scoped_ignore_signal-selftests.c \
483 unittests
/scoped_mmap-selftests.c \
484 unittests
/scoped_restore-selftests.c \
485 unittests
/search-memory-selftests.c \
486 unittests
/string_view-selftests.c \
487 unittests
/style-selftests.c \
488 unittests
/tracepoint-selftests.c \
489 unittests
/tui-selftests.c \
490 unittests
/ui-file-selftests.c \
491 unittests
/unique_xmalloc_ptr_char.c \
492 unittests
/unpack-selftests.c \
493 unittests
/utils-selftests.c \
494 unittests
/vec-utils-selftests.c \
495 unittests
/xml-utils-selftests.c
497 SELFTESTS_OBS
= $(patsubst %.c
,%.o
,$(SELFTESTS_SRCS
))
499 SUBDIR_TARGET_SRCS
= target
/target.c target
/waitstatus.c
500 SUBDIR_TARGET_OBS
= $(patsubst %.c
,%.o
,$(SUBDIR_TARGET_SRCS
))
503 # Opcodes currently live in one of two places. Either they are in the
504 # opcode library, typically ../opcodes, or they are in a header file
506 # Where is the "-lopcodes" library, with (some of) the opcode tables and
508 OPCODES_DIR
= ..
/opcodes
509 OPCODES_SRC
= $(srcdir)/$(OPCODES_DIR
)
510 OPCODES
= $(OPCODES_DIR
)/libopcodes.la
511 # Where are the other opcode tables which only have header file
513 OP_INCLUDE
= $(INCLUDE_DIR
)/opcode
514 # See TOP_CFLAGS as well.
515 OPCODES_CFLAGS
= -I
$(OP_INCLUDE
)
517 # Allow includes like "opcodes/mumble.h".
518 TOP_CFLAGS
= -I
$(top_srcdir
)/..
520 # The simulator is usually nonexistent; targets that include one
521 # should set this to list all the .o or .a files to be linked in.
524 WIN32LIBS
= @WIN32LIBS@
526 # Tcl et al cflags and libraries
528 TCL_CFLAGS
= @TCL_INCLUDE@
529 GDBTKLIBS
= @GDBTKLIBS@
530 # Extra flags that the GDBTK files need:
531 GDBTK_CFLAGS
= @GDBTK_CFLAGS@
534 TK_CFLAGS
= @TK_INCLUDE@
536 X11_CFLAGS
= @TK_XINCLUDES@
540 WIN32LDAPP
= @WIN32LDAPP@
543 GUI_CFLAGS_X
= @GUI_CFLAGS_X@
544 IDE_CFLAGS
= $(GUI_CFLAGS_X
) $(IDE_CFLAGS_X
)
546 ALL_TCL_CFLAGS
= $(TCL_CFLAGS
) $(TK_CFLAGS
)
548 # The version of gdbtk we're building. This should be kept
549 # in sync with GDBTK_VERSION and friends in gdbtk.h.
551 GDBTK_LIBRARY
= $(datadir)/insight
$(GDBTK_VERSION
)
553 # Gdbtk requires an absolute path to the source directory or
554 # the testsuite won't run properly.
555 GDBTK_SRC_DIR
= @GDBTK_SRC_DIR@
568 SUBDIR_GDBTK_SRCS
= \
569 gdbtk
/generic
/gdbtk.c \
570 gdbtk
/generic
/gdbtk-bp.c \
571 gdbtk
/generic
/gdbtk-cmds.c \
572 gdbtk
/generic
/gdbtk-hooks.c \
573 gdbtk
/generic
/gdbtk-interp.c \
574 gdbtk
/generic
/gdbtk-main.c \
575 gdbtk
/generic
/gdbtk-register.c \
576 gdbtk
/generic
/gdbtk-stack.c \
577 gdbtk
/generic
/gdbtk-varobj.c \
578 gdbtk
/generic
/gdbtk-wrapper.c
580 SUBDIR_GDBTK_DEPS
= $(LIBGUI
) $(TCL_DEPS
) $(TK_DEPS
)
581 SUBDIR_GDBTK_LDFLAGS
=
582 SUBDIR_GDBTK_CFLAGS
= -DGDBTK
584 CONFIG_OBS
= @CONFIG_OBS@
585 CONFIG_SRCS
= @CONFIG_SRCS@
586 CONFIG_DEPS
= @CONFIG_DEPS@
587 CONFIG_LDFLAGS
= @CONFIG_LDFLAGS@
588 ENABLE_CFLAGS
= @ENABLE_CFLAGS@
589 CONFIG_ALL
= @CONFIG_ALL@
590 CONFIG_CLEAN
= @CONFIG_CLEAN@
591 CONFIG_INSTALL
= @CONFIG_INSTALL@
592 CONFIG_UNINSTALL
= @CONFIG_UNINSTALL@
593 HAVE_NATIVE_GCORE_TARGET
= @HAVE_NATIVE_GCORE_TARGET@
595 CONFIG_SRC_SUBDIR
= arch cli dwarf2 mi compile tui unittests guile python \
597 CONFIG_DEP_SUBDIR
= $(addsuffix /$(DEPDIR
),$(CONFIG_SRC_SUBDIR
))
599 # -I. for config files.
600 # -I$(srcdir) for gdb internal headers.
601 # -I$(srcdir)/config for more generic config files.
603 # It is also possible that you will need to add -I/usr/include/sys if
604 # your system doesn't have fcntl.h in /usr/include (which is where it
605 # should be according to Posix).
607 GDB_CFLAGS
= -I.
-I
$(srcdir) -I
$(srcdir)/config \
608 -DLOCALEDIR
="\"$(localedir)\"" $(DEFS
)
610 # MH_CFLAGS, if defined, has host-dependent CFLAGS from the config directory.
611 GLOBAL_CFLAGS
= $(MH_CFLAGS
)
613 PROFILE_CFLAGS
= @PROFILE_CFLAGS@
615 # These are specifically reserved for setting from the command line
616 # when running make. I.E.: "make CFLAGS=-Wmissing-prototypes".
618 CXXFLAGS
= @CXXFLAGS@
619 CPPFLAGS
= @CPPFLAGS@
621 # Set by configure, for e.g. expat. Python installations are such that
622 # C headers are included using their basename (for example, we #include
623 # <Python.h> rather than, say, <python/Python.h>). Since the file names
624 # are sometimes a little generic, we think that the risk of collision
625 # with other header files is high. If that happens, we try to mitigate
626 # a bit the consequences by putting the Python includes last in the list.
627 INTERNAL_CPPFLAGS
= $(CPPFLAGS
) @GUILE_CPPFLAGS@ @PYTHON_CPPFLAGS@ \
630 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
631 INTERNAL_CFLAGS_BASE
= \
632 $(GLOBAL_CFLAGS
) $(PROFILE_CFLAGS
) \
633 $(GDB_CFLAGS
) $(OPCODES_CFLAGS
) $(BFD_CFLAGS
) $(INCLUDE_CFLAGS
) \
634 $(READLINE_CFLAGS
) $(ZLIBINC
) $(ZSTD_CFLAGS
) $(LIBDECNUMBER_CFLAGS
) \
635 $(INTL_CFLAGS
) $(INCGNU
) $(INCSUPPORT
) $(LIBBACKTRACE_INC
) \
636 $(ENABLE_CFLAGS
) $(INTERNAL_CPPFLAGS
) $(SRCHIGH_CFLAGS
) \
637 $(TOP_CFLAGS
) $(PTHREAD_CFLAGS
) $(DEBUGINFOD_CFLAGS
) $(GMPINC
) \
639 INTERNAL_WARN_CFLAGS
= $(INTERNAL_CFLAGS_BASE
) $(GDB_WARN_CFLAGS
)
640 INTERNAL_CFLAGS
= $(INTERNAL_WARN_CFLAGS
) $(GDB_WERROR_CFLAGS
)
642 # LDFLAGS is specifically reserved for setting from the command line
646 # Profiling options need to go here to work.
647 # I think it's perfectly reasonable for a user to set -pg in CFLAGS
648 # and have it work; that's why CFLAGS is here.
649 # PROFILE_CFLAGS is _not_ included, however, because we use monstartup.
651 $(CXXFLAGS
) $(GLOBAL_CFLAGS
) $(MH_LDFLAGS
) \
652 $(LDFLAGS
) $(CONFIG_LDFLAGS
) $(PTHREAD_CFLAGS
)
654 # Libraries and corresponding dependencies for compiling gdb.
655 # XM_CLIBS, defined in *config files, have host-dependent libs.
656 # LIBIBERTY appears twice on purpose.
657 CLIBS
= $(SIM
) $(READLINE
) $(OPCODES
) $(LIBCTF
) $(BFD
) $(ZLIB
) $(ZSTD_LIBS
) \
658 $(LIBSUPPORT
) $(INTL
) $(LIBIBERTY
) $(LIBDECNUMBER
) \
659 $(XM_CLIBS
) $(GDBTKLIBS
) $(LIBBACKTRACE_LIB
) \
660 @LIBS@ @GUILE_LIBS@ @PYTHON_LIBS@
$(AMD_DBGAPI_LIBS
) \
661 $(LIBEXPAT
) $(LIBLZMA
) $(LIBBABELTRACE
) $(LIBIPT
) \
662 $(WIN32LIBS
) $(LIBGNU
) $(LIBGNU_EXTRA_LIBS
) $(LIBICONV
) \
663 $(GMPLIBS
) $(SRCHIGH_LIBS
) $(LIBXXHASH
) $(PTHREAD_LIBS
) \
664 $(DEBUGINFOD_LIBS
) $(LIBBABELTRACE_LIB
)
665 CDEPS
= $(NAT_CDEPS
) $(SIM
) $(BFD
) $(READLINE_DEPS
) $(CTF_DEPS
) \
666 $(OPCODES
) $(INTL_DEPS
) $(LIBIBERTY
) $(CONFIG_DEPS
) $(LIBGNU
) \
674 # XML files to build in to GDB.
676 $(srcdir)/features
/btrace.dtd \
677 $(srcdir)/features
/btrace-conf.dtd \
678 $(srcdir)/features
/gdb-target.dtd \
679 $(srcdir)/features
/library-list.dtd \
680 $(srcdir)/features
/library-list-aix.dtd \
681 $(srcdir)/features
/library-list-svr4.dtd \
682 $(srcdir)/features
/osdata.dtd \
683 $(srcdir)/features
/threads.dtd \
684 $(srcdir)/features
/traceframe-info.dtd \
685 $(srcdir)/features
/xinclude.dtd
687 # Build the ser-*.o files the host supports. This includes ser-unix.o
688 # for any system that supports a POSIX interface to the serial port.
690 SER_HARDWIRE
= @SER_HARDWIRE@
692 # This is remote-sim.o if a simulator is to be linked in.
695 # Target-dependent object files.
696 TARGET_OBS
= @TARGET_OBS@
698 # All target-dependent object files that require the amd-dbgapi
699 # target to be available (used with --enable-targets=all).
700 ALL_AMD_DBGAPI_TARGET_OBS
= \
704 # All target-dependent objects files that require 64-bit CORE_ADDR
705 # (used with --enable-targets=all --enable-64-bit-bfd).
706 ALL_64_TARGET_OBS
= \
707 aarch64-fbsd-tdep.o \
708 aarch64-linux-tdep.o \
709 aarch64-newlib-tdep.o \
710 aarch64-ravenscar-thread.o \
714 alpha-mdebug-tdep.o \
715 alpha-netbsd-tdep.o \
718 amd64-darwin-tdep.o \
722 amd64-netbsd-tdep.o \
724 amd64-ravenscar-thread.o \
727 amd64-windows-tdep.o \
729 arch
/aarch64-insn.o \
730 arch
/aarch64-mte-linux.o \
731 arch
/aarch64-scalable-linux.o \
738 loongarch-linux-tdep.o \
749 riscv-ravenscar-thread.o \
751 sparc64-fbsd-tdep.o \
752 sparc64-linux-tdep.o \
753 sparc64-netbsd-tdep.o \
754 sparc64-obsd-tdep.o \
755 sparc64-sol2-tdep.o \
757 tilegx-linux-tdep.o \
761 # All other target-dependent objects files (used with --enable-targets=all).
770 arch
/arm-get-next-pcs.o \
774 arch
/ppc-linux-common.o \
816 i386-windows-tdep.o \
830 microblaze-linux-tdep.o \
832 mn10300-linux-tdep.o \
848 ppc-ravenscar-thread.o \
854 rs6000-lynx178-tdep.o \
870 sparc-netbsd-tdep.o \
872 sparc-ravenscar-thread.o \
886 xtensa-linux-tdep.o \
890 # The following native-target dependent variables are defined on
892 NAT_FILE
= @NAT_FILE@
893 NATDEPFILES
= @NATDEPFILES@
894 NAT_CDEPS
= @NAT_CDEPS@
895 LOADLIBES
= @LOADLIBES@
896 MH_CFLAGS
= @MH_CFLAGS@
897 XM_CLIBS
= @XM_CLIBS@
898 NAT_GENERATED_FILES
= @NAT_GENERATED_FILES@
900 HAVE_NATIVE_GCORE_HOST
= @HAVE_NATIVE_GCORE_HOST@
902 # Native-target dependent makefile fragment comes in here.
905 # End of native-target dependent variables.
909 "exec_prefix=$(exec_prefix)" \
910 "infodir=$(infodir)" \
911 "datarootdir=$(datarootdir)" \
913 "htmldir=$(htmldir)" \
917 "datadir=$(datadir)" \
918 "includedir=$(includedir)" \
919 "against=$(against)" \
920 "DESTDIR=$(DESTDIR)" \
922 "AR_FLAGS=$(AR_FLAGS)" \
926 "CXX_DIALECT=$(CXX_DIALECT)" \
927 "CXXFLAGS=$(CXXFLAGS)" \
928 "DLLTOOL=$(DLLTOOL)" \
929 "LDFLAGS=$(LDFLAGS)" \
931 "MAKEINFO=$(MAKEINFO)" \
932 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
933 "MAKEINFO_EXTRA_FLAGS=$(MAKEINFO_EXTRA_FLAGS)" \
934 "MAKEHTML=$(MAKEHTML)" \
935 "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
936 "INSTALL=$(INSTALL)" \
937 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
938 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
939 "INSTALL_DATA=$(INSTALL_DATA)" \
940 "RUNTEST=$(RUNTEST)" \
941 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
943 # Flags that we pass when building the testsuite.
945 # empty for native, $(target_alias)/ for cross
946 target_subdir
= @target_subdir@
949 if [ -f $${rootme}/../gcc/xgcc ] ; then \
950 if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \
951 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/; \
953 echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
956 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
959 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
964 if [ -f $${rootme}/../gcc/xg++ ] ; then \
965 if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \
966 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/; \
968 echo $${rootme}/../gcc/xg++ -B$${rootme}/../gcc/; \
971 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
974 t='$(program_transform_name)'; echo g++ | sed -e '' $$t; \
978 # The use of $$(x_FOR_TARGET) reduces the command line length by not
979 # duplicating the lengthy definition.
980 TARGET_FLAGS_TO_PASS
= \
982 "exec_prefix=$(exec_prefix)" \
983 "against=$(against)" \
984 'CC=$$(CC_FOR_TARGET)' \
985 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
987 'CXX=$$(CXX_FOR_TARGET)' \
988 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
989 "CXXFLAGS=$(CXXFLAGS)" \
990 "INSTALL=$(INSTALL)" \
991 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
992 "INSTALL_DATA=$(INSTALL_DATA)" \
993 "MAKEINFO=$(MAKEINFO)" \
994 "MAKEHTML=$(MAKEHTML)" \
995 "RUNTEST=$(RUNTEST)" \
996 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
997 "FORCE_PARALLEL=$(FORCE_PARALLEL)" \
1000 # All source files that go into linking GDB.
1002 # Files that should wind up in SFILES and whose corresponding .o
1003 # should be in COMMON_OBS.
1024 break-catch-exec.c \
1025 break-catch-fork.c \
1026 break-catch-load.c \
1028 break-catch-syscall.c \
1029 break-catch-throw.c \
1060 debuginfod-support.c \
1063 displaced-stepping.c \
1066 dwarf2
/abbrev-cache.c \
1067 dwarf2
/ada-imported.c \
1068 dwarf2
/attribute.c \
1069 dwarf2
/comp-unit-head.c \
1070 dwarf2
/cooked-index.c \
1075 dwarf2
/frame-tailcall.c \
1077 dwarf2
/index-cache.c \
1078 dwarf2
/index-common.c \
1079 dwarf2
/index-write.c \
1081 dwarf2
/line-header.c \
1085 dwarf2
/read-debug-names.c \
1086 dwarf2
/read-gdb-index.c \
1088 dwarf2
/stringify.c \
1098 filename-seen-cache.c \
1137 maint-test-options.c \
1138 maint-test-settings.c \
1161 process-stratum-target.c \
1164 progspace-and-thread.c \
1177 run-on-main-thread.c \
1197 target-connection.c \
1199 target-descriptions.c \
1230 # Links made at configuration time should not be specified here, since
1231 # SFILES is used in building the distribution archive.
1255 $(SUBDIR_CLI_SRCS
) \
1257 $(SUBDIR_TARGET_SRCS
) \
1259 $(SUBDIR_GCC_COMPILE_SRCS
)
1261 # Header files that need to have srcdir added. Note that in the cases
1262 # where we use a macro like $(gdbcmd_h), things are carefully arranged
1263 # so that each .h file is listed exactly once (M-x tags-search works
1264 # wrong if TAGS has files twice). Because this is tricky to get
1265 # right, it is probably easiest just to list .h files here directly.
1267 HFILES_NO_SRCDIR
= \
1269 aarch64-ravenscar-thread.h \
1275 amd-dbgapi-target.h \
1276 amd64-darwin-tdep.h \
1277 amd64-linux-tdep.h \
1279 amd64-ravenscar-thread.h \
1324 dwarf2
/cooked-index.h \
1326 dwarf2
/frame-tailcall.h \
1329 dwarf2
/index-cache.h \
1330 dwarf2
/index-common.h \
1333 dwarf2
/read-debug-names.h \
1334 dwarf2
/read-gdb-index.h \
1356 gdb_proc_service.h \
1371 hppa-linux-offsets.h \
1374 i386-darwin-tdep.h \
1379 ia64-libunwind-tdep.h \
1410 mips-netbsd-tdep.h \
1433 ppc-ravenscar-thread.h \
1440 progspace-and-thread.h \
1443 ravenscar-thread.h \
1453 riscv-ravenscar-thread.h \
1456 run-on-main-thread.h \
1479 sparc-ravenscar-thread.h \
1490 target-descriptions.h \
1526 arch
/aarch64-insn.h \
1527 arch
/aarch64-mte-linux.h \
1528 arch
/aarch64-scalable-linux.h \
1533 arch
/ppc-linux-common.h \
1534 arch
/ppc-linux-tdesc.h \
1543 compile
/compile-c.h \
1544 compile
/compile-cplus.h \
1545 compile
/compile-internal.h \
1546 compile
/compile-object-load.h \
1547 compile
/compile-object-run.h \
1548 compile
/gcc-c-plugin.h \
1549 compile
/gcc-cp-plugin.h \
1552 config
/djgpp
/langinfo.h \
1553 config
/djgpp
/nl_types.h \
1554 config
/i386
/nm-i386gnu.h \
1555 config
/sparc
/nm-sol2.h \
1563 nat
/aarch64-linux.h \
1564 nat
/aarch64-linux-hw-point.h \
1565 nat
/aarch64-mte-linux-ptrace.h \
1566 nat
/aarch64-scalable-linux-ptrace.h \
1567 nat
/aarch64-scalable-linux-sigcontext.h \
1568 nat
/amd64-linux-siginfo.h \
1570 nat
/gdb_thread_db.h \
1571 nat
/fork-inferior.h \
1572 nat
/linux-btrace.h \
1573 nat
/linux-namespaces.h \
1575 nat
/linux-osdata.h \
1576 nat
/linux-personality.h \
1577 nat
/linux-ptrace.h \
1578 nat
/linux-waitpid.h \
1579 nat
/mips-linux-watch.h \
1583 nat
/x86-gcc-cpuid.h \
1585 nat
/x86-linux-dregs.h \
1587 python
/py-events.h \
1588 python
/py-stopevent.h \
1590 python
/python-internal.h \
1591 regformats
/regdef.h \
1595 target
/waitstatus.h \
1604 tui
/tui-location.h \
1610 tui
/tui-wingeneral.h \
1611 tui
/tui-winsource.h \
1614 # Header files that already have srcdir in them, or which are in objdir.
1616 HFILES_WITH_SRCDIR
= \
1620 # {X,T,NAT}DEPFILES are something of a pain in that it's hard to
1621 # default their values the way we do for SER_HARDWIRE; in the future
1622 # maybe much of the stuff now in {X,T,NAT}DEPFILES will go into other
1623 # variables analogous to SER_HARDWIRE which get defaulted in this
1626 DEPFILES
= $(TARGET_OBS
) $(SER_HARDWIRE
) $(NATDEPFILES
) $(SIM_OBS
)
1631 arch
/aarch64-insn.c \
1632 arch
/aarch64-mte-linux.c \
1633 arch
/aarch64-scalable-linux.c \
1637 arch
/arm-get-next-pcs.c \
1641 arch
/ppc-linux-common.c \
1645 aarch64-fbsd-nat.c \
1646 aarch64-fbsd-tdep.c \
1647 aarch64-linux-nat.c \
1648 aarch64-linux-tdep.c \
1649 aarch64-newlib-tdep.c \
1650 aarch64-ravenscar-thread.c \
1656 alpha-linux-tdep.c \
1657 alpha-mdebug-tdep.c \
1658 alpha-netbsd-tdep.c \
1661 amd-dbgapi-target.c \
1663 amd64-darwin-tdep.c \
1664 amd64-dicos-tdep.c \
1668 amd64-linux-tdep.c \
1670 amd64-netbsd-nat.c \
1671 amd64-netbsd-tdep.c \
1674 amd64-ravenscar-thread.c \
1711 hppa-netbsd-tdep.c \
1718 i386-darwin-tdep.c \
1727 i386-netbsd-tdep.c \
1733 i386-windows-tdep.c \
1735 ia64-libunwind-tdep.c \
1745 loongarch-linux-nat.c \
1746 loongarch-linux-tdep.c \
1757 microblaze-linux-tdep.c \
1765 mips-netbsd-tdep.c \
1769 mips64-obsd-tdep.c \
1774 nios2-linux-tdep.c \
1788 ppc-ravenscar-thread.c \
1792 ravenscar-thread.c \
1797 riscv-linux-tdep.c \
1799 riscv-ravenscar-thread.c \
1803 rs6000-lynx178-tdep.c \
1822 sparc-linux-tdep.c \
1824 sparc-netbsd-nat.c \
1825 sparc-netbsd-tdep.c \
1827 sparc-ravenscar-thread.c \
1831 sparc64-fbsd-nat.c \
1832 sparc64-fbsd-tdep.c \
1833 sparc64-linux-nat.c \
1834 sparc64-linux-tdep.c \
1836 sparc64-netbsd-nat.c \
1837 sparc64-netbsd-tdep.c \
1838 sparc64-obsd-nat.c \
1839 sparc64-obsd-tdep.c \
1840 sparc64-sol2-tdep.c \
1842 tilegx-linux-nat.c \
1843 tilegx-linux-tdep.c \
1856 xtensa-linux-nat.c \
1857 xtensa-linux-tdep.c \
1861 # Don't include YYFILES (*.c) because we already include *.y in SFILES,
1862 # and it's more useful to see it in the .y file.
1863 TAGFILES_NO_SRCDIR
= $(SFILES
) $(HFILES_NO_SRCDIR
) $(ALLDEPFILES
) \
1865 TAGFILES_WITH_SRCDIR
= $(HFILES_WITH_SRCDIR
)
1867 COMMON_OBS
= $(DEPFILES
) $(CONFIG_OBS
) $(YYOBJ
) \
1871 $(patsubst %.c
,%.o
,$(COMMON_SFILES
)) \
1874 $(SUBDIR_TARGET_OBS
) \
1875 $(SUBDIR_GCC_COMPILE_OBS
)
1877 SUBDIRS
= doc @subdirs@ data-directory
1878 CLEANDIRS
= $(SUBDIRS
)
1880 # List of subdirectories in the build tree that must exist.
1881 # This is used to force build failures in existing trees when
1882 # a new directory is added.
1883 # The format here is for the `case' shell command.
1884 REQUIRED_SUBDIRS
= doc | testsuite | data-directory
1886 # Parser intermediate files.
1898 # ada-lex.c is included by another file, so it shouldn't wind up as a
1900 YYOBJ
= $(filter-out ada-lex.o
,$(patsubst %.c
,%.o
,$(YYFILES
)))
1902 # Things which need to be built when making a distribution.
1904 DISTSTUFF
= $(YYFILES
)
1907 # All generated files which can be included by another file.
1912 $(NAT_GENERATED_FILES
) \
1915 # Flags needed to compile Python code
1916 PYTHON_CFLAGS
= @PYTHON_CFLAGS@
1918 all: gdb
$(EXEEXT
) $(CONFIG_ALL
) gdb-gdb.py gdb-gdb.gdb
1919 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=all "DODIRS=$(SUBDIRS)" subdir_do
1921 # Rule for compiling .c files in the top-level gdb directory.
1922 # The order-only dependencies ensure that we create the build subdirectories.
1923 %.o
: %.c |
$(CONFIG_DEP_SUBDIR
)
1927 $(CONFIG_DEP_SUBDIR
):
1928 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$@
1930 # Python files need special flags.
1931 python
/%.o
: INTERNAL_CFLAGS
+= $(PYTHON_CFLAGS
)
1933 # Rules for compiling .c files in the various source subdirectories.
1934 %.o
: $(srcdir)/gdbtk
/generic
/%.c
1935 $(COMPILE
) $(all_gdbtk_cflags
) $<
1940 # The check target can not use subdir_do, because subdir_do does not
1941 # use TARGET_FLAGS_TO_PASS.
1943 @if
[ -f testsuite
/Makefile
]; then \
1944 rootme
=`pwd`; export rootme
; \
1945 rootsrc
=`cd $(srcdir); pwd`; export rootsrc
; \
1947 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) check; \
1951 @if
[ -f testsuite
/Makefile
]; then \
1952 rootme
=`pwd`; export rootme
; \
1953 rootsrc
=`cd $(srcdir); pwd`; export rootsrc
; \
1955 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) check-perf
; \
1958 check-read1 check-readmore
: force
1959 @if
[ -f testsuite
/Makefile
]; then \
1960 rootme
=`pwd`; export rootme
; \
1961 rootsrc
=`cd $(srcdir); pwd`; export rootsrc
; \
1963 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) $@
; \
1966 check-parallel
: force
1967 @if
[ -f testsuite
/Makefile
]; then \
1968 rootme
=`pwd`; export rootme
; \
1969 rootsrc
=`cd $(srcdir); pwd`; export rootsrc
; \
1971 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) check-parallel
; \
1974 # The idea is to parallelize testing of multilibs, for example:
1975 # make -j3 check//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu}
1976 # will run 3 concurrent sessions of check, eventually testing all 10
1977 # combinations. GNU make is required for the % pattern to work, as is
1978 # a shell that expands alternations within braces. If GNU make is not
1979 # used, this rule will harmlessly fail to match. Used FORCE_PARALLEL to
1980 # prevent serialized checking due to the passed RUNTESTFLAGS.
1981 # FIXME: use config.status --config not --version, when available.
1983 @if
[ -f testsuite
/config.status
]; then \
1984 rootme
=`pwd`; export rootme
; \
1985 rootsrc
=`cd $(srcdir); pwd`; export rootsrc
; \
1986 target
=`echo "$@" | sed 's,//.*,,'`; \
1987 variant
=`echo "$@" | sed 's,^[^/]*//,,'`; \
1988 vardots
=`echo "$$variant" | sed 's,/,.,g'`; \
1989 testdir
=testsuite.
$$vardots; \
1990 if
[ ! -f
$$testdir/Makefile
] && [ -f testsuite
/config.status
]; then \
1991 configargs
=`cd testsuite && ./config.status --version | \
1992 sed -n -e 's,"$$,,' -e 's,^ *with options ",,p'`; \
1993 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$$testdir && \
1995 eval
$(SHELL
) "\"\$$rootsrc/testsuite/configure\" $$configargs" \
1996 "\"--srcdir=\$$rootsrc/testsuite\"" \
1998 else :; fi
&& cd
$$testdir && \
1999 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) \
2000 RUNTESTFLAGS
="--target_board=$$variant $(RUNTESTFLAGS)" \
2001 FORCE_PARALLEL
=$(if
$(FORCE_PARALLEL
),1,$(if
$(RUNTESTFLAGS
),,1)) \
2005 # The set of headers checked by 'check-headers' by default.
2006 CHECK_HEADERS
= $(HFILES_NO_SRCDIR
)
2008 # Try to compile each header in isolation, thus ensuring headers are
2011 # Defaults to checking all $HFILES_NO_SRCDIR headers.
2015 # make check-headers CHECK_HEADERS="header.h list.h"
2017 # to check specific headers.
2020 @echo Checking headers.
2021 for i in
$(CHECK_HEADERS
) ; do \
2022 $(CXX
) $(CXX_DIALECT
) -x c
++-header
-c
-fsyntax-only \
2023 $(INTERNAL_CFLAGS
) $(CXXFLAGS
) -include defs.h
$(srcdir)/$$i ; \
2025 .PHONY
: check-headers
2027 info install-info clean-info
dvi pdf install-pdf html install-html
: force
2028 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
2030 # Traditionally "install" depends on "all". But it may be useful
2031 # not to; for example, if the user has made some trivial change to a
2032 # source file and doesn't care about rebuilding or just wants to save the
2033 # time it takes for make to check that all is up to date.
2034 # install-only is intended to address that need.
2036 @
$(MAKE
) $(FLAGS_TO_PASS
) install-only
2038 install-only
: $(CONFIG_INSTALL
)
2039 transformed_name
=`t='$(program_transform_name)'; \
2040 echo gdb | sed -e "$$t"` ; \
2041 if
test "x$$transformed_name" = x
; then \
2042 transformed_name
=gdb
; \
2046 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$(bindir) ; \
2047 $(INSTALL_PROGRAM_ENV
) $(LIBTOOL
) --mode
=install $(INSTALL_PROGRAM
) \
2049 $(DESTDIR
)$(bindir)/$$transformed_name$(EXEEXT
) ; \
2050 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$(includedir)/gdb
; \
2051 $(INSTALL_DATA
) jit-reader.h
$(DESTDIR
)$(includedir)/gdb
/jit-reader.h
2052 if
test "x$(HAVE_NATIVE_GCORE_TARGET)$(HAVE_NATIVE_GCORE_HOST)" != x
; \
2054 transformed_name
=`t='$(program_transform_name)'; \
2055 echo gcore | sed -e "$$t"` ; \
2056 if
test "x$$transformed_name" = x
; then \
2057 transformed_name
=gcore
; \
2061 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$(bindir) ; \
2062 $(INSTALL_SCRIPT
) gcore \
2063 $(DESTDIR
)$(bindir)/$$transformed_name; \
2065 transformed_name
=`t='$(program_transform_name)'; \
2066 echo gdb-add-index | sed -e "$$t"` ; \
2067 if
test "x$$transformed_name" = x
; then \
2068 transformed_name
=gdb-add-index
; \
2072 $(INSTALL_SCRIPT
) $(srcdir)/contrib
/gdb-add-index.sh \
2073 $(DESTDIR
)$(bindir)/$$transformed_name
2074 @
$(MAKE
) DO
=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS
) subdir_do
2077 $(MAKE
) $(FLAGS_TO_PASS
) INSTALL_PROGRAM
="$(INSTALL_STRIP_PROGRAM)" \
2078 install_sh_PROGRAM
="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG
=-s \
2079 `test -z '$(STRIP)' || \
2080 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install-only
2083 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$(GDB_DATADIR
)/guile
/gdb
2086 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$(GDB_DATADIR
)/python
/gdb
2088 uninstall: force $(CONFIG_UNINSTALL
)
2089 transformed_name
=`t='$(program_transform_name)'; \
2090 echo gdb | sed -e $$t` ; \
2091 if
test "x$$transformed_name" = x
; then \
2092 transformed_name
=gdb
; \
2096 rm -f
$(DESTDIR
)$(bindir)/$$transformed_name$(EXEEXT
)
2097 rm -f
$(DESTDIR
)$(includedir)/gdb
/jit-reader.h
2098 if
test "x$(HAVE_NATIVE_GCORE_TARGET)$(HAVE_NATIVE_GCORE_HOST)" != x
; \
2100 transformed_name
=`t='$(program_transform_name)'; \
2101 echo gcore | sed -e "$$t"` ; \
2102 if
test "x$$transformed_name" = x
; then \
2103 transformed_name
=gcore
; \
2107 rm -f
$(DESTDIR
)$(bindir)/$$transformed_name; \
2109 transformed_name
=`t='$(program_transform_name)'; \
2110 echo gdb-add-index | sed -e "$$t"` ; \
2111 if
test "x$$transformed_name" = x
; then \
2112 transformed_name
=gdb-add-index
; \
2116 rm -f
$(DESTDIR
)$(bindir)/$$transformed_name
2117 @
$(MAKE
) DO
=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS
) subdir_do
2119 # The C++ name parser can be built standalone for testing.
2120 test-cp-name-parser.o
: cp-name-parser.c
2121 $(COMPILE
) -DTEST_CPNAMES cp-name-parser.c
2124 test-cp-name-parser
$(EXEEXT
): test-cp-name-parser.o
$(LIBIBERTY
)
2125 $(ECHO_CXXLD
) $(CC_LD
) $(INTERNAL_LDFLAGS
) \
2126 -o test-cp-name-parser
$(EXEEXT
) test-cp-name-parser.o \
2129 # We do this by grepping through sources. If that turns out to be too slow,
2130 # maybe we could just require every .o file to have an initialization routine
2131 # of a given name (top.o -> _initialize_top, etc.).
2133 # Note that the set of files with init functions might change, or the names
2134 # of the functions might change, so this files needs to depend on all the
2135 # source files that will be linked into gdb. However, due to the way
2136 # this Makefile has generally been written, we do this indirectly, by
2137 # computing the list of source files from the list of object files.
2139 INIT_FILES_FILTER_OUT
= \
2148 $(patsubst %.o
,%.c
, \
2149 $(patsubst %-exp.o
,%-exp.y
, \
2150 $(filter-out $(INIT_FILES_FILTER_OUT
), $(COMMON_OBS
))))
2152 init.c
: stamp-init
; @true
2153 stamp-init
: $(INIT_FILES
) config.status
$(srcdir)/make-init-c
2155 $(SILENCE
) $(srcdir)/make-init-c
$(addprefix $(srcdir)/,$(INIT_FILES
)) > init.c-tmp
2156 $(SILENCE
) $(SHELL
) $(srcdir)/..
/move-if-change init.c-tmp init.c
2157 $(SILENCE
) echo stamp
> stamp-init
2161 # Create a library of the gdb object files and build GDB by linking
2164 # init.o is very important. It pulls in the rest of GDB.
2165 LIBGDB_OBS
= $(sort $(COMMON_OBS
)) init.o
2166 libgdb.a
: $(LIBGDB_OBS
)
2168 $(AR
) q libgdb.a
$(LIBGDB_OBS
)
2171 # Removing the old gdb first works better if it is running, at least on SunOS.
2172 gdb
$(EXEEXT
): gdb.o
$(LIBGDB_OBS
) $(CDEPS
) $(TDEPLIBS
)
2173 $(SILENCE
) rm -f gdb
$(EXEEXT
)
2174 $(ECHO_CXXLD
) $(CC_LD
) $(INTERNAL_LDFLAGS
) $(WIN32LDAPP
) \
2175 -o gdb
$(EXEEXT
) gdb.o
$(LIBGDB_OBS
) \
2176 $(TDEPLIBS
) $(TUI_LIBRARY
) $(CLIBS
) $(LOADLIBES
)
2177 ifneq ($(CODESIGN_CERT
),)
2178 $(ECHO_SIGN
) $(CODESIGN
) -s
$(CODESIGN_CERT
) gdb
$(EXEEXT
)
2181 # This is useful when debugging GDB, because some Unix's don't let you run GDB
2182 # on itself without copying the executable. So "make gdb1" will make
2183 # gdb and put a copy in gdb1, and you can run it with "gdb gdb1".
2184 # Removing gdb1 before the copy is the right thing if gdb1 is open
2185 # in another process.
2186 gdb1
$(EXEEXT
): gdb
$(EXEEXT
)
2188 cp gdb
$(EXEEXT
) gdb1
$(EXEEXT
)
2190 # Put the proper machine-specific files first, so M-. on a machine
2191 # specific routine gets the one for the correct machine. (FIXME: those
2192 # files go in twice; we should be removing them from the main list).
2194 # TAGS depends on all the files that go into it so you can rebuild TAGS
2195 # with `make TAGS' and not have to say `rm TAGS' first.
2197 GDB_NM_FILE
= @GDB_NM_FILE@
2198 TAGS
: $(TAGFILES_NO_SRCDIR
) $(TAGFILES_WITH_SRCDIR
)
2200 etags
`(test -n "$(GDB_NM_FILE)" && echo "$(srcdir)/$(GDB_NM_FILE)")` \
2201 `(for i in $(DEPFILES) $(TAGFILES_NO_SRCDIR); do \
2202 echo $(srcdir)/$$i ; \
2203 done ; for i in $(TAGFILES_WITH_SRCDIR); do \
2205 done) | sed -e 's/\.o$$/\.c/'` \
2206 `find $(srcdir)/config -name '*.h' -print`
2210 clean mostlyclean: $(CONFIG_CLEAN
)
2211 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=clean "DODIRS=$(CLEANDIRS)" subdir_do
2212 rm -f
*.o
*.a
*~ init.c-tmp init.l-tmp version.c-tmp
2213 rm -f init.c stamp-init version.c stamp-version
2214 rm -f gdb
$(EXEEXT
) core make.log
2215 rm -f gdb
[0-9]$(EXEEXT
)
2216 rm -f test-cp-name-parser
$(EXEEXT
)
2217 rm -f xml-builtin.c stamp-xml
2219 for i in
$(CONFIG_SRC_SUBDIR
); do \
2221 rm -f
$$i/$(DEPDIR
)/*; \
2224 # This used to depend on c-exp.c m2-exp.c TAGS
2225 # I believe this is wrong; the makefile standards for distclean just
2226 # describe removing files; the only sort of "re-create a distribution"
2227 # functionality described is if the distributed files are unmodified.
2229 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=distclean "DODIRS=$(CLEANDIRS)" subdir_do
2230 rm -f nm.h config.status config.h stamp-h b jit-reader.h gcore stamp-nmh
2231 rm -f gdb-gdb.py gdb-gdb.gdb
2232 rm -f y.output
yacc.acts
yacc.tmp y.tab.h
2233 rm -f config.log config.cache
2234 rm -f config.lt libtool
2237 for i in
$(CONFIG_SRC_SUBDIR
); do \
2238 if
test -d
$$i/$(DEPDIR
); then rmdir
$$i/$(DEPDIR
); fi \
2241 maintainer-clean
: local-maintainer-clean do-maintainer-clean
distclean
2242 realclean: maintainer-clean
2244 local-maintainer-clean
:
2245 @echo
"This command is intended for maintainers to use;"
2246 @echo
"it deletes files that may require special tools to rebuild."
2249 ada-lex.c ada-exp.c \
2250 d-exp.c f-exp.c go-exp.c m2-exp.c p-exp.c
2253 rm -f nm.h config.status
2255 do-maintainer-clean
:
2256 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=maintainer-clean
"DODIRS=$(CLEANDIRS)" \
2259 diststuff
: $(DISTSTUFF
) $(PACKAGE
).pot
$(CATALOGS
)
2260 cd doc
; $(MAKE
) $(MFLAGS
) diststuff
2263 @for i in
$(DODIRS
); do \
2265 $(REQUIRED_SUBDIRS
)) \
2266 if
[ ! -f .
/$$i/Makefile
] ; then \
2267 echo
"Missing $$i/Makefile" >&2 ; \
2271 if
[ -f .
/$$i/Makefile
] ; then \
2273 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
2274 else exit
1 ; fi
; \
2278 Makefile
: Makefile.in config.status
2279 $(SHELL
) config.status
$@
2283 .
/gdb
$(EXEEXT
) --data-directory
=`pwd`/data-directory
$(GDBFLAGS
)
2285 jit-reader.h
: $(srcdir)/jit-reader.in
2286 $(SHELL
) config.status
$@
2288 gcore
: $(srcdir)/gcore.in
2289 $(SHELL
) config.status
$@
2291 gdb-gdb.py
: $(srcdir)/gdb-gdb.py.in
2292 $(SHELL
) config.status
$@
2294 gdb-gdb.gdb
: $(srcdir)/gdb-gdb.gdb.in
2295 $(SHELL
) config.status
$@
2297 config.h
: stamp-h
; @true
2298 stamp-h
: $(srcdir)/config.in config.status
2299 $(SHELL
) config.status config.h
2301 nm.h
: stamp-nmh
; @true
2302 stamp-nmh
: config.status
2303 $(SHELL
) config.status nm.h
2305 config.status
: $(srcdir)/configure configure.nat configure.tgt configure.host ..
/bfd
/development.sh
2306 $(SHELL
) config.status
--recheck
2309 ACLOCAL_AMFLAGS
= -I ..
/config
2311 # Keep these in sync with the includes in acinclude.m4.
2314 acx_configure_dir.m4 \
2317 ..
/config
/acinclude.m4 \
2318 ..
/config
/enable.m4 \
2319 ..
/config
/plugins.m4 \
2320 ..
/config
/lead-dot.m4 \
2321 ..
/config
/override.m4 \
2322 ..
/config
/largefile.m4 \
2323 ..
/config
/gettext-sister.m4 \
2324 ..
/config
/lib-ld.m4 \
2325 ..
/config
/lib-prefix.m4 \
2326 ..
/config
/lib-link.m4 \
2329 ..
/config
/depstand.m4 \
2330 ..
/config
/lcmessage.m4 \
2331 ..
/config
/codeset.m4 \
2334 ..
/config
/ax_pthread.m4
2336 $(srcdir)/aclocal.m4
: @MAINTAINER_MODE_TRUE@
$(aclocal_m4_deps
)
2337 cd
$(srcdir) && $(ACLOCAL
) $(ACLOCAL_AMFLAGS
)
2340 configure_deps
= $(srcdir)/configure.ac
$(srcdir)/aclocal.m4
2341 $(srcdir)/configure
: @MAINTAINER_MODE_TRUE@
$(configure_deps
)
2342 cd
$(srcdir) && $(AUTOCONF
)
2344 AUTOHEADER
= autoheader
2345 $(srcdir)/config.in
: @MAINTAINER_MODE_TRUE@
$(configure_deps
)
2346 cd
$(srcdir) && $(AUTOHEADER
)
2350 # automatic rebuilding in automake-generated Makefiles requires
2351 # this rule in the toplevel Makefile, which, with GNU make, causes
2352 # the desired updates through the implicit regeneration of the Makefile
2353 # and all of its prerequisites.
2360 # GDB QUICK REFERENCE (TeX dvi file, CM fonts)
2362 cd doc
; $(MAKE
) refcard.
dvi $(FLAGS_TO_PASS
)
2364 # GDB QUICK REFERENCE (PostScript output, common PS fonts)
2366 cd doc
; $(MAKE
) refcard.ps
$(FLAGS_TO_PASS
)
2368 # GDB MANUAL: TeX dvi file
2370 cd doc
; $(MAKE
) gdb.
dvi $(FLAGS_TO_PASS
)
2372 # GDB MANUAL: info file
2374 cd doc
; $(MAKE
) gdb.
info $(FLAGS_TO_PASS
)
2376 # Make copying.c from COPYING
2377 $(srcdir)/copying.c
: @MAINTAINER_MODE_TRUE@
$(srcdir)/..
/COPYING3
$(srcdir)/copying.awk
2378 awk
-f
$(srcdir)/copying.awk \
2379 < $(srcdir)/..
/COPYING3
> $(srcdir)/copying.tmp
2380 mv
$(srcdir)/copying.tmp
$(srcdir)/copying.c
2382 version.c
: stamp-version
; @true
2383 # Note that the obvious names for the temp file are taken by
2384 # create-version.sh.
2385 stamp-version
: Makefile version.in
$(srcdir)/..
/bfd
/version.h
$(srcdir)/..
/gdbsupport
/create-version.sh
2386 $(ECHO_GEN
) $(SHELL
) $(srcdir)/..
/gdbsupport
/create-version.sh
$(srcdir) \
2387 $(host_alias
) $(target_alias
) version-t.t
2388 @
$(SHELL
) $(srcdir)/..
/move-if-change version-t.t version.c
2389 @echo stamp
> stamp-version
2392 gdb.cxref
: $(SFILES
)
2393 cxref
-I.
$(SFILES
) >gdb.cxref
2397 # GNU Make has an annoying habit of putting *all* the Makefile variables
2398 # into the environment, unless you include this target as a circumvention.
2399 # Rumor is that this will be fixed (and this target can be removed)
2403 # GNU Make 3.63 has a different problem: it keeps tacking command line
2404 # overrides onto the definition of $(MAKE). This variable setting
2408 # Some files need explicit build rules (due to -Werror problems) or due
2409 # to sub-directory fun 'n' games.
2411 # ada-exp.c can appear in srcdir, for releases; or in ., for
2412 # development builds.
2413 ADA_EXP_C
= `if test -f ada-exp.c; then echo ada-exp.c; else echo $(srcdir)/ada-exp.c; fi`
2415 ada-exp.o
: ada-exp.c
2416 $(COMPILE
) $(ADA_EXP_C
)
2419 # Message files. Based on code in gcc/Makefile.in.
2421 # Rules for generating translated message descriptions. Disabled by
2422 # autoconf if the tools are not available.
2424 .PHONY
: all-po install-po uninstall-po clean-po update-po
$(PACKAGE
).pot
2428 # This notation should be acceptable to all Make implementations used
2429 # by people who are interested in updating .po files.
2430 update-po
: $(CATALOGS
:.gmo
=.pox
)
2432 # N.B. We do not attempt to copy these into $(srcdir). The snapshot
2435 -test -d po || mkdir po
2436 $(GMSGFMT
) --statistics
-o
$@
$<
2438 # The new .po has to be gone over by hand, so we deposit it into
2439 # build/po with a different extension. If build/po/$(PACKAGE).pot
2440 # exists, use it (it was just created), else use the one in srcdir.
2442 -test -d po || mkdir po
2443 $(MSGMERGE
) $< `if test -f po/$(PACKAGE).pot; \
2444 then echo po/$(PACKAGE).pot; \
2445 else echo $(srcdir)/po/$(PACKAGE).pot; fi` -o
$@
2447 # This rule has to look for .gmo modules in both srcdir and the cwd,
2448 # and has to check that we actually have a catalog for each language,
2449 # in case they weren't built or included with the distribution.
2451 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$(datadir)
2452 cats
="$(CATALOGS)"; for cat in
$$cats; do \
2453 lang
=`basename $$cat | sed 's/\.gmo$$//'`; \
2454 if
[ -f
$$cat ]; then
:; \
2455 elif
[ -f
$(srcdir)/$$cat ]; then cat
=$(srcdir)/$$cat; \
2458 dir=$(localedir
)/$$lang/LC_MESSAGES
; \
2459 echo
$(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$$dir; \
2460 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$$dir || exit
1; \
2461 echo
$(INSTALL_DATA
) $$cat $(DESTDIR
)$$dir/$(PACKAGE
).mo
; \
2462 $(INSTALL_DATA
) $$cat $(DESTDIR
)$$dir/$(PACKAGE
).mo
; \
2465 cats
="$(CATALOGS)"; for cat in
$$cats; do \
2466 lang
=`basename $$cat | sed 's/\.gmo$$//'`; \
2467 if
[ -f
$$cat ]; then
:; \
2468 elif
[ -f
$(srcdir)/$$cat ]; then cat
=$(srcdir)/$$cat; \
2471 dir=$(localedir
)/$$lang/LC_MESSAGES
; \
2472 rm -f
$(DESTDIR
)$$dir/$(PACKAGE
).mo
; \
2474 # Delete po/*.gmo only if we are not building in the source directory.
2476 -if
[ ! -f Makefile.in
]; then
rm -f po
/*.gmo
; fi
2478 # Rule for regenerating the message template (gdb.pot). Instead of
2479 # forcing everyone to edit POTFILES.in, which proved impractical, this
2480 # rule has no dependencies and always regenerates gdb.pot. This is
2481 # relatively harmless since the .po files do not directly depend on
2482 # it. The .pot file is left in the build directory. Since GDB's
2483 # Makefile lacks a cannonical list of sources (missing xm, tm and nm
2484 # files) force this rule.
2485 $(PACKAGE
).pot
: po
/$(PACKAGE
).pot
2486 po
/$(PACKAGE
).pot
: force
2487 -test -d po || mkdir po
2488 sh
-e
$(srcdir)/po
/gdbtext
$(XGETTEXT
) $(PACKAGE
) .
$(srcdir)
2492 # YACC/LEX dependencies
2494 # LANG-exp.c is generated in objdir from LANG-exp.y if it doesn't
2495 # exist in srcdir, then compiled in objdir to LANG-exp.o. If we
2496 # said LANG-exp.c rather than ./c-exp.c some makes would
2497 # sometimes re-write it into $(srcdir)/c-exp.c. Remove bogus
2498 # decls for malloc/realloc/free which conflict with everything else.
2499 # Strictly speaking c-exp.c should therefore depend on
2500 # Makefile.in, but that was a pretty big annoyance.
2503 $(ECHO_YACC
) $(SHELL
) $(YLWRAP
) $< y.tab.c
$@.tmp
-- \
2504 $(YACC
) $(YFLAGS
) ||
(rm -f
$@.tmp
; false
)
2505 @sed
-e
'/extern.*malloc/d' \
2506 -e
'/extern.*realloc/d' \
2507 -e
'/extern.*free/d' \
2508 -e
'/include.*malloc.h/d' \
2509 -e
's/\([^x]\)malloc/\1xmalloc/g' \
2510 -e
's/\([^x]\)realloc/\1xrealloc/g' \
2511 -e
's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \
2512 -e
's/\([ \t;,(]\)free$$/\1xfree/g' \
2513 -e
'/^#line.*y.tab.c/d' \
2514 -e
's/YY_NULL/YY_NULLPTR/g' \
2515 -e
"s/YYSTYPE/$(subst -,_,$*)_YYSTYPE/g" \
2516 -e
"s/yyalloc/$(subst -,_,$*)_yyalloc/g" \
2517 -e
"s/yysymbol_kind_t/$(subst -,_,$*)_yysymbol_kind_t/g" \
2518 < $@.tmp
> $@.new
&& \
2522 $(ECHO_LEX
) $(FLEX
) -t
$< > $@.tmp ||
(rm -f
$@.tmp
; false
)
2523 @sed
-e
'/extern.*malloc/d' \
2524 -e
'/extern.*realloc/d' \
2525 -e
'/extern.*free/d' \
2526 -e
'/include.*malloc.h/d' \
2527 -e
's/\([^x]\)malloc/\1xmalloc/g' \
2528 -e
's/\([^x]\)realloc/\1xrealloc/g' \
2529 -e
's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \
2530 -e
's/\([ \t;,(]\)free$$/\1xfree/g' \
2531 -e
's/yy_flex_xrealloc/yyxrealloc/g' \
2532 < $@.tmp
> $@.new
&& \
2538 xml-builtin.c
: stamp-xml
; @true
2539 stamp-xml
: $(srcdir)/features
/feature_to_c.sh Makefile
$(XMLFILES
)
2540 $(SILENCE
) rm -f xml-builtin.tmp
2541 $(ECHO_GEN_XML_BUILTIN
) AWK
="$(AWK)" \
2542 $(SHELL
) $(srcdir)/features
/feature_to_c.sh \
2543 xml-builtin.tmp
$(XMLFILES
)
2544 $(SILENCE
) $(SHELL
) $(srcdir)/..
/move-if-change xml-builtin.tmp xml-builtin.c
2545 $(SILENCE
) echo stamp
> stamp-xml
2547 .PRECIOUS
: xml-builtin.c
2550 # GDBTK sub-directory
2553 all-gdbtk
: insight
$(EXEEXT
)
2556 transformed_name
=`t='$(program_transform_name)'; \
2557 echo insight | sed -e $$t` ; \
2558 if
test "x$$transformed_name" = x
; then \
2559 transformed_name
=insight
; \
2563 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$(bindir); \
2564 $(INSTALL_PROGRAM_ENV
) $(LIBTOOL
) --mode
=install $(INSTALL_PROGRAM
) \
2566 $(DESTDIR
)$(bindir)/$$transformed_name$(EXEEXT
) ; \
2567 $(SHELL
) $(srcdir)/..
/mkinstalldirs \
2568 $(DESTDIR
)$(GDBTK_LIBRARY
) ; \
2569 $(SHELL
) $(srcdir)/..
/mkinstalldirs \
2570 $(DESTDIR
)$(libdir)/insight
$(GDBTK_VERSION
) ; \
2571 $(INSTALL_DATA
) $(srcdir)/gdbtk
/plugins
/plugins.tcl \
2572 $(DESTDIR
)$(libdir)/insight
$(GDBTK_VERSION
)/plugins.tcl
; \
2573 $(SHELL
) $(srcdir)/..
/mkinstalldirs \
2574 $(DESTDIR
)$(GDBTK_LIBRARY
)/images \
2575 $(DESTDIR
)$(GDBTK_LIBRARY
)/images2
; \
2576 $(SHELL
) $(srcdir)/..
/mkinstalldirs \
2577 $(DESTDIR
)$(GDBTK_LIBRARY
)/help \
2578 $(DESTDIR
)$(GDBTK_LIBRARY
)/help
/images \
2579 $(DESTDIR
)$(GDBTK_LIBRARY
)/help
/trace
; \
2580 cd
$(srcdir)/gdbtk
/library
; \
2581 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
; \
2583 $(INSTALL_DATA
) $$i $(DESTDIR
)$(GDBTK_LIBRARY
)/$$i ; \
2587 transformed_name
=`t='$(program_transform_name)'; \
2588 echo insight | sed -e $$t` ; \
2589 if
test "x$$transformed_name" = x
; then \
2590 transformed_name
=insight
; \
2594 rm -f
$(DESTDIR
)$(bindir)/$$transformed_name$(EXEEXT
) ; \
2595 rm -rf
$(DESTDIR
)$(GDBTK_LIBRARY
)
2598 rm -f insight
$(EXEEXT
)
2600 # Removing the old gdb first works better if it is running, at least on SunOS.
2601 insight
$(EXEEXT
): gdbtk-main.o libgdb.a
$(CDEPS
) $(TDEPLIBS
)
2602 rm -f insight
$(EXEEXT
)
2603 $(ECHO_CXXLD
) $(CC_LD
) $(INTERNAL_LDFLAGS
) $(WIN32LDAPP
) \
2604 -o insight
$(EXEEXT
) gdbtk-main.o libgdb.a \
2605 $(TDEPLIBS
) $(TUI_LIBRARY
) $(CLIBS
) $(LOADLIBES
)
2607 gdbres.o
: $(srcdir)/gdbtk
/gdb.rc
$(srcdir)/gdbtk
/gdbtool.ico
2608 $(WINDRES
) --include $(srcdir)/gdbtk
$(srcdir)/gdbtk
/gdb.rc gdbres.o
2610 all_gdbtk_cflags
= $(IDE_CFLAGS
) $(ITCL_CFLAGS
) \
2611 $(ITK_CFLAGS
) $(TCL_CFLAGS
) $(TK_CFLAGS
) $(X11_CFLAGS
) \
2613 -DGDBTK_LIBRARY
=\"$(GDBTK_LIBRARY
)\" \
2614 -DSRC_DIR
=\"$(GDBTK_SRC_DIR
)\"
2617 # Dependency tracking.
2620 ifeq ($(DEPMODE
),depmode
=gcc3
)
2621 # Note that we put the dependencies into a .Tpo file, then move them
2622 # into place if the compile succeeds. We need this because gcc does
2623 # not atomically write the dependency output file.
2624 override COMPILE.post
= -c
-o
$@
-MT
$@
-MMD
-MP \
2625 -MF
$(@D
)/$(DEPDIR
)/$(basename $(@F
)).Tpo
2626 override POSTCOMPILE
= @mv
$(@D
)/$(DEPDIR
)/$(basename $(@F
)).Tpo \
2627 $(@D
)/$(DEPDIR
)/$(basename $(@F
)).Po
2629 override COMPILE.pre
= source
='$<' object
='$@' libtool
=no \
2630 DEPDIR
=$(DEPDIR
) $(DEPMODE
) $(depcomp
) \
2631 $(CXX
) -x c
++ $(CXX_DIALECT
)
2632 # depcomp handles atomicity for us, so we don't need a postcompile
2634 override POSTCOMPILE
=
2637 # A list of all the objects we might care about in this build, for
2638 # dependency tracking.
2639 all_object_files
= gdb.o
$(LIBGDB_OBS
) gdbtk-main.o \
2640 test-cp-name-parser.o
2642 # All the .deps files to include.
2643 all_deps_files
= $(foreach dep
,$(patsubst %.o
,%.Po
,$(all_object_files
)),\
2644 $(dir $(dep
))/$(DEPDIR
)/$(notdir $(dep
)))
2646 # Ensure that generated files are created early. Use order-only
2647 # dependencies if available. They require GNU make 3.80 or newer,
2648 # and the .VARIABLES variable was introduced at the same time.
2650 $(all_object_files
): |
$(generated_files
)
2652 $(all_object_files
) : $(generated_files
)
2656 -include $(all_deps_files
)
2658 # Disable implicit make rules.
2659 include $(srcdir)/disable-implicit-rules.mk
2661 ### end of the gdb Makefile.in.