xref: /btstack/port/posix-h4-da14585/Makefile (revision d00ab9e3a0094f929407efbf0610465286ad22de)
1# Makefile for libusb based examples
2BTSTACK_ROOT ?= ../..
3
4CORE += \
5	btstack_chipset_da145xx.c \
6	btstack_run_loop_posix.c \
7	btstack_tlv_posix.c \
8	btstack_uart_posix.c \
9	hci_dump_posix_fs.c \
10	hci_transport_h4.c \
11	le_device_db_tlv.c \
12	main.c \
13	btstack_stdin_posix.c \
14	btstack_signal.c \
15	hci_585.c \
16	# hci_581_active_uart.c \
17
18# examples
19CLASSIC =
20include ${BTSTACK_ROOT}/example/Makefile.inc
21
22CFLAGS  += -g -Wall -Werror \
23	-I$(BTSTACK_ROOT)/platform/posix \
24	-I$(BTSTACK_ROOT)/chipset/da145xx \
25	-I$(BTSTACK_ROOT)/platform/embedded \
26	-I${BTSTACK_ROOT}/3rd-party/tinydir
27
28# add pthread for ctrl-c signal handler
29LDFLAGS += -lpthread
30
31VPATH += ${BTSTACK_ROOT}/platform/posix
32VPATH += ${BTSTACK_ROOT}/chipset/da145xx
33
34EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_LE_ONLY}
35
36all: ${EXAMPLES}
37
38