1CC = g++ 2 3# Requirements: cpputest.github.io 4 5BTSTACK_ROOT = ../.. 6 7CFLAGS = -g -Wall \ 8 -I.. \ 9 -I${BTSTACK_ROOT}/src 10 11LDFLAGS += -lCppUTest -lCppUTestExt 12 13VPATH += ${BTSTACK_ROOT}/src 14VPATH += ${BTSTACK_ROOT}/src/ble 15VPATH += ${BTSTACK_ROOT}/platform/posix 16 17COMMON = \ 18 btstack_util.c \ 19 hci_dump.c \ 20 att_db_util.c \ 21 22COMMON_OBJ = $(COMMON:.c=.o) 23 24all: att_db_util_test 25 26att_db_util_test: ${COMMON_OBJ} att_db_util_test.c 27 ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 28 29test: all 30 ./att_db_util_test 31 32clean: 33 rm -f att_db_util_test 34 rm -f *.o 35 rm -rf *.dSYM 36 37