-# Copyright (C) 1989-2016 Free Software Foundation, Inc.
+# Copyright (C) 1989-2017 Free Software Foundation, Inc.
# This file is part of GDB.
# -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@
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,
# 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.
cli/cli-utils.c
SUBDIR_CLI_DEPS =
-SUBDIR_CLI_LDFLAGS=
-SUBDIR_CLI_CFLAGS=
+SUBDIR_CLI_LDFLAGS =
+SUBDIR_CLI_CFLAGS =
#
# MI sub directory definitons
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 \
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
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 \
guile/scm-value.c
SUBDIR_GUILE_DEPS =
-SUBDIR_GUILE_LDFLAGS=
-SUBDIR_GUILE_CFLAGS=
+SUBDIR_GUILE_LDFLAGS =
+SUBDIR_GUILE_CFLAGS =
#
# python sub directory definitons
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 \
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 \
python/python.c
SUBDIR_PYTHON_DEPS =
-SUBDIR_PYTHON_LDFLAGS=
-SUBDIR_PYTHON_CFLAGS=
+SUBDIR_PYTHON_LDFLAGS =
+SUBDIR_PYTHON_CFLAGS =
+
+SUBDIR_UNITTESTS_SRCS = \
+ unittests/function-view-selftests.c
+
+SUBDIR_UNITTESTS_OBS = \
+ function-view-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
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)
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@
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 = \
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 \
tilegx-tdep.o \
v850-tdep.o \
vax-nbsd-tdep.o \
- vax-obsd-tdep.o \
vax-tdep.o \
windows-tdep.o \
xcoffread.o \
dfp.c \
dictionary.c \
disasm.c \
+ disasm-selftests.c \
doublest.c \
dtrace-probe.c \
dummy-frame.c \
dwarf2loc.c \
dwarf2read.c \
elfread.c \
- environ.c \
eval.c \
event-loop.c \
event-top.c \
rust-exp.y \
rust-lang.c \
selftest.c \
+ selftest-arch.c \
sentinel-frame.c \
ser-base.c \
ser-event.c \
common/common-regcache.c \
common/common-utils.c \
common/errors.c \
+ common/environ.c \
common/fileio.c \
common/filestuff.c \
common/format.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 \
dwarf2-frame-tailcall.h \
dwarf2expr.h \
dwarf2loc.h \
- environ.h \
event-loop.h \
event-top.h \
exceptions.h \
gdb_expat.h \
gdb_obstack.h \
gdb_proc_service.h \
- gdb_ptrace.h \
gdb_regex.h \
gdb_select.h \
gdb-stabs.h \
rs6000-tdep.h \
s390-linux-tdep.h \
score-tdep.h \
+ selftest-arch.h \
sentinel-frame.h \
ser-base.h \
ser-event.h \
common/common-types.h \
common/common-utils.h \
common/errors.h \
+ common/environ.h \
common/fileio.h \
common/format.h \
common/gdb_assert.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 \
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/linux-btrace.h \
nat/linux-namespaces.h \
dfp.o \
dictionary.o \
disasm.o \
+ disasm-selftests.o \
doublest.o \
dummy-frame.o \
dwarf2-frame.o \
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 \
$(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
$(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
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
# 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)
# 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 \
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 \
# 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.