xref: /btstack/port/posix-h4-atwilc3000/Makefile (revision f11fd9a990fedbf11b7c70e38b9da44019506e13)
1ccebdf93SMatthias Ringwald# Makefile for libusb based examples
2f67eb7c2SMatthias RingwaldBTSTACK_ROOT ?= ../..
3ccebdf93SMatthias Ringwald
4ccebdf93SMatthias RingwaldCORE += \
5ccebdf93SMatthias Ringwald	btstack_chipset_atwilc3000.c \
6ccebdf93SMatthias Ringwald	btstack_run_loop_posix.c \
7d3849e4cSMatthias Ringwald	btstack_tlv_posix.c \
8793a0509SMatthias Ringwald	btstack_uart_posix.c \
97435ec7bSMatthias Ringwald	hci_dump_posix_fs.c \
10ccebdf93SMatthias Ringwald	hci_transport_h4.c \
1181862996SMatthias Ringwald	le_device_db_tlv.c \
12ccebdf93SMatthias Ringwald	main.c \
13ccebdf93SMatthias Ringwald	wav_util.c 					\
14ccebdf93SMatthias Ringwald	btstack_stdin_posix.c \
15*f11fd9a9SMatthias Ringwald	btstack_signal.c \
16ccebdf93SMatthias Ringwald
17ccebdf93SMatthias Ringwald# examples
18e29c33b5SMatthias RingwaldCLASSIC =
19ccebdf93SMatthias Ringwaldinclude ${BTSTACK_ROOT}/example/Makefile.inc
20ccebdf93SMatthias Ringwald
2169e3d973SMatthias Ringwald# firmware
2269e3d973SMatthias Ringwaldinclude ${BTSTACK_ROOT}/chipset/atwilc3000/Makefile.inc
2369e3d973SMatthias Ringwald
247daa8bd9SMatthias Ringwaldall: wilc3000_ble_firmware.h
257daa8bd9SMatthias Ringwald
26ccebdf93SMatthias RingwaldCFLAGS  += -g -Wall -Werror \
27ccebdf93SMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/posix \
28ccebdf93SMatthias Ringwald	-I$(BTSTACK_ROOT)/chipset/atwilc3000 \
29ccebdf93SMatthias Ringwald	-I$(BTSTACK_ROOT)/platform/embedded \
30d08566fbSMatthias Ringwald	-I${BTSTACK_ROOT}/3rd-party/tinydir
31ccebdf93SMatthias Ringwald
32ccebdf93SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix
33ccebdf93SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/chipset/atwilc3000
34ccebdf93SMatthias Ringwald
35*f11fd9a9SMatthias Ringwald# add pthread for ctrl-c signal handler
36*f11fd9a9SMatthias RingwaldLDFLAGS += -lpthread
37*f11fd9a9SMatthias Ringwald
38bdc352b1SMatthias RingwaldEXAMPLES = ${EXAMPLES_GENERAL} ${EXAMPLES_LE_ONLY}
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