2017-01-04 20:59:26 +00:00
|
|
|
# Makefile for windows WinUSB based examples
|
2019-04-15 12:34:59 +00:00
|
|
|
BTSTACK_ROOT ?= ../..
|
2017-01-04 20:59:26 +00:00
|
|
|
|
2017-05-25 20:26:15 +00:00
|
|
|
CORE += main.c btstack_stdin_windows.c
|
2017-01-04 20:59:26 +00:00
|
|
|
|
2018-07-20 15:29:15 +00:00
|
|
|
COMMON += hci_transport_h2_winusb.c btstack_run_loop_windows.c le_device_db_fs.c btstack_link_key_db_fs.c wav_util.c
|
2018-09-21 09:38:26 +00:00
|
|
|
COMMON += btstack_chipset_intel_firmware.c
|
2017-01-04 20:59:26 +00:00
|
|
|
|
|
|
|
include ${BTSTACK_ROOT}/example/Makefile.inc
|
|
|
|
|
|
|
|
# CC = gcc-fsf-4.9
|
2018-09-21 09:38:26 +00:00
|
|
|
CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpedantic
|
2017-01-04 20:59:26 +00:00
|
|
|
# CFLAGS += -Werror
|
|
|
|
|
|
|
|
CFLAGS += -I${BTSTACK_ROOT}/platform/windows \
|
|
|
|
-I${BTSTACK_ROOT}/platform/posix \
|
2018-09-21 09:38:26 +00:00
|
|
|
-I${BTSTACK_ROOT}/chipset/intel \
|
2018-02-05 16:56:29 +00:00
|
|
|
-I${BTSTACK_ROOT}/platform/embedded \
|
|
|
|
-I${BTSTACK_ROOT}/3rd-party/tinydir
|
2017-01-04 20:59:26 +00:00
|
|
|
|
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/embedded
|
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/posix
|
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/windows
|
2018-02-20 08:47:15 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/chipset/csr
|
2018-09-21 09:38:26 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/chipset/intel
|
2017-01-04 20:59:26 +00: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 08:45:17 +00:00
|
|
|
EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE}
|
2018-02-20 08:47:15 +00:00
|
|
|
EXAMPLES += csr_set_bd_addr
|
2019-06-08 21:43:25 +00:00
|
|
|
EXAMPLES += pan_lwip_http_server
|
|
|
|
|
2018-02-20 08:47:15 +00: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 20:59:26 +00:00
|
|
|
|
|
|
|
all: ${EXAMPLES}
|