xref: /btstack/port/windows-winusb-intel/Makefile (revision 0561b2d8d5dba972c7daa57d5e677f7a1327edfd)
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
28EXAMPLES += pan_lwip_http_server
29
30# use pkg-config for portaudio
31# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
32# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
33# hard coded flags for portaudio in /usr/local/lib
34# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
35# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
36
37LDFLAGS += -lsetupapi -lwinusb
38
39clean: clean-intel
40
41all: all-intel ${EXAMPLES}
42