Home | History | Annotate | Download | only in Target
      1 LOCAL_PATH:= $(call my-dir)
      2 
      3 target_SRC_FILES := \
      4   Target.cpp \
      5   TargetIntrinsicInfo.cpp \
      6   TargetLoweringObjectFile.cpp \
      7   TargetMachine.cpp \
      8   TargetMachineC.cpp \
      9   TargetRecip.cpp \
     10   TargetSubtargetInfo.cpp
     11 
     12 # For the host
     13 # =====================================================
     14 include $(CLEAR_VARS)
     15 
     16 LOCAL_SRC_FILES := $(target_SRC_FILES)
     17 
     18 LOCAL_MODULE:= libLLVMTarget
     19 
     20 LOCAL_MODULE_HOST_OS := darwin linux windows
     21 
     22 include $(LLVM_HOST_BUILD_MK)
     23 include $(LLVM_GEN_ATTRIBUTES_MK)
     24 include $(LLVM_GEN_INTRINSICS_MK)
     25 include $(BUILD_HOST_STATIC_LIBRARY)
     26 
     27 # For the device
     28 # =====================================================
     29 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
     30 include $(CLEAR_VARS)
     31 
     32 LOCAL_SRC_FILES := $(target_SRC_FILES)
     33 
     34 LOCAL_MODULE:= libLLVMTarget
     35 
     36 include $(LLVM_DEVICE_BUILD_MK)
     37 include $(LLVM_GEN_ATTRIBUTES_MK)
     38 include $(LLVM_GEN_INTRINSICS_MK)
     39 include $(BUILD_STATIC_LIBRARY)
     40 endif
     41