xref: /btstack/port/windows-h4/Makefile (revision 4783d25609a5032739e1b6e67d2236f2d80f2100)
1# Makefile for windows-h4 examples
2BTSTACK_ROOT ?= ../..
3
4CORE += main.c btstack_stdin_windows.c btstack_tlv_posix.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_cc2564B_1.6_BT_Spec_4.1.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# CFLAGS += -Werror
34
35CFLAGS += -I${BTSTACK_ROOT}/platform/posix \
36		  -I${BTSTACK_ROOT}/platform/windows \
37		  -I${BTSTACK_ROOT}/platform/embedded \
38		  -I$(BTSTACK_ROOT)/chipset/bcm \
39		  -I$(BTSTACK_ROOT)/chipset/cc256x \
40		  -I$(BTSTACK_ROOT)/chipset/csr \
41		  -I$(BTSTACK_ROOT)/chipset/em9301 \
42		  -I$(BTSTACK_ROOT)/chipset/stlc2500d \
43		  -I$(BTSTACK_ROOT)/chipset/tc3566x \
44          -I${BTSTACK_ROOT}/3rd-party/rijndael \
45		  -I${BTSTACK_ROOT}/3rd-party/tinydir
46
47VPATH += ${BTSTACK_ROOT}/3rd-party/rijndael
48
49VPATH += ${BTSTACK_ROOT}/platform/windows
50VPATH += ${BTSTACK_ROOT}/platform/posix
51
52VPATH += ${BTSTACK_ROOT}/chipset/bcm
53VPATH += ${BTSTACK_ROOT}/chipset/cc256x
54VPATH += ${BTSTACK_ROOT}/chipset/csr
55VPATH += ${BTSTACK_ROOT}/chipset/em9301
56VPATH += ${BTSTACK_ROOT}/chipset/stlc2500d
57VPATH += ${BTSTACK_ROOT}/chipset/tc3566x
58
59EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_CLASSIC_ONLY} ${EXAMPLES_LE_ONLY} ${EXAMPLES_DUAL_MODE}
60EXAMPLES += pan_lwip_http_server
61
62# assume portaudio is installed in /usr/local
63# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
64# LDFLAGS += -L/sw/lib -lportaudio
65
66all: ${EXAMPLES}
67