xref: /btstack/port/posix-h4-zephyr/Makefile (revision 1882d12dc36ae7b48f7f4ed3fd8d029fba3b08b1)
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	-I${BTSTACK_ROOT}/3rd-party/tinydir
22
23VPATH += ${BTSTACK_ROOT}/platform/posix
24VPATH += ${BTSTACK_ROOT}/platform/embedded
25VPATH += ${BTSTACK_ROOT}/chipset/zephyr
26
27# use pkg-config for portaudio
28# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
29# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
30# hard coded flags for portaudio in /usr/local/lib
31# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
32# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
33
34all: ${EXAMPLES_USING_LE}
35
36