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 \ 19*4c7b5f74SMatthias Ringwald spp_server.c \ 206c927b22SMatthias Ringwald mock.c \ 21e04f4e1fSMatthias Ringwald hci_dump.c \ 22eb886013SMatthias Ringwald btstack_util.c \ 23dd280e25S[email protected] 24dd280e25S[email protected]COMMON_OBJ = $(COMMON:.c=.o) 25dd280e25S[email protected] 2620f37ec3S[email protected]all: sdp_rfcomm_query general_sdp_query service_attribute_search_query service_search_query 27dd280e25S[email protected] 28efda0b48SMatthias Ringwaldsdp_rfcomm_query: ${COMMON_OBJ} sdp_client_rfcomm.c sdp_rfcomm_query.c 29f30458f1S[email protected] ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 30f30458f1S[email protected] 31f30458f1S[email protected]general_sdp_query: ${COMMON_OBJ} general_sdp_query.c 32dd280e25S[email protected] ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 33dd280e25S[email protected] 3420f37ec3S[email protected]service_attribute_search_query: ${COMMON_OBJ} service_attribute_search_query.c 3520f37ec3S[email protected] ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3620f37ec3S[email protected] 3720f37ec3S[email protected]service_search_query: ${COMMON_OBJ} service_search_query.c 3820f37ec3S[email protected] ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3920f37ec3S[email protected] 408e8dfe94SMatthias Ringwaldtest: all 4157fe2af8SMatthias Ringwald ./sdp_rfcomm_query 4257fe2af8SMatthias Ringwald ./general_sdp_query 4357fe2af8SMatthias Ringwald ./service_attribute_search_query 4457fe2af8SMatthias Ringwald ./service_search_query 4557fe2af8SMatthias Ringwald 46dd280e25S[email protected]clean: 4757fe2af8SMatthias Ringwald rm -f sdp_rfcomm_query general_sdp_query service_attribute_search_query service_search_query *.o *.o 48dd280e25S[email protected] rm -rf *.dSYM 49dd280e25S[email protected]