xref: /btstack/port/posix-h4/Makefile (revision c6a9a3658c9e30cb56b7f5bcdc5779eb852f5509)
18caefee3SMatthias Ringwald# Makefile for libusb based examples
28caefee3SMatthias RingwaldBTSTACK_ROOT = ../..
38caefee3SMatthias Ringwald
4c0cdcfe7SMatthias RingwaldCORE += \
5c0cdcfe7SMatthias Ringwald	bluetooth_init_cc2564B_1.2_BT_Spec_4.1.c \
6c0cdcfe7SMatthias Ringwald	btstack_chipset_cc256x.c \
7c0cdcfe7SMatthias Ringwald	btstack_chipset_csr.c \
8c0cdcfe7SMatthias Ringwald	btstack_chipset_em9301.c \
9c0cdcfe7SMatthias Ringwald	btstack_chipset_stlc2500d.c \
10c0cdcfe7SMatthias Ringwald	btstack_chipset_tc3566x.c \
11*c6a9a365SMatthias Ringwald	btstack_link_key_db_fs.c \
12*c6a9a365SMatthias Ringwald	btstack_run_loop_posix.c \
13*c6a9a365SMatthias Ringwald	btstack_uart_posix.c \
14*c6a9a365SMatthias Ringwald	hci_transport_h4_posix.c \
15*c6a9a365SMatthias Ringwald	main.c \
16*c6a9a365SMatthias Ringwald	stdin_support.c \
17c0cdcfe7SMatthias Ringwald#	btstack_chipset_bcm.c \
18c0cdcfe7SMatthias Ringwald
192c2bf480SMatthias Ringwald# TI-WL183x requires TIInit_11.8.32.c
202c2bf480SMatthias Ringwald
21c0cdcfe7SMatthias Ringwald# examples
22bcf00d8fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/Makefile.inc
238caefee3SMatthias Ringwald
24c0cdcfe7SMatthias Ringwald# fetch and convert TI init scripts
25c0cdcfe7SMatthias Ringwaldinclude ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc
26dd9e275cSMatthias Ringwald
27c0cdcfe7SMatthias RingwaldCFLAGS  += -g -Wall -Werror \
28c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/embedded \
29c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/posix \
30c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/bcm \
31c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/cc256x \
32c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/csr \
33c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/em9301 \
34c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/stlc2500d \
35c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/tc3566x \
368caefee3SMatthias Ringwald
37dd9e275cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix
383edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/embedded
398caefee3SMatthias Ringwald
40c0cdcfe7SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/bcm
41c0cdcfe7SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/cc256x
42c0cdcfe7SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/csr
43c0cdcfe7SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/em9301
44c0cdcfe7SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/stlc2500d
45c0cdcfe7SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/tc3566x
46c0cdcfe7SMatthias Ringwald
478caefee3SMatthias Ringwaldifeq ($(OS),Windows_NT)
488caefee3SMatthias RingwaldLDFLAGS += -lws2_32
498caefee3SMatthias Ringwaldendif
508caefee3SMatthias Ringwald
518caefee3SMatthias Ringwald# Command Line examples require porting to win32, so only build on other unix-ish hosts
528caefee3SMatthias Ringwaldifneq ($(OS),Windows_NT)
538caefee3SMatthias RingwaldEXAMPLES += ${EXAMPLES_CLI}
548caefee3SMatthias Ringwaldendif
558caefee3SMatthias Ringwald
560e537d1eSMatthias Ringwaldall: ${EXAMPLES}
57