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