forked from OSchip/llvm-project
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
This commit is contained in:
parent
a6a53d1131
commit
5028e33e54
|
@ -1,28 +1,5 @@
|
||||||
CC ?= clang
|
LEVEL = ../../make
|
||||||
ifeq "$(ARCH)" ""
|
|
||||||
ARCH = x86_64
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq "$(OS)" ""
|
C_SOURCES := main.c
|
||||||
OS = $(shell uname -s)
|
|
||||||
endif
|
|
||||||
|
|
||||||
CFLAGS ?= -g -O0
|
include $(LEVEL)/Makefile.rules
|
||||||
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)
|
|
||||||
|
|
Loading…
Reference in New Issue