1*1182cb7eSMatthias Ringwald# Makefile for libusb based examples 2*1182cb7eSMatthias RingwaldBTSTACK_ROOT ?= ../.. 3*1182cb7eSMatthias Ringwald 4*1182cb7eSMatthias RingwaldCORE += \ 5*1182cb7eSMatthias Ringwald btstack_chipset_bcm.c \ 6*1182cb7eSMatthias Ringwald btstack_chipset_bcm_download_firmware.c \ 7*1182cb7eSMatthias Ringwald btstack_link_key_db_tlv.c \ 8*1182cb7eSMatthias Ringwald btstack_run_loop_posix.c \ 9*1182cb7eSMatthias Ringwald btstack_tlv_posix.c \ 10*1182cb7eSMatthias Ringwald btstack_uart_posix.c \ 11*1182cb7eSMatthias Ringwald btstack_slip.c \ 12*1182cb7eSMatthias Ringwald hci_transport_h5.c \ 13*1182cb7eSMatthias Ringwald le_device_db_tlv.c \ 14*1182cb7eSMatthias Ringwald rijndael.c \ 15*1182cb7eSMatthias Ringwald main.c \ 16*1182cb7eSMatthias Ringwald wav_util.c \ 17*1182cb7eSMatthias Ringwald btstack_stdin_posix.c \ 18*1182cb7eSMatthias Ringwald 19*1182cb7eSMatthias Ringwald# examples 20*1182cb7eSMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/Makefile.inc 21*1182cb7eSMatthias Ringwald 22*1182cb7eSMatthias Ringwald# fetch Broadcom init scripts 23*1182cb7eSMatthias Ringwaldinclude ${BTSTACK_ROOT}/chipset/bcm/Makefile.inc 24*1182cb7eSMatthias Ringwald 25*1182cb7eSMatthias RingwaldCFLAGS += -g -Wall -Werror \ 26*1182cb7eSMatthias Ringwald -I$(BTSTACK_ROOT)/platform/embedded \ 27*1182cb7eSMatthias Ringwald -I$(BTSTACK_ROOT)/platform/posix \ 28*1182cb7eSMatthias Ringwald -I$(BTSTACK_ROOT)/chipset/bcm \ 29*1182cb7eSMatthias Ringwald -I${BTSTACK_ROOT}/3rd-party/rijndael \ 30*1182cb7eSMatthias Ringwald -I${BTSTACK_ROOT}/3rd-party/tinydir 31*1182cb7eSMatthias Ringwald 32*1182cb7eSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/rijndael 33*1182cb7eSMatthias Ringwald 34*1182cb7eSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix 35*1182cb7eSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/embedded 36*1182cb7eSMatthias Ringwald 37*1182cb7eSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/bcm 38*1182cb7eSMatthias Ringwald 39*1182cb7eSMatthias RingwaldEXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE} 40*1182cb7eSMatthias RingwaldEXAMPLES += pan_lwip_http_server 41*1182cb7eSMatthias Ringwald 42*1182cb7eSMatthias Ringwald# use pkg-config for portaudio 43*1182cb7eSMatthias Ringwald# CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO 44*1182cb7eSMatthias Ringwald# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs) 45*1182cb7eSMatthias Ringwald# hard coded flags for portaudio in /usr/local/lib 46*1182cb7eSMatthias Ringwald# CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO 47*1182cb7eSMatthias Ringwald# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon 48*1182cb7eSMatthias Ringwald 49*1182cb7eSMatthias Ringwaldall: ${EXAMPLES} 50