2014-08-29 12:01:39 +00:00
|
|
|
CC = g++
|
|
|
|
|
2015-07-03 09:18:03 +00:00
|
|
|
# Requirements: cpputest.github.io
|
2014-08-29 12:01:39 +00:00
|
|
|
|
|
|
|
BTSTACK_ROOT = ../..
|
|
|
|
|
2015-07-27 20:51:29 +00:00
|
|
|
CFLAGS = -g -Wall -I.. -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/include
|
2015-05-17 16:07:24 +00:00
|
|
|
LDFLAGS += -lCppUTest -lCppUTestExt
|
|
|
|
|
|
|
|
VPATH += ${BTSTACK_ROOT}/src
|
2015-11-13 14:04:41 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/src/classic
|
2016-01-20 13:20:47 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/posix
|
2014-08-29 12:01:39 +00:00
|
|
|
|
|
|
|
COMMON = \
|
2015-05-17 16:07:24 +00:00
|
|
|
sdp_util.c \
|
2015-10-11 21:31:11 +00:00
|
|
|
hci_dump.c \
|
2015-05-17 16:07:24 +00:00
|
|
|
utils.c
|
2014-08-29 12:01:39 +00:00
|
|
|
|
|
|
|
COMMON_OBJ = $(COMMON:.c=.o)
|
|
|
|
|
|
|
|
all: des_iterator_test
|
|
|
|
|
|
|
|
des_iterator_test: ${COMMON_OBJ} des_iterator_test.c
|
|
|
|
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
|
|
|
|
|
2015-07-03 09:18:03 +00:00
|
|
|
test: all
|
2015-05-17 16:07:24 +00:00
|
|
|
./des_iterator_test
|
2014-08-29 12:01:39 +00:00
|
|
|
|
|
|
|
clean:
|
2015-05-17 16:07:24 +00:00
|
|
|
rm -f des_iterator_test *.o
|
2014-08-29 12:01:39 +00:00
|
|
|
rm -rf *.dSYM
|
|
|
|
|