1*6807484cSMatthias Ringwald# Makefile for posix-h4 based examples 2*6807484cSMatthias RingwaldBTSTACK_ROOT = ../.. 3*6807484cSMatthias Ringwald 4*6807484cSMatthias RingwaldCORE += \ 5*6807484cSMatthias Ringwald btstack_link_key_db_fs.c \ 6*6807484cSMatthias Ringwald btstack_run_loop_posix.c \ 7*6807484cSMatthias Ringwald btstack_uart_block_posix.c \ 8*6807484cSMatthias Ringwald hci_transport_h4.c \ 9*6807484cSMatthias Ringwald le_device_db_fs.c \ 10*6807484cSMatthias Ringwald main.c \ 11*6807484cSMatthias Ringwald btstack_stdin_posix.c \ 12*6807484cSMatthias Ringwald wav_util.c \ 13*6807484cSMatthias Ringwald 14*6807484cSMatthias Ringwald# examples 15*6807484cSMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/Makefile.inc 16*6807484cSMatthias Ringwald 17*6807484cSMatthias RingwaldCFLAGS += -g -Wall -Werror \ 18*6807484cSMatthias Ringwald -I$(BTSTACK_ROOT)/platform/embedded \ 19*6807484cSMatthias Ringwald -I$(BTSTACK_ROOT)/platform/posix \ 20*6807484cSMatthias Ringwald 21*6807484cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix 22*6807484cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/embedded 23*6807484cSMatthias Ringwald 24*6807484cSMatthias Ringwald# use pkg-config for portaudio 25*6807484cSMatthias Ringwald# CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO 26*6807484cSMatthias Ringwald# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs) 27*6807484cSMatthias Ringwald# hard coded flags for portaudio in /usr/local/lib 28*6807484cSMatthias Ringwald# CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO 29*6807484cSMatthias Ringwald# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon 30*6807484cSMatthias Ringwald 31*6807484cSMatthias Ringwaldall: ${EXAMPLES} 32*6807484cSMatthias Ringwald 33