blob: 77183aa07c4aae13f4e6fdfb1947691f009eec94 [file] [log] [blame]
LOCAL_PATH := $(call my-dir)
LLVM_ROOT_PATH := $(LOCAL_PATH)/../..
#===---------------------------------------------------------------===
# opt command line tool (common)
#===---------------------------------------------------------------===
llvm_opt_SRC_FILES := \
AnalysisWrappers.cpp \
GraphPrinters.cpp \
PrintSCC.cpp \
opt.cpp
llvm_opt_STATIC_LIBRARIES := \
libLLVMScalarOpts \
libLLVMInstCombine \
libLLVMInstrumentation \
libLLVMMCParser \
libLLVMMC \
libLLVMAsmParser \
libLLVMBitWriter \
libLLVMBitReader \
libLLVMipa \
libLLVMipo \
libLLVMTransformUtils \
libLLVMVectorize \
libLLVMAnalysis \
libLLVMTarget \
libLLVMCore \
libLLVMSupport
#===---------------------------------------------------------------===
# opt command line tool (host)
#===---------------------------------------------------------------===
include $(CLEAR_VARS)
LOCAL_MODULE := opt
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_IS_HOST_MODULE := true
LOCAL_SRC_FILES := $(llvm_opt_SRC_FILES)
LOCAL_STATIC_LIBRARIES := $(llvm_opt_STATIC_LIBRARIES)
LOCAL_LDLIBS += -lpthread -lm -ldl
LOCAL_C_INCLUDES += external/llvm/include
include $(LLVM_ROOT_PATH)/llvm.mk
include $(LLVM_HOST_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_HOST_EXECUTABLE)
#===---------------------------------------------------------------===
# opt command line tool (target)
#===---------------------------------------------------------------===
include $(CLEAR_VARS)
LOCAL_MODULE := opt
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_SRC_FILES := $(llvm_opt_SRC_FILES)
LOCAL_C_INCLUDES += external/llvm/include
LOCAL_STATIC_LIBRARIES := $(llvm_opt_STATIC_LIBRARIES)
LOCAL_SHARED_LIBRARIES := \
libcutils \
libdl \
libstlport
include $(LLVM_ROOT_PATH)/llvm.mk
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_EXECUTABLE)