From 0da62538928881db1fd665fa6fafa901df338ec9 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Mon, 26 Sep 2016 22:44:45 +0200 Subject: [PATCH] move code from test to avdp_sink file, implement connect/disconnect --- test/avdtp/Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 test/avdtp/Makefile diff --git a/test/avdtp/Makefile b/test/avdtp/Makefile new file mode 100644 index 000000000..af78b9eb6 --- /dev/null +++ b/test/avdtp/Makefile @@ -0,0 +1,33 @@ +# Makefile for libusb based PTS tests +BTSTACK_ROOT = ../.. + +CORE += main.c stdin_support.c + +COMMON += hci_transport_h2_libusb.c btstack_run_loop_posix.c btstack_link_key_db_fs.c le_device_db_fs.c + +include ${BTSTACK_ROOT}/example/Makefile.inc + +CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Werror \ + -I${BTSTACK_ROOT}/platform/posix \ + -I${BTSTACK_ROOT}/platform/embedded \ + -I${BTSTACK_ROOT}/port/libusb + +VPATH += ${BTSTACK_ROOT}/platform/posix +VPATH += ${BTSTACK_ROOT}/port/libusb + +# use pkg-config for libusb +CFLAGS += $(shell pkg-config libusb-1.0 --cflags) +LDFLAGS += $(shell pkg-config libusb-1.0 --libs) + + +AVDTP_TESTS = avdtp_test + +all: ${AVDTP_TESTS} + +avdtp_test: ${CORE_OBJ} ${COMMON_OBJ} avdtp_sink.o avdtp_test.o + ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ + +test: all + +clean: + rm -f *.pyc *.o $(AVDTP_TESTS) *.dSYM *_test \ No newline at end of file