"complete" command and completion word break characters
[deliverable/binutils-gdb.git] / gdb / Makefile.in
index 056b7642bd09d5b356ae5315efd76300891718f4..c6e618a54162f4c4912df86b96a81fa5a3b1c8ef 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 1989-2016 Free Software Foundation, Inc.
+# Copyright (C) 1989-2017 Free Software Foundation, Inc.
 
 # This file is part of GDB.
 
@@ -103,9 +103,9 @@ CATALOGS = @CATALOGS@
 # -traditional flag.  Otherwise the ioctl calls in inflow.c
 # will be incorrectly compiled.  The "fixincludes" script in the gcc
 # distribution will fix your include files up.
-CC=@CC@
-CXX=@CXX@
-CXX_DIALECT= @CXX_DIALECT@
+CC = @CC@
+CXX = @CXX@
+CXX_DIALECT = @CXX_DIALECT@
 
 # Dependency tracking information.
 DEPMODE = @CCDEPMODE@
@@ -114,7 +114,7 @@ depcomp = $(SHELL) $(srcdir)/../depcomp
 
 # Note that these are overridden by GNU make-specific code below if
 # GNU make is used.  The overrides implement dependency tracking.
-COMPILE.pre = $(CXX) $(CXX_DIALECT)
+COMPILE.pre = $(CXX) -x c++ $(CXX_DIALECT)
 COMPILE.post = -c -o $@
 COMPILE = $(COMPILE.pre) $(INTERNAL_CFLAGS) $(COMPILE.post)
 POSTCOMPILE = @true
@@ -124,7 +124,7 @@ srcdir = @srcdir@
 VPATH = @srcdir@
 top_srcdir = @top_srcdir@
 
-YACC=@YACC@
+YACC = @YACC@
 
 # This is used to rebuild ada-lex.c from ada-lex.l.  If the program is
 # not defined, but ada-lex.c is present, compilation will continue,
@@ -144,13 +144,13 @@ MAKEHTMLFLAGS =
 
 # Set this up with gcc if you have gnu ld and the loader will print out
 # line numbers for undefined references.
-#CC_LD=g++ -static
-CC_LD=$(CXX) $(CXX_DIALECT)
+#CC_LD = g++ -static
+CC_LD = $(CXX) $(CXX_DIALECT)
 
 # Where is our "include" directory?  Typically $(srcdir)/../include.
 # This is essentially the header file directory for the library
 # routines in libiberty.
-INCLUDE_DIR =  $(srcdir)/../include
+INCLUDE_DIR = $(srcdir)/../include
 INCLUDE_CFLAGS = -I$(INCLUDE_DIR)
 
 # Where is the "-liberty" library?  Typically in ../libiberty.
@@ -253,8 +253,8 @@ SUBDIR_CLI_SRCS = \
        cli/cli-utils.c
 
 SUBDIR_CLI_DEPS =
-SUBDIR_CLI_LDFLAGS=
-SUBDIR_CLI_CFLAGS=
+SUBDIR_CLI_LDFLAGS =
+SUBDIR_CLI_CFLAGS =
 
 #
 # MI sub directory definitons
@@ -298,13 +298,12 @@ SUBDIR_MI_SRCS = \
        mi/mi-symbol-cmds.c
 
 SUBDIR_MI_DEPS =
-SUBDIR_MI_LDFLAGS=
-SUBDIR_MI_CFLAGS=
+SUBDIR_MI_LDFLAGS =
+SUBDIR_MI_CFLAGS =
 
 #
 # TUI sub directory definitions
 #
-
 SUBDIR_TUI_OBS = \
        tui.o \
        tui-command.o \
@@ -344,9 +343,8 @@ SUBDIR_TUI_SRCS = \
        tui/tui-winsource.c
 
 SUBDIR_TUI_DEPS =
-SUBDIR_TUI_LDFLAGS=
-SUBDIR_TUI_CFLAGS= \
-       -DTUI=1
+SUBDIR_TUI_LDFLAGS =
+SUBDIR_TUI_CFLAGS = -DTUI=1
 
 #
 # GCC Compile support sub-directory definitions
@@ -371,8 +369,9 @@ SUBDIR_GCC_COMPILE_SRCS = \
        compile/compile-object-run.c \
        compile/compile-object-run.h
 
+#
 # Guile sub directory definitons for guile support.
-
+#
 SUBDIR_GUILE_OBS = \
        guile.o \
        scm-arch.o \
@@ -428,8 +427,8 @@ SUBDIR_GUILE_SRCS = \
        guile/scm-value.c
 
 SUBDIR_GUILE_DEPS =
