mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-05 21:59:45 +00:00
29 lines
541 B
Makefile
29 lines
541 B
Makefile
|
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
|
||
|
|