summaryrefslogtreecommitdiff
path: root/nuttx/fs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/fs/Makefile')
-rw-r--r--nuttx/fs/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/nuttx/fs/Makefile b/nuttx/fs/Makefile
index c14128276..14a618803 100644
--- a/nuttx/fs/Makefile
+++ b/nuttx/fs/Makefile
@@ -56,10 +56,7 @@ CSRCS += fs_registerblockdriver.c fs_unregisterblockdriver.c \
fs_mount.c fs_umount.c \
fs_fsync.c fs_unlink.c fs_rename.c \
fs_mkdir.c fs_rmdir.c
-
-ifeq ($(CONFIG_FS_FAT),y)
-CSRCS += fs_fat32.c fs_fat32util.c fs_fat32attrib.c
-endif
+include fat/Make.defs
endif
endif
@@ -70,6 +67,9 @@ OBJS = $(AOBJS) $(COBJS)
BIN = libfs$(LIBEXT)
+SUBDIRS = fat
+VPATH = fat
+
all: $(BIN)
$(AOBJS): %$(OBJEXT): %.S
@@ -84,7 +84,7 @@ $(BIN): $(OBJS)
done ; )
.depend: Makefile $(SRCS)
- @$(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
+ @$(MKDEP) --dep-path . --dep-path fat $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
@touch $@
depend: .depend
@@ -92,6 +92,9 @@ depend: .depend
clean:
@rm -f $(BIN) *~ .*.swp
$(call CLEAN)
+ @( for dir in $(SUBDIRS); do \
+ rm -f $${dir}/*~ $${dir}/.*.swp; \
+ done ; )
distclean: clean
@rm -f Make.dep .depend