diff options
author | Shih-wei Liao <sliao@google.com> | 2010-12-04 20:43:10 -0800 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2010-12-04 21:06:32 -0800 |
commit | 6d73b8b01a0d3aa4b476ac4fbc1ac27d701ae78b (patch) | |
tree | 17400f67303bf3c0d40f502e9af0ecfe2b25a6f5 /Android.mk | |
parent | 36a3d39565f10636a27ef799710728b1f68686ed (diff) | |
download | external_llvm-6d73b8b01a0d3aa4b476ac4fbc1ac27d701ae78b.zip external_llvm-6d73b8b01a0d3aa4b476ac4fbc1ac27d701ae78b.tar.gz external_llvm-6d73b8b01a0d3aa4b476ac4fbc1ac27d701ae78b.tar.bz2 |
Refactor Android.mk
Change-Id: I9a0fbb7f96b8d1f7b7047c19b8d7fd99a6bddf51
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 85 |
1 files changed, 48 insertions, 37 deletions
@@ -1,41 +1,52 @@ LOCAL_PATH := $(call my-dir) -LLVM_ROOT_PATH := $(LOCAL_PATH) -LLVM_ENABLE_ASSERTION := false +arm_disassembler_TBLGEN_TABLES := \ + ARMGenDecoderTables.inc \ + ARMGenEDInfo.inc \ + ARMGenInstrNames.inc \ + ARMGenInstrInfo.inc \ + ARMGenRegisterNames.inc \ + ARMGenRegisterInfo.h.inc + +arm_disassembler_SRC_FILES := \ + ARMDisassembler.cpp \ + ARMDisassemblerCore.cpp + +# For the device +# ===================================================== +include $(CLEAR_VARS) +include $(CLEAR_TBLGEN_VARS) + +TBLGEN_TABLES := $(arm_disassembler_TBLGEN_TABLES) + +TBLGEN_TD_DIR := $(LOCAL_PATH)/.. + +LOCAL_SRC_FILES := $(arm_disassembler_SRC_FILES) + +LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. + +LOCAL_MODULE:= libLLVMARMDisassembler + +include $(LLVM_DEVICE_BUILD_MK) +include $(LLVM_TBLGEN_RULES_MK) +include $(BUILD_STATIC_LIBRARY) + +# For the host +# ===================================================== include $(CLEAR_VARS) +include $(CLEAR_TBLGEN_VARS) + +TBLGEN_TABLES := $(arm_disassembler_TBLGEN_TABLES) + +TBLGEN_TD_DIR := $(LOCAL_PATH)/.. + +LOCAL_SRC_FILES := $(arm_disassembler_SRC_FILES) + +LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. + +LOCAL_MODULE:= libLLVMARMDisassembler + +include $(LLVM_HOST_BUILD_MK) +include $(LLVM_TBLGEN_RULES_MK) +include $(BUILD_HOST_STATIC_LIBRARY) -subdirs := $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \ - lib/System \ - lib/Support \ - utils/TableGen \ - lib/VMCore \ - lib/Bitcode/Reader \ - lib/Bitcode/Writer \ - lib/Analysis \ - lib/Analysis/IPA \ - lib/Transforms/IPO \ - lib/Transforms/Utils \ - lib/Transforms/Scalar \ - lib/Transforms/InstCombine \ - lib/Transforms/Instrumentation \ - lib/CodeGen \ - lib/CodeGen/SelectionDAG \ - lib/CodeGen/AsmPrinter \ - lib/Target \ - lib/Target/ARM \ - lib/Target/ARM/AsmPrinter \ - lib/Target/ARM/Disassembler \ - lib/Target/ARM/TargetInfo \ - lib/Target/X86 \ - lib/Target/X86/AsmPrinter \ - lib/Target/X86/Disassembler \ - lib/Target/X86/TargetInfo \ - lib/ExecutionEngine/JIT \ - lib/MC \ - lib/MC/MCParser \ - lib/Linker \ - )) - -include $(LOCAL_PATH)/llvm.mk - -include $(subdirs) |