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