xref: /btstack/port/windows-winusb-intel/Makefile (revision 225f4ba4fe806afeda1ee8519bb5f4a8ce540af2)
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
10include ${BTSTACK_ROOT}/chipset/intel/Makefile.inc
11
12# CC = gcc-fsf-4.9
13CFLAGS  += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpedantic
14# CFLAGS += -Werror
15
16CFLAGS += -I${BTSTACK_ROOT}/platform/windows \
17		  -I${BTSTACK_ROOT}/platform/posix \
18		  -I${BTSTACK_ROOT}/chipset/intel \
19		  -I${BTSTACK_ROOT}/platform/embedded \
20		  -I${BTSTACK_ROOT}/3rd-party/tinydir
21
22VPATH += ${BTSTACK_ROOT}/platform/embedded
23VPATH += ${BTSTACK_ROOT}/platform/posix
24VPATH += ${BTSTACK_ROOT}/platform/windows
25VPATH += ${BTSTACK_ROOT}/chipset/csr
26VPATH += ${BTSTACK_ROOT}/chipset/intel
27
28# use pkg-config for portaudio
29# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
30# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
31# hard coded flags for portaudio in /usr/local/lib
32# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
33# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
34
35LDFLAGS += -lsetupapi -lwinusb
36
37clean: clean-intel
38
39all: all-intel ${EXAMPLES}
40