2015-05-23 21:35:37 +00:00
|
|
|
CC = g++
|
|
|
|
|
2015-07-03 09:18:03 +00:00
|
|
|
# Requirements: cpputest.github.io
|
2015-05-23 21:35:37 +00:00
|
|
|
|
|
|
|
BTSTACK_ROOT = ../..
|
|
|
|
|
2015-11-13 14:04:41 +00:00
|
|
|
CFLAGS = -g -Wall \
|
2020-01-09 19:02:07 +00:00
|
|
|
-I. \
|
2015-11-13 14:04:41 +00:00
|
|
|
-I${BTSTACK_ROOT}/src
|
2020-01-09 19:02:07 +00:00
|
|
|
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/rijndael
|
|
|
|
|
2020-01-07 10:26:31 +00:00
|
|
|
CFLAGS += -fprofile-arcs -ftest-coverage -fsanitize=address
|
2019-09-17 13:11:58 +00:00
|
|
|
|
2015-05-23 21:35:37 +00:00
|
|
|
LDFLAGS += -lCppUTest -lCppUTestExt
|
|
|
|
|
2020-01-09 19:02:07 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/3rd-party/rijndael
|
2015-05-23 21:35:37 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/src
|
2015-11-13 14:04:41 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/src/ble
|
2016-01-20 13:20:47 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/posix
|
2015-05-23 21:35:37 +00:00
|
|
|
|
|
|
|
COMMON = \
|
2016-01-20 15:10:07 +00:00
|
|
|
btstack_util.c \
|
2015-10-11 21:31:11 +00:00
|
|
|
hci_dump.c \
|
2015-05-23 21:35:37 +00:00
|
|
|
att_db_util.c \
|
2020-01-09 19:02:07 +00:00
|
|
|
btstack_crypto.c \
|
|
|
|
btstack_linked_list.c \
|
|
|
|
hci_cmd.c \
|
|
|
|
rijndael.c
|
2015-05-23 21:35:37 +00:00
|
|
|
|
|
|
|
COMMON_OBJ = $(COMMON:.c=.o)
|
|
|
|
|
|
|
|
all: att_db_util_test
|
|
|
|
|
|
|
|
att_db_util_test: ${COMMON_OBJ} att_db_util_test.c
|
|
|
|
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
|
|
|
|
|
2015-07-03 09:18:03 +00:00
|
|
|
test: all
|
2015-05-23 21:35:37 +00:00
|
|
|
./att_db_util_test
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f att_db_util_test
|
|
|
|
rm -f *.o
|
|
|
|
rm -rf *.dSYM
|
2019-09-17 13:11:58 +00:00
|
|
|
rm -f *.gcno *.gcda
|
2018-06-26 11:40:35 +00:00
|
|
|
|