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 9LDFLAGS += -lCppUTest -lCppUTestExt 10 11VPATH += ${BTSTACK_ROOT}/src 12 13COMMON = \ 14 btstack_ring_buffer.c \ 15 16COMMON_OBJ = $(COMMON:.c=.o) 17 18all: btstack_ring_buffer_test 19 20btstack_ring_buffer_test: ${COMMON_OBJ} btstack_ring_buffer_test.c 21 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 22 23test: all 24 ./btstack_ring_buffer_test 25 26clean: 27 rm -fr btstack_ring_buffer_test *.dSYM *.o ../src/*.o 28 29