btstack/test/ring_buffer/Makefile

29 lines
541 B
Makefile
Raw Normal View History

2016-10-17 21:54:12 +00:00
CC=g++
# Requirements: cpputest.github.io
BTSTACK_ROOT = ../..
CPPUTEST_HOME = ${BTSTACK_ROOT}/test/cpputest
CFLAGS = -g -Wall -I. -I../ -I${BTSTACK_ROOT}/src
LDFLAGS += -lCppUTest -lCppUTestExt
VPATH += ${BTSTACK_ROOT}/src
COMMON = \
btstack_ring_buffer.c \
COMMON_OBJ = $(COMMON:.c=.o)
all: btstack_ring_buffer_test
btstack_ring_buffer_test: ${COMMON_OBJ} btstack_ring_buffer_test.c
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
test: all
./btstack_ring_buffer_test
clean:
rm -fr btstack_ring_buffer_test *.dSYM *.o ../src/*.o