[Lldb-commits] [lldb] r232974 - Rely on Makefile.rules in lldb/test/driver/batch_mode.

Zachary Turner zturner at google.com
Mon Mar 23 11:00:07 PDT 2015


Author: zturner
Date: Mon Mar 23 13:00:07 2015
New Revision: 232974

URL: http://llvm.org/viewvc/llvm-project?rev=232974&view=rev
Log:
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

Modified:
    lldb/trunk/test/driver/batch_mode/Makefile

Modified: lldb/trunk/test/driver/batch_mode/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/driver/batch_mode/Makefile?rev=232974&r1=232973&r2=232974&view=diff
==============================================================================
--- lldb/trunk/test/driver/batch_mode/Makefile (original)
+++ lldb/trunk/test/driver/batch_mode/Makefile Mon Mar 23 13:00:07 2015
@@ -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





More information about the lldb-commits mailing list