1# Makefile for libusb based PTS tests 2BTSTACK_ROOT = ../.. 3 4CORE += main.c stdin_support.c 5 6COMMON += hci_transport_h2_libusb.c btstack_run_loop_posix.c btstack_link_key_db_fs.c le_device_db_fs.c 7 8include ${BTSTACK_ROOT}/example/Makefile.inc 9 10CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Werror \ 11 -I${BTSTACK_ROOT}/platform/posix \ 12 -I${BTSTACK_ROOT}/platform/embedded \ 13 -I${BTSTACK_ROOT}/port/libusb 14 15VPATH += ${BTSTACK_ROOT}/platform/posix 16VPATH += ${BTSTACK_ROOT}/port/libusb 17 18# use pkg-config for libusb 19CFLAGS += $(shell pkg-config libusb-1.0 --cflags) 20LDFLAGS += $(shell pkg-config libusb-1.0 --libs) 21 22 23AVDTP_TESTS = avdtp_test 24 25all: ${AVDTP_TESTS} 26 27avdtp_test: ${CORE_OBJ} ${COMMON_OBJ} avdtp_sink.o avdtp_test.o 28 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 29 30test: all 31 32clean: 33 rm -f *.pyc *.o $(AVDTP_TESTS) *.dSYM *_test