xref: /btstack/port/windows-winusb-intel/Makefile (revision b29e92f97ffd81bc8a1057634c8d1552fc963a6a)
1# Makefile for windows WinUSB based examples
2BTSTACK_ROOT ?= ../..
3
4CORE += main.c btstack_stdin_windows.c btstack_tlv_windows.c hci_dump_windows_fs.c
5
6COMMON  += hci_transport_h2_winusb.c btstack_run_loop_windows.c le_device_db_tlv.c btstack_link_key_db_tlv.c wav_util.c
7COMMON  += btstack_chipset_intel_firmware.c rijndael.c
8
9include ${BTSTACK_ROOT}/example/Makefile.inc
10include ${BTSTACK_ROOT}/chipset/intel/Makefile.inc
11
12# CC = gcc-fsf-4.9
13CFLAGS  += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -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/rijndael \
20          -I${BTSTACK_ROOT}/3rd-party/tinydir
21
22VPATH += ${BTSTACK_ROOT}/3rd-party/rijndael
23VPATH += ${BTSTACK_ROOT}/platform/embedded
24VPATH += ${BTSTACK_ROOT}/platform/posix
25VPATH += ${BTSTACK_ROOT}/platform/windows
26VPATH += ${BTSTACK_ROOT}/chipset/csr
27VPATH += ${BTSTACK_ROOT}/chipset/intel
28
29# use pkg-config for portaudio
30# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
31# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
32# hard coded flags for portaudio in /usr/local/lib
33# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
34# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
35
36LDFLAGS += -lsetupapi -lwinusb
37
38EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE}
39EXAMPLES += csr_set_bd_addr
40EXAMPLES += pan_lwip_http_server
41
42csr_set_bd_addr: ${CORE_OBJ} ${COMMON_OBJ} btstack_chipset_csr.o csr_set_bd_addr.o
43	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
44
45all: ${EXAMPLES}
46