2014-06-16 20:55:54 +00:00
|
|
|
CC=g++
|
|
|
|
|
2015-07-03 09:18:03 +00:00
|
|
|
# Requirements: cpputest.github.io
|
2014-06-16 20:55:54 +00:00
|
|
|
|
|
|
|
BTSTACK_ROOT = ../..
|
|
|
|
CPPUTEST_HOME = ${BTSTACK_ROOT}/test/cpputest
|
|
|
|
|
2015-07-03 09:18:03 +00:00
|
|
|
CFLAGS = -g -Wall -I. -I../ -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/include
|
2019-09-17 13:11:58 +00:00
|
|
|
CFLAGS += -fprofile-arcs -ftest-coverage
|
2015-05-17 16:07:24 +00:00
|
|
|
LDFLAGS += -lCppUTest -lCppUTestExt
|
2014-06-16 20:55:54 +00:00
|
|
|
|
2015-11-13 14:04:41 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/src/ble
|
2015-05-17 16:07:24 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/src
|
2016-01-20 13:20:47 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/posix
|
2014-06-16 20:55:54 +00:00
|
|
|
|
2015-05-17 16:07:24 +00:00
|
|
|
COMMON = \
|
2016-01-20 13:34:04 +00:00
|
|
|
btstack_linked_list.c \
|
2017-11-17 17:04:16 +00:00
|
|
|
hci_dump.c \
|
|
|
|
btstack_util.c \
|
2014-06-16 20:55:54 +00:00
|
|
|
|
|
|
|
COMMON_OBJ = $(COMMON:.c=.o)
|
|
|
|
|
2016-01-20 14:38:37 +00:00
|
|
|
all: btstack_linked_list_test
|
2014-06-16 20:55:54 +00:00
|
|
|
|
2016-01-20 14:38:37 +00:00
|
|
|
btstack_linked_list_test: ${COMMON_OBJ} btstack_linked_list_test.c
|
2014-06-16 20:55:54 +00:00
|
|
|
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
|
|
|
|
|
2015-07-03 09:18:03 +00:00
|
|
|
test: all
|
2016-01-20 14:38:37 +00:00
|
|
|
./btstack_linked_list_test
|
2015-05-17 16:07:24 +00:00
|
|
|
|
2014-06-16 20:55:54 +00:00
|
|
|
clean:
|
2019-09-17 13:11:58 +00:00
|
|
|
rm -fr btstack_linked_list_test *.dSYM *.o ../src/*.o
|
|
|
|
rm -f *.gcno *.gcda
|
2014-06-16 20:55:54 +00:00
|
|
|
|