gdb: remove duplicate declaration of 'find_thread_ptid'
[deliverable/binutils-gdb.git] / gdb / Makefile.in
index c8979fe2760b7ee43be7ce2018c246cc8c56f4e6..1bc97885536e0d70b03cd9fe6d8b40304ee53555 100644 (file)
@@ -245,8 +245,8 @@ CODESIGN_CERT = @CODESIGN_CERT@
 GDBFLAGS =
 
 # Helper code from gnulib.
-GNULIB_BUILDDIR = ../gnulib
-include $(GNULIB_BUILDDIR)/Makefile.gnulib.inc
+GNULIB_PARENT_DIR = ..
+include $(GNULIB_PARENT_DIR)/gnulib/Makefile.gnulib.inc
 
 SUPPORT = ../gdbsupport
 LIBSUPPORT = $(SUPPORT)/libgdbsupport.a
@@ -310,6 +310,7 @@ SUBDIR_TUI_SRCS = \
        tui/tui-interp.c \
        tui/tui-io.c \
        tui/tui-layout.c \
+       tui/tui-location.c \
        tui/tui-out.c \
        tui/tui-regs.c \
        tui/tui-source.c \
@@ -460,6 +461,7 @@ SELFTESTS_SRCS = \
        unittests/mkdir-recursive-selftests.c \
        unittests/rsp-low-selftests.c \
        unittests/scoped_fd-selftests.c \
+       unittests/scoped_ignore_signal-selftests.c \
        unittests/scoped_mmap-selftests.c \
        unittests/scoped_restore-selftests.c \
        unittests/search-memory-selftests.c \
@@ -698,6 +700,7 @@ ALL_64_TARGET_OBS = \
        amd64-windows-tdep.o \
        arch/aarch64.o \
        arch/aarch64-insn.o \
+       arch/aarch64-mte-linux.o \
        arch/amd64.o \
        ia64-linux-tdep.o \
        ia64-tdep.o \
@@ -727,9 +730,9 @@ ALL_TARGET_OBS = \
        arm-fbsd-tdep.o \
        arm-linux-tdep.o \
        arm-netbsd-tdep.o \
+       arm-none-tdep.o \
        arm-obsd-tdep.o \
        arm-pikeos-tdep.o \
-       arm-symbian-tdep.o \
        arm-tdep.o \
        arm-wince-tdep.o \
        avr-tdep.o \
@@ -808,6 +811,7 @@ ALL_TARGET_OBS = \
        ravenscar-thread.o \
        riscv-fbsd-tdep.o \
        riscv-linux-tdep.o \
+       riscv-none-tdep.o \
        riscv-ravenscar-thread.o \
        riscv-tdep.o \
        rl78-tdep.o \
@@ -1002,7 +1006,6 @@ COMMON_SFILES = \
        coffread.c \
        complaints.c \
        completer.c \
-       continuations.c \
        copying.c \
        corefile.c \
        corelow.c \
@@ -1024,7 +1027,8 @@ COMMON_SFILES = \
        dummy-frame.c \
        dwarf2/abbrev.c \
        dwarf2/attribute.c \
-       dwarf2/comp-unit.c \
+       dwarf2/comp-unit-head.c \
+       dwarf2/cu.c \
        dwarf2/dwz.c \
        dwarf2/expr.c \
        dwarf2/frame-tailcall.c \
@@ -1132,6 +1136,7 @@ COMMON_SFILES = \
        reverse.c \
        run-on-main-thread.c \
        rust-lang.c \
+       rust-parse.c \
        sentinel-frame.c \
        ser-event.c \
        serial.c \
@@ -1189,14 +1194,15 @@ SFILES = \
        cp-name-parser.y \
        d-exp.y \
        dtrace-probe.c \
+       elf-none-tdep.c \
        elfread.c \
        f-exp.y \
+       gcore-elf.c \
        gdb.c \
        go-exp.y \
        m2-exp.y \
        p-exp.y \
        proc-service.list \
-       rust-exp.y \
        ser-base.c \
        ser-unix.c \
        sol-thread.c \
@@ -1269,6 +1275,7 @@ HFILES_NO_SRCDIR = \
        dictionary.h \
        disasm.h \
        dummy-frame.h \
