1CC=g++ 2 3# Requirements: cpputest.github.io 4 5BTSTACK_ROOT = ../.. 6CPPUTEST_HOME = ${BTSTACK_ROOT}/test/cpputest 7 8CFLAGS = -g -Wall -I. -I../ -I${BTSTACK_ROOT}/src 9CFLAGS += -fprofile-arcs -ftest-coverage 10LDFLAGS += -lCppUTest -lCppUTestExt 11 12VPATH += ${BTSTACK_ROOT}/src 13 14COMMON_OBJ = \ 15 btstack_base64_decoder.o \ 16 btstack_util.o \ 17 hci_dump.o \ 18 19all: base64_decoder_test 20 21base64_decoder_test: ${COMMON_OBJ} base64_decoder_test.o 22 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 23 24test: all 25 ./base64_decoder_test 26 27clean: 28 rm -fr base64_decoder_test *.dSYM *.o 29 rm -f *.gcno *.gcda 30