public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [MIPS] cpu/mips/Makefile: Change Makefile style
@ 2008-03-25  5:46 Shinya Kuribayashi
  2008-03-25  5:50 ` Shinya Kuribayashi
  0 siblings, 1 reply; 2+ messages in thread
From: Shinya Kuribayashi @ 2008-03-25  5:46 UTC (permalink / raw)
  To: u-boot

Split board-related objects with one line for one file.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
---

 cpu/mips/Makefile |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)


diff --git a/cpu/mips/Makefile b/cpu/mips/Makefile
index 92dcc16..c6caf1d 100644
--- a/cpu/mips/Makefile
+++ b/cpu/mips/Makefile
@@ -26,12 +26,18 @@ include $(TOPDIR)/config.mk
 LIB	= $(obj)lib$(CPU).a
 
 START	= start.o
-COBJS	= asc_serial.o au1x00_serial.o au1x00_eth.o au1x00_usb_ohci.o \
-	  cpu.o interrupts.o incaip_clock.o
-SOBJS	= incaip_wdt.o cache.o
-
-SRCS	:= $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
+SOBJS-y	= cache.o
+COBJS-y	= cpu.o interrupts.o
+
+COBJS-y	+= asc_serial.o
+COBJS-y	+= au1x00_serial.o
+COBJS-y	+= au1x00_eth.o
+COBJS-y	+= au1x00_usb_ohci.o
+COBJS-y	+= incaip_clock.o
+SOBJS-y	+= incaip_wdt.o
+
+SRCS	:= $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
+OBJS	:= $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
 START	:= $(addprefix $(obj),$(START))
 
 all:	$(obj).depend $(START) $(LIB)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot-Users] [MIPS] cpu/mips/Makefile: Change Makefile style
  2008-03-25  5:46 [U-Boot-Users] [MIPS] cpu/mips/Makefile: Change Makefile style Shinya Kuribayashi
@ 2008-03-25  5:50 ` Shinya Kuribayashi
  0 siblings, 0 replies; 2+ messages in thread
From: Shinya Kuribayashi @ 2008-03-25  5:50 UTC (permalink / raw)
  To: u-boot

Shinya Kuribayashi wrote:
> @@ -26,12 +26,18 @@ include $(TOPDIR)/config.mk
>  LIB	= $(obj)lib$(CPU).a
>  
>  START	= start.o
> -COBJS	= asc_serial.o au1x00_serial.o au1x00_eth.o au1x00_usb_ohci.o \
> -	  cpu.o interrupts.o incaip_clock.o
> -SOBJS	= incaip_wdt.o cache.o
> -
> -SRCS	:= $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
> -OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
> +SOBJS-y	= cache.o
> +COBJS-y	= cpu.o interrupts.o
> +
> +COBJS-y	+= asc_serial.o
> +COBJS-y	+= au1x00_serial.o
> +COBJS-y	+= au1x00_eth.o
> +COBJS-y	+= au1x00_usb_ohci.o

Hm, should this be something like

  COBJS-y += au1x00_serial.o au1x00_eth.o au1x00_usb_ohci.o

?

> +COBJS-y	+= incaip_clock.o
> +SOBJS-y	+= incaip_wdt.o
> +
> +SRCS	:= $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
> +OBJS	:= $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
>  START	:= $(addprefix $(obj),$(START))
>  
>  all:	$(obj).depend $(START) $(LIB)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-25  5:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-25  5:46 [U-Boot-Users] [MIPS] cpu/mips/Makefile: Change Makefile style Shinya Kuribayashi
2008-03-25  5:50 ` Shinya Kuribayashi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox