aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Linker/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Linker/Android.mk')
-rw-r--r--lib/Linker/Android.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/Linker/Android.mk b/lib/Linker/Android.mk
new file mode 100644
index 0000000000..aa8028ef21
--- /dev/null
+++ b/lib/Linker/Android.mk
@@ -0,0 +1,21 @@
+# Only use this on the device or emulator.
+ifeq ($(TARGET_ARCH),arm)
+
+LOCAL_PATH:= $(call my-dir)
+
+# For the host
+# =====================================================
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+ LinkArchives.cpp \
+ LinkItems.cpp \
+ LinkModules.cpp \
+ Linker.cpp
+
+LOCAL_MODULE:= libLLVMLinker
+
+include $(LLVM_HOST_BUILD_MK)
+include $(BUILD_HOST_STATIC_LIBRARY)
+
+endif