diff options
author | Frederic Riss <friss@apple.com> | 2019-10-08 16:23:28 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2019-10-08 16:23:28 +0000 |
commit | 3fb4e49a68f5845afc4daea0eb81c69d424ee85f (patch) | |
tree | 895c98d244fd68bc404b24acff7911df9fb37424 /lldb/packages/Python/lldbsuite/test/commands/target | |
parent | d1fe34cc93b4d690381a6993a3f7f21fa20e9fe4 (diff) | |
download | bcm5719-llvm-3fb4e49a68f5845afc4daea0eb81c69d424ee85f.tar.gz bcm5719-llvm-3fb4e49a68f5845afc4daea0eb81c69d424ee85f.zip |
[Testsuite] Get rid of most of the recursive shared library Makefiles
Most of the secondary Makefiles we have are just a couple variable
definitions and then an include of Makefile.rules. This patch removes
most of the secondary Makefiles and replaces them with a direct
invocation of Makefile.rules in the main Makefile. The specificities
of each sub-build are listed right there on the recursive $(MAKE)
call. All the variables that matter are being passed automagically by
make as they have been passed on the command line. The only things you
need to specify are the variables customizating the Makefile.rules
logic for each image.
This patch also removes most of the clean logic from those Makefiles
and from Makefile.rules. The clean rule is not required anymore now
that we run the testsuite in a separate build directory that is wiped
with each run. The patch leaves a very crude version of clean in
Makefile.rules which removes everything inside of $(BUILDDIR). It does
this only when the $(BUILDDIR) looks like a sub-directory of our
standard testsuite build directory to be extra safe.
Reviewers: aprantl, labath
Subscribers: lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D68558
llvm-svn: 374076
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/target')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/commands/target/create-deps/Makefile | 16 | ||||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/commands/target/create-deps/a.mk | 7 |
2 files changed, 6 insertions, 17 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/commands/target/create-deps/Makefile b/lldb/packages/Python/lldbsuite/test/commands/target/create-deps/Makefile index aa9922b390a..3e5b1049b5a 100644 --- a/lldb/packages/Python/lldbsuite/test/commands/target/create-deps/Makefile +++ b/lldb/packages/Python/lldbsuite/test/commands/target/create-deps/Makefile @@ -1,14 +1,10 @@ -LIB_PREFIX := load_ - -LD_EXTRAS := -L. -l$(LIB_PREFIX)a +LD_EXTRAS := -L. -lload_a CXX_SOURCES := main.cpp -include Makefile.rules - -a.out: lib_a +a.out: libload_a -lib_%: - $(MAKE) VPATH=$(SRCDIR) -I $(SRCDIR) -f $(SRCDIR)/$*.mk +include Makefile.rules -clean:: - $(MAKE) -f $(SRCDIR)/a.mk clean +libload_a: + $(MAKE) -f $(MAKEFILE_RULES) \ + DYLIB_ONLY=YES DYLIB_NAME=load_a DYLIB_CXX_SOURCES=a.cpp diff --git a/lldb/packages/Python/lldbsuite/test/commands/target/create-deps/a.mk b/lldb/packages/Python/lldbsuite/test/commands/target/create-deps/a.mk deleted file mode 100644 index 80756bbe8f2..00000000000 --- a/lldb/packages/Python/lldbsuite/test/commands/target/create-deps/a.mk +++ /dev/null @@ -1,7 +0,0 @@ -LIB_PREFIX := load_ - -DYLIB_NAME := $(LIB_PREFIX)a -DYLIB_CXX_SOURCES := a.cpp -DYLIB_ONLY := YES - -include Makefile.rules |