xref: /btstack/port/posix-h4-atwilc3000/Makefile (revision 0561b2d8d5dba972c7daa57d5e677f7a1327edfd)
1# Makefile for libusb based examples
2BTSTACK_ROOT ?= ../..
3
4CORE += \
5	btstack_chipset_atwilc3000.c \
6	btstack_link_key_db_tlv.c \
7	btstack_run_loop_posix.c \
8	btstack_tlv_posix.c \
9	btstack_uart_block_posix.c \
10	hci_transport_h4.c \
11	le_device_db_tlv.c \
12	main.c \
13	wav_util.c 					\
14	btstack_stdin_posix.c \
15
16# examples
17include ${BTSTACK_ROOT}/example/Makefile.inc
18
19# firmware
20include ${BTSTACK_ROOT}/chipset/atwilc3000/Makefile.inc
21
22all: wilc3000_ble_firmware.h
23
24CFLAGS  += -g -Wall -Werror \
25	-I$(BTSTACK_ROOT)/platform/posix \
26	-I$(BTSTACK_ROOT)/chipset/atwilc3000 \
27	-I$(BTSTACK_ROOT)/platform/embedded \
28	-I${BTSTACK_ROOT}/3rd-party/tinydir
29
30VPATH += ${BTSTACK_ROOT}/platform/posix
31VPATH += ${BTSTACK_ROOT}/chipset/atwilc3000
32
33EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_LE_ONLY}
34
35# use pkg-config for portaudio
36# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
37# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
38# hard coded flags for portaudio in /usr/local/lib
39# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
40# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
41
42all: ${EXAMPLES}
43