1 # Copyright (C) 1989-2019 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
$@
121 COMPILE
= $(ECHO_CXX
) $(COMPILE.pre
) $(INTERNAL_CFLAGS
) $(COMPILE.post
)
126 # This is used to rebuild ada-lex.c from ada-lex.l. If the program is
127 # not defined, but ada-lex.c is present, compilation will continue,
128 # possibly with a warning.
131 YLWRAP
= $(srcdir)/..
/ylwrap
133 # where to find makeinfo, preferably one designed for texinfo-2
134 MAKEINFO
= @MAKEINFO@
135 MAKEINFOFLAGS
= @MAKEINFOFLAGS@
136 MAKEINFO_EXTRA_FLAGS
= @MAKEINFO_EXTRA_FLAGS@
137 MAKEINFO_CMD
= $(MAKEINFO
) $(MAKEINFOFLAGS
) $(MAKEINFO_EXTRA_FLAGS
)
139 MAKEHTML
= $(MAKEINFO_CMD
) --html
142 # Set this up with gcc if you have gnu ld and the loader will print out
143 # line numbers for undefined references.
145 CC_LD
= $(CXX
) $(CXX_DIALECT
)
147 # Where is our "include" directory? Typically $(srcdir)/../include.
148 # This is essentially the header file directory for the library
149 # routines in libiberty.
150 INCLUDE_DIR
= $(srcdir)/..
/include
151 INCLUDE_CFLAGS
= -I
$(INCLUDE_DIR
)
153 # Where is the "-liberty" library? Typically in ../libiberty.
154 LIBIBERTY
= ..
/libiberty
/libiberty.a
156 # Where is the CTF library? Typically in ../libctf.
157 LIBCTF
= ..
/libctf
/.libs
/libctf.a
159 # Where is the BFD library? Typically in ../bfd.
161 BFD
= $(BFD_DIR
)/libbfd.a
162 BFD_SRC
= $(srcdir)/$(BFD_DIR
)
163 BFD_CFLAGS
= -I
$(BFD_DIR
) -I
$(BFD_SRC
)
165 # This is where we get zlib from. zlibdir is -L../zlib and zlibinc is
166 # -I../zlib, unless we were configured with --with-system-zlib, in which
167 # case both are empty.
171 # Where is the decnumber library? Typically in ../libdecnumber.
172 LIBDECNUMBER_DIR
= ..
/libdecnumber
173 LIBDECNUMBER
= $(LIBDECNUMBER_DIR
)/libdecnumber.a
174 LIBDECNUMBER_SRC
= $(srcdir)/$(LIBDECNUMBER_DIR
)
175 LIBDECNUMBER_CFLAGS
= -I
$(LIBDECNUMBER_DIR
) -I
$(LIBDECNUMBER_SRC
)
177 # Where is the READLINE library? Typically in ../readline/readline.
178 READLINE_DIR
= ..
/readline
/readline
179 READLINE_SRC
= $(srcdir)/$(READLINE_DIR
)
180 READLINE
= @READLINE@
181 READLINE_DEPS
= @READLINE_DEPS@
182 READLINE_CFLAGS
= @READLINE_CFLAGS@
184 # Where is expat? This will be empty if expat was not available.
185 LIBEXPAT
= @LIBEXPAT@
187 # Where is lzma? This will be empty if lzma was not available.
190 # Where is libbabeltrace? This will be empty if libbabeltrace was not
192 LIBBABELTRACE
= @LIBBABELTRACE@
194 # Where is libxxhash? This will be empty if libxxhash was not
196 LIBXXHASH
= @LIBXXHASH@
198 # Where is libipt? This will be empty if libipt was not available.
201 # Where is libmpfr? This will be empty if libmpfr was not available.
204 # GNU source highlight library.
205 SRCHIGH_LIBS
= @SRCHIGH_LIBS@
206 SRCHIGH_CFLAGS
= @SRCHIGH_CFLAGS@
208 WARN_CFLAGS
= @WARN_CFLAGS@
209 WERROR_CFLAGS
= @WERROR_CFLAGS@
210 GDB_WARN_CFLAGS
= $(WARN_CFLAGS
)
211 GDB_WERROR_CFLAGS
= $(WERROR_CFLAGS
)
213 PTHREAD_CFLAGS
= @PTHREAD_CFLAGS@
214 PTHREAD_LIBS
= @PTHREAD_LIBS@
216 RDYNAMIC
= @RDYNAMIC@
218 # Where is the INTL library? Typically in ../intl.
220 INTL_DEPS
= @LIBINTL_DEP@
221 INTL_CFLAGS
= @INCINTL@
223 # Where is the ICONV library? This will be empty if in libc or not available.
224 LIBICONV
= @LIBICONV@
226 # Did the user give us a --with-gdb-datadir option?
227 GDB_DATADIR
= @GDB_DATADIR@
231 CODESIGN_CERT
= @CODESIGN_CERT@
233 # Flags to pass to gdb when invoked with "make run".
236 # Helper code from gnulib.
237 GNULIB_BUILDDIR
= ..
/gnulib
238 LIBGNU
= $(GNULIB_BUILDDIR
)/import
/libgnu.a
239 INCGNU
= -I
$(srcdir)/..
/gnulib
/import
-I
$(GNULIB_BUILDDIR
)/import
242 # CLI sub directory definitons
256 SUBDIR_CLI_OBS
= $(patsubst %.c
,%.o
,$(SUBDIR_CLI_SRCS
))
259 # MI sub directory definitons
280 SUBDIR_MI_OBS
= $(patsubst %.c
,%.o
,$(SUBDIR_MI_SRCS
))
287 # TUI sub directory definitions
304 tui
/tui-wingeneral.c \
307 SUBDIR_TUI_OBS
= $(patsubst %.c
,%.o
,$(SUBDIR_TUI_SRCS
))
311 SUBDIR_TUI_CFLAGS
= -DTUI
=1
314 # GCC Compile support sub-directory definitions
316 SUBDIR_GCC_COMPILE_SRCS
= \
318 compile
/compile-c-support.c \
319 compile
/compile-c-symbols.c \
320 compile
/compile-c-types.c \
321 compile
/compile-cplus-symbols.c \
322 compile
/compile-cplus-types.c \
323 compile
/compile-loc2c.c \
324 compile
/compile-object-load.c \
325 compile
/compile-object-run.c
327 SUBDIR_GCC_COMPILE_OBS
= $(patsubst %.c
,%.o
,$(filter %.c
,$(SUBDIR_GCC_COMPILE_SRCS
)))
330 # Guile sub directory definitons for guile support.
332 SUBDIR_GUILE_SRCS
= \
335 guile
/scm-auto-load.c \
337 guile
/scm-breakpoint.c \
340 guile
/scm-exception.c \
343 guile
/scm-iterator.c \
344 guile
/scm-lazy-string.c \
346 guile
/scm-objfile.c \
349 guile
/scm-pretty-print.c \
350 guile
/scm-progspace.c \
351 guile
/scm-safe-call.c \
359 SUBDIR_GUILE_OBS
= $(patsubst %.c
,%.o
,$(SUBDIR_GUILE_SRCS
))
362 SUBDIR_GUILE_LDFLAGS
=
363 SUBDIR_GUILE_CFLAGS
=
366 # python sub directory definitons
368 SUBDIR_PYTHON_SRCS
= \
370 python
/py-auto-load.c \
372 python
/py-bpevent.c \
373 python
/py-breakpoint.c \
375 python
/py-continueevent.c \
377 python
/py-evtregistry.c \
379 python
/py-exitedevent.c \
380 python
/py-finishbreakpoint.c \
382 python
/py-framefilter.c \
383 python
/py-function.c \
384 python
/py-gdb-readline.c \
385 python
/py-inferior.c \
386 python
/py-infevents.c \
387 python
/py-infthread.c \
388 python
/py-instruction.c \
389 python
/py-lazy-string.c \
390 python
/py-linetable.c \
391 python
/py-newobjfileevent.c \
392 python
/py-objfile.c \
394 python
/py-prettyprint.c \
395 python
/py-progspace.c \
397 python
/py-record-btrace.c \
398 python
/py-record-full.c \
399 python
/py-signalevent.c \
400 python
/py-stopevent.c \
403 python
/py-threadevent.c \
409 python
/py-xmethods.c \
412 SUBDIR_PYTHON_OBS
= $(patsubst %.c
,%.o
,$(SUBDIR_PYTHON_SRCS
))
415 SUBDIR_PYTHON_LDFLAGS
=
416 SUBDIR_PYTHON_CFLAGS
=
418 SUBDIR_UNITTESTS_SRCS
= \
419 unittests
/array-view-selftests.c \
420 unittests
/child-path-selftests.c \
421 unittests
/cli-utils-selftests.c \
422 unittests
/common-utils-selftests.c \
423 unittests
/copy_bitwise-selftests.c \
424 unittests
/environ-selftests.c \
425 unittests
/format_pieces-selftests.c \
426 unittests
/function-view-selftests.c \
427 unittests
/help-doc-selftests.c \
428 unittests
/lookup_name_info-selftests.c \
429 unittests
/memory-map-selftests.c \
430 unittests
/memrange-selftests.c \
431 unittests
/offset-type-selftests.c \
432 unittests
/observable-selftests.c \
433 unittests
/optional-selftests.c \
434 unittests
/parse-connection-spec-selftests.c \
435 unittests
/ptid-selftests.c \
436 unittests
/main-thread-selftests.c \
437 unittests
/mkdir-recursive-selftests.c \
438 unittests
/rsp-low-selftests.c \
439 unittests
/scoped_fd-selftests.c \
440 unittests
/scoped_mmap-selftests.c \
441 unittests
/scoped_restore-selftests.c \
442 unittests
/string_view-selftests.c \
443 unittests
/style-selftests.c \
444 unittests
/tracepoint-selftests.c \
445 unittests
/unpack-selftests.c \
446 unittests
/utils-selftests.c \
447 unittests
/vec-utils-selftests.c \
448 unittests
/xml-utils-selftests.c
450 SUBDIR_UNITTESTS_OBS
= $(patsubst %.c
,%.o
,$(SUBDIR_UNITTESTS_SRCS
))
452 SUBDIR_TARGET_SRCS
= target
/waitstatus.c
453 SUBDIR_TARGET_OBS
= $(patsubst %.c
,%.o
,$(SUBDIR_TARGET_SRCS
))
456 # Opcodes currently live in one of two places. Either they are in the
457 # opcode library, typically ../opcodes, or they are in a header file
459 # Where is the "-lopcodes" library, with (some of) the opcode tables and
461 OPCODES_DIR
= ..
/opcodes
462 OPCODES_SRC
= $(srcdir)/$(OPCODES_DIR
)
463 OPCODES
= $(OPCODES_DIR
)/libopcodes.a
464 # Where are the other opcode tables which only have header file
466 OP_INCLUDE
= $(INCLUDE_DIR
)/opcode
467 # See TOP_CFLAGS as well.
468 OPCODES_CFLAGS
= -I
$(OP_INCLUDE
)
470 # Allow includes like "opcodes/mumble.h".
471 TOP_CFLAGS
= -I
$(top_srcdir
)/..
473 # The simulator is usually nonexistent; targets that include one
474 # should set this to list all the .o or .a files to be linked in.
477 WIN32LIBS
= @WIN32LIBS@
479 # Tcl et al cflags and libraries
481 TCL_CFLAGS
= @TCL_INCLUDE@
482 GDBTKLIBS
= @GDBTKLIBS@
483 # Extra flags that the GDBTK files need:
484 GDBTK_CFLAGS
= @GDBTK_CFLAGS@
487 TK_CFLAGS
= @TK_INCLUDE@
489 X11_CFLAGS
= @TK_XINCLUDES@
493 WIN32LDAPP
= @WIN32LDAPP@
496 GUI_CFLAGS_X
= @GUI_CFLAGS_X@
497 IDE_CFLAGS
= $(GUI_CFLAGS_X
) $(IDE_CFLAGS_X
)
499 ALL_TCL_CFLAGS
= $(TCL_CFLAGS
) $(TK_CFLAGS
)
501 # The version of gdbtk we're building. This should be kept
502 # in sync with GDBTK_VERSION and friends in gdbtk.h.
504 GDBTK_LIBRARY
= $(datadir)/insight
$(GDBTK_VERSION
)
506 # Gdbtk requires an absolute path to the source directory or
507 # the testsuite won't run properly.
508 GDBTK_SRC_DIR
= @GDBTK_SRC_DIR@
521 SUBDIR_GDBTK_SRCS
= \
522 gdbtk
/generic
/gdbtk.c \
523 gdbtk
/generic
/gdbtk-bp.c \
524 gdbtk
/generic
/gdbtk-cmds.c \
525 gdbtk
/generic
/gdbtk-hooks.c \
526 gdbtk
/generic
/gdbtk-interp.c \
527 gdbtk
/generic
/gdbtk-main.c \
528 gdbtk
/generic
/gdbtk-register.c \
529 gdbtk
/generic
/gdbtk-stack.c \
530 gdbtk
/generic
/gdbtk-varobj.c \
531 gdbtk
/generic
/gdbtk-wrapper.c
533 SUBDIR_GDBTK_DEPS
= $(LIBGUI
) $(TCL_DEPS
) $(TK_DEPS
)
534 SUBDIR_GDBTK_LDFLAGS
=
535 SUBDIR_GDBTK_CFLAGS
= -DGDBTK
537 CONFIG_OBS
= @CONFIG_OBS@
538 CONFIG_SRCS
= @CONFIG_SRCS@
539 CONFIG_DEPS
= @CONFIG_DEPS@
540 CONFIG_LDFLAGS
= @CONFIG_LDFLAGS@
541 ENABLE_CFLAGS
= @ENABLE_CFLAGS@
542 CONFIG_ALL
= @CONFIG_ALL@
543 CONFIG_CLEAN
= @CONFIG_CLEAN@
544 CONFIG_INSTALL
= @CONFIG_INSTALL@
545 CONFIG_UNINSTALL
= @CONFIG_UNINSTALL@
546 HAVE_NATIVE_GCORE_TARGET
= @HAVE_NATIVE_GCORE_TARGET@
548 CONFIG_SRC_SUBDIR
= arch cli mi gdbsupport compile tui unittests guile python \
550 CONFIG_DEP_SUBDIR
= $(addsuffix /$(DEPDIR
),$(CONFIG_SRC_SUBDIR
))
552 # -I. for config files.
553 # -I$(srcdir) for gdb internal headers.
554 # -I$(srcdir)/config for more generic config files.
556 # It is also possible that you will need to add -I/usr/include/sys if
557 # your system doesn't have fcntl.h in /usr/include (which is where it
558 # should be according to Posix).
560 GDB_CFLAGS
= -I.
-I
$(srcdir) -I
$(srcdir)/config \
561 -DLOCALEDIR
="\"$(localedir)\"" $(DEFS
)
563 # MH_CFLAGS, if defined, has host-dependent CFLAGS from the config directory.
564 GLOBAL_CFLAGS
= $(MH_CFLAGS
)
566 PROFILE_CFLAGS
= @PROFILE_CFLAGS@
568 # These are specifically reserved for setting from the command line
569 # when running make. I.E.: "make CFLAGS=-Wmissing-prototypes".
571 CXXFLAGS
= @CXXFLAGS@
572 CPPFLAGS
= @CPPFLAGS@
574 # Set by configure, for e.g. expat. Python installations are such that
575 # C headers are included using their basename (for example, we #include
576 # <Python.h> rather than, say, <python/Python.h>). Since the file names
577 # are sometimes a little generic, we think that the risk of collision
578 # with other header files is high. If that happens, we try to mitigate
579 # a bit the consequences by putting the Python includes last in the list.
580 INTERNAL_CPPFLAGS
= $(CPPFLAGS
) @GUILE_CPPFLAGS@ @PYTHON_CPPFLAGS@
582 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
583 INTERNAL_CFLAGS_BASE
= \
584 $(CXXFLAGS
) $(GLOBAL_CFLAGS
) $(PROFILE_CFLAGS
) \
585 $(GDB_CFLAGS
) $(OPCODES_CFLAGS
) $(READLINE_CFLAGS
) $(ZLIBINC
) \
586 $(BFD_CFLAGS
) $(INCLUDE_CFLAGS
) $(LIBDECNUMBER_CFLAGS
) \
587 $(INTL_CFLAGS
) $(INCGNU
) $(ENABLE_CFLAGS
) $(INTERNAL_CPPFLAGS
) \
588 $(SRCHIGH_CFLAGS
) $(TOP_CFLAGS
) $(PTHREAD_CFLAGS
)
589 INTERNAL_WARN_CFLAGS
= $(INTERNAL_CFLAGS_BASE
) $(GDB_WARN_CFLAGS
)
590 INTERNAL_CFLAGS
= $(INTERNAL_WARN_CFLAGS
) $(GDB_WERROR_CFLAGS
)
592 # LDFLAGS is specifically reserved for setting from the command line
596 # Profiling options need to go here to work.
597 # I think it's perfectly reasonable for a user to set -pg in CFLAGS
598 # and have it work; that's why CFLAGS is here.
599 # PROFILE_CFLAGS is _not_ included, however, because we use monstartup.
601 $(CXXFLAGS
) $(GLOBAL_CFLAGS
) $(MH_LDFLAGS
) \
602 $(LDFLAGS
) $(CONFIG_LDFLAGS
) $(PTHREAD_CFLAGS
)
604 # Libraries and corresponding dependencies for compiling gdb.
605 # XM_CLIBS, defined in *config files, have host-dependent libs.
606 # LIBIBERTY appears twice on purpose.
607 CLIBS
= $(SIM
) $(READLINE
) $(OPCODES
) $(BFD
) $(LIBCTF
) $(ZLIB
) \
608 $(INTL
) $(LIBIBERTY
) $(LIBDECNUMBER
) \
609 $(XM_CLIBS
) $(GDBTKLIBS
) \
610 @LIBS@ @GUILE_LIBS@ @PYTHON_LIBS@ \
611 $(LIBEXPAT
) $(LIBLZMA
) $(LIBBABELTRACE
) $(LIBIPT
) \
612 $(LIBIBERTY
) $(WIN32LIBS
) $(LIBGNU
) $(LIBICONV
) $(LIBMPFR
) \
613 $(SRCHIGH_LIBS
) $(LIBXXHASH
) $(PTHREAD_LIBS
)
614 CDEPS
= $(NAT_CDEPS
) $(SIM
) $(BFD
) $(READLINE_DEPS
) $(LIBCTF
) \
615 $(OPCODES
) $(INTL_DEPS
) $(LIBIBERTY
) $(CONFIG_DEPS
) $(LIBGNU
)
622 # XML files to build in to GDB.
624 $(srcdir)/features
/btrace.dtd \
625 $(srcdir)/features
/btrace-conf.dtd \
626 $(srcdir)/features
/gdb-target.dtd \
627 $(srcdir)/features
/library-list.dtd \
628 $(srcdir)/features
/library-list-aix.dtd \
629 $(srcdir)/features
/library-list-svr4.dtd \
630 $(srcdir)/features
/osdata.dtd \
631 $(srcdir)/features
/threads.dtd \
632 $(srcdir)/features
/traceframe-info.dtd \
633 $(srcdir)/features
/xinclude.dtd
635 # Build the ser-*.o files the host supports. This includes ser-unix.o
636 # for any system that supports a POSIX interface to the serial port.
638 SER_HARDWIRE
= @SER_HARDWIRE@
640 # This is remote-sim.o if a simulator is to be linked in.
643 # Target-dependent object files.
644 TARGET_OBS
= @TARGET_OBS@
646 # All target-dependent objects files that require 64-bit CORE_ADDR
647 # (used with --enable-targets=all --enable-64-bit-bfd).
648 ALL_64_TARGET_OBS
= \
649 aarch64-fbsd-tdep.o \
650 aarch64-linux-tdep.o \
651 aarch64-newlib-tdep.o \
652 aarch64-ravenscar-thread.o \
656 alpha-mdebug-tdep.o \
660 amd64-darwin-tdep.o \
668 amd64-windows-tdep.o \
670 arch
/aarch64-insn.o \
676 sparc64-fbsd-tdep.o \
677 sparc64-linux-tdep.o \
678 sparc64-nbsd-tdep.o \
679 sparc64-obsd-tdep.o \
680 sparc64-sol2-tdep.o \
683 # All other target-dependent objects files (used with --enable-targets=all).
689 arch
/arm-get-next-pcs.o \
692 arch
/ppc-linux-common.o \
749 microblaze-linux-tdep.o \
756 mn10300-linux-tdep.o \
772 ppc-ravenscar-thread.o \
781 rs6000-lynx178-tdep.o \
800 sparc-ravenscar-thread.o \
806 tilegx-linux-tdep.o \
816 xtensa-linux-tdep.o \
819 # The following native-target dependent variables are defined on
821 NAT_FILE
= @NAT_FILE@
822 NATDEPFILES
= @NATDEPFILES@
823 NAT_CDEPS
= @NAT_CDEPS@
824 LOADLIBES
= @LOADLIBES@
825 MH_CFLAGS
= @MH_CFLAGS@
826 XM_CLIBS
= @XM_CLIBS@
827 NAT_GENERATED_FILES
= @NAT_GENERATED_FILES@
829 HAVE_NATIVE_GCORE_HOST
= @HAVE_NATIVE_GCORE_HOST@
831 # Native-target dependent makefile fragment comes in here.
834 # End of native-target dependent variables.
838 "exec_prefix=$(exec_prefix)" \
839 "infodir=$(infodir)" \
840 "datarootdir=$(datarootdir)" \
842 "htmldir=$(htmldir)" \
846 "datadir=$(datadir)" \
847 "includedir=$(includedir)" \
848 "against=$(against)" \
849 "DESTDIR=$(DESTDIR)" \
851 "AR_FLAGS=$(AR_FLAGS)" \
855 "CXX_DIALECT=$(CXX_DIALECT)" \
856 "CXXFLAGS=$(CXXFLAGS)" \
857 "DLLTOOL=$(DLLTOOL)" \
858 "LDFLAGS=$(LDFLAGS)" \
860 "MAKEINFO=$(MAKEINFO)" \
861 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
862 "MAKEINFO_EXTRA_FLAGS=$(MAKEINFO_EXTRA_FLAGS)" \
863 "MAKEHTML=$(MAKEHTML)" \
864 "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
865 "INSTALL=$(INSTALL)" \
866 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
867 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
868 "INSTALL_DATA=$(INSTALL_DATA)" \
869 "RUNTEST=$(RUNTEST)" \
870 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
872 # Flags that we pass when building the testsuite.
874 # empty for native, $(target_alias)/ for cross
875 target_subdir
= @target_subdir@
878 if [ -f $${rootme}/../gcc/xgcc ] ; then \
879 if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \
880 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/; \
882 echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
885 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
888 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
893 if [ -f $${rootme}/../gcc/xg++ ] ; then \
894 if [ -f $${rootme}/../$(target_subdir)newlib/Makefile ] ; then \
895 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/; \
897 echo $${rootme}/../gcc/xg++ -B$${rootme}/../gcc/; \
900 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
903 t='$(program_transform_name)'; echo g++ | sed -e '' $$t; \
907 # The use of $$(x_FOR_TARGET) reduces the command line length by not
908 # duplicating the lengthy definition.
909 TARGET_FLAGS_TO_PASS
= \
911 "exec_prefix=$(exec_prefix)" \
912 "against=$(against)" \
913 'CC=$$(CC_FOR_TARGET)' \
914 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
916 'CXX=$$(CXX_FOR_TARGET)' \
917 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
918 "CXXFLAGS=$(CXXFLAGS)" \
919 "INSTALL=$(INSTALL)" \
920 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
921 "INSTALL_DATA=$(INSTALL_DATA)" \
922 "MAKEINFO=$(MAKEINFO)" \
923 "MAKEHTML=$(MAKEHTML)" \
924 "RUNTEST=$(RUNTEST)" \
925 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
926 "FORCE_PARALLEL=$(FORCE_PARALLEL)" \
929 # All source files that go into linking GDB.
931 # Files that should wind up in SFILES and whose corresponding .o
932 # should be in COMMON_OBS.
953 break-catch-syscall.c \
954 break-catch-throw.c \
969 gdbsupport
/btrace-common.c \
970 gdbsupport
/buffer.c \
971 gdbsupport
/cleanups.c \
972 gdbsupport
/common-debug.c \
973 gdbsupport
/common-exceptions.c \
974 gdbsupport
/common-inferior.c \
975 gdbsupport
/common-regcache.c \
976 gdbsupport
/common-utils.c \
977 gdbsupport
/errors.c \
978 gdbsupport
/environ.c \
979 gdbsupport
/fileio.c \
980 gdbsupport
/filestuff.c \
981 gdbsupport
/format.c \
982 gdbsupport
/job-control.c \
983 gdbsupport
/gdb-dlfcn.c \
984 gdbsupport
/gdb_tilde_expand.c \
985 gdbsupport
/gdb_vecs.c \
986 gdbsupport
/netstuff.c \
987 gdbsupport
/new-op.c \
988 gdbsupport
/pathstuff.c \
989 gdbsupport
/print-utils.c \
991 gdbsupport
/rsp-low.c \
992 gdbsupport
/run-time-clock.c \
993 gdbsupport
/safe-strerror.c \
994 gdbsupport
/scoped_mmap.c \
995 gdbsupport
/signals.c \
996 gdbsupport
/signals-state-save-restore.c \
998 gdbsupport
/xml-utils.c \
1018 disasm-selftests.c \
1020 dwarf-index-cache.c \
1021 dwarf-index-common.c \
1022 dwarf-index-write.c \
1024 dwarf2-frame-tailcall.c \
1038 filename-seen-cache.c \
1051 gdbarch-selftests.c \
1080 maint-test-options.c \
1081 maint-test-settings.c \
1103 process-stratum-target.c \
1106 progspace-and-thread.c \
1120 run-on-main-thread.c \
1139 target-descriptions.c \
1169 # Links made at configuration time should not be specified here, since
1170 # SFILES is used in building the distribution archive.
1194 $(SUBDIR_CLI_SRCS
) \
1195 $(SUBDIR_TARGET_SRCS
) \
1197 $(SUBDIR_GCC_COMPILE_SRCS
)
1199 # Header files that need to have srcdir added. Note that in the cases
1200 # where we use a macro like $(gdbcmd_h), things are carefully arranged
1201 # so that each .h file is listed exactly once (M-x tags-search works
1202 # wrong if TAGS has files twice). Because this is tricky to get
1203 # right, it is probably easiest just to list .h files here directly.
1205 HFILES_NO_SRCDIR
= \
1207 aarch64-ravenscar-thread.h \
1213 amd64-darwin-tdep.h \
1214 amd64-linux-tdep.h \
1255 dwarf-index-cache.h \
1256 dwarf-index-common.h \
1258 dwarf2-frame-tailcall.h \
1283 gdb_proc_service.h \
1299 hppa-linux-offsets.h \
1302 i386-darwin-tdep.h \
1307 ia64-libunwind-tdep.h \
1359 ppc-ravenscar-thread.h \
1366 progspace-and-thread.h \
1370 ravenscar-thread.h \
1383 run-on-main-thread.h \
1407 sparc-ravenscar-thread.h \
1417 target-descriptions.h \
1452 arch
/aarch64-insn.h \
1455 arch
/ppc-linux-common.h \
1456 arch
/ppc-linux-tdesc.h \
1464 gdbsupport
/buffer.h \
1465 gdbsupport
/cleanups.h \
1466 gdbsupport
/common-debug.h \
1467 gdbsupport
/common-defs.h \
1468 gdbsupport
/common-exceptions.h \
1469 gdbsupport
/common-gdbthread.h \
1470 gdbsupport
/common-regcache.h \
1471 gdbsupport
/common-types.h \
1472 gdbsupport
/common-utils.h \
1473 gdbsupport
/job-control.h \
1474 gdbsupport
/errors.h \
1475 gdbsupport
/environ.h \
1476 gdbsupport
/fileio.h \
1477 gdbsupport
/format.h \
1478 gdbsupport
/gdb-dlfcn.h \
1479 gdbsupport
/gdb-sigmask.h \
1480 gdbsupport
/gdb_assert.h \
1481 gdbsupport
/gdb_binary_search.h \
1482 gdbsupport
/gdb_tilde_expand.h \
1483 gdbsupport
/gdb_locale.h \
1484 gdbsupport
/gdb_proc_service.h \
1485 gdbsupport
/gdb_setjmp.h \
1486 gdbsupport
/gdb_signals.h \
1487 gdbsupport
/gdb_sys_time.h \
1488 gdbsupport
/gdb_vecs.h \
1489 gdbsupport
/gdb_wait.h \
1490 gdbsupport
/common-inferior.h \
1491 gdbsupport
/netstuff.h \
1492 gdbsupport
/host-defs.h \
1493 gdbsupport
/pathstuff.h \
1494 gdbsupport
/print-utils.h \
1496 gdbsupport
/queue.h \
1497 gdbsupport
/rsp-low.h \
1498 gdbsupport
/run-time-clock.h \
1499 gdbsupport
/signals-state-save-restore.h \
1500 gdbsupport
/symbol.h \
1501 gdbsupport
/tdesc.h \
1502 gdbsupport
/version.h \
1503 gdbsupport
/x86-xstate.h \
1504 gdbsupport
/xml-utils.h \
1506 compile
/compile-c.h \
1507 compile
/compile-cplus.h \
1508 compile
/compile-internal.h \
1509 compile
/compile-object-load.h \
1510 compile
/compile-object-run.h \
1511 compile
/gcc-c-plugin.h \
1512 compile
/gcc-cp-plugin.h \
1515 config
/djgpp
/langinfo.h \
1516 config
/djgpp
/nl_types.h \
1517 config
/i386
/nm-i386gnu.h \
1518 config
/sparc
/nm-sol2.h \
1526 nat
/aarch64-linux.h \
1527 nat
/aarch64-linux-hw-point.h \
1528 nat
/aarch64-sve-linux-ptrace.h \
1529 nat
/amd64-linux-siginfo.h \
1531 nat
/gdb_thread_db.h \
1532 nat
/fork-inferior.h \
1533 nat
/linux-btrace.h \
1534 nat
/linux-namespaces.h \
1536 nat
/linux-osdata.h \
1537 nat
/linux-personality.h \
1538 nat
/linux-ptrace.h \
1539 nat
/linux-waitpid.h \
1540 nat
/mips-linux-watch.h \
1544 nat
/x86-gcc-cpuid.h \
1546 nat
/x86-linux-dregs.h \
1548 python
/py-events.h \
1549 python
/py-stopevent.h \
1551 python
/python-internal.h \
1552 regformats
/regdef.h \
1556 target
/waitstatus.h \
1570 tui
/tui-wingeneral.h \
1571 tui
/tui-winsource.h \
1574 # Header files that already have srcdir in them, or which are in objdir.
1576 HFILES_WITH_SRCDIR
= \
1580 # {X,T,NAT}DEPFILES are something of a pain in that it's hard to
1581 # default their values the way we do for SER_HARDWIRE; in the future
1582 # maybe much of the stuff now in {X,T,NAT}DEPFILES will go into other
1583 # variables analogous to SER_HARDWIRE which get defaulted in this
1586 DEPFILES
= $(TARGET_OBS
) $(SER_HARDWIRE
) $(NATDEPFILES
) $(SIM_OBS
)
1588 SOURCES
= $(SFILES
) $(ALLDEPFILES
) $(YYFILES
) $(CONFIG_SRCS
)
1589 # Don't include YYFILES (*.c) because we already include *.y in SFILES,
1590 # and it's more useful to see it in the .y file.
1591 TAGFILES_NO_SRCDIR
= $(SFILES
) $(HFILES_NO_SRCDIR
) $(ALLDEPFILES
) \
1593 TAGFILES_WITH_SRCDIR
= $(HFILES_WITH_SRCDIR
)
1595 COMMON_OBS
= $(DEPFILES
) $(CONFIG_OBS
) $(YYOBJ
) \
1599 $(patsubst %.c
,%.o
,$(COMMON_SFILES
)) \
1601 $(SUBDIR_TARGET_OBS
) \
1602 $(SUBDIR_GCC_COMPILE_OBS
)
1604 SUBDIRS
= doc @subdirs@ data-directory
1605 CLEANDIRS
= $(SUBDIRS
)
1607 # List of subdirectories in the build tree that must exist.
1608 # This is used to force build failures in existing trees when
1609 # a new directory is added.
1610 # The format here is for the `case' shell command.
1611 REQUIRED_SUBDIRS
= doc | testsuite | data-directory
1613 # Parser intermediate files.
1626 # ada-lex.c is included by another file, so it shouldn't wind up as a
1628 YYOBJ
= $(filter-out ada-lex.o
,$(patsubst %.c
,%.o
,$(YYFILES
)))
1630 # Things which need to be built when making a distribution.
1632 DISTSTUFF
= $(YYFILES
)
1635 # All generated files which can be included by another file.
1640 $(NAT_GENERATED_FILES
) \
1643 # Flags needed to compile Python code
1644 PYTHON_CFLAGS
= @PYTHON_CFLAGS@
1646 all: gdb
$(EXEEXT
) $(CONFIG_ALL
) gdb-gdb.py gdb-gdb.gdb
1647 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do
1649 # Rule for compiling .c files in the top-level gdb directory.
1650 # The order-only dependencies ensure that we create the build subdirectories.
1651 %.o
: %.c |
$(CONFIG_DEP_SUBDIR
)
1655 $(CONFIG_DEP_SUBDIR
):
1656 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$@
1658 # Python files need special flags.
1659 python
/%.o
: INTERNAL_CFLAGS
+= $(PYTHON_CFLAGS
)
1661 # Rules for compiling .c files in the various source subdirectories.
1662 %.o
: $(srcdir)/gdbtk
/generic
/%.c
1663 $(COMPILE
) $(all_gdbtk_cflags
) $<
1668 # The check target can not use subdir_do, because subdir_do does not
1669 # use TARGET_FLAGS_TO_PASS.
1671 @if
[ -f testsuite
/Makefile
]; then \
1672 rootme
=`pwd`; export rootme
; \
1673 rootsrc
=`cd $(srcdir); pwd`; export rootsrc
; \
1675 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) check; \
1679 @if
[ -f testsuite
/Makefile
]; then \
1680 rootme
=`pwd`; export rootme
; \
1681 rootsrc
=`cd $(srcdir); pwd`; export rootsrc
; \
1683 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) check-perf
; \
1687 @if
[ -f testsuite
/Makefile
]; then \
1688 rootme
=`pwd`; export rootme
; \
1689 rootsrc
=`cd $(srcdir); pwd`; export rootsrc
; \
1691 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) check-read1
; \
1694 check-parallel
: force
1695 @if
[ -f testsuite
/Makefile
]; then \
1696 rootme
=`pwd`; export rootme
; \
1697 rootsrc
=`cd $(srcdir); pwd`; export rootsrc
; \
1699 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) check-parallel
; \
1702 # The idea is to parallelize testing of multilibs, for example:
1703 # make -j3 check//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu}
1704 # will run 3 concurrent sessions of check, eventually testing all 10
1705 # combinations. GNU make is required for the % pattern to work, as is
1706 # a shell that expands alternations within braces. If GNU make is not
1707 # used, this rule will harmlessly fail to match. Used FORCE_PARALLEL to
1708 # prevent serialized checking due to the passed RUNTESTFLAGS.
1709 # FIXME: use config.status --config not --version, when available.
1711 @if
[ -f testsuite
/config.status
]; then \
1712 rootme
=`pwd`; export rootme
; \
1713 rootsrc
=`cd $(srcdir); pwd`; export rootsrc
; \
1714 target
=`echo "$@" | sed 's,//.*,,'`; \
1715 variant
=`echo "$@" | sed 's,^[^/]*//,,'`; \
1716 vardots
=`echo "$$variant" | sed 's,/,.,g'`; \
1717 testdir
=testsuite.
$$vardots; \
1718 if
[ ! -f
$$testdir/Makefile
] && [ -f testsuite
/config.status
]; then \
1719 configargs
=`cd testsuite && ./config.status --version | \
1720 sed -n -e 's,"$$,,' -e 's,^ *with options ",,p'`; \
1721 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$$testdir && \
1723 eval
$(SHELL
) "\"\$$rootsrc/testsuite/configure\" $$configargs" \
1724 "\"--srcdir=\$$rootsrc/testsuite\"" \
1726 else :; fi
&& cd
$$testdir && \
1727 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) \
1728 RUNTESTFLAGS
="--target_board=$$variant $(RUNTESTFLAGS)" \
1729 FORCE_PARALLEL
=$(if
$(FORCE_PARALLEL
),1,$(if
$(RUNTESTFLAGS
),,1)) \
1733 # The set of headers checked by 'check-headers' by default.
1734 CHECK_HEADERS
= $(HFILES_NO_SRCDIR
)
1736 # Try to compile each header in isolation, thus ensuring headers are
1739 # Defaults to checking all $HFILES_NO_SRCDIR headers.
1743 # make check-headers CHECK_HEADERS="header.h list.h"
1745 # to check specific headers.
1748 @echo Checking headers.
1749 for i in
$(CHECK_HEADERS
) ; do \
1750 $(CXX
) $(CXX_DIALECT
) -x c
++-header
-c
-fsyntax-only \
1751 $(INTERNAL_CFLAGS
) -include defs.h
$(srcdir)/$$i ; \
1753 .PHONY
: check-headers
1755 info install-info clean-info
dvi pdf install-pdf html install-html
: force
1756 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=$@
"DODIRS=$(SUBDIRS)" subdir_do
1758 # Traditionally "install" depends on "all". But it may be useful
1759 # not to; for example, if the user has made some trivial change to a
1760 # source file and doesn't care about rebuilding or just wants to save the
1761 # time it takes for make to check that all is up to date.
1762 # install-only is intended to address that need.
1764 @
$(MAKE
) $(FLAGS_TO_PASS
) install-only
1766 install-only
: $(CONFIG_INSTALL
)
1767 transformed_name
=`t='$(program_transform_name)'; \
1768 echo gdb | sed -e "$$t"` ; \
1769 if
test "x$$transformed_name" = x
; then \
1770 transformed_name
=gdb
; \
1774 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$(bindir) ; \
1775 $(INSTALL_PROGRAM
) gdb
$(EXEEXT
) \
1776 $(DESTDIR
)$(bindir)/$$transformed_name$(EXEEXT
) ; \
1777 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$(includedir)/gdb
; \
1778 $(INSTALL_DATA
) jit-reader.h
$(DESTDIR
)$(includedir)/gdb
/jit-reader.h
1779 if
test "x$(HAVE_NATIVE_GCORE_TARGET)$(HAVE_NATIVE_GCORE_HOST)" != x
; \
1781 transformed_name
=`t='$(program_transform_name)'; \
1782 echo gcore | sed -e "$$t"` ; \
1783 if
test "x$$transformed_name" = x
; then \
1784 transformed_name
=gcore
; \
1788 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$(bindir) ; \
1789 $(INSTALL_SCRIPT
) gcore \
1790 $(DESTDIR
)$(bindir)/$$transformed_name; \
1792 transformed_name
=`t='$(program_transform_name)'; \
1793 echo gdb-add-index | sed -e "$$t"` ; \
1794 if
test "x$$transformed_name" = x
; then \
1795 transformed_name
=gdb-add-index
; \
1799 $(INSTALL_SCRIPT
) $(srcdir)/contrib
/gdb-add-index.sh \
1800 $(DESTDIR
)$(bindir)/$$transformed_name
1801 @
$(MAKE
) DO
=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS
) subdir_do
1804 $(MAKE
) $(FLAGS_TO_PASS
) INSTALL_PROGRAM
="$(INSTALL_STRIP_PROGRAM)" \
1805 install_sh_PROGRAM
="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG
=-s \
1806 `test -z '$(STRIP)' || \
1807 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install-only
1810 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$(GDB_DATADIR
)/guile
/gdb
1813 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$(GDB_DATADIR
)/python
/gdb
1815 uninstall: force $(CONFIG_UNINSTALL
)
1816 transformed_name
=`t='$(program_transform_name)'; \
1817 echo gdb | sed -e $$t` ; \
1818 if
test "x$$transformed_name" = x
; then \
1819 transformed_name
=gdb
; \
1823 rm -f
$(DESTDIR
)$(bindir)/$$transformed_name$(EXEEXT
) \
1824 $(DESTDIR
)$(man1dir)/$$transformed_name.1
1825 if
test "x$(HAVE_NATIVE_GCORE_TARGET)$(HAVE_NATIVE_GCORE_HOST)" != x
; \
1827 transformed_name
=`t='$(program_transform_name)'; \
1828 echo gcore | sed -e "$$t"` ; \
1829 if
test "x$$transformed_name" = x
; then \
1830 transformed_name
=gcore
; \
1834 rm -f
$(DESTDIR
)$(bindir)/$$transformed_name; \
1836 @
$(MAKE
) DO
=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS
) subdir_do
1838 # The C++ name parser can be built standalone for testing.
1839 test-cp-name-parser.o
: cp-name-parser.c
1840 $(COMPILE
) -DTEST_CPNAMES cp-name-parser.c
1843 test-cp-name-parser
$(EXEEXT
): test-cp-name-parser.o
$(LIBIBERTY
)
1844 $(ECHO_CXXLD
) $(CC_LD
) $(INTERNAL_LDFLAGS
) \
1845 -o test-cp-name-parser
$(EXEEXT
) test-cp-name-parser.o \
1848 # We do this by grepping through sources. If that turns out to be too slow,
1849 # maybe we could just require every .o file to have an initialization routine
1850 # of a given name (top.o -> _initialize_top, etc.).
1852 # Formatting conventions: The name of the _initialize_* routines must start
1853 # in column zero, and must not be inside #if.
1855 # Note that the set of files with init functions might change, or the names
1856 # of the functions might change, so this files needs to depend on all the
1857 # source files that will be linked into gdb. However, due to the way
1858 # this Makefile has generally been written, we do this indirectly, by
1859 # computing the list of source files from the list of object files.
1862 $(patsubst %.o
,%.c
, \
1863 $(patsubst %-exp.o
,%-exp.y
, \
1864 $(filter-out init.o version.o
%_S.o
%_U.o
,\
1867 init.c
: stamp-init
; @true
1868 stamp-init
: $(INIT_FILES
)
1869 @
$(ECHO_INIT_C
) echo
"Making init.c"
1870 @
rm -f init.c-tmp init.l-tmp
1872 @
-for f in
$(INIT_FILES
); do \
1873 sed
-n
-e
's/^_initialize_\([a-z_0-9A-Z]*\).*/\1/p' \
1874 $(srcdir)/$$f 2>/dev
/null
; \
1876 @echo
'/* Do not modify this file. */' >>init.c-tmp
1877 @echo
'/* It is created automatically by the Makefile. */'>>init.c-tmp
1878 @echo
'#include "defs.h" /* For initialize_file_ftype. */' >>init.c-tmp
1879 @echo
'extern void initialize_all_files(void);' >>init.c-tmp
1880 @sed
-e
's/\(.*\)/extern initialize_file_ftype _initialize_\1;/' <init.l-tmp
>>init.c-tmp
1881 @echo
'void' >>init.c-tmp
1882 @echo
'initialize_all_files (void)' >>init.c-tmp
1883 @echo
'{' >>init.c-tmp
1884 @sed
-e
's/\(.*\)/ _initialize_\1 ();/' <init.l-tmp
>>init.c-tmp
1885 @echo
'}' >>init.c-tmp
1886 @
$(SHELL
) $(srcdir)/..
/move-if-change init.c-tmp init.c
1887 @echo stamp
> stamp-init
1891 # Create a library of the gdb object files and build GDB by linking
1894 # init.o is very important. It pulls in the rest of GDB.
1895 LIBGDB_OBS
= $(sort $(COMMON_OBS
)) init.o
1896 libgdb.a
: $(LIBGDB_OBS
)
1898 $(AR
) q libgdb.a
$(LIBGDB_OBS
)
1901 # Removing the old gdb first works better if it is running, at least on SunOS.
1902 gdb
$(EXEEXT
): gdb.o
$(LIBGDB_OBS
) $(CDEPS
) $(TDEPLIBS
)
1903 $(SILENCE
) rm -f gdb
$(EXEEXT
)
1904 $(ECHO_CXXLD
) $(CC_LD
) $(INTERNAL_LDFLAGS
) $(WIN32LDAPP
) \
1905 -o gdb
$(EXEEXT
) gdb.o
$(LIBGDB_OBS
) \
1906 $(TDEPLIBS
) $(TUI_LIBRARY
) $(CLIBS
) $(LOADLIBES
)
1907 ifneq ($(CODESIGN_CERT
),)
1908 $(ECHO_SIGN
) $(CODESIGN
) -s
$(CODESIGN_CERT
) gdb
$(EXEEXT
)
1911 # Convenience rule to handle recursion.
1912 .PHONY
: all-data-directory
1913 all-data-directory
: data-directory
/Makefile
1914 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=all DODIRS
=data-directory subdir_do
1916 # This is useful when debugging GDB, because some Unix's don't let you run GDB
1917 # on itself without copying the executable. So "make gdb1" will make
1918 # gdb and put a copy in gdb1, and you can run it with "gdb gdb1".
1919 # Removing gdb1 before the copy is the right thing if gdb1 is open
1920 # in another process.
1921 gdb1
$(EXEEXT
): gdb
$(EXEEXT
)
1923 cp gdb
$(EXEEXT
) gdb1
$(EXEEXT
)
1925 # Put the proper machine-specific files first, so M-. on a machine
1926 # specific routine gets the one for the correct machine. (FIXME: those
1927 # files go in twice; we should be removing them from the main list).
1929 # TAGS depends on all the files that go into it so you can rebuild TAGS
1930 # with `make TAGS' and not have to say `rm TAGS' first.
1932 GDB_NM_FILE
= @GDB_NM_FILE@
1933 TAGS
: $(TAGFILES_NO_SRCDIR
) $(TAGFILES_WITH_SRCDIR
)
1935 etags
`(test -n "$(GDB_NM_FILE)" && echo "$(srcdir)/$(GDB_NM_FILE)")` \
1936 `(for i in $(DEPFILES) $(TAGFILES_NO_SRCDIR); do \
1937 echo $(srcdir)/$$i ; \
1938 done ; for i in $(TAGFILES_WITH_SRCDIR); do \
1940 done) | sed -e 's/\.o$$/\.c/'` \
1941 `find $(srcdir)/config -name '*.h' -print`
1945 clean mostlyclean: $(CONFIG_CLEAN
)
1946 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=clean "DODIRS=$(CLEANDIRS)" subdir_do
1947 rm -f
*.o
*.a
*~ init.c-tmp init.l-tmp version.c-tmp
1948 rm -f init.c stamp-init version.c stamp-version
1949 rm -f gdb
$(EXEEXT
) core make.log
1950 rm -f gdb
[0-9]$(EXEEXT
)
1951 rm -f test-cp-name-parser
$(EXEEXT
)
1952 rm -f xml-builtin.c stamp-xml
1954 for i in
$(CONFIG_SRC_SUBDIR
); do \
1956 rm -f
$$i/$(DEPDIR
)/*; \
1959 # This used to depend on c-exp.c m2-exp.c TAGS
1960 # I believe this is wrong; the makefile standards for distclean just
1961 # describe removing files; the only sort of "re-create a distribution"
1962 # functionality described is if the distributed files are unmodified.
1963 # NB: While GDBSERVER might be configured on native systems, it isn't
1964 # always included in SUBDIRS. Remove the gdbserver files explicitly.
1966 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=distclean "DODIRS=$(CLEANDIRS)" subdir_do
1967 rm -f gdbserver
/config.status gdbserver
/config.log
1968 rm -f gdbserver
/tm.h gdbserver
/xm.h gdbserver
/nm.h
1969 rm -f gdbserver
/Makefile gdbserver
/config.cache
1970 rm -f nm.h config.status config.h stamp-h b jit-reader.h
1971 rm -f gdb-gdb.py gdb-gdb.gdb
1972 rm -f y.output
yacc.acts
yacc.tmp y.tab.h
1973 rm -f config.log config.cache
1976 for i in
$(CONFIG_SRC_SUBDIR
); do \
1977 if
test -d
$$i/$(DEPDIR
); then rmdir
$$i/$(DEPDIR
); fi \
1980 maintainer-clean
: local-maintainer-clean do-maintainer-clean
distclean
1981 realclean: maintainer-clean
1983 local-maintainer-clean
:
1984 @echo
"This command is intended for maintainers to use;"
1985 @echo
"it deletes files that may require special tools to rebuild."
1988 ada-lex.c ada-exp.c \
1989 d-exp.c f-exp.c go-exp.c m2-exp.c p-exp.c rust-exp.c
1992 rm -f nm.h config.status
1994 do-maintainer-clean
:
1995 @
$(MAKE
) $(FLAGS_TO_PASS
) DO
=maintainer-clean
"DODIRS=$(CLEANDIRS)" \
1998 diststuff
: $(DISTSTUFF
) $(PACKAGE
).pot
$(CATALOGS
)
1999 cd doc
; $(MAKE
) $(MFLAGS
) diststuff
2002 @for i in
$(DODIRS
); do \
2004 $(REQUIRED_SUBDIRS
)) \
2005 if
[ ! -f .
/$$i/Makefile
] ; then \
2006 echo
"Missing $$i/Makefile" >&2 ; \
2010 if
[ -f .
/$$i/Makefile
] ; then \
2012 $(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
2013 else exit
1 ; fi
; \
2017 Makefile
: Makefile.in config.status
2018 $(SHELL
) config.status
$@
2020 data-directory
/Makefile
: data-directory
/Makefile.in config.status
2021 $(SHELL
) config.status
$@
2025 .
/gdb
$(EXEEXT
) --data-directory
=`pwd`/data-directory
$(GDBFLAGS
)
2027 jit-reader.h
: $(srcdir)/jit-reader.in
2028 $(SHELL
) config.status
$@
2030 gcore
: $(srcdir)/gcore.in
2031 $(SHELL
) config.status
$@
2033 gdb-gdb.py
: $(srcdir)/gdb-gdb.py.in
2034 $(SHELL
) config.status
$@
2036 gdb-gdb.gdb
: $(srcdir)/gdb-gdb.gdb.in
2037 $(SHELL
) config.status
$@
2039 config.h
: stamp-h
; @true
2040 stamp-h
: $(srcdir)/config.in config.status
2041 $(SHELL
) config.status config.h
2043 nm.h
: stamp-nmh
; @true
2044 stamp-nmh
: config.status
2045 $(SHELL
) config.status nm.h
2047 config.status
: $(srcdir)/configure configure.nat configure.tgt configure.host ..
/bfd
/development.sh
2048 $(SHELL
) config.status
--recheck
2051 ACLOCAL_AMFLAGS
= -I ..
/config
2053 # Keep these in sync with the includes in acinclude.m4.
2056 acx_configure_dir.m4 \
2059 ..
/config
/acinclude.m4 \
2060 ..
/config
/plugins.m4 \
2061 ..
/config
/lead-dot.m4 \
2062 ..
/config
/override.m4 \
2063 ..
/config
/largefile.m4 \
2064 ..
/config
/gettext-sister.m4 \
2065 ..
/config
/lib-ld.m4 \
2066 ..
/config
/lib-prefix.m4 \
2067 ..
/config
/lib-link.m4 \
2070 ..
/config
/depstand.m4 \
2071 ..
/config
/lcmessage.m4 \
2072 ..
/config
/codeset.m4 \
2074 ..
/config
/ax_pthread.m4
2076 $(srcdir)/aclocal.m4
: @MAINTAINER_MODE_TRUE@
$(aclocal_m4_deps
)
2077 cd
$(srcdir) && $(ACLOCAL
) $(ACLOCAL_AMFLAGS
)
2080 configure_deps
= $(srcdir)/configure.ac
$(srcdir)/aclocal.m4
2081 $(srcdir)/configure
: @MAINTAINER_MODE_TRUE@
$(configure_deps
)
2082 cd
$(srcdir) && $(AUTOCONF
)
2084 AUTOHEADER
= autoheader
2085 $(srcdir)/config.in
: @MAINTAINER_MODE_TRUE@
$(configure_deps
)
2086 cd
$(srcdir) && $(AUTOHEADER
)
2090 # automatic rebuilding in automake-generated Makefiles requires
2091 # this rule in the toplevel Makefile, which, with GNU make, causes
2092 # the desired updates through the implicit regeneration of the Makefile
2093 # and all of its prerequisites.
2100 # GDB QUICK REFERENCE (TeX dvi file, CM fonts)
2102 cd doc
; $(MAKE
) refcard.
dvi $(FLAGS_TO_PASS
)
2104 # GDB QUICK REFERENCE (PostScript output, common PS fonts)
2106 cd doc
; $(MAKE
) refcard.ps
$(FLAGS_TO_PASS
)
2108 # GDB MANUAL: TeX dvi file
2110 cd doc
; $(MAKE
) gdb.
dvi $(FLAGS_TO_PASS
)
2112 # GDB MANUAL: info file
2114 cd doc
; $(MAKE
) gdb.
info $(FLAGS_TO_PASS
)
2116 # Make copying.c from COPYING
2117 $(srcdir)/copying.c
: @MAINTAINER_MODE_TRUE@
$(srcdir)/..
/COPYING3
$(srcdir)/copying.awk
2118 awk
-f
$(srcdir)/copying.awk \
2119 < $(srcdir)/..
/COPYING3
> $(srcdir)/copying.tmp
2120 mv
$(srcdir)/copying.tmp
$(srcdir)/copying.c
2122 version.c
: stamp-version
; @true
2123 # Note that the obvious names for the temp file are taken by
2124 # create-version.sh.
2125 stamp-version
: Makefile version.in
$(srcdir)/..
/bfd
/version.h
$(srcdir)/gdbsupport
/create-version.sh
2126 $(ECHO_GEN
) $(SHELL
) $(srcdir)/gdbsupport
/create-version.sh
$(srcdir) \
2127 $(host_alias
) $(target_alias
) version-t.t
2128 @
$(SHELL
) $(srcdir)/..
/move-if-change version-t.t version.c
2129 @echo stamp
> stamp-version
2132 gdb.cxref
: $(SFILES
)
2133 cxref
-I.
$(SFILES
) >gdb.cxref
2137 # GNU Make has an annoying habit of putting *all* the Makefile variables
2138 # into the environment, unless you include this target as a circumvention.
2139 # Rumor is that this will be fixed (and this target can be removed)
2143 # GNU Make 3.63 has a different problem: it keeps tacking command line
2144 # overrides onto the definition of $(MAKE). This variable setting
2150 aarch64-fbsd-nat.c \
2151 aarch64-fbsd-tdep.c \
2152 aarch64-linux-nat.c \
2153 aarch64-linux-tdep.c \
2154 aarch64-newlib-tdep.c \
2155 aarch64-ravenscar-thread.c \
2161 alpha-linux-tdep.c \
2162 alpha-mdebug-tdep.c \
2167 amd64-darwin-tdep.c \
2168 amd64-dicos-tdep.c \
2172 amd64-linux-tdep.c \
2185 arm-get-next-pcs.c \
2192 arm-symbian-tdep.c \
2220 i386-cygwin-tdep.c \
2222 i386-darwin-tdep.c \
2238 ia64-libunwind-tdep.c \
2257 microblaze-linux-tdep.c \
2269 mips64-obsd-tdep.c \
2274 nios2-linux-tdep.c \
2287 ppc-ravenscar-thread.c \
2291 ravenscar-thread.c \
2296 riscv-linux-tdep.c \
2299 rs6000-lynx178-tdep.c \
2319 sparc-linux-tdep.c \
2324 sparc-ravenscar-thread.c \
2328 sparc64-fbsd-nat.c \
2329 sparc64-fbsd-tdep.c \
2330 sparc64-linux-nat.c \
2331 sparc64-linux-tdep.c \
2333 sparc64-nbsd-nat.c \
2334 sparc64-nbsd-tdep.c \
2335 sparc64-obsd-nat.c \
2336 sparc64-obsd-tdep.c \
2337 sparc64-sol2-tdep.c \
2339 tilegx-linux-nat.c \
2340 tilegx-linux-tdep.c \
2353 xtensa-linux-nat.c \
2354 xtensa-linux-tdep.c \
2358 # Some files need explicit build rules (due to -Werror problems) or due
2359 # to sub-directory fun 'n' games.
2361 # ada-exp.c can appear in srcdir, for releases; or in ., for
2362 # development builds.
2363 ADA_EXP_C
= `if test -f ada-exp.c; then echo ada-exp.c; else echo $(srcdir)/ada-exp.c; fi`
2365 ada-exp.o
: ada-exp.c
2366 $(COMPILE
) $(ADA_EXP_C
)
2369 # Message files. Based on code in gcc/Makefile.in.
2371 # Rules for generating translated message descriptions. Disabled by
2372 # autoconf if the tools are not available.
2374 .PHONY
: all-po install-po uninstall-po clean-po update-po
$(PACKAGE
).pot
2378 # This notation should be acceptable to all Make implementations used
2379 # by people who are interested in updating .po files.
2380 update-po
: $(CATALOGS
:.gmo
=.pox
)
2382 # N.B. We do not attempt to copy these into $(srcdir). The snapshot
2385 -test -d po || mkdir po
2386 $(GMSGFMT
) --statistics
-o
$@
$<
2388 # The new .po has to be gone over by hand, so we deposit it into
2389 # build/po with a different extension. If build/po/$(PACKAGE).pot
2390 # exists, use it (it was just created), else use the one in srcdir.
2392 -test -d po || mkdir po
2393 $(MSGMERGE
) $< `if test -f po/$(PACKAGE).pot; \
2394 then echo po/$(PACKAGE).pot; \
2395 else echo $(srcdir)/po/$(PACKAGE).pot; fi` -o
$@
2397 # This rule has to look for .gmo modules in both srcdir and the cwd,
2398 # and has to check that we actually have a catalog for each language,
2399 # in case they weren't built or included with the distribution.
2401 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$(datadir)
2402 cats
="$(CATALOGS)"; for cat in
$$cats; do \
2403 lang
=`basename $$cat | sed 's/\.gmo$$//'`; \
2404 if
[ -f
$$cat ]; then
:; \
2405 elif
[ -f
$(srcdir)/$$cat ]; then cat
=$(srcdir)/$$cat; \
2408 dir=$(localedir
)/$$lang/LC_MESSAGES
; \
2409 echo
$(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$$dir; \
2410 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$$dir || exit
1; \
2411 echo
$(INSTALL_DATA
) $$cat $(DESTDIR
)$$dir/$(PACKAGE
).mo
; \
2412 $(INSTALL_DATA
) $$cat $(DESTDIR
)$$dir/$(PACKAGE
).mo
; \
2415 cats
="$(CATALOGS)"; for cat in
$$cats; do \
2416 lang
=`basename $$cat | sed 's/\.gmo$$//'`; \
2417 if
[ -f
$$cat ]; then
:; \
2418 elif
[ -f
$(srcdir)/$$cat ]; then cat
=$(srcdir)/$$cat; \
2421 dir=$(localedir
)/$$lang/LC_MESSAGES
; \
2422 rm -f
$(DESTDIR
)$$dir/$(PACKAGE
).mo
; \
2424 # Delete po/*.gmo only if we are not building in the source directory.
2426 -if
[ ! -f Makefile.in
]; then
rm -f po
/*.gmo
; fi
2428 # Rule for regenerating the message template (gdb.pot). Instead of
2429 # forcing everyone to edit POTFILES.in, which proved impractical, this
2430 # rule has no dependencies and always regenerates gdb.pot. This is
2431 # relatively harmless since the .po files do not directly depend on
2432 # it. The .pot file is left in the build directory. Since GDB's
2433 # Makefile lacks a cannonical list of sources (missing xm, tm and nm
2434 # files) force this rule.
2435 $(PACKAGE
).pot
: po
/$(PACKAGE
).pot
2436 po
/$(PACKAGE
).pot
: force
2437 -test -d po || mkdir po
2438 sh
-e
$(srcdir)/po
/gdbtext
$(XGETTEXT
) $(PACKAGE
) .
$(srcdir)
2442 # YACC/LEX dependencies
2444 # LANG-exp.c is generated in objdir from LANG-exp.y if it doesn't
2445 # exist in srcdir, then compiled in objdir to LANG-exp.o. If we
2446 # said LANG-exp.c rather than ./c-exp.c some makes would
2447 # sometimes re-write it into $(srcdir)/c-exp.c. Remove bogus
2448 # decls for malloc/realloc/free which conflict with everything else.
2449 # Strictly speaking c-exp.c should therefore depend on
2450 # Makefile.in, but that was a pretty big annoyance.
2453 $(ECHO_YACC
) $(SHELL
) $(YLWRAP
) $< y.tab.c
$@.tmp
-- \
2454 $(YACC
) $(YFLAGS
) ||
(rm -f
$@.tmp
; false
)
2455 @sed
-e
'/extern.*malloc/d' \
2456 -e
'/extern.*realloc/d' \
2457 -e
'/extern.*free/d' \
2458 -e
'/include.*malloc.h/d' \
2459 -e
's/\([^x]\)malloc/\1xmalloc/g' \
2460 -e
's/\([^x]\)realloc/\1xrealloc/g' \
2461 -e
's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \
2462 -e
's/\([ \t;,(]\)free$$/\1xfree/g' \
2463 -e
'/^#line.*y.tab.c/d' \
2464 -e
's/YY_NULL/YY_NULLPTR/g' \
2465 < $@.tmp
> $@.new
&& \
2469 $(ECHO_LEX
) $(FLEX
) -t
$< \
2470 | sed
-e
'/extern.*malloc/d' \
2471 -e
'/extern.*realloc/d' \
2472 -e
'/extern.*free/d' \
2473 -e
'/include.*malloc.h/d' \
2474 -e
's/\([^x]\)malloc/\1xmalloc/g' \
2475 -e
's/\([^x]\)realloc/\1xrealloc/g' \
2476 -e
's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \
2477 -e
's/\([ \t;,(]\)free$$/\1xfree/g' \
2478 -e
's/yy_flex_xrealloc/yyxrealloc/g' \
2482 .PRECIOUS
: ada-lex.c
2486 xml-builtin.c
: stamp-xml
; @true
2487 stamp-xml
: $(srcdir)/features
/feature_to_c.sh Makefile
$(XMLFILES
)
2488 $(SILENCE
) rm -f xml-builtin.tmp
2489 $(ECHO_GEN_XML_BUILTIN
) AWK
="$(AWK)" \
2490 $(SHELL
) $(srcdir)/features
/feature_to_c.sh \
2491 xml-builtin.tmp
$(XMLFILES
)
2492 $(SILENCE
) $(SHELL
) $(srcdir)/..
/move-if-change xml-builtin.tmp xml-builtin.c
2493 $(SILENCE
) echo stamp
> stamp-xml
2495 .PRECIOUS
: xml-builtin.c
2498 # GDBTK sub-directory
2501 all-gdbtk
: insight
$(EXEEXT
)
2504 transformed_name
=`t='$(program_transform_name)'; \
2505 echo insight | sed -e $$t` ; \
2506 if
test "x$$transformed_name" = x
; then \
2507 transformed_name
=insight
; \
2511 $(SHELL
) $(srcdir)/..
/mkinstalldirs
$(DESTDIR
)$(bindir); \
2512 $(INSTALL_PROGRAM
) insight
$(EXEEXT
) \
2513 $(DESTDIR
)$(bindir)/$$transformed_name$(EXEEXT
) ; \
2514 $(SHELL
) $(srcdir)/..
/mkinstalldirs \
2515 $(DESTDIR
)$(GDBTK_LIBRARY
) ; \
2516 $(SHELL
) $(srcdir)/..
/mkinstalldirs \
2517 $(DESTDIR
)$(libdir)/insight
$(GDBTK_VERSION
) ; \
2518 $(INSTALL_DATA
) $(srcdir)/gdbtk
/plugins
/plugins.tcl \
2519 $(DESTDIR
)$(libdir)/insight
$(GDBTK_VERSION
)/plugins.tcl
; \
2520 $(SHELL
) $(srcdir)/..
/mkinstalldirs \
2521 $(DESTDIR
)$(GDBTK_LIBRARY
)/images \
2522 $(DESTDIR
)$(GDBTK_LIBRARY
)/images2
; \
2523 $(SHELL
) $(srcdir)/..
/mkinstalldirs \
2524 $(DESTDIR
)$(GDBTK_LIBRARY
)/help \
2525 $(DESTDIR
)$(GDBTK_LIBRARY
)/help
/images \
2526 $(DESTDIR
)$(GDBTK_LIBRARY
)/help
/trace
; \
2527 cd
$(srcdir)/gdbtk
/library
; \
2528 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
; \
2530 $(INSTALL_DATA
) $$i $(DESTDIR
)$(GDBTK_LIBRARY
)/$$i ; \
2534 transformed_name
=`t='$(program_transform_name)'; \
2535 echo insight | sed -e $$t` ; \
2536 if
test "x$$transformed_name" = x
; then \
2537 transformed_name
=insight
; \
2541 rm -f
$(DESTDIR
)$(bindir)/$$transformed_name$(EXEEXT
) ; \
2542 rm -rf
$(DESTDIR
)$(GDBTK_LIBRARY
)
2545 rm -f insight
$(EXEEXT
)
2547 # Removing the old gdb first works better if it is running, at least on SunOS.
2548 insight
$(EXEEXT
): gdbtk-main.o libgdb.a
$(CDEPS
) $(TDEPLIBS
)
2549 rm -f insight
$(EXEEXT
)
2550 $(ECHO_CXXLD
) $(CC_LD
) $(INTERNAL_LDFLAGS
) $(WIN32LDAPP
) \
2551 -o insight
$(EXEEXT
) gdbtk-main.o libgdb.a \
2552 $(TDEPLIBS
) $(TUI_LIBRARY
) $(CLIBS
) $(LOADLIBES
)
2554 gdbres.o
: $(srcdir)/gdbtk
/gdb.rc
$(srcdir)/gdbtk
/gdbtool.ico
2555 $(WINDRES
) --include $(srcdir)/gdbtk
$(srcdir)/gdbtk
/gdb.rc gdbres.o
2557 all_gdbtk_cflags
= $(IDE_CFLAGS
) $(ITCL_CFLAGS
) \
2558 $(ITK_CFLAGS
) $(TCL_CFLAGS
) $(TK_CFLAGS
) $(X11_CFLAGS
) \
2560 -DGDBTK_LIBRARY
=\"$(GDBTK_LIBRARY
)\" \
2561 -DSRC_DIR
=\"$(GDBTK_SRC_DIR
)\"
2564 # Dependency tracking.
2567 ifeq ($(DEPMODE
),depmode
=gcc3
)
2568 # Note that we put the dependencies into a .Tpo file, then move them
2569 # into place if the compile succeeds. We need this because gcc does
2570 # not atomically write the dependency output file.
2571 override COMPILE.post
= -c
-o
$@
-MT
$@
-MMD
-MP \
2572 -MF
$(@D
)/$(DEPDIR
)/$(basename $(@F
)).Tpo
2573 override POSTCOMPILE
= @mv
$(@D
)/$(DEPDIR
)/$(basename $(@F
)).Tpo \
2574 $(@D
)/$(DEPDIR
)/$(basename $(@F
)).Po
2576 override COMPILE.pre
= source
='$<' object
='$@' libtool
=no \
2577 DEPDIR
=$(DEPDIR
) $(DEPMODE
) $(depcomp
) \
2578 $(CXX
) -x c
++ $(CXX_DIALECT
)
2579 # depcomp handles atomicity for us, so we don't need a postcompile
2581 override POSTCOMPILE
=
2584 # A list of all the objects we might care about in this build, for
2585 # dependency tracking.
2586 all_object_files
= gdb.o
$(LIBGDB_OBS
) gdbtk-main.o \
2587 test-cp-name-parser.o
2589 # All the .deps files to include.
2590 all_deps_files
= $(foreach dep
,$(patsubst %.o
,%.Po
,$(all_object_files
)),\
2591 $(dir $(dep
))/$(DEPDIR
)/$(notdir $(dep
)))
2593 # Ensure that generated files are created early. Use order-only
2594 # dependencies if available. They require GNU make 3.80 or newer,
2595 # and the .VARIABLES variable was introduced at the same time.
2597 $(all_object_files
): |
$(generated_files
)
2599 $(all_object_files
) : $(generated_files
)
2603 -include $(all_deps_files
)
2605 # Disable implicit make rules.
2606 include $(srcdir)/disable-implicit-rules.mk
2608 ### end of the gdb Makefile.in.