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)
all: $(LIB)
$(LIB): $(obj).depend $(OBJS)
- $(AR) $(ARFLAGS) $@ $(OBJS)
+ $(call cmd_link_o_target, $(OBJS))
#########################################################################