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