2013-05-24 20:29:02 +00:00
|
|
|
CC = g++
|
|
|
|
|
2015-07-03 11:18:03 +02:00
|
|
|
# Requirements: cpputest.github.io
|
2013-05-24 20:29:02 +00:00
|
|
|
|
|
|
|
BTSTACK_ROOT = ../..
|
|
|
|
CPPUTEST_HOME = ${BTSTACK_ROOT}/test/cpputest
|
|
|
|
|
2015-11-13 15:04:41 +01:00
|
|
|
CFLAGS = -g -Wall -I.. -I${BTSTACK_ROOT}/src
|
2015-05-17 18:07:24 +02:00
|
|
|
LDFLAGS += -lCppUTest -lCppUTestExt
|
|
|
|
# -L$(CPPUTEST_HOME)
|
|
|
|
|
2015-11-13 15:04:41 +01:00
|
|
|
VPATH += ${BTSTACK_ROOT}/src/classic
|
2015-05-17 18:07:24 +02:00
|
|
|
VPATH += ${BTSTACK_ROOT}/src
|
2016-01-20 14:20:47 +01:00
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/posix
|
2013-05-24 20:29:02 +00:00
|
|
|
|
|
|
|
COMMON = \
|
2015-05-17 18:07:24 +02:00
|
|
|
sdp_util.c \
|
2016-02-17 20:21:21 +01:00
|
|
|
sdp_client.c \
|
|
|
|
mock.c \
|
2015-10-11 23:31:11 +02:00
|
|
|
hci_dump.c \
|
2016-01-20 16:10:07 +01: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 11:24:38 +01: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 11:18:03 +02:00
|
|
|
test: all
|
2015-05-17 18:07:24 +02: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 18:07:24 +02: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
|
|
|
|
|