1CC = g++ 2 3# Requirements: cpputest.github.io 4 5BTSTACK_ROOT = ../.. 6 7CPPFLAGS = -x c++ -Wall -Wno-unused 8 9CFLAGS = -DUNIT_TEST -g 10CFLAGS += -I. -I${BTSTACK_ROOT}/src 11CFLAGS += -fprofile-arcs -ftest-coverage 12LDFLAGS += -lCppUTest -lCppUTestExt 13VPATH += ${BTSTACK_ROOT}/src 14 15COMMON = \ 16 17COMMON_OBJ = $(COMMON:.c=.o) 18 19 20all: hid_parser_test 21 22hid_parser_test: btstack_hid_parser.c btstack_util.c hid_parser_test.c hci_dump.c 23 ${CC} ${CFLAGS} ${CPPFLAGS} $^ ${LDFLAGS} -o $@ 24 25test: all 26 ./hid_parser_test 27 28clean: 29 rm -f hid_parser_test 30 rm -f *.o 31 rm -rf *.dSYM 32 rm -f *.gcno *.gcda 33 34