I’m trying to decrease the time it takes to build my application. Basically,
I have several source files separated into several directories. At the
present time, my makefiles are quite simple. One source is compiled at a
time, then the resulting object file is added to a single archive. Doing so
is far from being efficient. I would prefer to update the archive only once
per directory, when all the object files are up-to-date.
Make built-in rules update the archive after each object is updated. So far,
I haven’t been able to write a set of rules to update the archive only once.
I have read chapter 11 of the GNU make on-line documentation at the
following address, but with no luck…
http://www.gnu.org/software/make/manual/html_chapter/make_11.html
Some time ago, I worked on a SGI host and I recall that they had a special
makefile – something like /usr/include/make/makelib.mk – that implemented
exactly what I want to do. But I no longer have access to such a host…
Is there someone out there that has a brilliant idea
Bernard