2013-05-24 20:29:02 +00:00
|
|
|
CC = g++
|
|
|
|
|
2015-07-03 09:18:03 +00:00
|
|
|
# Requirements: cpputest.github.io
|
2013-05-24 20:29:02 +00:00
|
|
|
|
|
|
|
BTSTACK_ROOT = ../..
|
|
|
|
CPPUTEST_HOME = ${BTSTACK_ROOT}/test/cpputest
|
|
|
|
|
2015-11-13 14:04:41 +00:00
|
|
|
CFLAGS = -g -Wall -I.. -I${BTSTACK_ROOT}/src
|
2015-05-17 16:07:24 +00:00
|
|
|
LDFLAGS += -lCppUTest -lCppUTestExt
|
|
|
|
# -L$(CPPUTEST_HOME)
|
|
|
|
|
2015-11-13 14:04:41 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/src/classic
|
2015-05-17 16:07:24 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/src
|
2016-01-20 13:20:47 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/posix
|
2013-05-24 20:29:02 +00:00
|
|
|
|
|
|
|
COMMON = \
|
2015-05-17 16:07:24 +00:00
|
|
|
sdp_util.c \
|
2016-02-17 19:21:21 +00:00
|
|
|
sdp_client.c \
|
2016-03-28 10:04:29 +00:00
|
|
|
spp_server.c \
|
2016-02-17 19:21:21 +00:00
|
|
|
mock.c \
|
2015-10-11 21:31:11 +00:00
|
|
|
hci_dump.c \
|
2016-01-20 15:10:07 +00:00
|
|
|
btstack_util.c \
|
2013-05-24 20:29:02 +00:00
|
|
|
|
|
|
|
COMMON_OBJ = $(COMMON:.c=.o)
|
|
|
|
|
2013-11-01 13:12:53 +00:00
|
|
|
all: sdp_rfcomm_query general_sdp_query service_attribute_search_query service_search_query
|
2013-05-24 20:29:02 +00:00
|
|
|
|
2016-03-17 10:24:38 +00:00
|
|
|
sdp_rfcomm_query: ${COMMON_OBJ} sdp_client_rfcomm.c sdp_rfcomm_query.c
|
2013-06-10 21:05:53 +00:00
|
|
|
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
|
|
|
|
|
|
|
|
general_sdp_query: ${COMMON_OBJ} general_sdp_query.c
|
2013-05-24 20:29:02 +00:00
|
|
|
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
|
|
|
|
|
2013-11-01 13:12:53 +00:00
|
|
|
service_attribute_search_query: ${COMMON_OBJ} service_attribute_search_query.c
|
|
|
|
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
|
|
|
|
|
|
|
|
service_search_query: ${COMMON_OBJ} service_search_query.c
|
|
|
|
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
|
|
|
|
|
2015-07-03 09:18:03 +00:00
|
|
|
test: all
|
2015-05-17 16:07:24 +00:00
|
|
|
./sdp_rfcomm_query
|
|
|
|
./general_sdp_query
|
|
|
|
./service_attribute_search_query
|
|
|
|
./service_search_query
|
|
|
|
|
2013-05-24 20:29:02 +00:00
|
|
|
clean:
|
2015-05-17 16:07:24 +00:00
|
|
|
rm -f sdp_rfcomm_query general_sdp_query service_attribute_search_query service_search_query *.o *.o
|
2013-05-24 20:29:02 +00:00
|
|
|
rm -rf *.dSYM
|
|
|
|
|