2017-01-04 21:59:26 +01:00
|
|
|
# Makefile for windows WinUSB based examples
|
2019-04-15 14:34:59 +02:00
|
|
|
BTSTACK_ROOT ?= ../..
|
2017-01-04 21:59:26 +01:00
|
|
|
|
2022-04-29 11:46:26 +02:00
|
|
|
CORE += main.c btstack_stdin_windows.c btstack_tlv_windows.c hci_dump_windows_fs.c
|
2017-01-04 21:59:26 +01:00
|
|
|
|
2021-03-08 10:32:19 +01: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 14:54:15 +02:00
|
|
|
COMMON += rijndael.c
|
2017-01-04 21:59:26 +01:00
|
|
|
|
|
|
|
include ${BTSTACK_ROOT}/example/Makefile.inc
|
|
|
|
|
|
|
|
# CC = gcc-fsf-4.9
|
2021-06-30 23:10:42 +02:00
|
|
|
CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Werror
|
2017-01-04 21:59:26 +01:00
|
|
|
|
|
|
|
CFLAGS += -I${BTSTACK_ROOT}/platform/windows \
|
|
|
|
-I${BTSTACK_ROOT}/platform/posix \
|
2018-02-05 17:56:29 +01:00
|
|
|
-I${BTSTACK_ROOT}/platform/embedded \
|
2020-01-16 15:29:48 +01:00
|
|
|
-I${BTSTACK_ROOT}/3rd-party/rijndael \
|
|
|
|
-I${BTSTACK_ROOT}/3rd-party/tinydir
|
|
|
|
|
|
|
|
VPATH += ${BTSTACK_ROOT}/3rd-party/rijndael
|
2017-01-04 21:59:26 +01:00
|
|
|
|
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/embedded
|
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/posix
|
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/windows
|
2018-02-20 09:47:15 +01:00
|
|
|
VPATH += ${BTSTACK_ROOT}/chipset/csr
|
2017-01-04 21:59:26 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2019-06-21 10:45:17 +02:00
|
|
|
EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE}
|
2018-02-20 09:47:15 +01:00
|
|
|
EXAMPLES += csr_set_bd_addr
|
2019-06-08 23:43:25 +02:00
|
|
|
EXAMPLES += pan_lwip_http_server
|
|
|
|
|
2018-02-20 09:47:15 +01:00
|
|
|
csr_set_bd_addr: ${CORE_OBJ} ${COMMON_OBJ} btstack_chipset_csr.o csr_set_bd_addr.o
|
|
|
|
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
|
2017-01-04 21:59:26 +01:00
|
|
|
|
|
|
|
all: ${EXAMPLES}
|