1*94a5538cSMatthias Ringwald# Makefile for libusb based examples 2*94a5538cSMatthias RingwaldBTSTACK_ROOT = ../.. 3*94a5538cSMatthias Ringwald 4*94a5538cSMatthias RingwaldCORE += \ 5*94a5538cSMatthias Ringwald bluetooth_init_cc2564B_1.2_BT_Spec_4.1.c \ 6*94a5538cSMatthias Ringwald btstack_chipset_cc256x.c \ 7*94a5538cSMatthias Ringwald btstack_chipset_csr.c \ 8*94a5538cSMatthias Ringwald btstack_chipset_em9301.c \ 9*94a5538cSMatthias Ringwald btstack_chipset_stlc2500d.c \ 10*94a5538cSMatthias Ringwald btstack_chipset_tc3566x.c \ 11*94a5538cSMatthias Ringwald btstack_link_key_db_fs.c \ 12*94a5538cSMatthias Ringwald btstack_run_loop_posix.c \ 13*94a5538cSMatthias Ringwald btstack_uart_block_posix.c \ 14*94a5538cSMatthias Ringwald btstack_slip.c \ 15*94a5538cSMatthias Ringwald hci_transport_h5.c \ 16*94a5538cSMatthias Ringwald main.c \ 17*94a5538cSMatthias Ringwald stdin_support.c \ 18*94a5538cSMatthias Ringwald# btstack_chipset_bcm.c \ 19*94a5538cSMatthias Ringwald 20*94a5538cSMatthias Ringwald# TI-WL183x requires TIInit_11.8.32.c 21*94a5538cSMatthias Ringwald 22*94a5538cSMatthias Ringwald# examples 23*94a5538cSMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/Makefile.inc 24*94a5538cSMatthias Ringwald 25*94a5538cSMatthias Ringwald# fetch and convert TI init scripts 26*94a5538cSMatthias Ringwaldinclude ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc 27*94a5538cSMatthias Ringwald 28*94a5538cSMatthias RingwaldCFLAGS += -g -Wall -Werror \ 29*94a5538cSMatthias Ringwald -I$(BTSTACK_ROOT)/platform/embedded \ 30*94a5538cSMatthias Ringwald -I$(BTSTACK_ROOT)/platform/posix \ 31*94a5538cSMatthias Ringwald -I$(BTSTACK_ROOT)/chipset/bcm \ 32*94a5538cSMatthias Ringwald -I$(BTSTACK_ROOT)/chipset/cc256x \ 33*94a5538cSMatthias Ringwald -I$(BTSTACK_ROOT)/chipset/csr \ 34*94a5538cSMatthias Ringwald -I$(BTSTACK_ROOT)/chipset/em9301 \ 35*94a5538cSMatthias Ringwald -I$(BTSTACK_ROOT)/chipset/stlc2500d \ 36*94a5538cSMatthias Ringwald -I$(BTSTACK_ROOT)/chipset/tc3566x \ 37*94a5538cSMatthias Ringwald 38*94a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix 39*94a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/embedded 40*94a5538cSMatthias Ringwald 41*94a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/bcm 42*94a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/cc256x 43*94a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/csr 44*94a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/em9301 45*94a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/stlc2500d 46*94a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/tc3566x 47*94a5538cSMatthias Ringwald 48*94a5538cSMatthias Ringwaldifeq ($(OS),Windows_NT) 49*94a5538cSMatthias RingwaldLDFLAGS += -lws2_32 50*94a5538cSMatthias Ringwaldendif 51*94a5538cSMatthias Ringwald 52*94a5538cSMatthias Ringwald# Command Line examples require porting to win32, so only build on other unix-ish hosts 53*94a5538cSMatthias Ringwaldifneq ($(OS),Windows_NT) 54*94a5538cSMatthias RingwaldEXAMPLES += ${EXAMPLES_CLI} 55*94a5538cSMatthias Ringwaldendif 56*94a5538cSMatthias Ringwald 57*94a5538cSMatthias Ringwaldall: ${EXAMPLES} 58