Home | History | Annotate | Download | only in MCTargetDesc
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 x86_mc_desc_TBLGEN_TABLES :=	\
      4 	X86GenRegisterInfo.inc	\
      5 	X86GenInstrInfo.inc	\
      6 	X86GenSubtargetInfo.inc
      7 
      8 x86_mc_desc_SRC_FILES :=   \
      9 	X86MCAsmInfo.cpp \
     10 	X86MCTargetDesc.cpp
     11 
     12 # For the host
     13 # =====================================================
     14 include $(CLEAR_VARS)
     15 include $(CLEAR_TBLGEN_VARS)
     16 
     17 TBLGEN_TABLES := $(x86_mc_desc_TBLGEN_TABLES)
     18 
     19 LOCAL_SRC_FILES := $(x86_mc_desc_SRC_FILES)
     20 
     21 LOCAL_MODULE:= libLLVMX86Desc
     22 
     23 LOCAL_MODULE_TAGS := optional
     24 
     25 include $(LLVM_HOST_BUILD_MK)
     26 include $(LLVM_TBLGEN_RULES_MK)
     27 include $(LLVM_GEN_INTRINSICS_MK)
     28 include $(BUILD_HOST_STATIC_LIBRARY)
     29 
     30 # For the device only
     31 # =====================================================
     32 ifeq ($(TARGET_ARCH),x86)
     33 include $(CLEAR_VARS)
     34 include $(CLEAR_TBLGEN_VARS)
     35 
     36 TBLGEN_TABLES := $(x86_mc_desc_TBLGEN_TABLES)
     37 
     38 LOCAL_SRC_FILES := $(x86_mc_desc_SRC_FILES)
     39 
     40 LOCAL_MODULE:= libLLVMX86Desc
     41 
     42 LOCAL_MODULE_TAGS := optional
     43 
     44 include $(LLVM_DEVICE_BUILD_MK)
     45 include $(LLVM_TBLGEN_RULES_MK)
     46 include $(LLVM_GEN_INTRINSICS_MK)
     47 include $(BUILD_STATIC_LIBRARY)
     48 endif
     49