160c84a44S[email protected]CC = g++ 260c84a44S[email protected] 360c84a44S[email protected]# Requirements: http://www.cpputest.org/ should be placed in btstack/test 460c84a44S[email protected] 560c84a44S[email protected]BTSTACK_ROOT = ../.. 660c84a44S[email protected]CPPUTEST_HOME = ${BTSTACK_ROOT}/test/cpputest 760c84a44S[email protected] 8085cabc2S[email protected]CFLAGS = -g -Wall -I. -I${BTSTACK_ROOT}/example/libusb -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/ble -I${BTSTACK_ROOT}/include -I$(CPPUTEST_HOME)/include 9*e01fe8b6S[email protected]LDFLAGS += -L$(CPPUTEST_HOME)/lib -lCppUTest -lCppUTestExt 1060c84a44S[email protected] 1160c84a44S[email protected]COMMON = \ 12085cabc2S[email protected] ${BTSTACK_ROOT}/src/utils.c \ 138f5e31a8S[email protected] ${BTSTACK_ROOT}/src/btstack_memory.c \ 148f5e31a8S[email protected] ${BTSTACK_ROOT}/src/memory_pool.c \ 158f5e31a8S[email protected] ${BTSTACK_ROOT}/src/linked_list.c \ 168f5e31a8S[email protected] ${BTSTACK_ROOT}/src/sdp_util.c \ 178f5e31a8S[email protected] ${BTSTACK_ROOT}/src/remote_device_db_memory.c \ 188f5e31a8S[email protected] ${BTSTACK_ROOT}/src/run_loop.c \ 198f5e31a8S[email protected] ${BTSTACK_ROOT}/src/run_loop_posix.c \ 208f5e31a8S[email protected] ${BTSTACK_ROOT}/src/hci_cmds.c \ 21*e01fe8b6S[email protected] ${BTSTACK_ROOT}/src/hci_dump.c \ 22*e01fe8b6S[email protected] ${BTSTACK_ROOT}/src/hci.c \ 238f5e31a8S[email protected] ${BTSTACK_ROOT}/ble/ad_parser.c \ 2460c84a44S[email protected] 2560c84a44S[email protected]COMMON_OBJ = $(COMMON:.c=.o) 2660c84a44S[email protected] 27*e01fe8b6S[email protected]all: ad_parser 2860c84a44S[email protected] 2960c84a44S[email protected]ad_parser: ${CORE_OBJ} ${COMMON_OBJ} advertising_data_parser.c 3060c84a44S[email protected] ${CC} ${CORE_OBJ} ${COMMON_OBJ} advertising_data_parser.c ${CFLAGS} ${LDFLAGS} -o $@ 3160c84a44S[email protected] 3260c84a44S[email protected]clean: 33085cabc2S[email protected] rm -f ad_parser le_central 3460c84a44S[email protected] rm -f *.o ${BTSTACK_ROOT}/src/*.o 3560c84a44S[email protected] rm -rf *.dSYM 3660c84a44S[email protected]