+       dwarf2/cu.h \
        dwarf2/frame-tailcall.h \
        dwarf2/frame.h \
        dwarf2/expr.h \
@@ -1292,6 +1299,7 @@ HFILES_NO_SRCDIR = \
        frame-unwind.h \
        frv-tdep.h \
        ft32-tdep.h \
+       gcore-elf.h \
        gcore.h \
        gdb_bfd.h \
        gdb_curses.h \
@@ -1329,7 +1337,6 @@ HFILES_NO_SRCDIR = \
        inf-ptrace.h \
        infcall.h \
        inferior.h \
-       inflow.h \
        inline-frame.h \
        interps.h \
        jit.h \
@@ -1361,6 +1368,7 @@ HFILES_NO_SRCDIR = \
        netbsd-tdep.h \
        nds32-tdep.h \
        nios2-tdep.h \
+       elf-none-tdep.h \
        nto-tdep.h \
        objc-lang.h \
        objfiles.h \
@@ -1469,6 +1477,7 @@ HFILES_NO_SRCDIR = \
        arch/aarch32.h \
        arch/aarch64.h \
        arch/aarch64-insn.h \
+       arch/aarch64-mte-linux.h \
        arch/arc.h \
        arch/arm.h \
        arch/i386.h \
@@ -1504,6 +1513,7 @@ HFILES_NO_SRCDIR = \
        mi/mi-parse.h \
        nat/aarch64-linux.h \
        nat/aarch64-linux-hw-point.h \
+       nat/aarch64-mte-linux-ptrace.h \
        nat/aarch64-sve-linux-ptrace.h \
        nat/amd64-linux-siginfo.h \
        nat/gdb_ptrace.h \
@@ -1541,6 +1551,7 @@ HFILES_NO_SRCDIR = \
        tui/tui-hooks.h \
        tui/tui-io.h \
        tui/tui-layout.h \
+       tui/tui-location.h \
        tui/tui-out.h \
        tui/tui-regs.h \
        tui/tui-source.h \
@@ -1580,7 +1591,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
        $(SUBDIR_TARGET_OBS) \
        $(SUBDIR_GCC_COMPILE_OBS)
 
-SUBDIRS = doc @subdirs@ data-directory
+SUBDIRS = doc @subdirs@ data-directory testsuite
 CLEANDIRS = $(SUBDIRS)
 
 # List of subdirectories in the build tree that must exist.
@@ -1599,8 +1610,7 @@ YYFILES = \
        f-exp.c \
        go-exp.c \
        m2-exp.c \
-       p-exp.c \
-       rust-exp.c
+       p-exp.c
 
 # ada-lex.c is included by another file, so it shouldn't wind up as a
 # .o itself.
@@ -1623,7 +1633,7 @@ generated_files = \
 PYTHON_CFLAGS = @PYTHON_CFLAGS@
 
 all: gdb$(EXEEXT) $(CONFIG_ALL) gdb-gdb.py gdb-gdb.gdb
-       @$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do
+       @$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=$(SUBDIRS)" subdir_do
 
 # Rule for compiling .c files in the top-level gdb directory.
 # The order-only dependencies ensure that we create the build subdirectories.
@@ -1828,42 +1838,31 @@ test-cp-name-parser$(EXEEXT): test-cp-name-parser.o $(LIBIBERTY)
 # maybe we could just require every .o file to have an initialization routine
 # of a given name (top.o -> _initialize_top, etc.).
 #
-# Formatting conventions:  The name of the _initialize_* routines must start
-# in column zero, and must not be inside #if.
-#
 # Note that the set of files with init functions might change, or the names
 # of the functions might change, so this files needs to depend on all the
 # source files that will be linked into gdb.  However, due to the way
 # this Makefile has generally been written, we do this indirectly, by
 # computing the list of source files from the list of object files.
 
+INIT_FILES_FILTER_OUT = \
+       cp-name-parser.o \
+       init.o \
+       version.o \
+       xml-builtin.o \
+       %_S.o \
+       %_U.o
+
 INIT_FILES = \
        $(patsubst %.o,%.c, \
          $(patsubst %-exp.o,%-exp.y, \
-           $(filter-out init.o version.o %_S.o %_U.o,\
-             $(COMMON_OBS))))
+           $(filter-out $(INIT_FILES_FILTER_OUT), $(COMMON_OBS))))
 
 init.c: stamp-init; @true
