1f5c04f62SMatthias Ringwald# Makefile for Raspberry Pi 2f67eb7c2SMatthias 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 \ 1963ff2b1eSDirk 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 33*6c81f8f2SMatthias Ringwald# add 'real time' lib for clock_gettime 34*6c81f8f2SMatthias RingwaldLDFLAGS += -lrt 35*6c81f8f2SMatthias Ringwald 36f5c04f62SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix 37f5c04f62SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/embedded 38f5c04f62SMatthias Ringwald 39f5c04f62SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/bcm 40f5c04f62SMatthias Ringwald 41bdc352b1SMatthias RingwaldEXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE} 42db3b626eSMatthias RingwaldEXAMPLES += pan_lwip_http_server 43db3b626eSMatthias Ringwald 44f5c04f62SMatthias Ringwald# use pkg-config for portaudio 45f5c04f62SMatthias Ringwald# CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO 46f5c04f62SMatthias Ringwald# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs) 47f5c04f62SMatthias Ringwald# hard coded flags for portaudio in /usr/local/lib 48f5c04f62SMatthias Ringwald# CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO 49f5c04f62SMatthias Ringwald# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon 50f5c04f62SMatthias Ringwald 51f5c04f62SMatthias Ringwaldall: ${EXAMPLES} 52