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