1LOCAL_PATH := $(call my-dir)
2
3LLVM_ROOT_PATH := $(LOCAL_PATH)/../..
4
5
6#===---------------------------------------------------------------===
7# llvm-diff command line tool
8#===---------------------------------------------------------------===
9
10llvm_diff_SRC_FILES := \
11  llvm-diff.cpp        \
12  DiffConsumer.cpp     \
13  DifferenceEngine.cpp \
14  DiffLog.cpp          \
15
16llvm_diff_STATIC_LIBRARIES := \
17  libLLVMIRReader             \
18  libLLVMBitReader            \
19  libLLVMAsmParser            \
20  libLLVMCore                 \
21  libLLVMSupport              \
22
23include $(CLEAR_VARS)
24
25LOCAL_MODULE := llvm-diff
26LOCAL_MODULE_TAGS := optional
27LOCAL_MODULE_CLASS := EXECUTABLES
28LOCAL_IS_HOST_MODULE := true
29
30LOCAL_SRC_FILES := $(llvm_diff_SRC_FILES)
31
32LOCAL_STATIC_LIBRARIES := $(llvm_diff_STATIC_LIBRARIES)
33
34LOCAL_LDLIBS += -lpthread -lm -ldl
35
36include $(LLVM_ROOT_PATH)/llvm.mk
37include $(LLVM_HOST_BUILD_MK)
38include $(LLVM_GEN_ATTRIBUTES_MK)
39include $(LLVM_GEN_INTRINSICS_MK)
40include $(BUILD_HOST_EXECUTABLE)
41