btstack/test/ble_client/Makefile

40 lines
945 B
Makefile
Raw Normal View History

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