xref: /btstack/port/posix-h4/Makefile (revision 070c8da6dea986184200632e9b027f54813362c6)
1# Makefile for libusb based examples
2BTSTACK_ROOT = ../..
3
4CORE += main.c stdin_support.c
5
6COMMON += \
7	hci_transport_h4_posix.c \
8	btstack_run_loop_posix.c \
9	btstack_link_key_db_fs.c \
10
11CORE += \
12	bluetooth_init_cc2564B_1.2_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
20# TI-WL183x requires TIInit_11.8.32.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
28CFLAGS  += -g -Wall -Werror \
29	-I$(BTSTACK_ROOT)/platform/embedded \
30	-I$(BTSTACK_ROOT)/platform/posix \
31	-I$(BTSTACK_ROOT)/chipset/bcm \
32	-I$(BTSTACK_ROOT)/chipset/cc256x \
33	-I$(BTSTACK_ROOT)/chipset/csr \
34	-I$(BTSTACK_ROOT)/chipset/em9301 \
35	-I$(BTSTACK_ROOT)/chipset/stlc2500d \
36	-I$(BTSTACK_ROOT)/chipset/tc3566x \
37
38VPATH += ${BTSTACK_ROOT}/platform/posix
39VPATH += ${BTSTACK_ROOT}/platform/embedded
40
41VPATH += ${BTSTACK_ROOT}/chipset/bcm
42VPATH += ${BTSTACK_ROOT}/chipset/cc256x
43VPATH += ${BTSTACK_ROOT}/chipset/csr
44VPATH += ${BTSTACK_ROOT}/chipset/em9301
45VPATH += ${BTSTACK_ROOT}/chipset/stlc2500d
46VPATH += ${BTSTACK_ROOT}/chipset/tc3566x
47
48ifeq ($(OS),Windows_NT)
49LDFLAGS += -lws2_32
50endif
51
52# Command Line examples require porting to win32, so only build on other unix-ish hosts
53ifneq ($(OS),Windows_NT)
54EXAMPLES += ${EXAMPLES_CLI}
55endif
56
57all: ${EXAMPLES}
58