test/crypto: link cpputest libs at end of link command

This commit is contained in:
Matthias Ringwald 2021-03-07 21:27:00 +01:00
parent 716552ac20
commit da91170462

View File

@ -44,35 +44,35 @@ build-asan/%.cpp.o: %.c | build-asan
build-coverage/aes_ccm_test: build-coverage/aes_ccm.o build-coverage/aes_ccm_test.o build-coverage/btstack_crypto.o build-coverage/btstack_linked_list.o build-coverage/hci_cmd.o build-coverage/btstack_util.o build-coverage/hci_dump.o build-coverage/aes_cmac.o build-coverage/rijndael.o build-coverage/mock.o | build-coverage
${CC} ${LDFLAGS_COVERAGE} $^ -o $@
${CC} $^ ${LDFLAGS_COVERAGE} -o $@
build-coverage/aestest: build-coverage/aestest.o build-coverage/rijndael.o | build-coverage
${CC} ${LDFLAGS_COVERAGE} $^ -o $@
${CC} $^ ${LDFLAGS_COVERAGE} -o $@
build-coverage/ecc_micro_ecc: build-coverage/ecc_micro_ecc.o build-coverage/uECC.o | build-coverage
${CC} ${LDFLAGS_COVERAGE} $^ -o $@
${CC} $^ ${LDFLAGS_COVERAGE} -o $@
build-coverage/aes_cmac_test: build-coverage/aes_cmac_test.o build-coverage/aes_cmac.o build-coverage/rijndael.o | build-coverage
${CC} ${LDFLAGS_COVERAGE} $^ -o $@
${CC} $^ ${LDFLAGS_COVERAGE} -o $@
build-coverage/aes_cmac_test2: build-coverage/aes_cmac_test2.cpp.o build-coverage/btstack_crypto.o build-coverage/btstack_linked_list.o build-coverage/hci_cmd.o build-coverage/btstack_util.o build-coverage/hci_dump.o build-coverage/rijndael.o | build-asan
${CC} ${LDFLAGS_COVERAGE} $^ -o $@
${CC} $^ ${LDFLAGS_COVERAGE} -o $@
build-asan/aes_ccm_test: build-asan/aes_ccm.o build-asan/aes_ccm_test.o build-asan/btstack_crypto.o build-asan/btstack_linked_list.o build-asan/hci_cmd.o build-asan/btstack_util.o build-asan/hci_dump.o build-asan/aes_cmac.o build-asan/rijndael.o build-asan/mock.o | build-asan
${CC} ${LDFLAGS_ASAN} $^ -o $@
${CC} $^ ${LDFLAGS_ASAN} -o $@
build-asan/aestest: build-asan/aestest.o build-asan/rijndael.o | build-asan
${CC} ${LDFLAGS_ASAN} $^ -o $@
${CC} $^ ${LDFLAGS_ASAN} -o $@
build-asan/ecc_micro_ecc: build-asan/ecc_micro_ecc.o build-asan/uECC.o | build-asan
${CC} ${LDFLAGS_ASAN} $^ -o $@
${CC} $^ ${LDFLAGS_ASAN} -o $@
build-asan/aes_cmac_test: build-asan/aes_cmac_test.o build-asan/aes_cmac.o build-asan/rijndael.o | build-asan
${CC} ${LDFLAGS_ASAN} $^ -o $@
${CC} $^ ${LDFLAGS_ASAN} -o $@
build-asan/aes_cmac_test2: build-asan/aes_cmac_test2.cpp.o build-asan/btstack_crypto.o build-asan/btstack_linked_list.o build-asan/hci_cmd.o build-asan/btstack_util.o build-asan/hci_dump.o build-asan/rijndael.o | build-asan
${CC} ${LDFLAGS_ASAN} $^ -o $@
${CC} $^ ${LDFLAGS_ASAN} -o $@
test: all
build-asan/aes_cmac_test