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