mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 07:08:01 +08:00
Move unittests object files to unittests subdirectory
Move the object files corresponding to unittests/*.c to the unittests subdirectory in the build tree. ChangeLog 2017-11-27 Tom Tromey <tom@tromey.com> * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine. (%.o): Remove unittests rule. (CONFIG_SRC_SUBDIR): Add unittests.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2017-11-27 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
|
||||||
|
(%.o): Remove unittests rule.
|
||||||
|
(CONFIG_SRC_SUBDIR): Add unittests.
|
||||||
|
|
||||||
2017-11-27 Tom Tromey <tom@tromey.com>
|
2017-11-27 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* Makefile.in (SUBDIR_TUI_OBS): Redefine.
|
* Makefile.in (SUBDIR_TUI_OBS): Redefine.
|
||||||
|
@ -494,20 +494,7 @@ SUBDIR_UNITTESTS_SRCS = \
|
|||||||
unittests/scoped_restore-selftests.c \
|
unittests/scoped_restore-selftests.c \
|
||||||
unittests/xml-utils-selftests.c
|
unittests/xml-utils-selftests.c
|
||||||
|
|
||||||
SUBDIR_UNITTESTS_OBS = \
|
SUBDIR_UNITTESTS_OBS = $(patsubst %.c,%.o,$(SUBDIR_UNITTESTS_SRCS))
|
||||||
array-view-selftests.o \
|
|
||||||
common-utils-selftests.o \
|
|
||||||
environ-selftests.o \
|
|
||||||
function-view-selftests.o \
|
|
||||||
lookup_name_info-selftests.o \
|
|
||||||
memory-map-selftests.o \
|
|
||||||
memrange-selftests.o \
|
|
||||||
offset-type-selftests.o \
|
|
||||||
optional-selftests.o \
|
|
||||||
ptid-selftests.o \
|
|
||||||
rsp-low-selftests.o \
|
|
||||||
scoped_restore-selftests.o \
|
|
||||||
xml-utils-selftests.o
|
|
||||||
|
|
||||||
# Opcodes currently live in one of two places. Either they are in the
|
# Opcodes currently live in one of two places. Either they are in the
|
||||||
# opcode library, typically ../opcodes, or they are in a header file
|
# opcode library, typically ../opcodes, or they are in a header file
|
||||||
@ -598,7 +585,7 @@ CONFIG_INSTALL = @CONFIG_INSTALL@
|
|||||||
CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
|
CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
|
||||||
HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@
|
HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@
|
||||||
|
|
||||||
CONFIG_SRC_SUBDIR = arch cli mi compile tui
|
CONFIG_SRC_SUBDIR = arch cli mi compile tui unittests
|
||||||
CONFIG_DEP_SUBDIR = $(addsuffix /$(DEPDIR),$(CONFIG_SRC_SUBDIR))
|
CONFIG_DEP_SUBDIR = $(addsuffix /$(DEPDIR),$(CONFIG_SRC_SUBDIR))
|
||||||
|
|
||||||
# -I. for config files.
|
# -I. for config files.
|
||||||
@ -1913,10 +1900,6 @@ $(CONFIG_DEP_SUBDIR):
|
|||||||
$(COMPILE) $<
|
$(COMPILE) $<
|
||||||
$(POSTCOMPILE)
|
$(POSTCOMPILE)
|
||||||
|
|
||||||
%.o: ${srcdir}/unittests/%.c
|
|
||||||
$(COMPILE) $<
|
|
||||||
$(POSTCOMPILE)
|
|
||||||
|
|
||||||
# Specify an explicit rule for gdb/common/agent.c, to avoid a clash with the
|
# Specify an explicit rule for gdb/common/agent.c, to avoid a clash with the
|
||||||
# object file generate by gdb/agent.c.
|
# object file generate by gdb/agent.c.
|
||||||
common-agent.o: $(srcdir)/common/agent.c
|
common-agent.o: $(srcdir)/common/agent.c
|
||||||
|
Reference in New Issue
Block a user