mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-10 00:41:06 +00:00
24 lines
437 B
Makefile
24 lines
437 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 -I${BTSTACK_ROOT}/include
|
||
|
LDFLAGS += -lCppUTest -lCppUTestExt
|
||
|
|
||
|
COMMON_OBJ = $(COMMON:.c=.o)
|
||
|
|
||
|
all: sqrt_test
|
||
|
|
||
|
btstack_linked_list_test: ${COMMON_OBJ} sqrt_test.c
|
||
|
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
|
||
|
|
||
|
test: all
|
||
|
./sqrt_test
|
||
|
|
||
|
clean:
|
||
|
rm -fr sqrt_test *.dSYM *.o ../src/*.o
|
||
|
|