diff --git a/.gitignore b/.gitignore index 6068cbca76..2917cfbef9 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,7 @@ massif-* # Unix-like build artifacts: *.o +*.s # MSVC build artifacts: *.exe diff --git a/library/Makefile b/library/Makefile index c2e4a2cab7..304eeb657b 100644 --- a/library/Makefile +++ b/library/Makefile @@ -400,10 +400,11 @@ $(TF_PSA_CRYPTO_CORE_PATH)/psa_crypto.o:$(TF_PSA_CRYPTO_CORE_PATH)/psa_crypto_dr clean: ifndef WINDOWS - rm -f *.o libmbed* - rm -f $(OBJS_CRYPTO) + rm -f *.o *.s libmbed* + rm -f $(OBJS_CRYPTO) $(OBJS_CRYPTO:.o=.s) else if exist *.o del /Q /F *.o + if exist *.s del /Q /F *.s if exist libmbed* del /Q /F libmbed* del /Q /F del_errors_out_if_the_file_list_is_empty_but_not_if_a_file_does_not_exist $(subst /,\,$(OBJS_CRYPTO)) endif