-SUBDIR_GUILE_LDFLAGS=
-SUBDIR_GUILE_CFLAGS=
+SUBDIR_GUILE_LDFLAGS =
+SUBDIR_GUILE_CFLAGS =
 
 #
 # python sub directory definitons
@@ -454,6 +453,7 @@ SUBDIR_PYTHON_OBS = \
        py-inferior.o \
        py-infevents.o \
        py-infthread.o \
+       py-instruction.o \
        py-lazy-string.o \
        py-linetable.o \
        py-newobjfileevent.o \
@@ -461,6 +461,9 @@ SUBDIR_PYTHON_OBS = \
        py-param.o \
        py-prettyprint.o \
        py-progspace.o \
+       py-record.o \
+       py-record-btrace.o \
+       py-record-full.o \
        py-signalevent.o \
        py-stopevent.o \
        py-symbol.o \
@@ -494,6 +497,7 @@ SUBDIR_PYTHON_SRCS = \
        python/py-inferior.c \
        python/py-infevents.c \
        python/py-infthread.c \
+       python/py-instruction.c \
        python/py-lazy-string.c \
        python/py-linetable.c \
        python/py-newobjfileevent.c \
@@ -501,6 +505,9 @@ SUBDIR_PYTHON_SRCS = \
        python/py-param.c \
        python/py-prettyprint.c \
        python/py-progspace.c \
+       python/py-record.c \
+       python/py-record-btrace.c \
+       python/py-record-full.c \
        python/py-signalevent.c \
        python/py-stopevent.c \
        python/py-symbol.c \
@@ -515,8 +522,24 @@ SUBDIR_PYTHON_SRCS = \
        python/python.c
 
 SUBDIR_PYTHON_DEPS =
-SUBDIR_PYTHON_LDFLAGS=
-SUBDIR_PYTHON_CFLAGS=
+SUBDIR_PYTHON_LDFLAGS =
+SUBDIR_PYTHON_CFLAGS =
+
+SUBDIR_UNITTESTS_SRCS = \
+       unittests/environ-selftests.c \
+       unittests/function-view-selftests.c \
+       unittests/offset-type-selftests.c \
+       unittests/optional-selftests.c \
+       unittests/ptid-selftests.c \
+       unittests/scoped_restore-selftests.c
+
+SUBDIR_UNITTESTS_OBS = \
+       environ-selftests.o \
+       function-view-selftests.o \
+       offset-type-selftests.o \
+       optional-selftests.o \
+       ptid-selftests.o \
+       scoped_restore-selftests.o
 
 # Opcodes currently live in one of two places.  Either they are in the
 # opcode library, typically ../opcodes, or they are in a header file
@@ -556,7 +579,7 @@ WIN32LDAPP = @WIN32LDAPP@
 
 LIBGUI = @LIBGUI@
 GUI_CFLAGS_X = @GUI_CFLAGS_X@
-IDE_CFLAGS=$(GUI_CFLAGS_X) $(IDE_CFLAGS_X)
+IDE_CFLAGS = $(GUI_CFLAGS_X) $(IDE_CFLAGS_X)
 
 ALL_TCL_CFLAGS = $(TCL_CFLAGS) $(TK_CFLAGS)
 
@@ -593,16 +616,16 @@ SUBDIR_GDBTK_SRCS = \
        gdbtk/generic/gdbtk-wrapper.c
 
 SUBDIR_GDBTK_DEPS = $(LIBGUI) $(TCL_DEPS) $(TK_DEPS)
-SUBDIR_GDBTK_LDFLAGS=
-SUBDIR_GDBTK_CFLAGS= -DGDBTK
+SUBDIR_GDBTK_LDFLAGS =
+SUBDIR_GDBTK_CFLAGS = -DGDBTK
 
-CONFIG_OBS= @CONFIG_OBS@
-CONFIG_SRCS= @CONFIG_SRCS@
-CONFIG_DEPS= @CONFIG_DEPS@
+CONFIG_OBS = @CONFIG_OBS@
+CONFIG_SRCS = @CONFIG_SRCS@
+CONFIG_DEPS = @CONFIG_DEPS@
 CONFIG_LDFLAGS = @CONFIG_LDFLAGS@
-ENABLE_CFLAGS= @ENABLE_CFLAGS@
-CONFIG_ALL= @CONFIG_ALL@
-CONFIG_CLEAN= @CONFIG_CLEAN@
+ENABLE_CFLAGS = @ENABLE_CFLAGS@
+CONFIG_ALL = @CONFIG_ALL@
+CONFIG_CLEAN = @CONFIG_CLEAN@
 CONFIG_INSTALL = @CONFIG_INSTALL@
 CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
 HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@
