From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shinya Kuribayashi Date: Tue, 25 Mar 2008 14:50:57 +0900 Subject: [U-Boot-Users] [MIPS] cpu/mips/Makefile: Change Makefile style In-Reply-To: <47E891B0.90904@ruby.dti.ne.jp> References: <47E891B0.90904@ruby.dti.ne.jp> Message-ID: <47E892C1.8060302@ruby.dti.ne.jp> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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)