]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - fs/ext2/Makefile
Merge branch 'master' of git://git.denx.de/u-boot-i2c
[karo-tx-uboot.git] / fs / ext2 / Makefile
index 2e420d536b2b3336d4558a48dbd9d2c052fda0b4..3c65d252f582cb597754e7dfd5e6032a65453236 100644 (file)
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)libext2fs.a
+LIB    = $(obj)libext2fs.o
 
 AOBJS  =
-COBJS  = ext2fs.o dev.o
+COBJS-$(CONFIG_CMD_EXT2) := ext2fs.o dev.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) crv $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################