Compile oprofile tools on the host.

Some of the new build targets are disabled for now because libbfd is
not currently provided by the prebuilt toolchain for all platforms.

Change-Id: Ie2c24bf997c9c5f15f6c3e2eaf949d73578890d8
diff --git a/libutil++/Android.mk b/libutil++/Android.mk
new file mode 100644
index 0000000..138ff7f
--- /dev/null
+++ b/libutil++/Android.mk
@@ -0,0 +1,34 @@
+LOCAL_PATH:= $(call my-dir)
+
+# Build libutil++ on host
+ifeq ($(HAVE_LIBBFD),true)
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES:= \
+	bfd_support.cpp \
+	bfd_spu_support.cpp \
+	child_reader.cpp \
+	cverb.cpp \
+	file_manip.cpp \
+	glob_filter.cpp \
+	op_bfd.cpp \
+	op_exception.cpp \
+	op_spu_bfd.cpp \
+	path_filter.cpp \
+	stream_util.cpp \
+	string_filter.cpp \
+	string_manip.cpp \
+	xml_output.cpp
+
+LOCAL_C_INCLUDES := \
+	external/oprofile \
+	external/oprofile/libutil \
+	external/oprofile/libop \
+	external/oprofile/libpp
+
+LOCAL_CFLAGS := -fexceptions -DANDROID_HOST
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE := libutil++
+
+include $(BUILD_HOST_STATIC_LIBRARY)
+endif