]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - post/rules.mk
Merge branch 'master' of git://git.denx.de/u-boot-video
[karo-tx-uboot.git] / post / rules.mk
index e2c73c6004a879823b93b1d68e8091dc6f9bf4a3..17f8ef76234369f0d7e148bffecf432df09cd3ba 100644 (file)
@@ -23,7 +23,9 @@
 
 include $(TOPDIR)/config.mk
 
-SRCS   := $(AOBJS:.o=.S) $(COBJS:.o=.c)
+COBJS  := $(COBJS-y)
+AOBJS  := $(AOBJS-y)
+SRCS   := $(AOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(AOBJS) $(COBJS))
 LIB    := $(obj)$(LIB)
 
@@ -32,7 +34,7 @@ CPPFLAGS += -I$(TOPDIR)
 all:   $(LIB)
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################