I think what you are after are precompiled libraires. Where you would just do a include like, #include "myfile.h", and link the rest of the library in at link time. To do this you need to compile you .c files into .o and then use the ar command to create a .a archive.
When you want to build you executable using the library created above, you would inlcude a -lname on the link or compile option to link it in. You should read the man page for both the compiler and linker to get full details.
|