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