btstack/port/raspi/Makefile

62 lines
1.6 KiB
Makefile
Raw Normal View History

2018-07-24 18:55:40 +00:00
# Makefile for Raspberry Pi
BTSTACK_ROOT ?= ../..
2018-07-24 18:55:40 +00:00
CORE += \
btstack_chipset_bcm.c \
btstack_chipset_bcm_download_firmware.c \
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 \
btstack_uart_posix.c \
2018-07-24 18:55:40 +00:00
btstack_slip.c \
hci_dump_posix_fs.c \
hci_transport_h4.c \
2018-07-24 18:55:40 +00:00
hci_transport_h5.c \
le_device_db_tlv.c \
2018-07-24 18:55:40 +00:00
main.c \
wav_util.c \
btstack_stdin_posix.c \
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
# add 'real time' lib for clock_gettime,
2019-10-30 10:28:08 +00:00
LDFLAGS += -lrt
# 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
EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE}
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}