1# Makefile for libusb based examples 2BTSTACK_ROOT = ../.. 3 4CORE += \ 5 bluetooth_init_cc2564B_1.2_BT_Spec_4.1.c \ 6 btstack_chipset_cc256x.c \ 7 btstack_chipset_csr.c \ 8 btstack_chipset_em9301.c \ 9 btstack_chipset_stlc2500d.c \ 10 btstack_chipset_tc3566x.c \ 11 btstack_link_key_db_fs.c \ 12 btstack_run_loop_posix.c \ 13 btstack_uart_block_posix.c \ 14 hci_transport_h4.c \ 15 main.c \ 16 stdin_support.c \ 17# btstack_chipset_bcm.c \ 18 19# TI-WL183x requires TIInit_11.8.32.c 20 21# examples 22include ${BTSTACK_ROOT}/example/Makefile.inc 23 24# fetch and convert TI init scripts 25include ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc 26 27CFLAGS += -g -Wall -Werror \ 28 -I$(BTSTACK_ROOT)/platform/embedded \ 29 -I$(BTSTACK_ROOT)/platform/posix \ 30 -I$(BTSTACK_ROOT)/chipset/bcm \ 31 -I$(BTSTACK_ROOT)/chipset/cc256x \ 32 -I$(BTSTACK_ROOT)/chipset/csr \ 33 -I$(BTSTACK_ROOT)/chipset/em9301 \ 34 -I$(BTSTACK_ROOT)/chipset/stlc2500d \ 35 -I$(BTSTACK_ROOT)/chipset/tc3566x \ 36 37VPATH += ${BTSTACK_ROOT}/platform/posix 38VPATH += ${BTSTACK_ROOT}/platform/embedded 39 40VPATH += ${BTSTACK_ROOT}/chipset/bcm 41VPATH += ${BTSTACK_ROOT}/chipset/cc256x 42VPATH += ${BTSTACK_ROOT}/chipset/csr 43VPATH += ${BTSTACK_ROOT}/chipset/em9301 44VPATH += ${BTSTACK_ROOT}/chipset/stlc2500d 45VPATH += ${BTSTACK_ROOT}/chipset/tc3566x 46 47ifeq ($(OS),Windows_NT) 48LDFLAGS += -lws2_32 49endif 50 51# Command Line examples require porting to win32, so only build on other unix-ish hosts 52ifneq ($(OS),Windows_NT) 53EXAMPLES += ${EXAMPLES_CLI} 54endif 55 56all: ${EXAMPLES} 57