summaryrefslogtreecommitdiffstats
path: root/u-boot/fs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'u-boot/fs/Makefile')
-rw-r--r--u-boot/fs/Makefile27
1 files changed, 24 insertions, 3 deletions
diff --git a/u-boot/fs/Makefile b/u-boot/fs/Makefile
index 22aad12..bd72111 100644
--- a/u-boot/fs/Makefile
+++ b/u-boot/fs/Makefile
@@ -22,8 +22,21 @@
#
#
+include $(TOPDIR)/config.mk
+
+LIB = $(obj)libfs.o
+
+COBJS-y += fs.o
+
+COBJS := $(COBJS-y)
+SRCS := $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+
+all: $(LIB)
+
subdirs-$(CONFIG_CMD_CRAMFS) := cramfs
subdirs-$(CONFIG_CMD_EXT2) += ext2
+subdirs-$(CONFIG_CMD_EXT4) += ext4
subdirs-$(CONFIG_CMD_FAT) += fat
subdirs-$(CONFIG_CMD_FDOS) += fdos
subdirs-$(CONFIG_CMD_JFFS2) += jffs2
@@ -31,8 +44,16 @@ subdirs-$(CONFIG_CMD_REISER) += reiserfs
subdirs-$(CONFIG_YAFFS2) += yaffs2
subdirs-$(CONFIG_CMD_UBIFS) += ubifs
+$(LIB): $(obj).depend $(OBJS)
+ $(call cmd_link_o_target, $(OBJS))
+
SUBDIRS := $(subdirs-y)
-$(obj).depend all:
- @for dir in $(SUBDIRS) ; do \
- $(MAKE) -C $$dir $@ ; done
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################