aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/Utils
diff options
context:
space:
mode:
authorShih-wei Liao <sliao@google.com>2011-03-11 08:18:17 -0800
committerShih-wei Liao <sliao@google.com>2011-03-11 08:18:17 -0800
commit95b62c22d4e04993d6c3004fe06c372565392253 (patch)
treec020ac4e9bda43ab06b02d7fddf9af774dd2fd18 /lib/Target/X86/Utils
parent57da390bbc106b3afc38167b4886482492e78398 (diff)
downloadexternal_llvm-95b62c22d4e04993d6c3004fe06c372565392253.zip
external_llvm-95b62c22d4e04993d6c3004fe06c372565392253.tar.gz
external_llvm-95b62c22d4e04993d6c3004fe06c372565392253.tar.bz2
For merging to r127116. Fix x86 build.
Do both host and device utils. Change-Id: I76a83325cfb30081657e5de75228866ab37bb8f0
Diffstat (limited to 'lib/Target/X86/Utils')
-rw-r--r--lib/Target/X86/Utils/Android.mk24
1 files changed, 18 insertions, 6 deletions
diff --git a/lib/Target/X86/Utils/Android.mk b/lib/Target/X86/Utils/Android.mk
index 1c6694c..d9dd670 100644
--- a/lib/Target/X86/Utils/Android.mk
+++ b/lib/Target/X86/Utils/Android.mk
@@ -1,15 +1,28 @@
LOCAL_PATH := $(call my-dir)
-# For the device only
+x86_utils_SRC_FILES := \
+ X86ShuffleDecode.cpp
+
+# For the device
# =====================================================
include $(CLEAR_VARS)
-include $(CLEAR_TBLGEN_VARS)
-TBLGEN_TABLES :=
+LOCAL_SRC_FILES := $(x86_utils_SRC_FILES)
+
+LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
+
+LOCAL_MODULE:= libLLVMX86Utils
+
+LOCAL_MODULE_TAGS := optional
+
+include $(LLVM_DEVICE_BUILD_MK)
+include $(BUILD_STATIC_LIBRARY)
-TBLGEN_TD_DIR := $(LOCAL_PATH)/..
+# For the host
+# =====================================================
+include $(CLEAR_VARS)
-LOCAL_SRC_FILES := X86ShuffleDecode.cpp
+LOCAL_SRC_FILES := $(x86_utils_SRC_FILES)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
@@ -18,5 +31,4 @@ LOCAL_MODULE:= libLLVMX86Utils
LOCAL_MODULE_TAGS := optional
include $(LLVM_HOST_BUILD_MK)
-include $(LLVM_TBLGEN_RULES_MK)
include $(BUILD_HOST_STATIC_LIBRARY)