2013-11-09 23:48:36 +00:00
|
|
|
CC = g++
|
|
|
|
|
2015-07-03 09:18:03 +00:00
|
|
|
# Requirements: cpputest.github.io
|
2013-11-09 23:48:36 +00:00
|
|
|
|
|
|
|
BTSTACK_ROOT = ../..
|
|
|
|
|
2015-07-03 09:18:03 +00:00
|
|
|
CFLAGS = -g -Wall -I.. -I${BTSTACK_ROOT}/example/libusb -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/ble -I${BTSTACK_ROOT}/include
|
2014-06-26 12:48:47 +00:00
|
|
|
LDFLAGS += -L$(CPPUTEST_HOME)/lib -lCppUTest -lCppUTestExt
|
2013-11-09 23:48:36 +00:00
|
|
|
|
2015-11-13 14:04:41 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/src/ble
|
2015-05-14 06:25:34 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/src
|
2016-01-20 13:20:47 +00:00
|
|
|
VPATH += ${BTSTACK_ROOT}/platform/posix
|
2015-05-14 06:25:34 +00:00
|
|
|
|
2013-11-09 23:48:36 +00:00
|
|
|
COMMON = \
|
2016-01-06 16:31:20 +00:00
|
|
|
ad_parser.c \
|
2016-01-20 13:34:04 +00:00
|
|
|
btstack_linked_list.c \
|
2015-05-14 06:25:34 +00:00
|
|
|
btstack_memory.c \
|
2016-01-06 16:31:20 +00:00
|
|
|
hci.c \
|
|
|
|
hci_cmds.c \
|
|
|
|
hci_dump.c \
|
2016-01-20 13:56:28 +00:00
|
|
|
btstack_memory_pool.c \
|
2015-05-14 06:25:34 +00:00
|
|
|
run_loop.c \
|
2016-01-20 14:38:37 +00:00
|
|
|
btstack_run_loop_posix.c \
|
2016-01-06 16:31:20 +00:00
|
|
|
utils.c \
|
2013-11-09 23:48:36 +00:00
|
|
|
|
|
|
|
COMMON_OBJ = $(COMMON:.c=.o)
|
|
|
|
|
2014-06-26 12:48:47 +00:00
|
|
|
all: ad_parser
|
2013-11-09 23:48:36 +00:00
|
|
|
|
|
|
|
ad_parser: ${CORE_OBJ} ${COMMON_OBJ} advertising_data_parser.c
|
|
|
|
${CC} ${CORE_OBJ} ${COMMON_OBJ} advertising_data_parser.c ${CFLAGS} ${LDFLAGS} -o $@
|
|
|
|
|
2015-07-03 09:18:03 +00:00
|
|
|
test: all
|
2015-05-17 16:07:24 +00:00
|
|
|
./ad_parser
|
|
|
|
|
2013-11-09 23:48:36 +00:00
|
|
|
clean:
|
2014-02-28 21:44:39 +00:00
|
|
|
rm -f ad_parser le_central
|
2015-05-14 06:25:34 +00:00
|
|
|
rm -f *.o
|
2013-11-09 23:48:36 +00:00
|
|
|
rm -rf *.dSYM
|
|
|
|
|