xref: /btstack/test/security_manager/Makefile (revision dd9e275ce1e161b989cd6bcc449a6811be29e011)
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]
7f89ed3dcSMatthias RingwaldCFLAGS  = -DUNIT_TEST -x c++ -g -Wall -Wno-unused
8*dd9e275cSMatthias RingwaldCFLAGS += -I. -I.. -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/ble -I${BTSTACK_ROOT}/platform/posix
957fe2af8SMatthias RingwaldLDFLAGS +=  -lCppUTest -lCppUTestExt
1057fe2af8SMatthias Ringwald
1157fe2af8SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src
123edc84c5SMatthias RingwaldVPATH += ${BTSTACK_ROOT}/src/ble
13*dd9e275cSMatthias RingwaldVPATH += ${BTSTACK_ROOT}/platform/posix
14fdcd1130S[email protected]
15fdcd1130S[email protected]COMMON = \
1657fe2af8SMatthias Ringwald    utils.c			            \
1757fe2af8SMatthias Ringwald    btstack_memory.c			\
1857fe2af8SMatthias Ringwald    memory_pool.c			    \
19a484130cSMatthias Ringwald    bk_linked_list.c		    \
2057fe2af8SMatthias Ringwald    run_loop.c					\
2157fe2af8SMatthias Ringwald    run_loop_posix.c			\
2257fe2af8SMatthias Ringwald    hci_cmds.c					\
2357fe2af8SMatthias Ringwald    hci_dump.c					\
2457fe2af8SMatthias Ringwald    sm.c     					\
2557fe2af8SMatthias Ringwald    le_device_db_memory.c       \
26fdcd1130S[email protected]    rijndael.c 					\
27a484130cSMatthias Ringwald    mock.c 				        \
28fdcd1130S[email protected]
29fdcd1130S[email protected]COMMON_OBJ = $(COMMON:.c=.o)
30fdcd1130S[email protected]
31e2bc2c15S[email protected]all: security_manager aestest
32fdcd1130S[email protected]
33fdcd1130S[email protected]security_manager: ${CORE_OBJ} ${COMMON_OBJ} security_manager.c
34fdcd1130S[email protected]	${CC} ${CORE_OBJ} ${COMMON_OBJ} security_manager.c ${CFLAGS} ${LDFLAGS} -o $@
35fdcd1130S[email protected]
36e2bc2c15S[email protected]aestest: aestest.c rijndael.c
37e30c0588SMatthias Ringwald	${CC} ${CFLAGS} rijndael.c aestest.c -o $@
38e2bc2c15S[email protected]
398e8dfe94SMatthias Ringwaldtest: all
4057fe2af8SMatthias Ringwald	./security_manager
4157fe2af8SMatthias Ringwald	./aestest
4257fe2af8SMatthias Ringwald
43fdcd1130S[email protected]clean:
44fdcd1130S[email protected]	rm -f  security_manager
45cbe987fbSMatthias Ringwald	rm -f  *.o
46fdcd1130S[email protected]	rm -rf *.dSYM
47fdcd1130S[email protected]