1# Makefile for libusb based examples 2BTSTACK_ROOT = ../.. 3POSIX_ROOT= ${BTSTACK_ROOT}/platforms/posix 4 5CORE += main.c stdin_support.c 6 7COMMON += hci_transport_h4.c run_loop_posix.c remote_device_db_fs.c 8 9include ${BTSTACK_ROOT}/example/embedded/Makefile.inc 10 11# CC = gcc-fsf-4.9 12CFLAGS += -g -Wall 13# CFLAGS += -Werror 14 15VPATH += ${BTSTACK_ROOT}/platforms/posix/src 16 17ifeq ($(OS),Windows_NT) 18LDFLAGS += -lws2_32 19endif 20 21# Command Line examples require porting to win32, so only build on other unix-ish hosts 22ifneq ($(OS),Windows_NT) 23EXAMPLES += ${EXAMPLES_CLI} 24CFLAGS += -I${POSIX_ROOT}/src 25endif 26 27all: ${BTSTACK_ROOT}/include/btstack/version.h ${EXAMPLES} 28