[Box Backup-dev] Build system
Chris Wilson
boxbackup-dev@fluffy.co.uk
Fri, 9 Dec 2005 13:42:28 +0000 (GMT)
Hi Jonathan,
> What you could do is have the dep_modules rule touch a dep_modules file as
> it's last act, and additionally itself depend on the files it examines. That
> would fix the problem sufficiently well, while keeping the dependency
> information up to date even for libraries.
But as far as I can tell, the only things that go into a library archive
(.a file) are the compiled module files from that directory. If none of
them have been rebuilt, there's no point recreating the library. And all
of them are already listed as dependencies of the .a file, and each object
file has appropriate dependencies on the header files it uses, so they
should be recompiled (and the library rebuilt) if necessary, without the
need for a dep_modules target.
But please correct me if I'm wrong.
Cheers, Chris.
--
_ ___ __ _
/ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |