1 LOCAL_PATH:= $(call my-dir) 2 3 llvm_link_SRC_FILES := \ 4 llvm-link.cpp 5 6 llvm_link_STATIC_LIBRARIES := \ 7 libLLVMLinker \ 8 libLLVMIRReader \ 9 libLLVMBitReader \ 10 libLLVMBitWriter \ 11 libLLVMAsmParser \ 12 libLLVMTransformUtils \ 13 libLLVMAnalysis \ 14 libLLVMTarget \ 15 libLLVMCore \ 16 libLLVMSupport 17 18 #===---------------------------------------------------------------=== 19 # llvm-link command line tool (host) 20 #===---------------------------------------------------------------=== 21 22 include $(CLEAR_VARS) 23 24 LOCAL_MODULE := llvm-link 25 LOCAL_MODULE_TAGS := optional 26 LOCAL_SRC_FILES := $(llvm_link_SRC_FILES) 27 LOCAL_STATIC_LIBRARIES := $(llvm_link_STATIC_LIBRARIES) 28 LOCAL_LDLIBS += -lpthread -lm -ldl 29 30 include $(LLVM_HOST_BUILD_MK) 31 include $(BUILD_HOST_EXECUTABLE) 32 33 #===---------------------------------------------------------------=== 34 # llvm-link command line tool (target) 35 #===---------------------------------------------------------------=== 36 37 include $(CLEAR_VARS) 38 39 LOCAL_MODULE := llvm-link 40 LOCAL_MODULE_TAGS := optional 41 LOCAL_SRC_FILES := $(llvm_link_SRC_FILES) 42 LOCAL_STATIC_LIBRARIES := $(llvm_link_STATIC_LIBRARIES) 43 LOCAL_SHARED_LIBRARIES := \ 44 libcutils \ 45 libstlport 46 47 include $(LLVM_DEVICE_BUILD_MK) 48 include $(BUILD_EXECUTABLE) 49