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] 7652b0339SMatthias RingwaldCFLAGS = -DUNIT_TEST -x c++ -g -Wall -Wno-unused -I. -I.. -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/ble -I${BTSTACK_ROOT}/include 857fe2af8SMatthias RingwaldLDFLAGS += -lCppUTest -lCppUTestExt 957fe2af8SMatthias Ringwald 1057fe2af8SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src 11*3edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/ble 12*3edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/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 run_loop.c \ 2057fe2af8SMatthias Ringwald run_loop_posix.c \ 2157fe2af8SMatthias Ringwald hci_cmds.c \ 2257fe2af8SMatthias Ringwald hci_dump.c \ 2357fe2af8SMatthias Ringwald sm.c \ 2457fe2af8SMatthias Ringwald le_device_db_memory.c \ 25fdcd1130S[email protected] rijndael.c \ 26fdcd1130S[email protected] mock.c 27fdcd1130S[email protected] 28fdcd1130S[email protected]COMMON_OBJ = $(COMMON:.c=.o) 29fdcd1130S[email protected] 30e2bc2c15S[email protected]all: security_manager aestest 31fdcd1130S[email protected] 32fdcd1130S[email protected]security_manager: ${CORE_OBJ} ${COMMON_OBJ} security_manager.c 33fdcd1130S[email protected] ${CC} ${CORE_OBJ} ${COMMON_OBJ} security_manager.c ${CFLAGS} ${LDFLAGS} -o $@ 34fdcd1130S[email protected] 35e2bc2c15S[email protected]aestest: aestest.c rijndael.c 36e30c0588SMatthias Ringwald ${CC} ${CFLAGS} rijndael.c aestest.c -o $@ 37e2bc2c15S[email protected] 388e8dfe94SMatthias Ringwaldtest: all 3957fe2af8SMatthias Ringwald ./security_manager 4057fe2af8SMatthias Ringwald ./aestest 4157fe2af8SMatthias Ringwald 42fdcd1130S[email protected]clean: 43fdcd1130S[email protected] rm -f security_manager 44cbe987fbSMatthias Ringwald rm -f *.o 45fdcd1130S[email protected] rm -rf *.dSYM 46fdcd1130S[email protected]