Fix TestExec after r334783
authorFrederic Riss <friss@apple.com>
Fri, 15 Jun 2018 20:36:03 +0000 (20:36 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 15 Jun 2018 20:36:03 +0000 (20:36 +0000)
The second makefile that was added has implicit rules which meant
that secondprog.cpp would be built once into a secondprog binary,
but it would also be compiled as a.out overwriting the main binary.
This lead to spurious failures.

This commit simplifies the Makefile to build only once with the correct
executable name.

llvm-svn: 334861

lldb/packages/Python/lldbsuite/test/functionalities/exec/secondprog.mk

index 88f5470..88f76b5 100644 (file)
@@ -1,13 +1,6 @@
 LEVEL = ../../make
 
 CXX_SOURCES := secondprog.cpp
-
-all: secondprog
-
-secondprog:
-       $(CXX) $(CXXFLAGS) -o secondprog $(SRCDIR)/secondprog.cpp
-
-clean::
-       rm -rf secondprog secondprog.dSYM
+EXE = secondprog
 
 include $(LEVEL)/Makefile.rules