1# Makefile for libusb based examples 2BTSTACK_ROOT ?= ../.. 3 4CORE += \ 5 bluetooth_init_cc2564B_1.8_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_tlv_posix.c \ 14 btstack_uart_block_posix.c \ 15 btstack_slip.c \ 16 hci_transport_h5.c \ 17 le_device_db_fs.c \ 18 main.c \ 19 wav_util.c \ 20 btstack_stdin_posix.c \ 21 22# TI-WL183x requires TIInit_11.8.32.c 23 24# examples 25include ${BTSTACK_ROOT}/example/Makefile.inc 26 27# fetch and convert TI init scripts 28include ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc 29 30CFLAGS += -g -Wall -Werror \ 31 -I$(BTSTACK_ROOT)/platform/embedded \ 32 -I$(BTSTACK_ROOT)/platform/posix \ 33 -I$(BTSTACK_ROOT)/chipset/cc256x \ 34 -I$(BTSTACK_ROOT)/chipset/csr \ 35 -I$(BTSTACK_ROOT)/chipset/em9301 \ 36 -I$(BTSTACK_ROOT)/chipset/stlc2500d \ 37 -I$(BTSTACK_ROOT)/chipset/tc3566x \ 38 -I${BTSTACK_ROOT}/3rd-party/tinydir 39 40VPATH += ${BTSTACK_ROOT}/platform/posix 41VPATH += ${BTSTACK_ROOT}/platform/embedded 42 43VPATH += ${BTSTACK_ROOT}/chipset/cc256x 44VPATH += ${BTSTACK_ROOT}/chipset/csr 45VPATH += ${BTSTACK_ROOT}/chipset/em9301 46VPATH += ${BTSTACK_ROOT}/chipset/stlc2500d 47VPATH += ${BTSTACK_ROOT}/chipset/tc3566x 48 49EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE} 50EXAMPLES += pan_lwip_http_server 51 52# use pkg-config for portaudio 53# CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO 54# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs) 55# hard coded flags for portaudio in /usr/local/lib 56# CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO 57# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon 58 59all: ${EXAMPLES} 60