2017-07-23 18:14:12 +02:00
|
|
|
# Makefile for libusb based examples
|
2019-04-15 14:34:59 +02:00
|
|
|
BTSTACK_ROOT ?= ../..
|
2017-07-23 18:14:12 +02:00
|
|
|
|
|
|
|
CORE += \
|
|
|
|
btstack_chipset_atwilc3000.c \
|
|
|
|
btstack_run_loop_posix.c \
|
2018-07-29 10:29:48 +02:00
|
|
|
btstack_tlv_posix.c \
|
2021-03-02 15:54:23 +01:00
|
|
|
btstack_uart_posix.c \
|
2021-03-09 16:39:03 +01:00
|
|
|
hci_dump_posix_fs.c \
|
2017-07-23 18:14:12 +02:00
|
|
|
hci_transport_h4.c \
|
2019-10-09 12:15:05 +02:00
|
|
|
le_device_db_tlv.c \
|
2017-07-23 18:14:12 +02:00
|
|
|
main.c \
|
|
|
|
wav_util.c \
|
|
|
|
btstack_stdin_posix.c \
|
2021-07-01 22:12:30 +02:00
|
|
|
btstack_signal.c \
|
2017-07-23 18:14:12 +02:00
|
|
|
|
|
|
|
# examples
|
2020-09-11 16:55:08 +02:00
|
|
|
CLASSIC =
|
2017-07-23 18:14:12 +02:00
|
|
|
include ${BTSTACK_ROOT}/example/Makefile.inc
|
|
|
|
|
2017-08-10 15:25:04 +02:00
|
|
|
# firmware
|
|
|
|
include ${BTSTACK_ROOT}/chipset/atwilc3000/Makefile.inc
|
|
|
|
|
2018-07-29 11:06:23 +02:00
|
|
|
all: wilc3000_ble_firmware.h
|
|
|
|
|
2017-07-23 18:14:12 +02:00
|
|
|
CFLAGS += -g -Wall -Werror \
|
|
|
|
-I$(BTSTACK_ROOT)/platform/posix \
|
|
|
|
-I$(BTSTACK_ROOT)/chipset/atwilc3000 \
|
|
|
|
-I$(BTSTACK_ROOT)/platform/embedded \
|
2018-02-05 17:56:29 +01:00
|
|
|
-I${BTSTACK_ROOT}/3rd-party/tinydir
|
2017-07-23 18:14:12 +02:00
|
|
|
|
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/posix
|
|
|
|
VPATH += ${BTSTACK_ROOT}/chipset/atwilc3000
|
|
|
|
|
2021-07-01 22:12:30 +02:00
|
|
|
# add pthread for ctrl-c signal handler
|
|
|
|
LDFLAGS += -lpthread
|
|
|
|
|
2019-06-21 10:45:17 +02:00
|
|
|
EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_LE_ONLY}
|
2017-07-23 18:14:12 +02:00
|
|
|
|
|
|
|
# use pkg-config for portaudio
|
|
|
|
# CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
|
|
|
|
# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
|
|
|
|
# hard coded flags for portaudio in /usr/local/lib
|
|
|
|
# CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO
|
|
|
|
# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
|
|
|
|
|
|
|
|
all: ${EXAMPLES}
|