aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2018-02-19 09:37:24 +0000
committerAlan Hayward <alan.hayward@arm.com>2018-02-19 09:37:24 +0000
commitb5884fa7101cc528f07fd57c3de445a3680964a6 (patch)
tree673fef9a19032412d596a21406bb7cb783a3e65c /gdb/Makefile.in
parentdbc88fc14992c556b94e77de563a8f7abcb0b653 (diff)
downloadgdb-b5884fa7101cc528f07fd57c3de445a3680964a6.zip
gdb-b5884fa7101cc528f07fd57c3de445a3680964a6.tar.gz
gdb-b5884fa7101cc528f07fd57c3de445a3680964a6.tar.bz2
Add common/ dir in build directories
gdb/ * Makefile.in: (COMMON_SFILES): Add common/*.c files. (SFILES): Remove common/*.c files. (COMMON_OBS): Remove some *.o files built from common/*.c files. * common/common.host: Add common reference. * configure.ac: Likewise. * configure: Regenerate. gdbserver/ * Makefile.in: Add common directory in build. * configure.ac: Add common reference. * configure: Regenerate.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in87
1 files changed, 26 insertions, 61 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 957654c..d91d8e0 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -524,7 +524,7 @@ CONFIG_INSTALL = @CONFIG_INSTALL@
CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@
-CONFIG_SRC_SUBDIR = arch cli mi compile tui unittests guile python target
+CONFIG_SRC_SUBDIR = arch cli mi common compile tui unittests guile python target
CONFIG_DEP_SUBDIR = $(addsuffix /$(DEPDIR),$(CONFIG_SRC_SUBDIR))
# -I. for config files.
@@ -937,6 +937,31 @@ COMMON_SFILES = \
cli-out.c \
coff-pe-read.c \
coffread.c \
+ common/agent.c \
+ common/btrace-common.c \
+ common/buffer.c \
+ common/cleanups.c \
+ common/common-debug.c \
+ common/common-exceptions.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/job-control.c \
+ common/gdb_tilde_expand.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 \
+ common/xml-utils.c \
complaints.c \
completer.c \
continuations.c \
@@ -1119,31 +1144,6 @@ SFILES = \
stub-termcap.c \
symfile-mem.c \
ui-file.h \
- common/agent.c \
- common/btrace-common.c \
- common/buffer.c \
- common/cleanups.c \
- common/common-debug.c \
- common/common-exceptions.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/job-control.c \
- common/gdb_tilde_expand.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 \
- common/xml-utils.c \
mi/mi-common.c \
$(SUBDIR_TARGET_SRCS) \
$(COMMON_SFILES) \
@@ -1533,35 +1533,10 @@ TAGFILES_NO_SRCDIR = $(SFILES) $(HFILES_NO_SRCDIR) $(ALLDEPFILES) \
TAGFILES_WITH_SRCDIR = $(HFILES_WITH_SRCDIR)
COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
- btrace-common.o \
- buffer.o \
- cleanups.o \
- common-agent.o \
- common-debug.o \
- common-exceptions.o \
- job-control.o \
- common-regcache.o \
- common-utils.o \
- environ.o \
- errors.o \
exec.o \
- fileio.o \
- filestuff.o \
- format.o \
- gdb_tilde_expand.o \
- gdb_vecs.o \
mi/mi-common.o \
- new-op.o \
- print-utils.o \
- ptid.o \
- rsp-low.o \
- run-time-clock.o \
- signals.o \
- signals-state-save-restore.o \
- vec.o \
version.o \
xml-builtin.o \
- xml-utils.o \
$(patsubst %.c,%.o,$(COMMON_SFILES)) \
$(SUBDIR_TARGET_OBS) \
$(SUBDIR_GCC_COMPILE_OBS)
@@ -1629,10 +1604,6 @@ $(CONFIG_DEP_SUBDIR):
python/%.o: INTERNAL_CFLAGS += $(PYTHON_CFLAGS)
# Rules for compiling .c files in the various source subdirectories.
-%.o: ${srcdir}/common/%.c
- $(COMPILE) $<
- $(POSTCOMPILE)
-
%.o: $(srcdir)/gdbtk/generic/%.c
$(COMPILE) $(all_gdbtk_cflags) $<
$(POSTCOMPILE)
@@ -1641,12 +1612,6 @@ python/%.o: INTERNAL_CFLAGS += $(PYTHON_CFLAGS)
$(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
- $(COMPILE) $(srcdir)/common/agent.c
- $(POSTCOMPILE)
-
installcheck:
# The check target can not use subdir_do, because subdir_do does not