 <p>For only compiling part you can use following changes in the Makefile</p> <pre><code> file%.o:file%.c file%.h $(TOOLCHAIN_GCC) $(COMPILEOPTS) $&lt; </code></pre> <p>After this you need to make changes in linking of the object files to generate the final executable file.</p>