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] 78e8dfe94SMatthias RingwaldCFLAGS = -DUNIT_TEST -x c++ -g -Wall -Wno-unused -I. -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/ble -I${BTSTACK_ROOT}/include 857fe2af8SMatthias RingwaldLDFLAGS += -lCppUTest -lCppUTestExt 957fe2af8SMatthias Ringwald 1057fe2af8SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/ble 1157fe2af8SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src 1257fe2af8SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platforms/posix/src 13fdcd1130S[email protected] 14fdcd1130S[email protected]COMMON = \ 1557fe2af8SMatthias Ringwald utils.c \ 1657fe2af8SMatthias Ringwald btstack_memory.c \ 1757fe2af8SMatthias Ringwald memory_pool.c \ 1857fe2af8SMatthias Ringwald linked_list.c \ 1957fe2af8SMatthias Ringwald sdp_util.c \ 2057fe2af8SMatthias Ringwald remote_device_db_memory.c \ 2157fe2af8SMatthias Ringwald run_loop.c \ 2257fe2af8SMatthias Ringwald run_loop_posix.c \ 2357fe2af8SMatthias Ringwald hci_cmds.c \ 2457fe2af8SMatthias Ringwald hci_dump.c \ 2557fe2af8SMatthias Ringwald sm.c \ 2657fe2af8SMatthias Ringwald le_device_db_memory.c \ 27fdcd1130S[email protected] rijndael.c \ 28fdcd1130S[email protected] mock.c 29fdcd1130S[email protected] 30fdcd1130S[email protected]COMMON_OBJ = $(COMMON:.c=.o) 31fdcd1130S[email protected] 32e2bc2c15S[email protected]all: security_manager aestest 33fdcd1130S[email protected] 34fdcd1130S[email protected]security_manager: ${CORE_OBJ} ${COMMON_OBJ} security_manager.c 35fdcd1130S[email protected] ${CC} ${CORE_OBJ} ${COMMON_OBJ} security_manager.c ${CFLAGS} ${LDFLAGS} -o $@ 36fdcd1130S[email protected] 37e2bc2c15S[email protected]aestest: aestest.c rijndael.c 38*e30c0588SMatthias Ringwald ${CC} ${CFLAGS} rijndael.c aestest.c -o $@ 39e2bc2c15S[email protected] 408e8dfe94SMatthias Ringwaldtest: all 4157fe2af8SMatthias Ringwald ./security_manager 4257fe2af8SMatthias Ringwald ./aestest 4357fe2af8SMatthias Ringwald 44fdcd1130S[email protected]clean: 45fdcd1130S[email protected] rm -f security_manager 46cbe987fbSMatthias Ringwald rm -f *.o 47fdcd1130S[email protected] rm -rf *.dSYM 48fdcd1130S[email protected]