I had to modify the open source code for use in project C. Instead of creating a library from the modified code, I would just like to compile and create an executable from my own source in combination with the modified open source. The goal is to have a separate package that can be distributed. I can get this to work fine using the GNU build tools and successfully built my executable.
Now I would like to reduce the amount of code that I create and link. Is there an easy way to determine which of the open source files I really should compile? An open source package has, say, 40.c files. I assume that my code uses (or can be used) only 20 of these files. Currently, I collect them all and drop them all into the linker. There must be a smart (and easy?) Way to determine which ones I really need, right?
I am happy to provide additional information if this is helpful. Thanks in advance.
source
share