btstack/test/linked_list/Makefile

35 lines
742 B
Makefile
Raw Normal View History

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