diff options
author | Zachary Turner <zturner@google.com> | 2015-03-23 18:00:07 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-03-23 18:00:07 +0000 |
commit | 5028e33e54684f5d687e88e0f13bd345e756c25a (patch) | |
tree | 7021ca6ff9ab5bdf3c60c0dcae5684580902c84f | |
parent | a6a53d113164230c3d4e67ced90cb5809851ffb9 (diff) | |
download | bcm5719-llvm-5028e33e54684f5d687e88e0f13bd345e756c25a.tar.gz bcm5719-llvm-5028e33e54684f5d687e88e0f13bd345e756c25a.zip |
Rely on Makefile.rules in lldb/test/driver/batch_mode.
This was hardcoding some make rules instead of relying on
Makefile.rules, which was causing some of the logic to be
incorrect for Windows.
Patch by: Adrian McCarthy
Differential Revision: http://reviews.llvm.org/D8363
llvm-svn: 232974
-rw-r--r-- | lldb/test/driver/batch_mode/Makefile | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/lldb/test/driver/batch_mode/Makefile b/lldb/test/driver/batch_mode/Makefile index 93f2f7b2f34..0d70f259501 100644 --- a/lldb/test/driver/batch_mode/Makefile +++ b/lldb/test/driver/batch_mode/Makefile @@ -1,28 +1,5 @@ -CC ?= clang -ifeq "$(ARCH)" "" - ARCH = x86_64 -endif +LEVEL = ../../make -ifeq "$(OS)" "" - OS = $(shell uname -s) -endif +C_SOURCES := main.c -CFLAGS ?= -g -O0 -CWD := $(shell pwd) - -LIB_PREFIX := lib - -ifeq "$(OS)" "Darwin" - CFLAGS += -arch $(ARCH) -endif - -all: a.out - -a.out: main.o - $(CC) $(CFLAGS) -o a.out main.o - -main.o: main.c - $(CC) $(CFLAGS) -c main.c - -clean: - rm -rf $(wildcard *.o *~ *.dylib *.so a.out *.dSYM) +include $(LEVEL)/Makefile.rules |