btstack/test/sdp_client/Makefile

49 lines
1.2 KiB
Makefile
Raw Normal View History

CC = g++
# Requirements: cpputest.github.io
BTSTACK_ROOT = ../..
CPPUTEST_HOME = ${BTSTACK_ROOT}/test/cpputest
2015-11-13 14:04:41 +00:00
CFLAGS = -g -Wall -I.. -I${BTSTACK_ROOT}/src
LDFLAGS += -lCppUTest -lCppUTestExt
# -L$(CPPUTEST_HOME)
2015-11-13 14:04:41 +00:00
VPATH += ${BTSTACK_ROOT}/src/classic
VPATH += ${BTSTACK_ROOT}/src
2016-01-20 13:20:47 +00:00
VPATH += ${BTSTACK_ROOT}/platform/posix
COMMON = \
sdp_util.c \
sdp_client.c \
2016-03-28 10:04:29 +00:00
spp_server.c \
mock.c \
2015-10-11 21:31:11 +00:00
hci_dump.c \
btstack_util.c \
COMMON_OBJ = $(COMMON:.c=.o)
all: sdp_rfcomm_query general_sdp_query service_attribute_search_query service_search_query
sdp_rfcomm_query: ${COMMON_OBJ} sdp_client_rfcomm.c sdp_rfcomm_query.c
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
general_sdp_query: ${COMMON_OBJ} general_sdp_query.c
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
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 $@
test: all
./sdp_rfcomm_query
./general_sdp_query
./service_attribute_search_query
./service_search_query
clean:
rm -f sdp_rfcomm_query general_sdp_query service_attribute_search_query service_search_query *.o *.o
rm -rf *.dSYM