xref: /btstack/port/posix-h4/Makefile (revision 1fbe4564be530ba975f4cd70443a76f0afda5276)
1# Makefile for libusb based examples
2BTSTACK_ROOT ?= ../..
3
4CORE += \
5	bluetooth_init_cc2564B_1.6_BT_Spec_4.1.c \
6	btstack_chipset_bcm.c \
7	btstack_chipset_cc256x.c \
8	btstack_chipset_csr.c \
9	btstack_chipset_em9301.c \
10	btstack_chipset_stlc2500d.c \
11	btstack_chipset_tc3566x.c \
12	btstack_link_key_db_fs.c \
13	btstack_run_loop_posix.c \
14	btstack_tlv_posix.c \
15	btstack_uart_block_posix.c \
16	hci_transport_h4.c \
17	le_device_db_fs.c \
18	main.c \
19	btstack_stdin_posix.c \
20	wav_util.c 					\
21	0000000_META_hci_patches_v7.c \
22	# bluetooth_init_cc2564_2.14.c \
23	# bluetooth_init_cc2564C_1.0.c \
24
25# TI-WL183x requires TIInit_11.8.32.c
26
27# examples
28include ${BTSTACK_ROOT}/example/Makefile.inc
29
30# fetch and convert TI init scripts
31include ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc
32
33# fetch Broadcom init scripts
34include ${BTSTACK_ROOT}/chipset/bcm/Makefile.inc
35
36CFLAGS  += -g -Wall -Werror \
37	-I$(BTSTACK_ROOT)/platform/embedded \
38	-I$(BTSTACK_ROOT)/platform/posix \
39	-I$(BTSTACK_ROOT)/chipset/bcm \
40	-I$(BTSTACK_ROOT)/chipset/cc256x \
41	-I$(BTSTACK_ROOT)/chipset/csr \
42	-I$(BTSTACK_ROOT)/chipset/em9301 \
43	-I$(BTSTACK_ROOT)/chipset/stlc2500d \
44	-I$(BTSTACK_ROOT)/chipset/tc3566x \
45    -I${BTSTACK_ROOT}/3rd-party/tinydir
46
47VPATH += ${BTSTACK_ROOT}/platform/posix
48VPATH += ${BTSTACK_ROOT}/platform/embedded
49
50VPATH += ${BTSTACK_ROOT}/chipset/bcm
51VPATH += ${BTSTACK_ROOT}/chipset/cc256x
52VPATH += ${BTSTACK_ROOT}/chipset/csr
53VPATH += ${BTSTACK_ROOT}/chipset/em9301
54VPATH += ${BTSTACK_ROOT}/chipset/stlc2500d
55VPATH += ${BTSTACK_ROOT}/chipset/tc3566x
56
57EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE}
58EXAMPLES += pan_lwip_http_server
59
60# use pkg-config for portaudio
61# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
62# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
63# hard coded flags for portaudio in /usr/local/lib
64# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
65# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
66
67all: BCM43430A1.hcd ${EXAMPLES}
68
69