qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries


From: Michael Tokarev
Subject: Re: [Qemu-devel] [RFC PATCH 0/4] per-object libraries
Date: Mon, 01 Jul 2013 18:52:47 +0400
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

01.07.2013 18:46, Andreas Färber wrote:
[]
>> What's wrong with a single makefile for everything, except
>> of the need to use full pathnames from the top-level source
>> dir?
> 
> In short the problem we ran into was missing *.d inclusions.
> This got fixed by automatically expanding net/ to -include
> net/Makefile.objs and -include net/*.d or so.

-include $(pathsubst %.o=%.d,$(all-objs))

?  With a requiriment that all actually compiled objects be
listed in $(all-objs) somehow, either by adding them to one
of the common $(obj-y) or $(common-obj-m), or explicitly adding
them to $(all-objs) if it is used in some custom way.

Also, it can be done even funnier, something like this:

  subdirs = custom_subdir1 custom_subdir2
  subdirs := $(sort $(subdirs) $(dirname $(objs)))
  -include *.d $(pathsubst %=%/*.d,$(dirs))

or just list all subdirs explicitly in $(subdirs).
There's nothing fancy in there really.

Thanks,

/mjt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]