X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=fs%2Freiserfs%2FMakefile;h=495759c8ca04ccbfef1ed8fece3b7b95c9921da2;hb=36781e489732e314a58b078c931229996739ded9;hp=e8711a411a294cac8a64c3ab6a1ae5303dcf6d23;hpb=d3c5e8b2f5945d93de8f23b053e9dcd033983245;p=u-boot diff --git a/fs/reiserfs/Makefile b/fs/reiserfs/Makefile index e8711a411a..495759c8ca 100644 --- a/fs/reiserfs/Makefile +++ b/fs/reiserfs/Makefile @@ -27,20 +27,20 @@ include $(TOPDIR)/config.mk -LIB = $(obj)libreiserfs.a +LIB = $(obj)libreiserfs.o AOBJS = -COBJS = reiserfs.o dev.o mode_string.o +COBJS-$(CONFIG_CMD_REISER) := reiserfs.o dev.o mode_string.o -SRCS := $(AOBJS:.o=.S) $(COBJS:.o=.c) -OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS)) +SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c) +OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y)) #CPPFLAGS += all: $(LIB) $(AOBJS) $(LIB): $(obj).depend $(OBJS) - $(AR) $(ARFLAGS) $@ $(OBJS) + $(call cmd_link_o_target, $(OBJS)) #########################################################################