Home | History | Annotate | Download | only in llvm-link
      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   libLLVMBitReader \
      9   libLLVMBitWriter \
     10   libLLVMAsmParser \
     11   libLLVMTransformUtils \
     12   libLLVMAnalysis \
     13   libLLVMTarget \
     14   libLLVMCore \
     15   libLLVMSupport
     16 
     17 #===---------------------------------------------------------------===
     18 # llvm-link command line tool (host)
     19 #===---------------------------------------------------------------===
     20 
     21 include $(CLEAR_VARS)
     22 
     23 LOCAL_MODULE := llvm-link
     24 LOCAL_MODULE_TAGS := optional
     25 LOCAL_SRC_FILES := $(llvm_link_SRC_FILES)
     26 LOCAL_STATIC_LIBRARIES := $(llvm_link_STATIC_LIBRARIES)
     27 LOCAL_LDLIBS += -lpthread -lm -ldl
     28 
     29 include $(LLVM_HOST_BUILD_MK)
     30 include $(BUILD_HOST_EXECUTABLE)
     31 
     32 #===---------------------------------------------------------------===
     33 # llvm-link command line tool (target)
     34 #===---------------------------------------------------------------===
     35 
     36 include $(CLEAR_VARS)
     37 
     38 LOCAL_MODULE := llvm-link
     39 LOCAL_MODULE_TAGS := optional
     40 LOCAL_SRC_FILES := $(llvm_link_SRC_FILES)
     41 LOCAL_STATIC_LIBRARIES := $(llvm_link_STATIC_LIBRARIES)
     42 LOCAL_SHARED_LIBRARIES := \
     43   libcutils  \
     44   libstlport
     45 
     46 include $(LLVM_DEVICE_BUILD_MK)
     47 include $(BUILD_EXECUTABLE)
     48