#7632 - regularkid - Sat Jun 21, 2003 8:22 pm
Is is possible to compile a bunch of object files (the result of compiling c files) into one single object file? This way I can compile all my engine code into a single object file separately and then link it with the game code object files. This will give me a way to keep engine code and game code separate and be able to use the engine in multiple game projects.
I'm basically looking for something like this to put into my makefile (I can't seem to get it working):
Thanks.
_________________
- RegularKid
I'm basically looking for something like this to put into my makefile (I can't seem to get it working):
Code: |
Engine.o : Code1.o Code2.o Code3.o gcc Engine.o -o Code1.o Code2.o Code3.o |
Thanks.
_________________
- RegularKid