]> git.sur5r.net Git - u-boot/blobdiff - arch/nds32/lib/Makefile
Merge branch 'master' of git://git.denx.de/u-boot-i2c
[u-boot] / arch / nds32 / lib / Makefile
index 5de2d289dfc118f034301e358164fe6818f2c75c..2f7e1555782d5c75b937b0baf924083ac0b1589a 100644 (file)
@@ -13,12 +13,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))
 
 #########################################################################