xref: /btstack/port/posix-h4-zephyr/Makefile (revision 360243be41f47158adff357b9fead2686419a2df)
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 \
12*360243beSMatthias 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 \
20*360243beSMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/zephyr \
216807484cSMatthias Ringwald
226807484cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix
236807484cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/embedded
24*360243beSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/zephyr
256807484cSMatthias Ringwald
266807484cSMatthias Ringwald# use pkg-config for portaudio
276807484cSMatthias Ringwald# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
286807484cSMatthias Ringwald# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
296807484cSMatthias Ringwald# hard coded flags for portaudio in /usr/local/lib
306807484cSMatthias Ringwald# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
316807484cSMatthias Ringwald# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
326807484cSMatthias Ringwald
33*360243beSMatthias Ringwaldall: ${EXAMPLES_USING_LE}
346807484cSMatthias Ringwald
35