I have a Makefile generated by STM32CubeMX for a project. I have a precompiled static library file lib1.a inside the following folder.
Project Dir/ Core/ Lib/