xref: /btstack/port/posix-h4-zephyr/Makefile (revision d08566fb6ea6a752bc4a7c70151e1384b4a55b0a)
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 \
76807484cSMatthias Ringwald	btstack_uart_block_posix.c \
86807484cSMatthias Ringwald	hci_transport_h4.c \
96807484cSMatthias Ringwald	le_device_db_fs.c \
106807484cSMatthias Ringwald	main.c \
116807484cSMatthias Ringwald	btstack_stdin_posix.c \
12360243beSMatthias Ringwald	btstack_chipset_zephyr.c \
136807484cSMatthias Ringwald
146807484cSMatthias Ringwald# examples
156807484cSMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/Makefile.inc
166807484cSMatthias Ringwald
176807484cSMatthias RingwaldCFLAGS  += -g -Wall -Werror \
186807484cSMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/embedded \
196807484cSMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/posix \
20360243beSMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/zephyr \
21*d08566fbSMatthias Ringwald	-I${BTSTACK_ROOT}/3rd-party/tinydir
226807484cSMatthias Ringwald
236807484cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix
246807484cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/embedded
25360243beSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/zephyr
266807484cSMatthias Ringwald
276807484cSMatthias Ringwald# use pkg-config for portaudio
286807484cSMatthias Ringwald# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
296807484cSMatthias Ringwald# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
306807484cSMatthias Ringwald# hard coded flags for portaudio in /usr/local/lib
316807484cSMatthias Ringwald# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
326807484cSMatthias Ringwald# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
336807484cSMatthias Ringwald
34360243beSMatthias Ringwaldall: ${EXAMPLES_USING_LE}
356807484cSMatthias Ringwald
36