194a5538cSMatthias Ringwald# Makefile for libusb based examples 2f67eb7c2SMatthias RingwaldBTSTACK_ROOT ?= ../.. 394a5538cSMatthias Ringwald 494a5538cSMatthias RingwaldCORE += \ 53d919a60SMatthias Ringwald bluetooth_init_cc2564B_1.8_BT_Spec_4.1.c \ 694a5538cSMatthias Ringwald btstack_chipset_cc256x.c \ 794a5538cSMatthias Ringwald btstack_chipset_csr.c \ 894a5538cSMatthias Ringwald btstack_chipset_em9301.c \ 994a5538cSMatthias Ringwald btstack_chipset_stlc2500d.c \ 1094a5538cSMatthias Ringwald btstack_chipset_tc3566x.c \ 1181862996SMatthias Ringwald btstack_link_key_db_tlv.c \ 1294a5538cSMatthias Ringwald btstack_run_loop_posix.c \ 13d3849e4cSMatthias Ringwald btstack_tlv_posix.c \ 1479530e37SMatthias Ringwald btstack_uart_posix.c \ 1594a5538cSMatthias Ringwald btstack_slip.c \ 167435ec7bSMatthias Ringwald hci_dump_posix_fs.c \ 1794a5538cSMatthias Ringwald hci_transport_h5.c \ 1881862996SMatthias Ringwald le_device_db_tlv.c \ 1994a5538cSMatthias Ringwald main.c \ 2008c0d996SMatthias Ringwald wav_util.c \ 21ac7408dfSTaras Zaporozhets btstack_stdin_posix.c \ 22*f11fd9a9SMatthias Ringwald btstack_signal.c \ 2394a5538cSMatthias Ringwald 2494a5538cSMatthias Ringwald# TI-WL183x requires TIInit_11.8.32.c 2594a5538cSMatthias Ringwald 2694a5538cSMatthias Ringwald# examples 2794a5538cSMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/Makefile.inc 2894a5538cSMatthias Ringwald 2994a5538cSMatthias Ringwald# fetch and convert TI init scripts 3094a5538cSMatthias Ringwaldinclude ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc 3194a5538cSMatthias Ringwald 3294a5538cSMatthias RingwaldCFLAGS += -g -Wall -Werror \ 3394a5538cSMatthias Ringwald -I$(BTSTACK_ROOT)/platform/embedded \ 3494a5538cSMatthias Ringwald -I$(BTSTACK_ROOT)/platform/posix \ 3594a5538cSMatthias Ringwald -I$(BTSTACK_ROOT)/chipset/cc256x \ 3694a5538cSMatthias Ringwald -I$(BTSTACK_ROOT)/chipset/csr \ 3794a5538cSMatthias Ringwald -I$(BTSTACK_ROOT)/chipset/em9301 \ 3894a5538cSMatthias Ringwald -I$(BTSTACK_ROOT)/chipset/stlc2500d \ 3994a5538cSMatthias Ringwald -I$(BTSTACK_ROOT)/chipset/tc3566x \ 40d08566fbSMatthias Ringwald -I${BTSTACK_ROOT}/3rd-party/tinydir 4194a5538cSMatthias Ringwald 42*f11fd9a9SMatthias Ringwald# add pthread for ctrl-c signal handler 43*f11fd9a9SMatthias RingwaldLDFLAGS += -lpthread 44*f11fd9a9SMatthias Ringwald 4594a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix 4694a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/embedded 4794a5538cSMatthias Ringwald 4894a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/cc256x 4994a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/csr 5094a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/em9301 5194a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/stlc2500d 5294a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/tc3566x 5394a5538cSMatthias Ringwald 54bdc352b1SMatthias RingwaldEXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE} 55db3b626eSMatthias RingwaldEXAMPLES += pan_lwip_http_server 5694a5538cSMatthias Ringwald 57185c8cd4SMatthias Ringwald# use pkg-config for portaudio 58185c8cd4SMatthias Ringwald# CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO 59185c8cd4SMatthias Ringwald# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs) 60185c8cd4SMatthias Ringwald# hard coded flags for portaudio in /usr/local/lib 61185c8cd4SMatthias Ringwald# CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO 62185c8cd4SMatthias Ringwald# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon 63185c8cd4SMatthias Ringwald 6494a5538cSMatthias Ringwaldall: ${EXAMPLES} 65