xref: /btstack/port/windows-h4/Makefile (revision b29e92f97ffd81bc8a1057634c8d1552fc963a6a)
1# Makefile for windows-h4 examples
2BTSTACK_ROOT ?= ../..
3
4CORE += main.c btstack_stdin_windows.c btstack_tlv_windows.c hci_dump_windows_fs.c
5
6COMMON  += \
7			btstack_run_loop_windows.c   \
8			hci_transport_h4.c           \
9			btstack_uart_block_windows.c \
10			le_device_db_tlv.c           \
11			btstack_link_key_db_tlv.c    \
12			bluetooth_init_cc2564C_1.5.c \
13			btstack_chipset_cc256x.c \
14			btstack_chipset_csr.c \
15			btstack_chipset_em9301.c \
16			btstack_chipset_stlc2500d.c \
17			btstack_chipset_tc3566x.c \
18			btstack_chipset_bcm.c \
19            rijndael.c \
20            wav_util.c 					\
21
22# examples
23include ${BTSTACK_ROOT}/example/Makefile.inc
24
25# fetch and convert TI init scripts
26include ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc
27
28# fetch Broadcom init scripts
29# include ${BTSTACK_ROOT}/chipset/bcm/Makefile.inc
30
31# CC = gcc-fsf-4.9
32CFLAGS  += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Werror
33
34CFLAGS += -I${BTSTACK_ROOT}/platform/posix \
35		  -I${BTSTACK_ROOT}/platform/windows \
36		  -I${BTSTACK_ROOT}/platform/embedded \
37		  -I$(BTSTACK_ROOT)/chipset/bcm \
38		  -I$(BTSTACK_ROOT)/chipset/cc256x \
39		  -I$(BTSTACK_ROOT)/chipset/csr \
40		  -I$(BTSTACK_ROOT)/chipset/em9301 \
41		  -I$(BTSTACK_ROOT)/chipset/stlc2500d \
42		  -I$(BTSTACK_ROOT)/chipset/tc3566x \
43          -I${BTSTACK_ROOT}/3rd-party/rijndael \
44		  -I${BTSTACK_ROOT}/3rd-party/tinydir
45
46VPATH += ${BTSTACK_ROOT}/3rd-party/rijndael
47
48VPATH += ${BTSTACK_ROOT}/platform/windows
49VPATH += ${BTSTACK_ROOT}/platform/posix
50
51VPATH += ${BTSTACK_ROOT}/chipset/bcm
52VPATH += ${BTSTACK_ROOT}/chipset/cc256x
53VPATH += ${BTSTACK_ROOT}/chipset/csr
54VPATH += ${BTSTACK_ROOT}/chipset/em9301
55VPATH += ${BTSTACK_ROOT}/chipset/stlc2500d
56VPATH += ${BTSTACK_ROOT}/chipset/tc3566x
57
58EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE}
59EXAMPLES += pan_lwip_http_server
60
61# assume portaudio is installed in /usr/local
62# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
63# LDFLAGS += -L/sw/lib -lportaudio
64
65all: ${EXAMPLES}
66