xref: /btstack/port/posix-h4-zephyr/Makefile (revision d3849e4c96afced4068937d11ad7c1106c5e1e0f)
16807484cSMatthias Ringwald# Makefile for posix-h4 based examples
26807484cSMatthias RingwaldBTSTACK_ROOT = ../..
36807484cSMatthias Ringwald
46807484cSMatthias RingwaldCORE += \
56807484cSMatthias Ringwald	btstack_link_key_db_fs.c \
66807484cSMatthias Ringwald	btstack_run_loop_posix.c \
7*d3849e4cSMatthias Ringwald	btstack_tlv_posix.c \
86807484cSMatthias Ringwald	btstack_uart_block_posix.c \
96807484cSMatthias Ringwald	hci_transport_h4.c \
106807484cSMatthias Ringwald	le_device_db_fs.c \
116807484cSMatthias Ringwald	main.c \
126807484cSMatthias Ringwald	btstack_stdin_posix.c \
13360243beSMatthias Ringwald	btstack_chipset_zephyr.c \
146807484cSMatthias Ringwald
156807484cSMatthias Ringwald# examples
166807484cSMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/Makefile.inc
176807484cSMatthias Ringwald
186807484cSMatthias RingwaldCFLAGS  += -g -Wall -Werror \
196807484cSMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/embedded \
206807484cSMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/posix \
21360243beSMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/zephyr \
22d08566fbSMatthias Ringwald	-I${BTSTACK_ROOT}/3rd-party/tinydir
236807484cSMatthias Ringwald
246807484cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix
256807484cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/embedded
26360243beSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/zephyr
276807484cSMatthias Ringwald
286807484cSMatthias Ringwald# use pkg-config for portaudio
296807484cSMatthias Ringwald# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
306807484cSMatthias Ringwald# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
316807484cSMatthias Ringwald# hard coded flags for portaudio in /usr/local/lib
326807484cSMatthias Ringwald# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
336807484cSMatthias Ringwald# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
346807484cSMatthias Ringwald
35360243beSMatthias Ringwaldall: ${EXAMPLES_USING_LE}
366807484cSMatthias Ringwald
37