-$(LIB): $(obj).depend $(OBJS) $(SOBJS) u-boot.lds
- $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
-
-u-boot.lds: u-boot.lds.S
- $(CPP) $(CPPFLAGS) -P -Ubfin $^ > $@.tmp
- mv -f $@.tmp $@
+$(LIB): $(obj).depend $(OBJS) $(SOBJS)
+ $(call cmd_link_o_target, $(OBJS) $(SOBJS))