xref: /btstack/port/posix-h4-atwilc3000/Makefile (revision c32dba203d4af5ccae95e4d7b5aa9cabd63fc4ec)
1# Makefile for libusb based examples
2BTSTACK_ROOT = ../..
3
4CORE += \
5	btstack_chipset_atwilc3000.c \
6	btstack_link_key_db_fs.c \
7	btstack_run_loop_posix.c \
8	btstack_uart_block_posix.c \
9	hci_transport_h4.c \
10	le_device_db_fs.c \
11	main.c \
12	wav_util.c 					\
13	btstack_stdin_posix.c \
14
15# examples
16include ${BTSTACK_ROOT}/example/Makefile.inc
17
18# firmware
19include ${BTSTACK_ROOT}/chipset/atwilc3000/Makefile.inc
20
21CFLAGS  += -g -Wall -Werror \
22	-I$(BTSTACK_ROOT)/platform/posix \
23	-I$(BTSTACK_ROOT)/chipset/atwilc3000 \
24	-I$(BTSTACK_ROOT)/platform/embedded \
25	-I${BTSTACK_ROOT}/3rd-party/tinydir
26
27VPATH += ${BTSTACK_ROOT}/platform/posix
28VPATH += ${BTSTACK_ROOT}/chipset/atwilc3000
29
30ifeq ($(OS),Windows_NT)
31LDFLAGS += -lws2_32
32endif
33
34# Command Line examples require porting to win32, so only build on other unix-ish hosts
35ifneq ($(OS),Windows_NT)
36EXAMPLES += ${EXAMPLES_CLI}
37endif
38
39# use pkg-config for portaudio
40# CFLAGS  += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
41# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
42# hard coded flags for portaudio in /usr/local/lib
43# CFLAGS  += -I/usr/local/include -DHAVE_PORTAUDIO
44# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
45
46all: ${EXAMPLES}
47