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