From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] also allow building .s files from .c ones Date: Tue, 09 Jul 2013 16:20:57 +0100 Message-ID: References: <51DC3F5202000078000E399C@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51DC3F5202000078000E399C@nat28.tlf.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 , xen-devel List-Id: xen-devel@lists.xenproject.org On 09/07/2013 15:50, "Jan Beulich" wrote: > ... along the lines of allowing .i files to be built from .c ones as > well as .s from .S (aiding the analysis of occasional build problems). > > Signed-off-by: Jan Beulich Acked-by: Keir Fraser > --- a/xen/Makefile > +++ b/xen/Makefile > @@ -195,7 +195,7 @@ _MAP: > .PHONY: FORCE > FORCE: > > -%.o %.i: %.c FORCE > +%.o %.i %.s: %.c FORCE > $(MAKE) -f $(BASEDIR)/Rules.mk -C $(*D) $(@F) > > %.o %.s: %.S FORCE > --- a/xen/Rules.mk > +++ b/xen/Rules.mk > @@ -177,6 +177,9 @@ $(filter %.init.o,$(obj-y) $(obj-bin-y) > %.i: %.c Makefile > $(CPP) $(CFLAGS) $< -o $@ > > +%.s: %.c Makefile > + $(CC) $(CFLAGS) -S $< -o $@ > + > # -std=gnu{89,99} gets confused by # as an end-of-line comment marker > %.s: %.S Makefile > $(CPP) $(AFLAGS) $< -o $@ > > >