xref: /btstack/port/posix-h5/Makefile (revision d3849e4c96afced4068937d11ad7c1106c5e1e0f)
194a5538cSMatthias Ringwald# Makefile for libusb based examples
294a5538cSMatthias RingwaldBTSTACK_ROOT = ../..
394a5538cSMatthias Ringwald
494a5538cSMatthias RingwaldCORE += \
52d0fc1beSMatthias Ringwald	bluetooth_init_cc2564B_1.6_BT_Spec_4.1.c \
694a5538cSMatthias Ringwald	btstack_chipset_cc256x.c \
794a5538cSMatthias Ringwald	btstack_chipset_csr.c \
894a5538cSMatthias Ringwald	btstack_chipset_em9301.c \
994a5538cSMatthias Ringwald	btstack_chipset_stlc2500d.c \
1094a5538cSMatthias Ringwald	btstack_chipset_tc3566x.c \
1194a5538cSMatthias Ringwald	btstack_link_key_db_fs.c \
1294a5538cSMatthias Ringwald	btstack_run_loop_posix.c \
13*d3849e4cSMatthias Ringwald	btstack_tlv_posix.c \
1494a5538cSMatthias Ringwald	btstack_uart_block_posix.c \
1594a5538cSMatthias Ringwald	btstack_slip.c \
1694a5538cSMatthias Ringwald	hci_transport_h5.c \
179ed01c36SMatthias Ringwald	le_device_db_fs.c \
1894a5538cSMatthias Ringwald	main.c \
1908c0d996SMatthias Ringwald	wav_util.c 					\
20ac7408dfSTaras Zaporozhets	btstack_stdin_posix.c \
2194a5538cSMatthias Ringwald
2294a5538cSMatthias Ringwald# TI-WL183x requires TIInit_11.8.32.c
2394a5538cSMatthias Ringwald
2494a5538cSMatthias Ringwald# examples
2594a5538cSMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/Makefile.inc
2694a5538cSMatthias Ringwald
2794a5538cSMatthias Ringwald# fetch and convert TI init scripts
2894a5538cSMatthias Ringwaldinclude ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc
2994a5538cSMatthias Ringwald
3094a5538cSMatthias RingwaldCFLAGS  += -g -Wall -Werror \
3194a5538cSMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/embedded \
3294a5538cSMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/posix \
3394a5538cSMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/cc256x \
3494a5538cSMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/csr \
3594a5538cSMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/em9301 \
3694a5538cSMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/stlc2500d \
3794a5538cSMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/tc3566x \
38d08566fbSMatthias Ringwald	-I${BTSTACK_ROOT}/3rd-party/tinydir
3994a5538cSMatthias Ringwald
4094a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix
4194a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/embedded
4294a5538cSMatthias Ringwald
4394a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/cc256x
4494a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/csr
4594a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/em9301
4694a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/stlc2500d
4794a5538cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/tc3566x
4894a5538cSMatthias Ringwald
4994a5538cSMatthias Ringwaldifeq ($(OS),Windows_NT)
5094a5538cSMatthias RingwaldLDFLAGS += -lws2_32
5194a5538cSMatthias Ringwaldendif
5294a5538cSMatthias Ringwald
5394a5538cSMatthias Ringwald# Command Line examples require porting to win32, so only build on other unix-ish hosts
5494a5538cSMatthias Ringwaldifneq ($(OS),Windows_NT)
5594a5538cSMatthias RingwaldEXAMPLES += ${EXAMPLES_CLI}
5694a5538cSMatthias Ringwaldendif
5794a5538cSMatthias Ringwald
58185c8cd4SMatthias Ringwald# use pkg-config for portaudio
59185c8cd4SMatthias Ringwald# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
60185c8cd4SMatthias Ringwald# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
61185c8cd4SMatthias Ringwald# hard coded flags for portaudio in /usr/local/lib
62185c8cd4SMatthias Ringwald# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
63185c8cd4SMatthias Ringwald# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
64185c8cd4SMatthias Ringwald
6594a5538cSMatthias Ringwaldall: ${EXAMPLES}
66