1e72b198fSMatthias Ringwald# Makefile for libusb based examples 2e72b198fSMatthias RingwaldBTSTACK_ROOT = ../.. 3e72b198fSMatthias Ringwald 4e72b198fSMatthias RingwaldCORE += \ 5e72b198fSMatthias Ringwald btstack_chipset_da14581.c \ 6e72b198fSMatthias Ringwald hci_581_active_uart.c \ 7e72b198fSMatthias Ringwald btstack_link_key_db_fs.c \ 8e72b198fSMatthias Ringwald btstack_run_loop_posix.c \ 9*d3849e4cSMatthias Ringwald btstack_tlv_posix.c \ 10e72b198fSMatthias Ringwald btstack_uart_block_posix.c \ 11e72b198fSMatthias Ringwald hci_transport_h4.c \ 12e72b198fSMatthias Ringwald le_device_db_fs.c \ 13e72b198fSMatthias Ringwald main.c \ 1408c0d996SMatthias Ringwald wav_util.c \ 15c5e6180eSMatthias Ringwald btstack_stdin_posix.c \ 16e72b198fSMatthias Ringwald 17e72b198fSMatthias Ringwald# examples 18e72b198fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/Makefile.inc 19e72b198fSMatthias Ringwald 20e72b198fSMatthias RingwaldCFLAGS += -g -Wall -Werror \ 21e72b198fSMatthias Ringwald -I$(BTSTACK_ROOT)/platform/posix \ 22e72b198fSMatthias Ringwald -I$(BTSTACK_ROOT)/chipset/da14581 \ 23e72b198fSMatthias Ringwald -I$(BTSTACK_ROOT)/platform/embedded \ 24d08566fbSMatthias Ringwald -I${BTSTACK_ROOT}/3rd-party/tinydir 25e72b198fSMatthias Ringwald 26e72b198fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix 27e72b198fSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/da14581 28e72b198fSMatthias Ringwald 29e72b198fSMatthias Ringwaldifeq ($(OS),Windows_NT) 30e72b198fSMatthias RingwaldLDFLAGS += -lws2_32 31e72b198fSMatthias Ringwaldendif 32e72b198fSMatthias Ringwald 33e72b198fSMatthias Ringwald# Command Line examples require porting to win32, so only build on other unix-ish hosts 34e72b198fSMatthias Ringwaldifneq ($(OS),Windows_NT) 35e72b198fSMatthias RingwaldEXAMPLES += ${EXAMPLES_CLI} 36e72b198fSMatthias Ringwaldendif 37e72b198fSMatthias Ringwald 38e72b198fSMatthias Ringwald# use pkg-config for portaudio 39e72b198fSMatthias Ringwald# CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO 40e72b198fSMatthias Ringwald# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs) 41e72b198fSMatthias Ringwald# hard coded flags for portaudio in /usr/local/lib 42e72b198fSMatthias Ringwald# CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO 43e72b198fSMatthias Ringwald# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon 44e72b198fSMatthias Ringwald 45e72b198fSMatthias Ringwaldall: ${EXAMPLES} 46e72b198fSMatthias Ringwald 47