summaryrefslogtreecommitdiff
path: root/nuttx/fs/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-08-02 15:02:10 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-08-02 15:02:10 +0000
commit2b009ee7016b4cb5f06bc9cd25325beecd45ea2b (patch)
tree03ad023350876d8a6eafb1c6bc52527558b66898 /nuttx/fs/Makefile
parentad47fd1b4bdeee2bb4d65d6349eca4d34e2a750b (diff)
downloadpx4-nuttx-2b009ee7016b4cb5f06bc9cd25325beecd45ea2b.tar.gz
px4-nuttx-2b009ee7016b4cb5f06bc9cd25325beecd45ea2b.tar.bz2
px4-nuttx-2b009ee7016b4cb5f06bc9cd25325beecd45ea2b.zip
Move FAT-related files to fs/fat
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@798 42af7a65-404d-4744-a932-0658087f49c3
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