aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Instrumentation/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Instrumentation/Android.mk')
-rw-r--r--lib/Transforms/Instrumentation/Android.mk29
1 files changed, 20 insertions, 9 deletions
diff --git a/lib/Transforms/Instrumentation/Android.mk b/lib/Transforms/Instrumentation/Android.mk
index d4ac0da..85482a6 100644
--- a/lib/Transforms/Instrumentation/Android.mk
+++ b/lib/Transforms/Instrumentation/Android.mk
@@ -1,20 +1,31 @@
LOCAL_PATH:= $(call my-dir)
+instrumentation_SRC_FILES := \
+ EdgeProfiling.cpp \
+ GCOVProfiling.cpp \
+ Instrumentation.cpp \
+ ProfilingUtils.cpp \
+ PathProfiling.cpp \
+ OptimalEdgeProfiling.cpp
+
# For the host
# =====================================================
include $(CLEAR_VARS)
-LOCAL_SRC_FILES := \
- EdgeProfiling.cpp \
- GCOVProfiling.cpp \
- Instrumentation.cpp \
- ProfilingUtils.cpp \
- PathProfiling.cpp \
- OptimalEdgeProfiling.cpp
-
LOCAL_MODULE:= libLLVMInstrumentation
-
LOCAL_MODULE_TAGS := optional
+LOCAL_SRC_FILES := $(instrumentation_SRC_FILES)
include $(LLVM_HOST_BUILD_MK)
include $(BUILD_HOST_STATIC_LIBRARY)
+
+# For the target
+# =====================================================
+include $(CLEAR_VARS)
+
+LOCAL_MODULE:= libLLVMInstrumentation
+LOCAL_MODULE_TAGS := optional
+LOCAL_SRC_FILES := $(instrumentation_SRC_FILES)
+
+include $(LLVM_DEVICE_BUILD_MK)
+include $(BUILD_STATIC_LIBRARY)