1# Makefile for libusb based examples 2BTSTACK_ROOT = ../.. 3 4CORE += \ 5 btstack_chipset_atwilc3000.c \ 6 btstack_link_key_db_fs.c \ 7 btstack_run_loop_posix.c \ 8 btstack_uart_block_posix.c \ 9 hci_transport_h4.c \ 10 le_device_db_fs.c \ 11 main.c \ 12 wav_util.c \ 13 btstack_stdin_posix.c \ 14 15# examples 16include ${BTSTACK_ROOT}/example/Makefile.inc 17 18# firmware 19include ${BTSTACK_ROOT}/chipset/atwilc3000/Makefile.inc 20 21CFLAGS += -g -Wall -Werror \ 22 -I$(BTSTACK_ROOT)/platform/posix \ 23 -I$(BTSTACK_ROOT)/chipset/atwilc3000 \ 24 -I$(BTSTACK_ROOT)/platform/embedded \ 25 26VPATH += ${BTSTACK_ROOT}/platform/posix 27VPATH += ${BTSTACK_ROOT}/chipset/atwilc3000 28 29ifeq ($(OS),Windows_NT) 30LDFLAGS += -lws2_32 31endif 32 33# Command Line examples require porting to win32, so only build on other unix-ish hosts 34ifneq ($(OS),Windows_NT) 35EXAMPLES += ${EXAMPLES_CLI} 36endif 37 38# use pkg-config for portaudio 39# CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO 40# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs) 41# hard coded flags for portaudio in /usr/local/lib 42# CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO 43# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon 44 45all: ${EXAMPLES} 46