xref: /btstack/port/windows-h4/Makefile (revision 7cdc89a533ca236b2c2564b759993b788bae89d3)
14e630824SMatthias Ringwald# Makefile for windows-h4 examples
2f67eb7c2SMatthias RingwaldBTSTACK_ROOT ?= ../..
34e630824SMatthias Ringwald
47ea7688aSMatthias RingwaldCORE += main.c btstack_stdin_windows.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     \
122d0fc1beSMatthias 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 \
19*7cdc89a5SMatthias 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# CFLAGS += -Werror
344e630824SMatthias Ringwald
354e630824SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/platform/posix \
36ea739015SMatthias Ringwald		  -I${BTSTACK_ROOT}/platform/windows \
37422979b1SMatthias Ringwald		  -I${BTSTACK_ROOT}/platform/embedded \
38422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/bcm \
39422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/cc256x \
40422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/csr \
41422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/em9301 \
42422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/stlc2500d \
43422979b1SMatthias Ringwald		  -I$(BTSTACK_ROOT)/chipset/tc3566x \
44*7cdc89a5SMatthias Ringwald          -I${BTSTACK_ROOT}/3rd-party/rijndael \
45d08566fbSMatthias Ringwald		  -I${BTSTACK_ROOT}/3rd-party/tinydir
464e630824SMatthias Ringwald
47*7cdc89a5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/rijndael
48*7cdc89a5SMatthias Ringwald
49ea739015SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/windows
504e630824SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix
514e630824SMatthias Ringwald
52422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/bcm
53422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/cc256x
54422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/csr
55422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/em9301
56422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/stlc2500d
57422979b1SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/tc3566x
58422979b1SMatthias Ringwald
59bdc352b1SMatthias RingwaldEXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE}
6062ab70e9SMatthias RingwaldEXAMPLES += pan_lwip_http_server
6162ab70e9SMatthias Ringwald
624e630824SMatthias Ringwald# assume portaudio is installed in /usr/local
634e630824SMatthias Ringwald# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
644e630824SMatthias Ringwald# LDFLAGS += -L/sw/lib -lportaudio
654e630824SMatthias Ringwald
664e630824SMatthias Ringwaldall: ${EXAMPLES}
67