mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-10 10:21:48 +00:00
31 lines
529 B
Makefile
31 lines
529 B
Makefile
|
CC = g++
|
||
|
|
||
|
# Requirements: cpputest.github.io
|
||
|
|
||
|
BTSTACK_ROOT = ../..
|
||
|
|
||
|
CFLAGS = -DUNIT_TEST -g
|
||
|
CPPFLAGS = -x c++ -Wall -Wno-unused
|
||
|
CFLAGS += -I. -I.. -I${BTSTACK_ROOT}/src
|
||
|
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
|
||
|
|