From mboxrd@z Thu Jan 1 00:00:00 1970 From: Corneliu ZUZU Subject: Re: EXTRA_CFLAGS when compiling Xen Date: Wed, 17 Feb 2016 14:09:43 +0200 Message-ID: <56C46307.1060303@bitdefender.com> References: <56C4493D.10703@bitdefender.com> <56C45ACD02000078000D3076@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <56C45ACD02000078000D3076@prv-mh.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Tamas K Lengyel , Keir Fraser , Ian Campbell , Razvan Cojocaru , Andrew Cooper , Xen-devel , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On 2/17/2016 12:34 PM, Jan Beulich wrote: > >> The reason I need this is to pass '-save-temps' to GCC, I want to inspect >> some code >> and it would be easier to do that on the preprocessed files. > ... there's absolutely no need to for a case like this, at least as > long as the xen/ subtree is where you want to do this. > xen/Rules.mk has rules for what you want (and also for > producing the intermediate assembly file), just that you can't > achieve this by invoking make from the top level directory - > you need to run make directly in xen/ and manually specify > the intended target (including leading sub-directories). > > Jan > I wouldn't want to needlessly insist, but of course a canonical way to do this would be preferred. I do see the %.i targets there in Rules.mk invoking the preprocessor, but I haven't yet figured how to make those execute. Could you detail what make args would activate execution of the %.i targets? This is not so important since for now Razvan's suggestion does the trick (or adding %.i as a dependency for %.o in Rules.mk), but I thought it would be nice for future reference, so only respond when/if you have the time/disposition. Thanks, Corneliu.