1# Makefile for windows WinUSB based examples 2BTSTACK_ROOT = ../.. 3 4CORE += main.c btstack_stdin_windows.c 5 6COMMON += hci_transport_h2_winusb.c btstack_run_loop_windows.c le_device_db_fs.c btstack_link_key_db_fs.c wav_util.c 7COMMON += btstack_chipset_intel_firmware.c 8 9include ${BTSTACK_ROOT}/example/Makefile.inc 10 11# CC = gcc-fsf-4.9 12CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpedantic 13# CFLAGS += -Werror 14 15CFLAGS += -I${BTSTACK_ROOT}/platform/windows \ 16 -I${BTSTACK_ROOT}/platform/posix \ 17 -I${BTSTACK_ROOT}/chipset/intel \ 18 -I${BTSTACK_ROOT}/platform/embedded \ 19 -I${BTSTACK_ROOT}/3rd-party/tinydir 20 21VPATH += ${BTSTACK_ROOT}/platform/embedded 22VPATH += ${BTSTACK_ROOT}/platform/posix 23VPATH += ${BTSTACK_ROOT}/platform/windows 24VPATH += ${BTSTACK_ROOT}/chipset/csr 25VPATH += ${BTSTACK_ROOT}/chipset/intel 26 27# use pkg-config for portaudio 28# CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO 29# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs) 30# hard coded flags for portaudio in /usr/local/lib 31# CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO 32# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon 33 34LDFLAGS += -lsetupapi -lwinusb 35 36# csr_set_bd_addr 37EXAMPLES += csr_set_bd_addr 38 39csr_set_bd_addr: ${CORE_OBJ} ${COMMON_OBJ} btstack_chipset_csr.o csr_set_bd_addr.o 40 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 41 42all: ${EXAMPLES} 43