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_STATIC_LIBRARIES := libusbhost libcutils 15LOCAL_LDLIBS += -lpthread 16LOCAL_CFLAGS := -g -O0 17 18include $(BUILD_HOST_EXECUTABLE) 19 20endif 21 22# Build for device 23include $(CLEAR_VARS) 24 25LOCAL_MODULE_TAGS := optional 26 27LOCAL_SRC_FILES := accessorychat.c 28 29LOCAL_MODULE := accessorychat 30 31LOCAL_SHARED_LIBRARIES := libusbhost libcutils 32 33include $(BUILD_EXECUTABLE) 34