1fdcd1130S[email protected]CC = g++ 2fdcd1130S[email protected] 38e8dfe94SMatthias Ringwald# Requirements: cpputest.github.io 4fdcd1130S[email protected] 5fdcd1130S[email protected]BTSTACK_ROOT = ../.. 6fdcd1130S[email protected] 794d1976dSMatthias RingwaldCFLAGS = -DUNIT_TEST -g 894d1976dSMatthias RingwaldCPPFLAGS = -x c++ -Wall -Wno-unused 99e6f2329SMatthias RingwaldCFLAGS += -I. -I.. -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/platform/posix 1094d1976dSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/mbedtls/include 11af03003cSMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/3rd-party/micro-ecc 127d6d7cf5SMatthias RingwaldCFLAGS += -I${BTSTACK_ROOT}/test/rijndael 1357fe2af8SMatthias RingwaldLDFLAGS += -lCppUTest -lCppUTestExt 1457fe2af8SMatthias Ringwald 1557fe2af8SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src 163edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/ble 17dd9e275cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix 18af03003cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/3rd-party/micro-ecc 197d6d7cf5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/test/rijndael 20fdcd1130S[email protected] 21fdcd1130S[email protected]COMMON = \ 226894dd39SMatthias Ringwald btstack_crypto.c \ 234ab92137SMatthias Ringwald btstack_linked_list.c \ 2457fe2af8SMatthias Ringwald btstack_memory.c \ 25d2e6c4b7SMatthias Ringwald btstack_memory_pool.c \ 264ab92137SMatthias Ringwald btstack_run_loop.c \ 278f2a52f4SMatthias Ringwald btstack_run_loop_posix.c \ 2856042629SMatthias Ringwald hci_cmd.c \ 2957fe2af8SMatthias Ringwald hci_dump.c \ 3057fe2af8SMatthias Ringwald le_device_db_memory.c \ 31a484130cSMatthias Ringwald mock.c \ 324ab92137SMatthias Ringwald rijndael.c \ 334ab92137SMatthias Ringwald sm.c \ 34eb886013SMatthias Ringwald btstack_util.c \ 35fdcd1130S[email protected] 36fdcd1130S[email protected]COMMON_OBJ = $(COMMON:.c=.o) 37fdcd1130S[email protected] 3894d1976dSMatthias RingwaldMBEDTLS = \ 3994d1976dSMatthias Ringwald ecp.c \ 4094d1976dSMatthias Ringwald ecp_curves.c \ 41cd4b45e2SMatthias Ringwald bignum.c \ 4294d1976dSMatthias Ringwald 43af03003cSMatthias RingwaldMICROECC = \ 44af03003cSMatthias Ringwald uECC.c 45af03003cSMatthias Ringwald 46*bdcc259dSMatthias Ringwaldall: security_manager 47fdcd1130S[email protected] 48fdcd1130S[email protected]security_manager: ${CORE_OBJ} ${COMMON_OBJ} security_manager.c 4994d1976dSMatthias Ringwald ${CC} ${CORE_OBJ} ${COMMON_OBJ} security_manager.c ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o $@ 50fdcd1130S[email protected] 518e8dfe94SMatthias Ringwaldtest: all 5257fe2af8SMatthias Ringwald ./security_manager 5357fe2af8SMatthias Ringwald 54fdcd1130S[email protected]clean: 55*bdcc259dSMatthias Ringwald rm -f security_manager 56cbe987fbSMatthias Ringwald rm -f *.o 57fdcd1130S[email protected] rm -rf *.dSYM 58fdcd1130S[email protected] 59