btstack/test/security_manager/Makefile

60 lines
1.3 KiB
Makefile
Raw Normal View History

CC = g++
# Requirements: cpputest.github.io
BTSTACK_ROOT = ../..
CFLAGS = -DUNIT_TEST -g
CPPFLAGS = -x c++ -Wall -Wno-unused
2018-06-26 11:40:35 +00:00
CFLAGS += -I. -I.. -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/platform/posix
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/mbedtls/include
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/micro-ecc
CFLAGS += -I${BTSTACK_ROOT}/test/rijndael
LDFLAGS += -lCppUTest -lCppUTestExt
VPATH += ${BTSTACK_ROOT}/src
2015-11-13 14:04:41 +00:00
VPATH += ${BTSTACK_ROOT}/src/ble
2016-01-20 13:20:47 +00:00
VPATH += ${BTSTACK_ROOT}/platform/posix
VPATH += ${BTSTACK_ROOT}/3rd-party/micro-ecc
VPATH += ${BTSTACK_ROOT}/test/rijndael
COMMON = \
btstack_crypto.c \
btstack_linked_list.c \
btstack_memory.c \
btstack_memory_pool.c \
btstack_run_loop.c \
btstack_run_loop_posix.c \
2016-01-21 10:33:17 +00:00
hci_cmd.c \
hci_dump.c \
le_device_db_memory.c \
mock.c \
rijndael.c \
sm.c \
btstack_util.c \
2019-03-30 20:30:47 +00:00
btstack_tlv.c \
COMMON_OBJ = $(COMMON:.c=.o)
MBEDTLS = \
ecp.c \
ecp_curves.c \
2016-05-07 20:02:06 +00:00
bignum.c \
MICROECC = \
uECC.c
all: security_manager
security_manager: ${CORE_OBJ} ${COMMON_OBJ} security_manager.c
${CC} ${CORE_OBJ} ${COMMON_OBJ} security_manager.c ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o $@
test: all
./security_manager
clean:
rm -f security_manager
rm -f *.o
rm -rf *.dSYM