Il 21/12/2012 21:14, Lluís Vilanova ha scritto: > Paolo Bonzini writes: > [...] >> Finally, patches 25 to 27 affect tracing, which is also moved to >> libqemuutil.a. Patch 25 is Lluis's already posted patch to introduce >> trace/Makefile.objs. > > I just skimmed through the patches, but is there a clean way to have files > included only in binaries that are/aren't target system emulators? And what > about files that contain conditionally compiled code according to that same > condition? > > I'm asking because in the trace instrumentation patches (which I'll update > next > week rebased on latest master) I had to add build code to do it.
Yes, this is what libqemustub does. Paolo