2013-05-24 20:29:02 +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
|
|
|
|
LDFLAGS += -L$(CPPUTEST_HOME) -lCppUTest -lCppUTestExt
|
|
|
|
|
|
|
|
COMMON = \
|
|
|
|
${BTSTACK_ROOT}/src/sdp_util.c \
|
|
|
|
${BTSTACK_ROOT}/src/sdp_parser.c \
|
|
|
|
${BTSTACK_ROOT}/src/utils.c \
|
|
|
|
|
|
|
|
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
|
|
|
|
2013-06-10 21:05:53 +00:00
|
|
|
sdp_rfcomm_query: ${COMMON_OBJ} ${BTSTACK_ROOT}/src/sdp_query_rfcomm.c sdp_rfcomm_query.c
|
|
|
|
${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 $@
|
|
|
|
|
2013-05-24 20:29:02 +00:00
|
|
|
clean:
|
2013-11-01 13:12:53 +00:00
|
|
|
rm -f sdp_rfcomm_query general_sdp_query service_attribute_search_query service_search_query *.o ${BTSTACK_ROOT}/src/*.o
|
2013-05-24 20:29:02 +00:00
|
|
|
rm -rf *.dSYM
|
|
|
|
|