xref: /btstack/port/posix-h4/Makefile (revision bcf00d8fa453bd3a5c441c3b99e6e4b685f0d8f0)
18caefee3SMatthias Ringwald# Makefile for libusb based examples
28caefee3SMatthias RingwaldBTSTACK_ROOT = ../..
38caefee3SMatthias Ringwald
48caefee3SMatthias RingwaldCORE += main.c stdin_support.c
58caefee3SMatthias Ringwald
6c0cdcfe7SMatthias RingwaldCOMMON += \
7c0cdcfe7SMatthias Ringwald	hci_transport_h4_posix.c \
8c0cdcfe7SMatthias Ringwald	btstack_run_loop_posix.c \
954b584ffSMatthias Ringwald	btstack_link_key_db_fs.c \
108caefee3SMatthias Ringwald
11c0cdcfe7SMatthias RingwaldCORE += \
12c0cdcfe7SMatthias Ringwald	bluetooth_init_cc2564B_1.2_BT_Spec_4.1.c \
13c0cdcfe7SMatthias Ringwald	btstack_chipset_cc256x.c \
14c0cdcfe7SMatthias Ringwald	btstack_chipset_csr.c \
15c0cdcfe7SMatthias Ringwald	btstack_chipset_em9301.c \
16c0cdcfe7SMatthias Ringwald	btstack_chipset_stlc2500d.c \
17c0cdcfe7SMatthias Ringwald	btstack_chipset_tc3566x.c \
18c0cdcfe7SMatthias Ringwald#	btstack_chipset_bcm.c \
19c0cdcfe7SMatthias Ringwald
202c2bf480SMatthias Ringwald# TI-WL183x requires TIInit_11.8.32.c
212c2bf480SMatthias Ringwald
22c0cdcfe7SMatthias Ringwald# examples
23*bcf00d8fSMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/Makefile.inc
248caefee3SMatthias Ringwald
25c0cdcfe7SMatthias Ringwald# fetch and convert TI init scripts
26c0cdcfe7SMatthias Ringwaldinclude ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc
27dd9e275cSMatthias Ringwald
28c0cdcfe7SMatthias RingwaldCFLAGS  += -g -Wall -Werror \
29c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/embedded \
30c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/posix \
31c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/bcm \
32c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/cc256x \
33c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/csr \
34c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/em9301 \
35c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/stlc2500d \
36c0cdcfe7SMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/tc3566x \
378caefee3SMatthias Ringwald
38dd9e275cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix
393edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/embedded
408caefee3SMatthias Ringwald
41c0cdcfe7SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/bcm
42c0cdcfe7SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/cc256x
43c0cdcfe7SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/csr
44c0cdcfe7SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/em9301
45c0cdcfe7SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/stlc2500d
46c0cdcfe7SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/tc3566x
47c0cdcfe7SMatthias Ringwald
488caefee3SMatthias Ringwaldifeq ($(OS),Windows_NT)
498caefee3SMatthias RingwaldLDFLAGS += -lws2_32
508caefee3SMatthias Ringwaldendif
518caefee3SMatthias Ringwald
528caefee3SMatthias Ringwald# Command Line examples require porting to win32, so only build on other unix-ish hosts
538caefee3SMatthias Ringwaldifneq ($(OS),Windows_NT)
548caefee3SMatthias RingwaldEXAMPLES += ${EXAMPLES_CLI}
558caefee3SMatthias Ringwaldendif
568caefee3SMatthias Ringwald
570e537d1eSMatthias Ringwaldall: ${EXAMPLES}
58