btstack/test/avrcp/Makefile

101 lines
3.0 KiB
Makefile
Raw Normal View History

2017-01-30 16:10:16 +00:00
# Makefile for libusb based PTS tests
BTSTACK_ROOT = ../..
include ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/Makefile.inc
include ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc
CORE += \
btstack_memory.c \
btstack_linked_list.c \
btstack_memory_pool.c \
btstack_run_loop.c \
btstack_util.c \
main.c \
btstack_stdin_posix.c \
2017-11-09 12:45:40 +00:00
btstack_tlv.c \
2020-07-23 06:13:24 +00:00
btstack_link_key_db_tlv.c \
btstack_tlv_posix.c \
le_device_db_tlv.c \
2017-01-30 16:10:16 +00:00
COMMON += \
2017-05-17 21:22:05 +00:00
ad_parser.c \
btstack_audio.c \
btstack_audio_portaudio.c \
2017-05-17 21:22:05 +00:00
btstack_link_key_db_fs.c \
btstack_run_loop_posix.c \
2017-01-30 16:10:16 +00:00
hci.c \
hci_cmd.c \
hci_dump.c \
2017-05-17 21:22:05 +00:00
hci_transport_h2_libusb.c \
2017-01-30 16:10:16 +00:00
l2cap.c \
l2cap_signaling.c \
2017-05-17 21:22:05 +00:00
sdp_server.c \
2017-07-05 13:07:07 +00:00
sdp_client.c \
2017-01-30 16:10:16 +00:00
sdp_util.c \
2019-03-30 20:30:47 +00:00
btstack_chipset_zephyr.c \
2017-05-17 21:22:05 +00:00
wav_util.c \
2019-03-30 20:30:47 +00:00
sm.c \
btstack_crypto.c \
uECC.c \
2017-01-30 16:10:16 +00:00
CFLAGS += -g -Wall -Wmissing-prototypes -Wshadow -Wunused-variable -Wunused-parameter -Werror
# -Wstrict-prototypes disabled because of portaudio headers
2019-03-30 20:30:47 +00:00
CFLAGS += -I${BTSTACK_ROOT}/chipset/zephyr
2017-01-30 16:10:16 +00:00
CFLAGS += -I${BTSTACK_ROOT}/src
CFLAGS += -I${BTSTACK_ROOT}/src/classic
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include -D OI_DEBUG
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include
2018-02-05 17:46:26 +00:00
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/tinydir
2017-01-30 16:10:16 +00:00
CFLAGS += -I${BTSTACK_ROOT}/platform/posix
CFLAGS += -I${BTSTACK_ROOT}/platform/embedded
CFLAGS += -I..
2017-01-30 16:10:16 +00:00
2019-03-30 20:30:47 +00:00
VPATH += ${BTSTACK_ROOT}/chipset/zephyr
2017-01-30 16:10:16 +00:00
VPATH += ${BTSTACK_ROOT}/src
VPATH += ${BTSTACK_ROOT}/src/classic
2019-03-30 21:13:17 +00:00
VPATH += ${BTSTACK_ROOT}/src/ble
2017-01-30 16:10:16 +00:00
VPATH += ${BTSTACK_ROOT}/platform/posix
VPATH += ${BTSTACK_ROOT}/platform/libusb
VPATH += ${BTSTACK_ROOT}/port/libusb
VPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/srce
VPATH += ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/srce
2019-03-30 21:13:17 +00:00
VPATH += ${BTSTACK_ROOT}/3rd-party/micro-ecc
2017-01-30 16:10:16 +00:00
# use pkg-config for libusb
CFLAGS += $(shell pkg-config libusb-1.0 --cflags)
LDFLAGS += $(shell pkg-config libusb-1.0 --libs)
# use pkg-config for portaudio
CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
SBC_DECODER += \
${BTSTACK_ROOT}/src/classic/btstack_sbc_plc.c \
${BTSTACK_ROOT}/src/classic/btstack_sbc_decoder_bluedroid.c \
2017-01-30 16:10:16 +00:00
SBC_ENCODER += \
${BTSTACK_ROOT}/src/classic/btstack_sbc_encoder_bluedroid.c \
2017-01-30 16:10:16 +00:00
${BTSTACK_ROOT}/src/classic/hfp_msbc.c \
AVRCP += \
avrcp.c \
2017-07-21 09:55:25 +00:00
AVRCP_TESTS = avrcp_controller_test
2017-01-30 16:10:16 +00:00
CORE_OBJ = $(CORE:.c=.o)
COMMON_OBJ = $(COMMON:.c=.o)
SBC_DECODER_OBJ = $(SBC_DECODER:.c=.o)
SBC_ENCODER_OBJ = $(SBC_ENCODER:.c=.o)
AVRCP_OBJ = $(AVRCP:.c=.o)
all: ${AVRCP_TESTS}
2017-07-21 09:55:25 +00:00
avrcp_controller_test: ${CORE_OBJ} ${COMMON_OBJ} ${SBC_DECODER_OBJ} ${SBC_ENCODER_OBJ} ${AVRCP_OBJ} avrcp_controller.o avrcp_controller_test.o
2017-01-30 16:10:16 +00:00
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
test: all
clean:
rm -rf *.pyc *.o $(AVDTP_TESTS) *.dSYM *_test *.wav *.sbc
rm -f *.gcno *.gcda