@@ -674,15 +697,15 @@ CDEPS = $(XM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) \
 ADD_FILES = $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
 ADD_DEPS = $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
 
-DIST=gdb
+DIST = gdb
 
-LINT=/usr/5bin/lint
-LINTFLAGS= $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
+LINT = /usr/5bin/lint
+LINTFLAGS = $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
        $(BFD_CFLAGS) $(INCLUDE_CFLAGS) \
        $(INTL_CFLAGS)
 
 RUNTEST = runtest
-RUNTESTFLAGS=
+RUNTESTFLAGS =
 
 # XML files to build in to GDB.
 XMLFILES = \
@@ -733,7 +756,6 @@ ALL_64_TARGET_OBS = \
        aarch64-newlib-tdep.o \
        aarch64-tdep.o \
        alpha-bsd-tdep.o \
-       alpha-fbsd-tdep.o \
        alpha-linux-tdep.o \
        alpha-mdebug-tdep.o \
        alpha-nbsd-tdep.o \
@@ -796,6 +818,7 @@ ALL_TARGET_OBS = \
        i386-dicos-tdep.o \
        i386-fbsd-tdep.o \
        i386-gnu-tdep.o \
+       i386-go32-tdep.o \
        i386-linux-tdep.o \
        i386-nbsd-tdep.o \
        i386-nto-tdep.o \
@@ -818,6 +841,7 @@ ALL_TARGET_OBS = \
        mep-tdep.o \
        microblaze-linux-tdep.o \
        microblaze-tdep.o \
+       mips-fbsd-tdep.o \
        mips-linux-tdep.o \
        mips-nbsd-tdep.o \
        mips-sde-tdep.o \
@@ -874,7 +898,6 @@ ALL_TARGET_OBS = \
        tilegx-tdep.o \
        v850-tdep.o \
        vax-nbsd-tdep.o \
-       vax-obsd-tdep.o \
        vax-tdep.o \
        windows-tdep.o \
        xcoffread.o \
@@ -883,9 +906,21 @@ ALL_TARGET_OBS = \
        xtensa-linux-tdep.o \
        xtensa-tdep.o
 
-# Host-dependent makefile fragment comes in here.
-@host_makefile_frag@
-# End of host-dependent makefile fragment
+# The following native-target dependent variables are defined on
+# configure.nat.
+NAT_FILE = @NAT_FILE@
+NATDEPFILES = @NATDEPFILES@
+NAT_CDEPS = @NAT_CDEPS@
+LOADLIBES = @LOADLIBES@
+MH_CFLAGS = @MH_CFLAGS@
+XM_CLIBS = @XM_CLIBS@
+NAT_GENERATED_FILES = @NAT_GENERATED_FILES@
+HAVE_NATIVE_GCORE_HOST = @HAVE_NATIVE_GCORE_HOST@
+
+# Native-target dependent makefile fragment comes in here.
+@nat_makefile_frag@
+
+# End of native-target dependent variables.
 
 FLAGS_TO_PASS = \
        "prefix=$(prefix)" \
@@ -1040,6 +1075,7 @@ SFILES = \
        dfp.c \
        dictionary.c \
        disasm.c \
+       disasm-selftests.c \
        doublest.c \
        dtrace-probe.c \
        dummy-frame.c \
@@ -1049,7 +1085,6 @@ SFILES = \
        dwarf2loc.c \
        dwarf2read.c \
        elfread.c \
-       environ.c \
        eval.c \
        event-loop.c \
        event-top.c \
@@ -1071,8 +1106,10 @@ SFILES = \
        gdb_bfd.c \
        gdb-dlfcn.c \
        gdb_obstack.c \
+       gdb_regex.c \
        gdb_usleep.c \
        gdbarch.c \
+       gdbarch-selftests.c \
        gdbtypes.c \
        gnu-v2-abi.c \
        gnu-v3-abi.c \
@@ -1127,6 +1164,7 @@ SFILES = \
        probe.c \
        proc-service.list \
        progspace.c \
+       progspace-and-thread.c \
        prologue-value.c \
        psymtab.c \
        record.c \
@@ -1141,6 +1179,7 @@ SFILES = \
        rust-exp.y \
        rust-lang.c \
        selftest.c \
+       selftest-arch.c \
        sentinel-frame.c \
        ser-base.c \
        ser-event.c \
@@ -1194,14 +1233,17 @@ SFILES = \
        common/common-regcache.c \
        common/common-utils.c \
        common/errors.c \
