• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisão75787ac19cdf7e8aa9b4c28f9421837ba479cf51 (tree)
Hora2017-11-28 08:53:24
AutorTom Tromey <tom@trom...>
CommiterTom Tromey

Mensagem de Log

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.

Mudança Sumário

Diff

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
11 2017-11-27 Tom Tromey <tom@tromey.com>
22
3+ * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
4+ (%.o): Remove unittests rule.
5+ (CONFIG_SRC_SUBDIR): Add unittests.
6+
7+2017-11-27 Tom Tromey <tom@tromey.com>
8+
39 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
410 (CONFIG_SRC_SUBDIR): Add tui.
511 (%.o): Remove tui rule.
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -494,20 +494,7 @@ SUBDIR_UNITTESTS_SRCS = \
494494 unittests/scoped_restore-selftests.c \
495495 unittests/xml-utils-selftests.c
496496
497-SUBDIR_UNITTESTS_OBS = \
498- array-view-selftests.o \
499- common-utils-selftests.o \
500- environ-selftests.o \
501- function-view-selftests.o \
502- lookup_name_info-selftests.o \
503- memory-map-selftests.o \
504- memrange-selftests.o \
505- offset-type-selftests.o \
506- optional-selftests.o \
507- ptid-selftests.o \
508- rsp-low-selftests.o \
509- scoped_restore-selftests.o \
510- xml-utils-selftests.o
497+SUBDIR_UNITTESTS_OBS = $(patsubst %.c,%.o,$(SUBDIR_UNITTESTS_SRCS))
511498
512499 # Opcodes currently live in one of two places. Either they are in the
513500 # opcode library, typically ../opcodes, or they are in a header file
@@ -598,7 +585,7 @@ CONFIG_INSTALL = @CONFIG_INSTALL@
598585 CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
599586 HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@
600587
601-CONFIG_SRC_SUBDIR = arch cli mi compile tui
588+CONFIG_SRC_SUBDIR = arch cli mi compile tui unittests
602589 CONFIG_DEP_SUBDIR = $(addsuffix /$(DEPDIR),$(CONFIG_SRC_SUBDIR))
603590
604591 # -I. for config files.
@@ -1913,10 +1900,6 @@ $(CONFIG_DEP_SUBDIR):
19131900 $(COMPILE) $<
19141901 $(POSTCOMPILE)
19151902
1916-%.o: ${srcdir}/unittests/%.c
1917- $(COMPILE) $<
1918- $(POSTCOMPILE)
1919-
19201903 # Specify an explicit rule for gdb/common/agent.c, to avoid a clash with the
19211904 # object file generate by gdb/agent.c.
19221905 common-agent.o: $(srcdir)/common/agent.c