xref: /btstack/port/windows-h4/Makefile (revision 2d0fc1be4900a3fe399a1587e7e9333f00b46c21)
14e630824SMatthias Ringwald# Makefile for windows-h4 examples
24e630824SMatthias RingwaldBTSTACK_ROOT = ../..
34e630824SMatthias Ringwald
44e630824SMatthias RingwaldCORE += main.c stdin_support.c
54e630824SMatthias Ringwald
64e630824SMatthias RingwaldCOMMON  += \
74e630824SMatthias Ringwald			btstack_run_loop_windows.c   \
84e630824SMatthias Ringwald			hci_transport_h4.c           \
94e630824SMatthias Ringwald			btstack_uart_block_windows.c \
104e630824SMatthias Ringwald			le_device_db_fs.c            \
114e630824SMatthias Ringwald			btstack_link_key_db_fs.c     \
12*2d0fc1beSMatthias Ringwald			bluetooth_init_cc2564B_1.6_BT_Spec_4.1.c \
13422979b1SMatthias Ringwald			btstack_chipset_cc256x.c \
14422979b1SMatthias Ringwald			btstack_chipset_csr.c \
15422979b1SMatthias Ringwald			btstack_chipset_em9301.c \
16422979b1SMatthias Ringwald			btstack_chipset_stlc2500d.c \
17422979b1SMatthias Ringwald			btstack_chipset_tc3566x.c \
18634a9874SMatthias Ringwald			btstack_chipset_bcm.c \
194e630824SMatthias Ringwald
20422979b1SMatthias Ringwald# examples
214e630824SMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/Makefile.inc
224e630824SMatthias Ringwald
23422979b1SMatthias Ringwald# fetch and convert TI init scripts
24422979b1SMatthias Ringwaldinclude ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc
25422979b1SMatthias Ringwald
26422979b1SMatthias Ringwald# fetch Broadcom init scripts
27422979b1SMatthias Ringwald# include ${BTSTACK_ROOT}/chipset/bcm/Makefile.inc
28422979b1SMatthias Ringwald
294e630824SMatthias Ringwald# CC = gcc-fsf-4.9
304e630824SMatthias RingwaldCFLAGS  += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Werror
314e630824SMatthias Ringwald# CFLAGS += -Werror
324e630824SMatthias Ringwald
334e630824SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/platform/posix \
34ea739015SMatthias Ringwald		  -I${BTSTACK_ROOT}/platform/windows \
35422979b1SMatthias Ringwald		  -I${BTSTACK_ROOT}/platform/embedded \
36422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/bcm \
37422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/cc256x \
38422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/csr \
39422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/em9301 \
40422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/stlc2500d \
41422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/tc3566x \
424e630824SMatthias Ringwald
43ea739015SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/windows
444e630824SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix
454e630824SMatthias Ringwald
46422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/bcm
47422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/cc256x
48422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/csr
49422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/em9301
50422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/stlc2500d
51422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/tc3566x
52422979b1SMatthias Ringwald
534e630824SMatthias Ringwald# assume portaudio is installed in /usr/local
544e630824SMatthias Ringwald# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
554e630824SMatthias Ringwald# LDFLAGS += -L/sw/lib -lportaudio
564e630824SMatthias Ringwald
574e630824SMatthias Ringwaldall: ${EXAMPLES}
58