1fdcd1130S[email protected]CC = g++ 2fdcd1130S[email protected] 3fdcd1130S[email protected]# Requirements: http://www.cpputest.org/ should be placed in btstack/test 4fdcd1130S[email protected] 5fdcd1130S[email protected]BTSTACK_ROOT = ../.. 6fdcd1130S[email protected]CPPUTEST_HOME = ${BTSTACK_ROOT}/test/cpputest 7fdcd1130S[email protected] 8fdcd1130S[email protected]CFLAGS = -DUNIT_TEST -g -Wall -I. -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/ble -I${BTSTACK_ROOT}/include -I$(CPPUTEST_HOME)/include 9fdcd1130S[email protected]LDFLAGS += -L$(CPPUTEST_HOME) -lCppUTest -lCppUTestExt 10fdcd1130S[email protected] 11fdcd1130S[email protected]COMMON = \ 12fdcd1130S[email protected] ${BTSTACK_ROOT}/src/utils.c \ 13fdcd1130S[email protected] ${BTSTACK_ROOT}/src/btstack_memory.c \ 14fdcd1130S[email protected] ${BTSTACK_ROOT}/src/memory_pool.c \ 15fdcd1130S[email protected] ${BTSTACK_ROOT}/src/linked_list.c \ 16fdcd1130S[email protected] ${BTSTACK_ROOT}/src/sdp_util.c \ 17fdcd1130S[email protected] ${BTSTACK_ROOT}/src/remote_device_db_memory.c \ 18fdcd1130S[email protected] ${BTSTACK_ROOT}/src/run_loop.c \ 19fdcd1130S[email protected] ${BTSTACK_ROOT}/src/run_loop_posix.c \ 20fdcd1130S[email protected] ${BTSTACK_ROOT}/src/hci_cmds.c \ 21fdcd1130S[email protected] ${BTSTACK_ROOT}/src/hci_dump.c \ 22fdcd1130S[email protected] ${BTSTACK_ROOT}/ble/sm.c \ 23fdcd1130S[email protected] ${BTSTACK_ROOT}/ble/central_device_db_memory.c \ 24fdcd1130S[email protected] rijndael.c \ 25fdcd1130S[email protected] mock.c 26fdcd1130S[email protected] 27fdcd1130S[email protected]COMMON_OBJ = $(COMMON:.c=.o) 28fdcd1130S[email protected] 29*e2bc2c15S[email protected]all: security_manager aestest 30fdcd1130S[email protected] 31fdcd1130S[email protected]security_manager: ${CORE_OBJ} ${COMMON_OBJ} security_manager.c 32fdcd1130S[email protected] ${CC} ${CORE_OBJ} ${COMMON_OBJ} security_manager.c ${CFLAGS} ${LDFLAGS} -o $@ 33fdcd1130S[email protected] 34*e2bc2c15S[email protected]aestest: aestest.c rijndael.c 35*e2bc2c15S[email protected] ${CC} ${CFLAGS} -m32 rijndael.c aestest.c -o $@ 36*e2bc2c15S[email protected] 37fdcd1130S[email protected]clean: 38fdcd1130S[email protected] rm -f security_manager 39fdcd1130S[email protected] rm -f *.o ${BTSTACK_ROOT}/src/*.o 40fdcd1130S[email protected] rm -rf *.dSYM 41fdcd1130S[email protected]