18aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim MurrayLOCAL_PATH := $(call my-dir)
28aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray
37cfe7b81886cb23fc41ff32b5f2bc5941dc3f682Chris Wailesaarch64_utils_TBLGEN_TABLES := \
4dce4a407a24b04eebc6a376f8e62b41aaa7b071fStephen Hines  AArch64GenRegisterInfo.inc \
5dce4a407a24b04eebc6a376f8e62b41aaa7b071fStephen Hines  AArch64GenInstrInfo.inc \
6dce4a407a24b04eebc6a376f8e62b41aaa7b071fStephen Hines  AArch64GenSubtargetInfo.inc
7dce4a407a24b04eebc6a376f8e62b41aaa7b071fStephen Hines
87cfe7b81886cb23fc41ff32b5f2bc5941dc3f682Chris Wailesaarch64_utils_SRC_FILES := \
98aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray  AArch64BaseInfo.cpp
108aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray
118aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray# For the device
128aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray# =====================================================
1336b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hinesifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
148aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murrayinclude $(CLEAR_VARS)
158aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray
167cfe7b81886cb23fc41ff32b5f2bc5941dc3f682Chris WailesLOCAL_SRC_FILES := $(aarch64_utils_SRC_FILES)
178aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray
188aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim MurrayLOCAL_C_INCLUDES += $(LOCAL_PATH)/..
198aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray
207cfe7b81886cb23fc41ff32b5f2bc5941dc3f682Chris WailesLOCAL_MODULE:= libLLVMAArch64Utils
218aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray
22dce4a407a24b04eebc6a376f8e62b41aaa7b071fStephen HinesTBLGEN_TD_DIR := $(LOCAL_PATH)/..
237cfe7b81886cb23fc41ff32b5f2bc5941dc3f682Chris WailesTBLGEN_TABLES := $(aarch64_utils_TBLGEN_TABLES)
24dce4a407a24b04eebc6a376f8e62b41aaa7b071fStephen Hines
258aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murrayinclude $(LLVM_DEVICE_BUILD_MK)
26dce4a407a24b04eebc6a376f8e62b41aaa7b071fStephen Hinesinclude $(LLVM_TBLGEN_RULES_MK)
27dce4a407a24b04eebc6a376f8e62b41aaa7b071fStephen Hinesinclude $(LLVM_GEN_INTRINSICS_MK)
288aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murrayinclude $(BUILD_STATIC_LIBRARY)
2936b56886974eae4f9c5ebc96befd3e7bfe5de338Stephen Hinesendif
308aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray
318aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray# For the host
328aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray# =====================================================
338aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murrayinclude $(CLEAR_VARS)
348aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray
357cfe7b81886cb23fc41ff32b5f2bc5941dc3f682Chris WailesLOCAL_SRC_FILES := $(aarch64_utils_SRC_FILES)
368aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray
378aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim MurrayLOCAL_C_INCLUDES += $(LOCAL_PATH)/..
388aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray
397cfe7b81886cb23fc41ff32b5f2bc5941dc3f682Chris WailesLOCAL_MODULE:= libLLVMAArch64Utils
408aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray
412b5f56b066cfdb6d55d42228e0df2a2de24b3429Dan WillemsenLOCAL_MODULE_HOST_OS := darwin linux windows
428aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murray
43dce4a407a24b04eebc6a376f8e62b41aaa7b071fStephen HinesTBLGEN_TD_DIR := $(LOCAL_PATH)/..
447cfe7b81886cb23fc41ff32b5f2bc5941dc3f682Chris WailesTBLGEN_TABLES := $(aarch64_utils_TBLGEN_TABLES)
45dce4a407a24b04eebc6a376f8e62b41aaa7b071fStephen Hines
468aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murrayinclude $(LLVM_HOST_BUILD_MK)
47dce4a407a24b04eebc6a376f8e62b41aaa7b071fStephen Hinesinclude $(LLVM_TBLGEN_RULES_MK)
48dce4a407a24b04eebc6a376f8e62b41aaa7b071fStephen Hinesinclude $(LLVM_GEN_INTRINSICS_MK)
498aa5ce8cbaa58d14493eb694f06c8a0fde23c509Tim Murrayinclude $(BUILD_HOST_STATIC_LIBRARY)
50