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