xref: /btstack/port/raspi/Makefile (revision 63ff2b1e64a6f7fe8fbdd0ac1abfc703a433f88e)
1f5c04f62SMatthias Ringwald# Makefile for Raspberry Pi
2f5c04f62SMatthias RingwaldBTSTACK_ROOT = ../..
3f5c04f62SMatthias Ringwald
4f5c04f62SMatthias RingwaldCORE += \
5f5c04f62SMatthias Ringwald	btstack_chipset_bcm.c \
6f5c04f62SMatthias Ringwald	btstack_chipset_bcm_download_firmware.c \
711e995b1SMatthias Ringwald	btstack_control_raspi.c \
8f5c04f62SMatthias Ringwald	btstack_link_key_db_fs.c \
9f5c04f62SMatthias Ringwald	btstack_run_loop_posix.c \
1072f99eadSMatthias Ringwald	btstack_tlv_posix.c \
11f5c04f62SMatthias Ringwald	btstack_uart_block_posix.c \
12f5c04f62SMatthias Ringwald	btstack_slip.c \
136e4c47b0SMatthias Ringwald	hci_transport_h4.c \
14f5c04f62SMatthias Ringwald	hci_transport_h5.c \
15f5c04f62SMatthias Ringwald	le_device_db_fs.c \
16f5c04f62SMatthias Ringwald	main.c \
17f5c04f62SMatthias Ringwald	wav_util.c 					\
18f5c04f62SMatthias Ringwald	btstack_stdin_posix.c \
19*63ff2b1eSDirk Helbig	raspi_get_model.c
20f5c04f62SMatthias Ringwald
21f5c04f62SMatthias Ringwald# examples
22f5c04f62SMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/Makefile.inc
23f5c04f62SMatthias Ringwald
24f5c04f62SMatthias Ringwald# use (cross)compiler for Raspi
25f5c04f62SMatthias RingwaldCC = arm-linux-gnueabihf-gcc
26f5c04f62SMatthias Ringwald
27f5c04f62SMatthias RingwaldCFLAGS  += -g -Wall -Werror \
28f5c04f62SMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/embedded \
29f5c04f62SMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/posix \
30f5c04f62SMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/bcm \
31f5c04f62SMatthias Ringwald	-I${BTSTACK_ROOT}/3rd-party/tinydir
32f5c04f62SMatthias Ringwald
33f5c04f62SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix
34f5c04f62SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/embedded
35f5c04f62SMatthias Ringwald
36f5c04f62SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/bcm
37f5c04f62SMatthias Ringwald
38f5c04f62SMatthias Ringwald# use pkg-config for portaudio
39f5c04f62SMatthias Ringwald# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
40f5c04f62SMatthias Ringwald# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
41f5c04f62SMatthias Ringwald# hard coded flags for portaudio in /usr/local/lib
42f5c04f62SMatthias Ringwald# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
43f5c04f62SMatthias Ringwald# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
44f5c04f62SMatthias Ringwald
45f5c04f62SMatthias Ringwaldall: ${EXAMPLES}
46