2018-09-21 09:38:26 +00:00
|
|
|
# Makefile for windows WinUSB based examples
|
2019-04-15 12:34:59 +00:00
|
|
|
BTSTACK_ROOT ?= ../..
|
2018-09-21 09:38:26 +00:00
|
|
|
|
2022-04-29 09:46:26 +00:00
|
|
|
CORE += main.c btstack_stdin_windows.c btstack_tlv_windows.c hci_dump_windows_fs.c
|
2018-09-21 09:38:26 +00:00
|
|
|
|
2021-03-08 09:32:19 +00:00
|
|
|
COMMON += hci_transport_h2_winusb.c btstack_run_loop_windows.c le_device_db_tlv.c btstack_link_key_db_tlv.c wav_util.c
|
2020-06-22 12:57:51 +00:00
|
|
|
COMMON += btstack_chipset_intel_firmware.c rijndael.c
|
2018-09-21 09:38:26 +00:00
|
|
|
|
|
|
|
include ${BTSTACK_ROOT}/example/Makefile.inc
|
|
|
|
include ${BTSTACK_ROOT}/chipset/intel/Makefile.inc
|
|
|
|
|
|
|
|
# CC = gcc-fsf-4.9
|
2021-06-30 21:10:42 +00:00
|
|
|
CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Werror
|
2018-09-21 09:38:26 +00:00
|
|
|
|
|
|
|
CFLAGS += -I${BTSTACK_ROOT}/platform/windows \
|
|
|
|
-I${BTSTACK_ROOT}/platform/posix \
|
|
|
|
-I${BTSTACK_ROOT}/chipset/intel \
|
|
|
|
-I${BTSTACK_ROOT}/platform/embedded \
|
2020-06-22 12:57:51 +00:00
|
|
|
-I${BTSTACK_ROOT}/3rd-party/rijndael \
|
|
|
|
-I${BTSTACK_ROOT}/3rd-party/tinydir
|
2018-09-21 09:38:26 +00:00
|
|
|
|
2020-06-22 14:27:42 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/3rd-party/rijndael
|
2018-09-21 09:38:26 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/embedded
|
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/posix
|
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/windows
|
|
|
|
VPATH += ${BTSTACK_ROOT}/chipset/csr
|
|
|
|
VPATH += ${BTSTACK_ROOT}/chipset/intel
|
|
|
|
|
|
|
|
# use pkg-config for portaudio
|
|
|
|
# CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
|
|
|
|
# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
|
|
|
|
# hard coded flags for portaudio in /usr/local/lib
|
|
|
|
# CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO
|
|
|
|
# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
|
|
|
|
|
|
|
|
LDFLAGS += -lsetupapi -lwinusb
|
|
|
|
|
2020-06-22 12:57:51 +00:00
|
|
|
EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE}
|
|
|
|
EXAMPLES += csr_set_bd_addr
|
|
|
|
EXAMPLES += pan_lwip_http_server
|
|
|
|
|
|
|
|
csr_set_bd_addr: ${CORE_OBJ} ${COMMON_OBJ} btstack_chipset_csr.o csr_set_bd_addr.o
|
|
|
|
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
|
2018-09-21 09:38:26 +00:00
|
|
|
|
2020-06-22 12:57:51 +00:00
|
|
|
all: ${EXAMPLES}
|