xref: /btstack/port/windows-winusb/Makefile (revision b88bf5bffcee9077f0aa2e24c1737f841ca5849a)
15da69017SMatthias Ringwald# Makefile for windows WinUSB based examples
25da69017SMatthias RingwaldBTSTACK_ROOT = ../..
35da69017SMatthias Ringwald
47ea7688aSMatthias RingwaldCORE += main.c btstack_stdin_windows.c
55da69017SMatthias Ringwald
6*b88bf5bfSMatthias RingwaldCOMMON  += hci_transport_h2_winusb.c btstack_run_loop_windows.c le_device_db_fs.c btstack_link_key_db_fs.c wav_util.c
75da69017SMatthias Ringwald
85da69017SMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/Makefile.inc
95da69017SMatthias Ringwald
105da69017SMatthias Ringwald# CC = gcc-fsf-4.9
115da69017SMatthias RingwaldCFLAGS  += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Werror
125da69017SMatthias Ringwald# CFLAGS += -Werror
135da69017SMatthias Ringwald
145da69017SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/platform/windows \
155da69017SMatthias Ringwald		  -I${BTSTACK_ROOT}/platform/posix \
16d08566fbSMatthias Ringwald		  -I${BTSTACK_ROOT}/platform/embedded \
17d08566fbSMatthias Ringwald		  -I${BTSTACK_ROOT}/3rd-party/tinydir
185da69017SMatthias Ringwald
195da69017SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/embedded
205da69017SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix
215da69017SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/windows
22531729b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/csr
235da69017SMatthias Ringwald
245da69017SMatthias Ringwald# use pkg-config for portaudio
255da69017SMatthias Ringwald# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
265da69017SMatthias Ringwald# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
275da69017SMatthias Ringwald# hard coded flags for portaudio in /usr/local/lib
285da69017SMatthias Ringwald# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
295da69017SMatthias Ringwald# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
305da69017SMatthias Ringwald
315da69017SMatthias RingwaldLDFLAGS += -lsetupapi -lwinusb
325da69017SMatthias Ringwald
33531729b1SMatthias Ringwald# csr_set_bd_addr
34531729b1SMatthias RingwaldEXAMPLES += csr_set_bd_addr
35531729b1SMatthias Ringwald
36531729b1SMatthias Ringwaldcsr_set_bd_addr: ${CORE_OBJ} ${COMMON_OBJ} btstack_chipset_csr.o csr_set_bd_addr.o
37531729b1SMatthias Ringwald	${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
385da69017SMatthias Ringwald
395da69017SMatthias Ringwaldall: ${EXAMPLES}
40