1dd280e25S[email protected]CC = g++ 2dd280e25S[email protected] 38e8dfe94SMatthias Ringwald# Requirements: cpputest.github.io 4dd280e25S[email protected] 5dd280e25S[email protected]BTSTACK_ROOT = ../.. 6dd280e25S[email protected]CPPUTEST_HOME = ${BTSTACK_ROOT}/test/cpputest 7dd280e25S[email protected] 83edc84c5SMatthias RingwaldCFLAGS = -g -Wall -I.. -I${BTSTACK_ROOT}/src 957fe2af8SMatthias RingwaldLDFLAGS += -lCppUTest -lCppUTestExt 1057fe2af8SMatthias Ringwald# -L$(CPPUTEST_HOME) 1157fe2af8SMatthias Ringwald 123edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/classic 1357fe2af8SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src 14dd9e275cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix 15dd280e25S[email protected] 16dd280e25S[email protected]COMMON = \ 1757fe2af8SMatthias Ringwald sdp_util.c \ 186c927b22SMatthias Ringwald sdp_client.c \ 196c927b22SMatthias Ringwald mock.c \ 20e04f4e1fSMatthias Ringwald hci_dump.c \ 21eb886013SMatthias Ringwald btstack_util.c \ 22dd280e25S[email protected] 23dd280e25S[email protected]COMMON_OBJ = $(COMMON:.c=.o) 24dd280e25S[email protected] 2520f37ec3S[email protected]all: sdp_rfcomm_query general_sdp_query service_attribute_search_query service_search_query 26dd280e25S[email protected] 27*efda0b48SMatthias Ringwaldsdp_rfcomm_query: ${COMMON_OBJ} sdp_client_rfcomm.c sdp_rfcomm_query.c 28f30458f1S[email protected] ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 29f30458f1S[email protected] 30f30458f1S[email protected]general_sdp_query: ${COMMON_OBJ} general_sdp_query.c 31dd280e25S[email protected] ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 32dd280e25S[email protected] 3320f37ec3S[email protected]service_attribute_search_query: ${COMMON_OBJ} service_attribute_search_query.c 3420f37ec3S[email protected] ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3520f37ec3S[email protected] 3620f37ec3S[email protected]service_search_query: ${COMMON_OBJ} service_search_query.c 3720f37ec3S[email protected] ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3820f37ec3S[email protected] 398e8dfe94SMatthias Ringwaldtest: all 4057fe2af8SMatthias Ringwald ./sdp_rfcomm_query 4157fe2af8SMatthias Ringwald ./general_sdp_query 4257fe2af8SMatthias Ringwald ./service_attribute_search_query 4357fe2af8SMatthias Ringwald ./service_search_query 4457fe2af8SMatthias Ringwald 45dd280e25S[email protected]clean: 4657fe2af8SMatthias Ringwald rm -f sdp_rfcomm_query general_sdp_query service_attribute_search_query service_search_query *.o *.o 47dd280e25S[email protected] rm -rf *.dSYM 48dd280e25S[email protected]