GNU Binutils with patches for OS216
Revisão | 75787ac19cdf7e8aa9b4c28f9421837ba479cf51 (tree) |
---|---|
Hora | 2017-11-28 08:53:24 |
Autor | Tom Tromey <tom@trom...> |
Commiter | Tom Tromey |
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.
@@ -1,5 +1,11 @@ | ||
1 | 1 | 2017-11-27 Tom Tromey <tom@tromey.com> |
2 | 2 | |
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 | + | |
3 | 9 | * Makefile.in (SUBDIR_TUI_OBS): Redefine. |
4 | 10 | (CONFIG_SRC_SUBDIR): Add tui. |
5 | 11 | (%.o): Remove tui rule. |
@@ -494,20 +494,7 @@ SUBDIR_UNITTESTS_SRCS = \ | ||
494 | 494 | unittests/scoped_restore-selftests.c \ |
495 | 495 | unittests/xml-utils-selftests.c |
496 | 496 | |
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)) | |
511 | 498 | |
512 | 499 | # Opcodes currently live in one of two places. Either they are in the |
513 | 500 | # opcode library, typically ../opcodes, or they are in a header file |
@@ -598,7 +585,7 @@ CONFIG_INSTALL = @CONFIG_INSTALL@ | ||
598 | 585 | CONFIG_UNINSTALL = @CONFIG_UNINSTALL@ |
599 | 586 | HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@ |
600 | 587 | |
601 | -CONFIG_SRC_SUBDIR = arch cli mi compile tui | |
588 | +CONFIG_SRC_SUBDIR = arch cli mi compile tui unittests | |
602 | 589 | CONFIG_DEP_SUBDIR = $(addsuffix /$(DEPDIR),$(CONFIG_SRC_SUBDIR)) |
603 | 590 | |
604 | 591 | # -I. for config files. |
@@ -1913,10 +1900,6 @@ $(CONFIG_DEP_SUBDIR): | ||
1913 | 1900 | $(COMPILE) $< |
1914 | 1901 | $(POSTCOMPILE) |
1915 | 1902 | |
1916 | -%.o: ${srcdir}/unittests/%.c | |
1917 | - $(COMPILE) $< | |
1918 | - $(POSTCOMPILE) | |
1919 | - | |
1920 | 1903 | # Specify an explicit rule for gdb/common/agent.c, to avoid a clash with the |
1921 | 1904 | # object file generate by gdb/agent.c. |
1922 | 1905 | common-agent.o: $(srcdir)/common/agent.c |