Merge branch 'master' into merge-job
[deliverable/binutils-gdb.git] / gdb / Makefile.in
index 5a4ffd5a818a1998e0c0c87fb0de3f2f2da097e2..084c83dcef7ef25458f7a71796e0c2cef6bc22df 100644 (file)
@@ -1,4 +1,5 @@
-# Copyright (C) 1989-2019 Free Software Foundation, Inc.
+# Copyright (C) 1989-2020 Free Software Foundation, Inc.
+# Copyright (C) 2019-2020 Advanced Micro Devices, Inc. All rights reserved.
 
 # This file is part of GDB.
 
@@ -210,6 +211,9 @@ WERROR_CFLAGS = @WERROR_CFLAGS@
 GDB_WARN_CFLAGS = $(WARN_CFLAGS)
 GDB_WERROR_CFLAGS = $(WERROR_CFLAGS)
 
+PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
+PTHREAD_LIBS = @PTHREAD_LIBS@
+
 RDYNAMIC = @RDYNAMIC@
 
 # Where is the INTL library?  Typically in ../intl.
@@ -419,6 +423,7 @@ SUBDIR_UNITTESTS_SRCS = \
        unittests/common-utils-selftests.c \
        unittests/copy_bitwise-selftests.c \
        unittests/environ-selftests.c \
+       unittests/filtered_iterator-selftests.c \
        unittests/format_pieces-selftests.c \
        unittests/function-view-selftests.c \
        unittests/help-doc-selftests.c \
@@ -430,6 +435,7 @@ SUBDIR_UNITTESTS_SRCS = \
        unittests/optional-selftests.c \
        unittests/parse-connection-spec-selftests.c \
        unittests/ptid-selftests.c \
+       unittests/main-thread-selftests.c \
        unittests/mkdir-recursive-selftests.c \
        unittests/rsp-low-selftests.c \
        unittests/scoped_fd-selftests.c \
@@ -438,6 +444,7 @@ SUBDIR_UNITTESTS_SRCS = \
        unittests/string_view-selftests.c \
        unittests/style-selftests.c \
        unittests/tracepoint-selftests.c \
+       unittests/tui-selftests.c \
        unittests/unpack-selftests.c \
        unittests/utils-selftests.c \
        unittests/vec-utils-selftests.c \
@@ -581,7 +588,7 @@ INTERNAL_CFLAGS_BASE = \
        $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) $(ZLIBINC) \
        $(BFD_CFLAGS) $(INCLUDE_CFLAGS) $(LIBDECNUMBER_CFLAGS) \
        $(INTL_CFLAGS) $(INCGNU) $(ENABLE_CFLAGS) $(INTERNAL_CPPFLAGS) \
-       $(SRCHIGH_CFLAGS) $(TOP_CFLAGS)
+       $(SRCHIGH_CFLAGS) $(TOP_CFLAGS) $(PTHREAD_CFLAGS)
 INTERNAL_WARN_CFLAGS = $(INTERNAL_CFLAGS_BASE) $(GDB_WARN_CFLAGS)
 INTERNAL_CFLAGS = $(INTERNAL_WARN_CFLAGS) $(GDB_WERROR_CFLAGS)
 
@@ -595,7 +602,7 @@ LDFLAGS = @LDFLAGS@
 # PROFILE_CFLAGS is _not_ included, however, because we use monstartup.
 INTERNAL_LDFLAGS = \
        $(CXXFLAGS) $(GLOBAL_CFLAGS) $(MH_LDFLAGS) \
-       $(LDFLAGS) $(CONFIG_LDFLAGS)
+       $(LDFLAGS) $(CONFIG_LDFLAGS) $(PTHREAD_CFLAGS)
 
 # Libraries and corresponding dependencies for compiling gdb.
 # XM_CLIBS, defined in *config files, have host-dependent libs.
@@ -603,10 +610,10 @@ INTERNAL_LDFLAGS = \
 CLIBS = $(SIM) $(READLINE) $(OPCODES) $(BFD) $(LIBCTF) $(ZLIB) \
         $(INTL) $(LIBIBERTY) $(LIBDECNUMBER) \
        $(XM_CLIBS) $(GDBTKLIBS) \
-       @LIBS@ @GUILE_LIBS@ @PYTHON_LIBS@ \
+       @LIBS@ @GUILE_LIBS@ @PYTHON_LIBS@ @ROCM_DBGAPI_LIBS@ \
        $(LIBEXPAT) $(LIBLZMA) $(LIBBABELTRACE) $(LIBIPT) \
        $(LIBIBERTY) $(WIN32LIBS) $(LIBGNU) $(LIBICONV) $(LIBMPFR) \
-       $(SRCHIGH_LIBS) $(LIBXXHASH)
+       $(SRCHIGH_LIBS) $(LIBXXHASH) $(PTHREAD_LIBS)
 CDEPS = $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) $(LIBCTF) \
        $(OPCODES) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS) $(LIBGNU)
 
@@ -771,6 +778,7 @@ ALL_TARGET_OBS = \
        ravenscar-thread.o \
        riscv-fbsd-tdep.o \
        riscv-linux-tdep.o \
+       riscv-ravenscar-thread.o \
        riscv-tdep.o \
        rl78-tdep.o \
        rs6000-aix-tdep.o \
@@ -979,6 +987,7 @@ COMMON_SFILES = \
        gdbsupport/gdb-dlfcn.c \
        gdbsupport/gdb_tilde_expand.c \
        gdbsupport/gdb_vecs.c \
