2018-07-24 18:55:40 +00:00
|
|
|
# Makefile for Raspberry Pi
|
2019-04-15 12:34:59 +00:00
|
|
|
BTSTACK_ROOT ?= ../..
|
2018-07-24 18:55:40 +00:00
|
|
|
|
|
|
|
CORE += \
|
|
|
|
btstack_chipset_bcm.c \
|
|
|
|
btstack_chipset_bcm_download_firmware.c \
|
2018-07-26 06:48:36 +00:00
|
|
|
btstack_control_raspi.c \
|
2019-11-08 13:11:15 +00:00
|
|
|
btstack_link_key_db_tlv.c \
|
2018-07-24 18:55:40 +00:00
|
|
|
btstack_run_loop_posix.c \
|
2018-07-29 09:13:20 +00:00
|
|
|
btstack_tlv_posix.c \
|
2021-03-02 10:04:12 +00:00
|
|
|
btstack_uart_posix.c \
|
2018-07-24 18:55:40 +00:00
|
|
|
btstack_slip.c \
|
2021-03-09 15:39:03 +00:00
|
|
|
hci_dump_posix_fs.c \
|
2018-07-29 20:40:30 +00:00
|
|
|
hci_transport_h4.c \
|
2018-07-24 18:55:40 +00:00
|
|
|
hci_transport_h5.c \
|
2019-11-08 13:03:22 +00:00
|
|
|
le_device_db_tlv.c \
|
2018-07-24 18:55:40 +00:00
|
|
|
main.c \
|
|
|
|
wav_util.c \
|
|
|
|
btstack_stdin_posix.c \
|
2021-07-01 20:12:30 +00:00
|
|
|
btstack_signal.c \
|
2020-01-15 15:41:57 +00:00
|
|
|
raspi_get_model.c \
|
|
|
|
rijndael.c
|
2018-07-24 18:55:40 +00:00
|
|
|
|
|
|
|
# examples
|
|
|
|
include ${BTSTACK_ROOT}/example/Makefile.inc
|
|
|
|
|
|
|
|
# use (cross)compiler for Raspi
|
|
|
|
CC = arm-linux-gnueabihf-gcc
|
|
|
|
|
|
|
|
CFLAGS += -g -Wall -Werror \
|
|
|
|
-I$(BTSTACK_ROOT)/platform/embedded \
|
|
|
|
-I$(BTSTACK_ROOT)/platform/posix \
|
|
|
|
-I$(BTSTACK_ROOT)/chipset/bcm \
|
2020-01-15 15:41:57 +00:00
|
|
|
-I${BTSTACK_ROOT}/3rd-party/tinydir \
|
|
|
|
-I${BTSTACK_ROOT}/3rd-party/rijndael
|
|
|
|
|
|
|
|
|
2018-07-24 18:55:40 +00:00
|
|
|
|
2021-07-01 20:12:30 +00:00
|
|
|
# add 'real time' lib for clock_gettime,
|
2019-10-30 10:28:08 +00:00
|
|
|
LDFLAGS += -lrt
|
|
|
|
|
2021-07-01 20:12:30 +00:00
|
|
|
# add pthread for ctrl-c signal handler
|
|
|
|
LDFLAGS += -lpthread
|
|
|
|
|
2020-01-15 15:41:57 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/3rd-party/rijndael
|
2018-07-24 18:55:40 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/posix
|
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/embedded
|
|
|
|
|
|
|
|
VPATH += ${BTSTACK_ROOT}/chipset/bcm
|
|
|
|
|
2019-06-21 08:45:17 +00:00
|
|
|
EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE}
|
2019-06-07 16:05:36 +00:00
|
|
|
EXAMPLES += pan_lwip_http_server
|
|
|
|
|
2018-07-24 18:55:40 +00: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}
|