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

Re: [Xen-devel] [PATCH] also allow building .s files from .c ones


  • To: Jan Beulich <JBeulich@xxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxx>
  • From: Keir Fraser <keir.xen@xxxxxxxxx>
  • Date: Tue, 09 Jul 2013 16:20:57 +0100
  • Delivery-date: Tue, 09 Jul 2013 15:21:19 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Ac58t+j7HHD5c+zZaEKrxAWqlQqKoQ==
  • Thread-topic: [PATCH] also allow building .s files from .c ones

On 09/07/2013 15:50, "Jan Beulich" <JBeulich@xxxxxxxx> 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 <jbeulich@xxxxxxxx>

Acked-by: Keir Fraser <keir@xxxxxxx>

> --- 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 $@
> 
> 
> 



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.