xref: /btstack/port/windows-h4/Makefile (revision 3086bccee3984763e7fd005343e285b42376a52f)
14e630824SMatthias Ringwald# Makefile for windows-h4 examples
2f67eb7c2SMatthias RingwaldBTSTACK_ROOT ?= ../..
34e630824SMatthias Ringwald
4*3086bcceSMatthias RingwaldCORE += main.c btstack_stdin_windows.c btstack_tlv_windows.c hci_dump_windows_fs.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 \
106486d278SMatthias Ringwald			le_device_db_tlv.c           \
116486d278SMatthias Ringwald			btstack_link_key_db_tlv.c    \
1201f72e3dSMatthias Ringwald			bluetooth_init_cc2564C_1.5.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 \
197cdc89a5SMatthias Ringwald            rijndael.c \
2008c0d996SMatthias Ringwald            wav_util.c 					\
214e630824SMatthias Ringwald
22422979b1SMatthias Ringwald# examples
234e630824SMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/Makefile.inc
244e630824SMatthias Ringwald
25422979b1SMatthias Ringwald# fetch and convert TI init scripts
26422979b1SMatthias Ringwaldinclude ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc
27422979b1SMatthias Ringwald
28422979b1SMatthias Ringwald# fetch Broadcom init scripts
29422979b1SMatthias Ringwald# include ${BTSTACK_ROOT}/chipset/bcm/Makefile.inc
30422979b1SMatthias Ringwald
314e630824SMatthias Ringwald# CC = gcc-fsf-4.9
324e630824SMatthias RingwaldCFLAGS  += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Werror
334e630824SMatthias Ringwald
344e630824SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/platform/posix \
35ea739015SMatthias Ringwald		  -I${BTSTACK_ROOT}/platform/windows \
36422979b1SMatthias Ringwald		  -I${BTSTACK_ROOT}/platform/embedded \
37422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/bcm \
38422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/cc256x \
39422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/csr \
40422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/em9301 \
41422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/stlc2500d \
42422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/tc3566x \
437cdc89a5SMatthias Ringwald          -I${BTSTACK_ROOT}/3rd-party/rijndael \
44d08566fbSMatthias Ringwald		  -I${BTSTACK_ROOT}/3rd-party/tinydir
454e630824SMatthias Ringwald
467cdc89a5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/rijndael
477cdc89a5SMatthias Ringwald
48ea739015SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/windows
494e630824SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix
504e630824SMatthias Ringwald
51422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/bcm
52422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/cc256x
53422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/csr
54422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/em9301
55422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/stlc2500d
56422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/tc3566x
57422979b1SMatthias Ringwald
58bdc352b1SMatthias RingwaldEXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE}
5962ab70e9SMatthias RingwaldEXAMPLES += pan_lwip_http_server
6062ab70e9SMatthias Ringwald
614e630824SMatthias Ringwald# assume portaudio is installed in /usr/local
624e630824SMatthias Ringwald# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
634e630824SMatthias Ringwald# LDFLAGS += -L/sw/lib -lportaudio
644e630824SMatthias Ringwald
654e630824SMatthias Ringwaldall: ${EXAMPLES}
66