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] 8*3edc84c5SMatthias RingwaldCFLAGS = -g -Wall -I.. -I${BTSTACK_ROOT}/src 957fe2af8SMatthias RingwaldLDFLAGS += -lCppUTest -lCppUTestExt 1057fe2af8SMatthias Ringwald# -L$(CPPUTEST_HOME) 1157fe2af8SMatthias Ringwald 12*3edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/classic 1357fe2af8SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src 14*3edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix/src 15dd280e25S[email protected] 16dd280e25S[email protected]COMMON = \ 1757fe2af8SMatthias Ringwald sdp_util.c \ 1857fe2af8SMatthias Ringwald sdp_parser.c \ 19e04f4e1fSMatthias Ringwald hci_dump.c \ 2057fe2af8SMatthias Ringwald utils.c \ 21dd280e25S[email protected] 22dd280e25S[email protected]COMMON_OBJ = $(COMMON:.c=.o) 23dd280e25S[email protected] 2420f37ec3S[email protected]all: sdp_rfcomm_query general_sdp_query service_attribute_search_query service_search_query 25dd280e25S[email protected] 2657fe2af8SMatthias Ringwaldsdp_rfcomm_query: ${COMMON_OBJ} sdp_query_rfcomm.c sdp_rfcomm_query.c 27f30458f1S[email protected] ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 28f30458f1S[email protected] 29f30458f1S[email protected]general_sdp_query: ${COMMON_OBJ} general_sdp_query.c 30dd280e25S[email protected] ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 31dd280e25S[email protected] 3220f37ec3S[email protected]service_attribute_search_query: ${COMMON_OBJ} service_attribute_search_query.c 3320f37ec3S[email protected] ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3420f37ec3S[email protected] 3520f37ec3S[email protected]service_search_query: ${COMMON_OBJ} service_search_query.c 3620f37ec3S[email protected] ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ 3720f37ec3S[email protected] 388e8dfe94SMatthias Ringwaldtest: all 3957fe2af8SMatthias Ringwald ./sdp_rfcomm_query 4057fe2af8SMatthias Ringwald ./general_sdp_query 4157fe2af8SMatthias Ringwald ./service_attribute_search_query 4257fe2af8SMatthias Ringwald ./service_search_query 4357fe2af8SMatthias Ringwald 44dd280e25S[email protected]clean: 4557fe2af8SMatthias Ringwald rm -f sdp_rfcomm_query general_sdp_query service_attribute_search_query service_search_query *.o *.o 46dd280e25S[email protected] rm -rf *.dSYM 47dd280e25S[email protected]