Is it possible to declare a dependecy on object files?

I have a tool that generates native code object files, I need to create library from them using the current active toolchain ( let’s say gcc ). How would one declare a dependency on the object files produced so they are picked up and included in the library?

Regards, Ante