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_531_active_uart_460800.c \ 16 17# examples 18CLASSIC = 19include ${BTSTACK_ROOT}/example/Makefile.inc 20 21CFLAGS += -g -Wall -Werror \ 22 -I$(BTSTACK_ROOT)/platform/posix \ 23 -I$(BTSTACK_ROOT)/chipset/da145xx \ 24 -I$(BTSTACK_ROOT)/platform/embedded \ 25 -I${BTSTACK_ROOT}/3rd-party/tinydir 26 27# add pthread for ctrl-c signal handler 28LDFLAGS += -lpthread 29 30VPATH += ${BTSTACK_ROOT}/platform/posix 31VPATH += ${BTSTACK_ROOT}/chipset/da145xx 32 33EXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_LE_ONLY} 34 35all: ${EXAMPLES} 36 37