160c84a44S[email protected]CC = g++ 260c84a44S[email protected] 38e8dfe94SMatthias Ringwald# Requirements: cpputest.github.io 460c84a44S[email protected] 560c84a44S[email protected]BTSTACK_ROOT = ../.. 660c84a44S[email protected] 78e8dfe94SMatthias RingwaldCFLAGS = -g -Wall -I.. -I${BTSTACK_ROOT}/example/libusb -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/ble -I${BTSTACK_ROOT}/include 8e01fe8b6S[email protected]LDFLAGS += -L$(CPPUTEST_HOME)/lib -lCppUTest -lCppUTestExt 960c84a44S[email protected] 10*3edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/ble 11cbe987fbSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src 12*3edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix/src 13cbe987fbSMatthias Ringwald 1460c84a44S[email protected]COMMON = \ 15cbe987fbSMatthias Ringwald utils.c \ 16cbe987fbSMatthias Ringwald btstack_memory.c \ 17cbe987fbSMatthias Ringwald memory_pool.c \ 18cbe987fbSMatthias Ringwald linked_list.c \ 19cbe987fbSMatthias Ringwald run_loop.c \ 20cbe987fbSMatthias Ringwald run_loop_posix.c \ 21cbe987fbSMatthias Ringwald hci_cmds.c \ 22cbe987fbSMatthias Ringwald hci_dump.c \ 23cbe987fbSMatthias Ringwald hci.c \ 24cbe987fbSMatthias Ringwald ad_parser.c \ 2560c84a44S[email protected] 2660c84a44S[email protected]COMMON_OBJ = $(COMMON:.c=.o) 2760c84a44S[email protected] 28e01fe8b6S[email protected]all: ad_parser 2960c84a44S[email protected] 3060c84a44S[email protected]ad_parser: ${CORE_OBJ} ${COMMON_OBJ} advertising_data_parser.c 3160c84a44S[email protected] ${CC} ${CORE_OBJ} ${COMMON_OBJ} advertising_data_parser.c ${CFLAGS} ${LDFLAGS} -o $@ 3260c84a44S[email protected] 338e8dfe94SMatthias Ringwaldtest: all 3457fe2af8SMatthias Ringwald ./ad_parser 3557fe2af8SMatthias Ringwald 3660c84a44S[email protected]clean: 37085cabc2S[email protected] rm -f ad_parser le_central 38cbe987fbSMatthias Ringwald rm -f *.o 3960c84a44S[email protected] rm -rf *.dSYM 4060c84a44S[email protected]