+       gdbsupport/gdb_wait.c \
        gdbsupport/netstuff.c \
        gdbsupport/new-op.c \
        gdbsupport/pathstuff.c \
@@ -991,6 +1000,7 @@ COMMON_SFILES = \
        gdbsupport/signals.c \
        gdbsupport/signals-state-save-restore.c \
        gdbsupport/tdesc.c \
+       gdbsupport/thread-pool.c \
        gdbsupport/xml-utils.c \
        complaints.c \
        completer.c \
@@ -1009,7 +1019,6 @@ COMMON_SFILES = \
        dbxread.c \
        dcache.c \
        debug.c \
-       demangle.c \
        dictionary.c \
        disasm.c \
        disasm-selftests.c \
@@ -1040,6 +1049,7 @@ COMMON_SFILES = \
        frame-base.c \
        frame-unwind.c \
        gcore.c \
+       gdb-demangle.c \
        gdb_bfd.c \
        gdb_obstack.c \
        gdb_regex.c \
@@ -1113,6 +1123,7 @@ COMMON_SFILES = \
        remote-fileio.c \
        remote-notif.c \
        reverse.c \
+       run-on-main-thread.c \
        rust-lang.c \
        sentinel-frame.c \
        ser-event.c \
@@ -1209,6 +1220,7 @@ HFILES_NO_SRCDIR = \
        amd64-linux-tdep.h \
        amd64-nat.h \
        amd64-tdep.h \
+       amdgcn-rocm-tdep.h \
        annotate.h \
        arc-tdep.h \
        arch-utils.h \
@@ -1372,9 +1384,12 @@ HFILES_NO_SRCDIR = \
        remote-fileio.h \
        remote-notif.h \
        riscv-fbsd-tdep.h \
+       riscv-ravenscar-thread.h \
        riscv-tdep.h \
+       rocm-tdep.h \
        rs6000-aix-tdep.h \
        rs6000-tdep.h \
+       run-on-main-thread.h \
        s390-linux-tdep.h \
        s390-tdep.h \
        score-tdep.h \
@@ -1470,6 +1485,7 @@ HFILES_NO_SRCDIR = \
        gdbsupport/fileio.h \
        gdbsupport/format.h \
        gdbsupport/gdb-dlfcn.h \
+       gdbsupport/gdb-sigmask.h \
        gdbsupport/gdb_assert.h \
        gdbsupport/gdb_binary_search.h \
        gdbsupport/gdb_tilde_expand.h \
@@ -1483,6 +1499,7 @@ HFILES_NO_SRCDIR = \
        gdbsupport/common-inferior.h \
        gdbsupport/netstuff.h \
        gdbsupport/host-defs.h \
+       gdbsupport/parallel-for.h \
        gdbsupport/pathstuff.h \
        gdbsupport/print-utils.h \
        gdbsupport/ptid.h \
@@ -1492,6 +1509,7 @@ HFILES_NO_SRCDIR = \
        gdbsupport/signals-state-save-restore.h \
        gdbsupport/symbol.h \
        gdbsupport/tdesc.h \
+       gdbsupport/thread-pool.h \
        gdbsupport/version.h \
        gdbsupport/x86-xstate.h \
        gdbsupport/xml-utils.h \
@@ -1765,7 +1783,7 @@ install-only: $(CONFIG_INSTALL)
                  true ; \
                fi ; \
                $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir) ; \
-               $(INSTALL_PROGRAM) gdb$(EXEEXT) \
+               $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) gdb$(EXEEXT) \
                        $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \
                $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(includedir)/gdb ; \
                $(INSTALL_DATA) jit-reader.h $(DESTDIR)$(includedir)/gdb/jit-reader.h
@@ -2063,7 +2081,8 @@ aclocal_m4_deps = \
        ../config/depstand.m4 \
        ../config/lcmessage.m4 \
        ../config/codeset.m4 \
-       ../config/zlib.m4
+       ../config/zlib.m4 \
+       ../config/ax_pthread.m4
 
 $(srcdir)/aclocal.m4: @MAINTAINER_MODE_TRUE@ $(aclocal_m4_deps)
        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
@@ -2169,6 +2188,7 @@ ALLDEPFILES = \
        amd64-obsd-tdep.c \
        amd64-sol2-tdep.c \
        amd64-tdep.c \
+       amdgcn-rocm-tdep.c \
        arc-tdep.c \
        arm.c \
        arm-bsd-tdep.c \
@@ -2286,7 +2306,9 @@ ALLDEPFILES = \
        riscv-fbsd-tdep.c \
        riscv-linux-nat.c \
        riscv-linux-tdep.c \
+       riscv-ravenscar-thread.c \
        riscv-tdep.c \
+       rocm-tdep.c \
        rl78-tdep.c \
        rs6000-lynx178-tdep.c \
        rs6000-nat.c \
@@ -2306,6 +2328,7 @@ ALLDEPFILES = \
        sh-tdep.c \
        sol2-tdep.c \
        solib-aix.c \
+       solib-rocm.c \
        solib-svr4.c \
        sparc-linux-nat.c \
        sparc-linux-tdep.c \
@@ -2501,7 +2524,7 @@ install-gdbtk:
          true ; \
        fi ; \
        $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir); \
-       $(INSTALL_PROGRAM) insight$(EXEEXT) \
+       $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) insight$(EXEEXT) \
                $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \
        $(SHELL) $(srcdir)/../mkinstalldirs \
                $(DESTDIR)$(GDBTK_LIBRARY) ; \
This page took 0.025299 seconds and 4 git commands to generate.