1 LOCAL_PATH := $(call my-dir) 2 3 LLVM_ROOT_PATH := $(LOCAL_PATH)/../.. 4 5 6 #===---------------------------------------------------------------=== 7 # bugpoint command line tool 8 #===---------------------------------------------------------------=== 9 10 bugpoint_SRC_FILES := \ 11 BugDriver.cpp \ 12 CrashDebugger.cpp \ 13 ExecutionDriver.cpp \ 14 ExtractFunction.cpp \ 15 FindBugs.cpp \ 16 Miscompilation.cpp \ 17 OptimizerDriver.cpp \ 18 ToolRunner.cpp \ 19 bugpoint.cpp \ 20 21 bugpoint_STATIC_LIBRARIES := \ 22 libLLVMBitWriter \ 23 libLLVMCodeGen \ 24 libLLVMipo \ 25 libLLVMipa \ 26 libLLVMIRReader \ 27 libLLVMBitReader \ 28 libLLVMAsmParser \ 29 libLLVMInstCombine \ 30 libLLVMInstrumentation \ 31 libLLVMLinker \ 32 libLLVMTransformObjCARC \ 33 libLLVMScalarOpts \ 34 libLLVMAnalysis \ 35 libLLVMTarget \ 36 libLLVMCore \ 37 libLLVMMC \ 38 libLLVMTransformUtils \ 39 libLLVMVectorize \ 40 libLLVMSupport \ 41 42 include $(CLEAR_VARS) 43 44 LOCAL_MODULE := bugpoint 45 LOCAL_MODULE_TAGS := optional 46 LOCAL_MODULE_CLASS := EXECUTABLES 47 LOCAL_IS_HOST_MODULE := true 48 49 LOCAL_SRC_FILES := $(bugpoint_SRC_FILES) 50 51 LOCAL_STATIC_LIBRARIES := $(bugpoint_STATIC_LIBRARIES) 52 53 LOCAL_LDLIBS += -lpthread -lm -ldl 54 55 include $(LLVM_ROOT_PATH)/llvm.mk 56 include $(LLVM_HOST_BUILD_MK) 57 include $(LLVM_GEN_INTRINSICS_MK) 58 include $(BUILD_HOST_EXECUTABLE) 59