+       common/environ.c \
        common/fileio.c \
        common/filestuff.c \
        common/format.c \
+       common/job-control.c \
        common/gdb_vecs.c \
        common/new-op.c \
        common/print-utils.c \
        common/ptid.c \
        common/rsp-low.c \
+       common/run-time-clock.c \
        common/signals.c \
        common/signals-state-save-restore.c \
        common/vec.c \
@@ -1271,7 +1313,6 @@ HFILES_NO_SRCDIR = \
        dwarf2-frame-tailcall.h \
        dwarf2expr.h \
        dwarf2loc.h \
-       environ.h \
        event-loop.h \
        event-top.h \
        exceptions.h \
@@ -1296,7 +1337,6 @@ HFILES_NO_SRCDIR = \
        gdb_expat.h \
        gdb_obstack.h \
        gdb_proc_service.h \
-       gdb_ptrace.h \
        gdb_regex.h \
        gdb_select.h \
        gdb-stabs.h \
@@ -1381,6 +1421,7 @@ HFILES_NO_SRCDIR = \
        proc-utils.h \
        procfs.h \
        progspace.h \
+       progspace-and-thread.h \
        prologue-value.h \
        psympriv.h \
        psymtab.h \
@@ -1397,6 +1438,7 @@ HFILES_NO_SRCDIR = \
        rs6000-tdep.h \
        s390-linux-tdep.h \
        score-tdep.h \
+       selftest-arch.h \
        sentinel-frame.h \
        ser-base.h \
        ser-event.h \
@@ -1468,10 +1510,13 @@ HFILES_NO_SRCDIR = \
        common/common-debug.h \
        common/common-defs.h \
        common/common-exceptions.h \
+       common/common-gdbthread.h \
        common/common-regcache.h \
        common/common-types.h \
        common/common-utils.h \
+       common/job-control.h \
        common/errors.h \
+       common/environ.h \
        common/fileio.h \
        common/format.h \
        common/gdb_assert.h \
@@ -1479,13 +1524,16 @@ HFILES_NO_SRCDIR = \
        common/gdb_setjmp.h \
        common/gdb_signals.h \
        common/gdb_sys_time.h \
+       common/gdb_termios.h \
        common/gdb_vecs.h \
        common/gdb_wait.h \
+       common/common-inferior.h \
        common/host-defs.h \
        common/print-utils.h \
        common/ptid.h \
        common/queue.h \
        common/rsp-low.h \
+       common/run-time-clock.h \
        common/signals-state-save-restore.h \
        common/symbol.h \
        common/vec.h \
@@ -1518,7 +1566,9 @@ HFILES_NO_SRCDIR = \
        nat/aarch64-linux.h \
        nat/aarch64-linux-hw-point.h \
        nat/amd64-linux-siginfo.h \
+       nat/gdb_ptrace.h \
        nat/gdb_thread_db.h \
+       nat/fork-inferior.h \
        nat/linux-btrace.h \
        nat/linux-namespaces.h \
        nat/linux-nat.h \
@@ -1621,6 +1671,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
        common-agent.o \
        common-debug.o \
        common-exceptions.o \
+       job-control.o \
        common-regcache.o \
        common-utils.o \
        complaints.o \
@@ -1642,6 +1693,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
        dfp.o \
        dictionary.o \
        disasm.o \
+       disasm-selftests.o \
        doublest.o \
        dummy-frame.o \
        dwarf2-frame.o \
@@ -1662,6 +1714,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
        f-typeprint.o \
        f-valprint.o \
        fileio.o \
+       filename-seen-cache.o \
        filestuff.o \
        filesystem.o \
        findcmd.o \
@@ -1674,9 +1727,11 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
        gdb_bfd.o \
        gdb-dlfcn.o \
        gdb_obstack.o \
+       gdb_regex.o \
        gdb_usleep.o \
        gdb_vecs.o \
        gdbarch.o \
+       gdbarch-selftests.o \
        gdbtypes.o \
        gnu-v2-abi.o \
        gnu-v3-abi.o \
@@ -1729,6 +1784,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
        printcmd.o \
        probe.o \
        progspace.o \
+       progspace-and-thread.o \
        prologue-value.o \
        psymtab.o \
        ptid.o \
@@ -1740,8 +1796,10 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
        registry.o \
        reverse.o \
        rsp-low.o \
+       run-time-clock.o \
        rust-lang.o \
        selftest.o \
+       selftest-arch.o \
        sentinel-frame.o \
        ser-event.o \
        serial.o \
