xref: /btstack/port/posix-h4-zephyr/Makefile (revision 09cf8159072d80e092b9c303cea9b43a81b36aee)
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_tlv_posix.c \
8	btstack_uart_block_posix.c \
9	hci_transport_h4.c \
10	le_device_db_fs.c \
11	main.c \
12	btstack_stdin_posix.c \
13	btstack_chipset_zephyr.c \
14
15# examples
16include ${BTSTACK_ROOT}/example/Makefile.inc
17
18CFLAGS  += -g -Wall -Werror \
19	-I$(BTSTACK_ROOT)/platform/embedded \
20	-I$(BTSTACK_ROOT)/platform/posix \
21	-I$(BTSTACK_ROOT)/chipset/zephyr \
22	-I${BTSTACK_ROOT}/3rd-party/tinydir
23
24VPATH += ${BTSTACK_ROOT}/platform/posix
25VPATH += ${BTSTACK_ROOT}/platform/embedded
26VPATH += ${BTSTACK_ROOT}/chipset/zephyr
27
28# use pkg-config for portaudio
29# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
30# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
31# hard coded flags for portaudio in /usr/local/lib
32# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
33# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
34
35all: ${EXAMPLES_USING_LE}
36
37