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