btstack/test/att_db/Makefile

46 lines
834 B
Makefile
Raw Normal View History

CC = g++
# Requirements: cpputest.github.io
BTSTACK_ROOT = ../..
2015-11-13 14:04:41 +00:00
CFLAGS = -g -Wall \
-I. \
2015-11-13 14:04:41 +00:00
-I${BTSTACK_ROOT}/src
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/rijndael
CFLAGS += -fprofile-arcs -ftest-coverage -fsanitize=address
LDFLAGS += -lCppUTest -lCppUTestExt
VPATH += ${BTSTACK_ROOT}/3rd-party/rijndael
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
COMMON = \
btstack_util.c \
2015-10-11 21:31:11 +00:00
hci_dump.c \
att_db_util.c \
btstack_crypto.c \
btstack_linked_list.c \
hci_cmd.c \
rijndael.c
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 $@
test: all
./att_db_util_test
clean:
rm -f att_db_util_test
rm -f *.o
rm -rf *.dSYM
rm -f *.gcno *.gcda
2018-06-26 11:40:35 +00:00