1LOCAL_PATH:= $(call my-dir) 2 3# Build for Linux (desktop) host 4ifeq ($(HOST_OS),linux) 5 6include $(CLEAR_VARS) 7 8LOCAL_MODULE_TAGS := optional 9 10LOCAL_SRC_FILES := accessorychat.c 11 12LOCAL_MODULE := accessorychat 13 14LOCAL_C_INCLUDES += bionic/libc/kernel/common 15LOCAL_STATIC_LIBRARIES := libusbhost libcutils 16LOCAL_LDLIBS += -lpthread 17LOCAL_CFLAGS := -g -O0 18 19include $(BUILD_HOST_EXECUTABLE) 20 21endif 22 23# Build for device 24include $(CLEAR_VARS) 25 26LOCAL_MODULE_TAGS := optional 27 28LOCAL_SRC_FILES := accessorychat.c 29 30LOCAL_MODULE := accessorychat 31 32LOCAL_SHARED_LIBRARIES := libusbhost libcutils 33 34include $(BUILD_EXECUTABLE) 35