1# Makefile for libusb based examples 2BTSTACK_ROOT ?= ../.. 3 4CORE += \ 5 bluetooth_init_cc2564B_1.8_BT_Spec_4.1.c \ 6 btstack_chipset_bcm.c \ 7 btstack_chipset_cc256x.c \ 8 btstack_chipset_csr.c \ 9 btstack_chipset_em9301.c \ 10 btstack_chipset_stlc2500d.c \ 11 btstack_chipset_tc3566x.c \ 12 btstack_link_key_db_tlv.c \ 13 btstack_run_loop_posix.c \ 14 btstack_audio.c \ 15 btstack_audio_portaudio.c \ 16 btstack_tlv_posix.c \ 17 btstack_uart_posix.c \ 18 hci_dump_posix_fs.c \ 19 hci_transport_h4.c \ 20 le_device_db_tlv.c \ 21 rijndael.c \ 22 main.c \ 23 btstack_stdin_posix.c \ 24 btstack_signal.c \ 25 wav_util.c \ 26 0000000_META_hci_patches_v7.c \ 27 # bluetooth_init_cc2564_2.14.c \ 28 # bluetooth_init_cc2564C_1.4.c \ 29# TI-WL183x requires TIInit_11.8.32.c 30 31# examples 32include ${BTSTACK_ROOT}/example/Makefile.inc 33 34# fetch and convert TI init scripts 35include ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc 36 37# fetch Broadcom init scripts 38include ${BTSTACK_ROOT}/chipset/bcm/Makefile.inc 39 40CFLAGS += -g -Wall -Werror \ 41 -I$(BTSTACK_ROOT)/platform/embedded \ 42 -I$(BTSTACK_ROOT)/platform/posix \ 43 -I$(BTSTACK_ROOT)/chipset/bcm \ 44 -I$(BTSTACK_ROOT)/chipset/cc256x \ 45 -I$(BTSTACK_ROOT)/chipset/csr \ 46 -I$(BTSTACK_ROOT)/chipset/em9301 \ 47 -I$(BTSTACK_ROOT)/chipset/stlc2500d \ 48 -I$(BTSTACK_ROOT)/chipset/tc3566x \ 49 -I${BTSTACK_ROOT}/3rd-party/rijndael \ 50 -I${BTSTACK_ROOT}/3rd-party/tinydir 51 52VPATH += ${BTSTACK_ROOT}/3rd-party/rijndael 53 54VPATH += ${BTSTACK_ROOT}/platform/posix 55VPATH += ${BTSTACK_ROOT}/platform/embedded 56 57VPATH += ${BTSTACK_ROOT}/chipset/bcm 58VPATH += ${BTSTACK_ROOT}/chipset/cc256x 59VPATH += ${BTSTACK_ROOT}/chipset/csr 60VPATH += ${BTSTACK_ROOT}/chipset/em9301 61VPATH += ${BTSTACK_ROOT}/chipset/stlc2500d 62VPATH += ${BTSTACK_ROOT}/chipset/tc3566x 63 64# add pthread for ctrl-c signal handler 65LDFLAGS += -lpthread 66 67EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE} 68EXAMPLES += pan_lwip_http_server 69 70# use pkg-config for portaudio 71# CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO 72# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs) 73# hard coded flags for portaudio in /usr/local/lib 74# CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO 75# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon 76 77all: BCM43430A1.hcd ${EXAMPLES} 78 79