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