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