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