mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
42 lines
979 B
Makefile
42 lines
979 B
Makefile
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
|
|
|
|
VPATH += ${BTSTACK_ROOT}/ble
|
|
VPATH += ${BTSTACK_ROOT}/src
|
|
VPATH += ${BTSTACK_ROOT}/platforms/posix/src
|
|
|
|
COMMON = \
|
|
utils.c \
|
|
btstack_memory.c \
|
|
memory_pool.c \
|
|
linked_list.c \
|
|
sdp_util.c \
|
|
remote_device_db_memory.c \
|
|
run_loop.c \
|
|
run_loop_posix.c \
|
|
hci_cmds.c \
|
|
hci_dump.c \
|
|
hci.c \
|
|
ad_parser.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:
|
|
rm -f ad_parser le_central
|
|
rm -f *.o
|
|
rm -rf *.dSYM
|
|
|