mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-10 00:41:06 +00:00
34 lines
619 B
Makefile
34 lines
619 B
Makefile
CC = g++
|
|
|
|
# Requirements: cpputest.github.io
|
|
|
|
BTSTACK_ROOT = ../..
|
|
|
|
CPPFLAGS = -x c++ -Wall -Wno-unused
|
|
|
|
CFLAGS = -DUNIT_TEST -g
|
|
CFLAGS += -I. -I.. -I${BTSTACK_ROOT}/src
|
|
CFLAGS += -fprofile-arcs -ftest-coverage -fsanitize=address,undefined
|
|
LDFLAGS += -lCppUTest -lCppUTestExt
|
|
VPATH += ${BTSTACK_ROOT}/src
|
|
|
|
COMMON = \
|
|
|
|
COMMON_OBJ = $(COMMON:.c=.o)
|
|
|
|
|
|
all: hid_parser_test
|
|
|
|
hid_parser_test: btstack_hid_parser.c btstack_util.c hid_parser_test.c hci_dump.c
|
|
${CC} ${CFLAGS} ${CPPFLAGS} $^ ${LDFLAGS} -o $@
|
|
|
|
test: all
|
|
./hid_parser_test
|
|
|
|
clean:
|
|
rm -f hid_parser_test
|
|
rm -f *.o
|
|
rm -rf *.dSYM
|
|
rm -f *.gcno *.gcda
|
|
|