18caefee3SMatthias Ringwald# Makefile for libusb based examples 28caefee3SMatthias RingwaldBTSTACK_ROOT = ../.. 38caefee3SMatthias Ringwald 48caefee3SMatthias RingwaldCORE += main.c stdin_support.c 58caefee3SMatthias Ringwald 68caefee3SMatthias RingwaldCOMMON += hci_transport_h4.c run_loop_posix.c remote_device_db_fs.c 78caefee3SMatthias Ringwald 88caefee3SMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/embedded/Makefile.inc 98caefee3SMatthias Ringwald 10*3edc84c5SMatthias RingwaldCFLAGS += -g -Wall -I$(BTSTACK_ROOT)/platform/embedded 118caefee3SMatthias Ringwald# CFLAGS += -Werror 128caefee3SMatthias Ringwald 13*3edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix/src 14*3edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/embedded 158caefee3SMatthias Ringwald 168caefee3SMatthias Ringwaldifeq ($(OS),Windows_NT) 178caefee3SMatthias RingwaldLDFLAGS += -lws2_32 188caefee3SMatthias Ringwaldendif 198caefee3SMatthias Ringwald 208caefee3SMatthias Ringwald# Command Line examples require porting to win32, so only build on other unix-ish hosts 218caefee3SMatthias Ringwaldifneq ($(OS),Windows_NT) 228caefee3SMatthias RingwaldEXAMPLES += ${EXAMPLES_CLI} 23*3edc84c5SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/platform/posix/src 248caefee3SMatthias Ringwaldendif 258caefee3SMatthias Ringwald 26*3edc84c5SMatthias Ringwaldall: ${BTSTACK_ROOT}/src/version.h ${EXAMPLES} 27