On 05/09/2011 10:34 AM, Stefan Hajnoczi wrote:
BTW the Makefiles don't seem to have a step before compilation to generate all the dependencies, instead dependencies only kick in after the first build has completed?
Yes, the first build doesn't need dependencies on headers. Rules for .c->.o and .o->executable are enough to get everything built.
Is there some smart change detection you are thinking about or just something like keeping the old copy of config-host.h and friends to see if they have changed?
Just that, perhaps for both .h and .mak files. Consider this very patch; it is plausible that switching to another tracing backend does not change the .h files, right now the backend is only present in .h files to enable the monitor/cmdline interfaces.
Paolo