[Lldb-commits] [lldb] r328062 - [Testsuite] Modernize this test to be run out-of-tree.
Davide Italiano via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 20 16:47:47 PDT 2018
Author: davide
Date: Tue Mar 20 16:47:47 2018
New Revision: 328062
URL: http://llvm.org/viewvc/llvm-project?rev=328062&view=rev
Log:
[Testsuite] Modernize this test to be run out-of-tree.
New tests should run the make syntax voodoo $@ and $<
instead of hardcoding the names. We should also document
how to write one, it's on my list.
Modified:
lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/operator-overload/Makefile
Modified: lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/operator-overload/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/operator-overload/Makefile?rev=328062&r1=328061&r2=328062&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/operator-overload/Makefile (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/operator-overload/Makefile Tue Mar 20 16:47:47 2018
@@ -7,14 +7,12 @@ CXXFLAGS_DEBUGINFO = -c -g
all: main
main: a.o b.o
- $(CXX) a.o b.o -o main $(LDFLAGS)
+ $(CXX) $^ -o $@ $(LDFLAGS)
a.o: a.cpp
- $(CXX) $(SRCDIR)/a.cpp $(CXXFLAGS_NO_DEBUGINFO) -o a.o
+ $(CXX) $< $(CXXFLAGS_NO_DEBUGINFO) -o $@
b.o: b.cpp
- $(CXX) $(SRCDIR)/b.cpp $(CXXFLAGS_DEBUGINFO) -o b.o
-
-clean: OBJECTS += a.o b.o main
+ $(CXX) $< $(CXXFLAGS_DEBUGINFO) -o $@
include $(LEVEL)/Makefile.rules
More information about the lldb-commits
mailing list