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 \
|
2018-07-24 18:55:40 +00:00
|
|
|
btstack_link_key_db_fs.c \
|
|
|
|
btstack_run_loop_posix.c \
|
2018-07-29 09:13:20 +00:00
|
|
|
btstack_tlv_posix.c \
|
2018-07-24 18:55:40 +00:00
|
|
|
btstack_uart_block_posix.c \
|
|
|
|
btstack_slip.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 \
|
|
|
|
le_device_db_fs.c \
|
|
|
|
main.c \
|
|
|
|
wav_util.c \
|
|
|
|
btstack_stdin_posix.c \
|
2019-02-03 20:16:34 +00:00
|
|
|
raspi_get_model.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 \
|
|
|
|
-I${BTSTACK_ROOT}/3rd-party/tinydir
|
|
|
|
|
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/posix
|
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/embedded
|
|
|
|
|
|
|
|
VPATH += ${BTSTACK_ROOT}/chipset/bcm
|
|
|
|
|
|
|
|
# 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}
|