1# Makefile for libusb based examples 2BTSTACK_ROOT ?= ../.. 3 4CORE += \ 5 btstack_chipset_da14581.c \ 6 hci_581_active_uart.c \ 7 btstack_link_key_db_fs.c \ 8 btstack_run_loop_posix.c \ 9 btstack_tlv_posix.c \ 10 btstack_uart_block_posix.c \ 11 hci_transport_h4.c \ 12 le_device_db_fs.c \ 13 main.c \ 14 wav_util.c \ 15 btstack_stdin_posix.c \ 16 17# examples 18include ${BTSTACK_ROOT}/example/Makefile.inc 19 20CFLAGS += -g -Wall -Werror \ 21 -I$(BTSTACK_ROOT)/platform/posix \ 22 -I$(BTSTACK_ROOT)/chipset/da14581 \ 23 -I$(BTSTACK_ROOT)/platform/embedded \ 24 -I${BTSTACK_ROOT}/3rd-party/tinydir 25 26VPATH += ${BTSTACK_ROOT}/platform/posix 27VPATH += ${BTSTACK_ROOT}/chipset/da14581 28 29EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_LE_ONLY} 30 31# use pkg-config for portaudio 32# CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO 33# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs) 34# hard coded flags for portaudio in /usr/local/lib 35# CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO 36# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon 37 38all: ${EXAMPLES} 39 40