-stamp-init: $(INIT_FILES) config.status
-       @$(ECHO_INIT_C) echo "Making init.c"
-       @rm -f init.c-tmp init.l-tmp
-       @touch init.c-tmp
-       @-for f in $(INIT_FILES); do \
-           sed -n -e 's/^_initialize_\([a-z_0-9A-Z]*\).*/\1/p' \
-               $(srcdir)/$$f 2>/dev/null; \
-       done > init.l-tmp
-       @echo '/* Do not modify this file.  */' >>init.c-tmp
-       @echo '/* It is created automatically by the Makefile.  */'>>init.c-tmp
-       @echo '#include "defs.h"      /* For initialize_file_ftype.  */' >>init.c-tmp
-       @echo 'extern void initialize_all_files(void);' >>init.c-tmp
-       @sed -e 's/\(.*\)/extern initialize_file_ftype _initialize_\1;/' <init.l-tmp >>init.c-tmp
-       @echo 'void' >>init.c-tmp
-       @echo 'initialize_all_files (void)' >>init.c-tmp
-       @echo '{' >>init.c-tmp
-       @sed -e 's/\(.*\)/  _initialize_\1 ();/' <init.l-tmp >>init.c-tmp
-       @echo '}' >>init.c-tmp
-       @$(SHELL) $(srcdir)/../move-if-change init.c-tmp init.c
-       @echo stamp > stamp-init
+stamp-init: $(INIT_FILES) config.status $(srcdir)/make-init-c
+       $(ECHO_INIT_C)
+       $(SILENCE) $(srcdir)/make-init-c $(addprefix $(srcdir)/,$(INIT_FILES)) > init.c-tmp
+       $(SILENCE) $(SHELL) $(srcdir)/../move-if-change init.c-tmp init.c
+       $(SILENCE) echo stamp > stamp-init
 
 .PRECIOUS: init.c
 
@@ -1887,11 +1886,6 @@ ifneq ($(CODESIGN_CERT),)
        $(ECHO_SIGN) $(CODESIGN) -s $(CODESIGN_CERT) gdb$(EXEEXT)
 endif
 
-# Convenience rule to handle recursion.
-.PHONY: all-data-directory
-all-data-directory: data-directory/Makefile
-       @$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=data-directory subdir_do
-
 # This is useful when debugging GDB, because some Unix's don't let you run GDB
 # on itself without copying the executable.  So "make gdb1" will make
 # gdb and put a copy in gdb1, and you can run it with "gdb gdb1".
@@ -1960,7 +1954,7 @@ local-maintainer-clean:
        rm -f c-exp.c \
                cp-name-parser.c \
                ada-lex.c ada-exp.c \
-               d-exp.c f-exp.c go-exp.c m2-exp.c p-exp.c rust-exp.c
+               d-exp.c f-exp.c go-exp.c m2-exp.c p-exp.c
        rm -f TAGS
        rm -f $(YYFILES)
        rm -f nm.h config.status
@@ -1991,9 +1985,6 @@ subdir_do: force
 Makefile: Makefile.in config.status
        $(SHELL) config.status $@
 
-data-directory/Makefile: data-directory/Makefile.in config.status
-       $(SHELL) config.status $@
-
 .PHONY: run
 run: Makefile
        ./gdb$(EXEEXT) --data-directory=`pwd`/data-directory $(GDBFLAGS)
@@ -2165,8 +2156,8 @@ ALLDEPFILES = \
        arm-linux-tdep.c \
        arm-netbsd-nat.c \
        arm-netbsd-tdep.c \
+       arm-none-tdep.c \
        arm-obsd-tdep.c \
-       arm-symbian-tdep.c \
        arm-tdep.c \
        avr-tdep.c \
        bfin-linux-tdep.c \
@@ -2272,6 +2263,7 @@ ALLDEPFILES = \
        riscv-fbsd-tdep.c \
        riscv-linux-nat.c \
        riscv-linux-tdep.c \
+       riscv-none-tdep.c \
        riscv-ravenscar-thread.c \
        riscv-tdep.c \
        rl78-tdep.c \
This page took 0.027736 seconds and 4 git commands to generate.