summaryrefslogtreecommitdiffstats
path: root/arch/nds32/lib/Makefile
diff options
context:
space:
mode:
authorken kuo <ken.kuoky@gmail.com>2013-07-25 02:24:54 +0800
committerMacpaul Lin <macpaul@gmail.com>2013-07-25 16:54:18 +0800
commit951344b778d6ac67b94011d942a5a55da7202027 (patch)
tree0c34cfc60ec28491d35ad57730e21167186dc3e2 /arch/nds32/lib/Makefile
parent4fc967051396e8e82138c65fd65a353f73e51b89 (diff)
downloadtalos-obmc-uboot-951344b778d6ac67b94011d942a5a55da7202027.tar.gz
talos-obmc-uboot-951344b778d6ac67b94011d942a5a55da7202027.zip
nds32: Convert Makefiles to use COBJS-y style
Signed-off-by: Kuan-Yu Kuo <ken.kuoky@gmail.com> Cc: Macpaul Lin <macpaul@gmail.com>
Diffstat (limited to 'arch/nds32/lib/Makefile')
-rw-r--r--arch/nds32/lib/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/nds32/lib/Makefile b/arch/nds32/lib/Makefile
index 705e1ff90d..022b21a27b 100644
--- a/arch/nds32/lib/Makefile
+++ b/arch/nds32/lib/Makefile
@@ -29,12 +29,15 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(ARCH).o
-OBJS := board.o cache.o interrupts.o
+COBJS-y += board.o
+COBJS-y += cache.o
COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
+COBJS-y += interrupts.o
-all: $(LIB)
+SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
+OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
-$(LIB): $(OBJS) $(SOBJS)
+$(LIB): $(obj).depend $(OBJS)
$(call cmd_link_o_target, $(OBJS))
#########################################################################
OpenPOWER on IntegriCloud