1# Makefile for libusb based examples 2BTSTACK_ROOT = ../.. 3 4CORE += main.c stdin_support.c 5 6COMMON += hci_transport_h4_posix.c btstack_run_loop_posix.c remote_device_db_fs.c 7 8include ${BTSTACK_ROOT}/example/embedded/Makefile.inc 9 10CFLAGS += -g -Wall \ 11 -I$(BTSTACK_ROOT)/platform/embedded \ 12 -I$(BTSTACK_ROOT)/platform/posix 13 14# CFLAGS += -Werror 15 16VPATH += ${BTSTACK_ROOT}/platform/posix 17VPATH += ${BTSTACK_ROOT}/platform/embedded 18 19ifeq ($(OS),Windows_NT) 20LDFLAGS += -lws2_32 21endif 22 23# Command Line examples require porting to win32, so only build on other unix-ish hosts 24ifneq ($(OS),Windows_NT) 25EXAMPLES += ${EXAMPLES_CLI} 26endif 27 28all: ${BTSTACK_ROOT}/src/btstack_version.h ${EXAMPLES} 29