xref: /btstack/port/posix-h4-atwilc3000/Makefile (revision f11fd9a990fedbf11b7c70e38b9da44019506e13)
1# Makefile for libusb based examples
2BTSTACK_ROOT ?= ../..
3
4CORE += \
5	btstack_chipset_atwilc3000.c \
6	btstack_run_loop_posix.c \
7	btstack_tlv_posix.c \
8	btstack_uart_posix.c \
9	hci_dump_posix_fs.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	btstack_signal.c \
16
17# examples
18CLASSIC =
19include ${BTSTACK_ROOT}/example/Makefile.inc
20
21# firmware
22include ${BTSTACK_ROOT}/chipset/atwilc3000/Makefile.inc
23
24all: wilc3000_ble_firmware.h
25
26CFLAGS  += -g -Wall -Werror \
27	-I$(BTSTACK_ROOT)/platform/posix \
28	-I$(BTSTACK_ROOT)/chipset/atwilc3000 \
29	-I$(BTSTACK_ROOT)/platform/embedded \
30	-I${BTSTACK_ROOT}/3rd-party/tinydir
31
32VPATH += ${BTSTACK_ROOT}/platform/posix
33VPATH += ${BTSTACK_ROOT}/chipset/atwilc3000
34
35# add pthread for ctrl-c signal handler
36LDFLAGS += -lpthread
37
38EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_LE_ONLY}
39
40# use pkg-config for portaudio
41# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
42# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
43# hard coded flags for portaudio in /usr/local/lib
44# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
45# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
46
47all: ${EXAMPLES}
48