2014-08-29 12:01:39 +00:00
|
|
|
CC = g++
|
|
|
|
|
|
|
|
# Requirements: http://www.cpputest.org/ should be placed in btstack/test
|
|
|
|
|
|
|
|
BTSTACK_ROOT = ../..
|
|
|
|
CPPUTEST_HOME = ${BTSTACK_ROOT}/test/cpputest
|
|
|
|
|
|
|
|
CFLAGS = -g -Wall -I. -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/include -I$(CPPUTEST_HOME)/include
|
2015-05-17 16:07:24 +00:00
|
|
|
LDFLAGS += -lCppUTest -lCppUTestExt
|
|
|
|
# -L$(CPPUTEST_HOME)
|
|
|
|
|
|
|
|
VPATH += ${BTSTACK_ROOT}/ble
|
|
|
|
VPATH += ${BTSTACK_ROOT}/src
|
|
|
|
VPATH += ${BTSTACK_ROOT}/platforms/posix/src
|
2014-08-29 12:01:39 +00:00
|
|
|
|
|
|
|
COMMON = \
|
2015-05-17 16:07:24 +00:00
|
|
|
sdp_util.c \
|
|
|
|
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-05-17 16:07:24 +00:00
|
|
|
test:
|
|
|
|
./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
|
|
|
|
|