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 19CFLAGS += -g -Wall -Werror \ 20 -I$(BTSTACK_ROOT)/platform/posix \ 21 -I$(BTSTACK_ROOT)/chipset/atwilc3000 \ 22 -I$(BTSTACK_ROOT)/platform/embedded \ 23 24VPATH += ${BTSTACK_ROOT}/platform/posix 25VPATH += ${BTSTACK_ROOT}/chipset/atwilc3000 26 27ifeq ($(OS),Windows_NT) 28LDFLAGS += -lws2_32 29endif 30 31# Command Line examples require porting to win32, so only build on other unix-ish hosts 32ifneq ($(OS),Windows_NT) 33EXAMPLES += ${EXAMPLES_CLI} 34endif 35 36# use pkg-config for portaudio 37# CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO 38# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs) 39# hard coded flags for portaudio in /usr/local/lib 40# CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO 41# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon 42 43all: ${EXAMPLES} 44 45