@@ -1841,7 +1899,7 @@ generated_files = \
        $(NAT_GENERATED_FILES)
 
 # Flags needed to compile Python code
-PYTHON_CFLAGS=@PYTHON_CFLAGS@
+PYTHON_CFLAGS = @PYTHON_CFLAGS@
 
 all: gdb$(EXEEXT) $(CONFIG_ALL)
        @$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do
@@ -1896,6 +1954,10 @@ all: gdb$(EXEEXT) $(CONFIG_ALL)
        $(COMPILE) $<
        $(POSTCOMPILE)
 
+%.o: ${srcdir}/unittests/%.c
+       $(COMPILE) $<
+       $(POSTCOMPILE)
+
 # Specify an explicit rule for gdb/common/agent.c, to avoid a clash with the
 # object file generate by gdb/agent.c.
 common-agent.o: $(srcdir)/common/agent.c
@@ -1986,8 +2048,8 @@ CHECK_HEADERS = $(HFILES_NO_SRCDIR)
 check-headers:
        @echo Checking headers.
        for i in $(CHECK_HEADERS) ; do \
-               $(CC) -x c -c -fsyntax-only $(INTERNAL_CFLAGS) \
-                       -include defs.h $(srcdir)/$$i ; \
+               $(CXX) $(CXX_DIALECT) -x c++-header -c -fsyntax-only \
+               $(INTERNAL_CFLAGS) -include defs.h $(srcdir)/$$i ; \
        done
 .PHONY: check-headers
 
@@ -2165,7 +2227,7 @@ init.c: $(INIT_FILES)
 # against that.
 #
 # init.o is very important.  It pulls in the rest of GDB.
-LIBGDB_OBS= $(COMMON_OBS) $(TSOBS) $(ADD_FILES) init.o
+LIBGDB_OBS = $(COMMON_OBS) $(TSOBS) $(ADD_FILES) init.o
 libgdb.a: $(LIBGDB_OBS)
        -rm -f libgdb.a
        $(AR) q libgdb.a $(LIBGDB_OBS)
@@ -2283,21 +2345,21 @@ subdir_do: force
                else true ; fi ; \
        done
 
-Makefile: Makefile.in config.status @frags@
+Makefile: Makefile.in config.status
        # Regenerate the Makefile and the tm.h / nm.h links.
        CONFIG_FILES="Makefile" \
          CONFIG_COMMANDS= \
          CONFIG_HEADERS= \
          $(SHELL) config.status
 
-$(GNULIB_BUILDDIR)/Makefile: gnulib/Makefile.in config.status @frags@
+$(GNULIB_BUILDDIR)/Makefile: gnulib/Makefile.in config.status
        @cd $(GNULIB_BUILDDIR); CONFIG_FILES="Makefile" \
          CONFIG_COMMANDS="depfiles" \
          CONFIG_HEADERS= \
          CONFIG_LINKS= \
          $(SHELL) config.status
 
-data-directory/Makefile: data-directory/Makefile.in config.status @frags@
+data-directory/Makefile: data-directory/Makefile.in config.status
        CONFIG_FILES="data-directory/Makefile" \
          CONFIG_COMMANDS="depfiles" \
          CONFIG_HEADERS= \
@@ -2425,7 +2487,7 @@ force_update:
 # GNU Make 3.63 has a different problem: it keeps tacking command line
 # overrides onto the definition of $(MAKE).  This variable setting
 # will remove them.
-MAKEOVERRIDES=
+MAKEOVERRIDES =
 
 ALLDEPFILES = \
        aarch64-linux-nat.c \
@@ -2435,7 +2497,6 @@ ALLDEPFILES = \
        aix-thread.c \
        alpha-bsd-nat.c \
        alpha-bsd-tdep.c \
-       alpha-fbsd-tdep.c \
        alpha-linux-nat.c \
        alpha-linux-tdep.c \
        alpha-mdebug-tdep.c \
@@ -2539,6 +2600,8 @@ ALLDEPFILES = \
        microblaze-linux-tdep.c \
        microblaze-tdep.c \
        mingw-hdep.c \
+       mips-fbsd-nat.c \
+       mips-fbsd-tdep.c \
        mips-linux-nat.c \
        mips-linux-tdep.c \
        mips-nbsd-nat.c \
@@ -2907,4 +2970,7 @@ endif
 # Dependencies.
 -include $(patsubst %.o, $(DEPDIR)/%.Po, $(all_object_files))
 
+# Disable implicit make rules.
+include $(srcdir)/disable-implicit-rules.mk
+
 ### end of the gdb Makefile.in.
This page took 0.031436 seconds and 4 git commands to generate.