comple le_central test

This commit is contained in:
mila@ringwald.ch 2014-02-28 21:44:39 +00:00
parent 44e6dbc206
commit 085cabc211

View File

@ -5,21 +5,28 @@ CC = g++
BTSTACK_ROOT = ../..
CPPUTEST_HOME = ${BTSTACK_ROOT}/test/cpputest
CFLAGS = -g -Wall -I. -I${BTSTACK_ROOT}/example/libusb -I${BTSTACK_ROOT}/include -I$(CPPUTEST_HOME)/include
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
LDFLAGS += -L$(CPPUTEST_HOME) -lCppUTest -lCppUTestExt
COMMON = \
${BTSTACK_ROOT}/example/libusb/ad_parser.c \
${BTSTACK_ROOT}/src/sdp_util.c \
${BTSTACK_ROOT}/src/utils.c \
${BTSTACK_ROOT}/ble/att.c \
${BTSTACK_ROOT}/example/libusb/ble_client.c \
COMMON_OBJ = $(COMMON:.c=.o)
all: ad_parser
all: ad_parser le_central
ad_parser: ${CORE_OBJ} ${COMMON_OBJ} advertising_data_parser.c
${CC} ${CORE_OBJ} ${COMMON_OBJ} advertising_data_parser.c ${CFLAGS} ${LDFLAGS} -o $@
le_central: ${CORE_OBJ} ${COMMON_OBJ} central.c
${CC} ${CORE_OBJ} ${COMMON_OBJ} central.c ${CFLAGS} ${LDFLAGS} -o $@
clean:
rm -f ad_parser
rm -f ad_parser le_central
rm -f *.o ${BTSTACK_ROOT}/src/*.o
rm -rf *.dSYM