Home | History | Annotate | Download | only in TargetInfo
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 arm_target_info_TBLGEN_TABLES := \
      4   ARMGenSubtargetInfo.inc \
      5   ARMGenRegisterInfo.inc \
      6   ARMGenInstrInfo.inc
      7 
      8 arm_target_info_SRC_FILES := \
      9   ARMTargetInfo.cpp
     10 
     11 # For the host
     12 # =====================================================
     13 include $(CLEAR_VARS)
     14 include $(CLEAR_TBLGEN_VARS)
     15 
     16 TBLGEN_TABLES := $(arm_target_info_TBLGEN_TABLES)
     17 
     18 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     19 
     20 LOCAL_SRC_FILES := $(arm_target_info_SRC_FILES)
     21 
     22 LOCAL_C_INCLUDES +=	\
     23 	$(LOCAL_PATH)/..
     24 
     25 LOCAL_MODULE:= libLLVMARMInfo
     26 
     27 LOCAL_MODULE_HOST_OS := darwin linux windows
     28 
     29 include $(LLVM_HOST_BUILD_MK)
     30 include $(LLVM_TBLGEN_RULES_MK)
     31 include $(LLVM_GEN_ATTRIBUTES_MK)
     32 include $(BUILD_HOST_STATIC_LIBRARY)
     33 
     34 # For the device
     35 # =====================================================
     36 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
     37 include $(CLEAR_VARS)
     38 include $(CLEAR_TBLGEN_VARS)
     39 
     40 TBLGEN_TABLES := $(arm_target_info_TBLGEN_TABLES)
     41 
     42 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
     43 
     44 LOCAL_SRC_FILES := $(arm_target_info_SRC_FILES)
     45 
     46 LOCAL_C_INCLUDES +=	\
     47 	$(LOCAL_PATH)/..
     48 
     49 LOCAL_MODULE:= libLLVMARMInfo
     50 
     51 include $(LLVM_DEVICE_BUILD_MK)
     52 include $(LLVM_TBLGEN_RULES_MK)
     53 include $(LLVM_GEN_ATTRIBUTES_MK)
     54 include $(BUILD_STATIC_LIBRARY)
     55 endif
     56