Return-Path: From: Andrei Emeltchenko To: linux-bluetooth@vger.kernel.org Subject: [PATCHv3 14/15] android: Add makefile for hciconfig Date: Tue, 8 Oct 2013 17:51:22 +0300 Message-Id: <1381243883-2745-15-git-send-email-Andrei.Emeltchenko.news@gmail.com> In-Reply-To: <1381243883-2745-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> References: <1381131496-9417-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> <1381243883-2745-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Andrei Emeltchenko --- android/Android.mk | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/android/Android.mk b/android/Android.mk index e7a70d0..09c4579 100644 --- a/android/Android.mk +++ b/android/Android.mk @@ -123,3 +123,37 @@ $(foreach file,$(lib_headers), $(shell ln -sf ../$(file) $(LOCAL_PATH)/../lib/bl LOCAL_MODULE := libbluetooth include $(BUILD_SHARED_LIBRARY) + +# +# hciconfig +# + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := \ + ../tools/csr.c \ + ../tools/csr_h4.c \ + ../tools/hciconfig.c \ + +LOCAL_C_INCLUDES := \ + $(LOCAL_PATH)/../lib \ + $(LOCAL_PATH)/../src \ + +LOCAL_C_INCLUDES += \ + $(call include-path-for, glib) \ + $(call include-path-for, glib)/glib \ + +LOCAL_SHARED_LIBRARIES := \ + libbluetooth + +# to suppress the "pointer of type 'void *' used in arithmetic" warning +LOCAL_CFLAGS := -Wno-pointer-arith + +# to suppress the "warning: missing initializer near initialization.." warning +LOCAL_CFLAGS += -Wno-missing-field-initializers + +LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) +LOCAL_MODULE_TAGS := eng +LOCAL_MODULE := hciconfig + +include $(BUILD_EXECUTABLE) -- 1.7.10.4