xref: /btstack/port/archive/posix-h5-bcm/Makefile (revision 1182cb7ea894b41819446c5518b6753290421863)
1# Makefile for libusb based examples
2BTSTACK_ROOT ?= ../..
3
4CORE += \
5	btstack_chipset_bcm.c \
6	btstack_chipset_bcm_download_firmware.c \
7	btstack_link_key_db_tlv.c \
8	btstack_run_loop_posix.c \
9	btstack_tlv_posix.c \
10	btstack_uart_posix.c \
11	btstack_slip.c \
12	hci_transport_h5.c \
13	le_device_db_tlv.c \
14	rijndael.c \
15	main.c \
16	wav_util.c 					\
17	btstack_stdin_posix.c \
18
19# examples
20include ${BTSTACK_ROOT}/example/Makefile.inc
21
22# fetch Broadcom init scripts
23include ${BTSTACK_ROOT}/chipset/bcm/Makefile.inc
24
25CFLAGS  += -g -Wall -Werror \
26	-I$(BTSTACK_ROOT)/platform/embedded \
27	-I$(BTSTACK_ROOT)/platform/posix \
28	-I$(BTSTACK_ROOT)/chipset/bcm \
29    -I${BTSTACK_ROOT}/3rd-party/rijndael \
30    -I${BTSTACK_ROOT}/3rd-party/tinydir
31
32VPATH += ${BTSTACK_ROOT}/3rd-party/rijndael
33
34VPATH += ${BTSTACK_ROOT}/platform/posix
35VPATH += ${BTSTACK_ROOT}/platform/embedded
36
37VPATH += ${BTSTACK_ROOT}/chipset/bcm
38
39EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE}
40EXAMPLES += pan_lwip_http_server
41
42# use pkg-config for portaudio
43# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
44# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
45# hard coded flags for portaudio in /usr/local/lib
46# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
47# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
48
49all: ${EXAMPLES}
50