summaryrefslogtreecommitdiffstats
path: root/c/src/libfs/src/dosfs/Makefile.am
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-02-28 20:43:50 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-02-28 20:43:50 +0000
commitf36a7bfcde756cae3b3e933f0e688137fb684be8 (patch)
tree0d1c325e5c12913674c0e1d6ddfd656fa8c0fcd8 /c/src/libfs/src/dosfs/Makefile.am
parente51bd967cda1989d606b5b6178ed6d2c8d151707 (diff)
downloadrtems-f36a7bfcde756cae3b3e933f0e688137fb684be8.tar.bz2
2002-02-28 Victor V. Vengerov <vvv@oktet.ru>
* DOS filesystem including FAT12, FAT16, and FAT32 support submitted. * src/dosfs, src/dosfs/Makefile.am, src/dosfs/stamp-h2.in, src/dosfs/config.h.in, src/dosfs/dosfs.h, src/dosfs/fat.c, src/dosfs/fat.h, src/dosfs/fat_fat_operations.c, src/dosfs/fat_fat_operations.h, src/dosfs/fat_file.c, src/dosfs/fat_file.h, src/dosfs/msdos.h, src/dosfs/msdos_create.c, src/dosfs/msdos_dir.c, src/dosfs/msdos_eval.c, src/dosfs/msdos_file.c, src/dosfs/msdos_free.c, src/dosfs/msdos_fsunmount.c, src/dosfs/msdos_handlers_dir.c, src/dosfs/msdos_handlers_file.c, src/dosfs/msdos_init.c, src/dosfs/msdos_initsupp.c, src/dosfs/msdos_misc.c, src/dosfs/msdos_mknod.c, src/dosfs/msdos_node_type.c, src/dosfs/.cvsignore: New files. * configure.ac, src/Makefile.am, wrapup/Makefile.am: Modified to reflect addition.
Diffstat (limited to 'c/src/libfs/src/dosfs/Makefile.am')
-rw-r--r--c/src/libfs/src/dosfs/Makefile.am80
1 files changed, 80 insertions, 0 deletions
diff --git a/c/src/libfs/src/dosfs/Makefile.am b/c/src/libfs/src/dosfs/Makefile.am
new file mode 100644
index 0000000000..44c9f4cd2f
--- /dev/null
+++ b/c/src/libfs/src/dosfs/Makefile.am
@@ -0,0 +1,80 @@
+##
+## $Id$
+##
+
+AUTOMAKE_OPTIONS = foreign 1.4
+
+INCLUDES = -I.
+
+LIBNAME = libdosfs
+LIB = ${ARCH}/${LIBNAME}.a
+
+FATFS_C_FILES = fat.c fat_fat_operations.c fat_file.c
+
+DOSFS_C_FILES = msdos_create.c msdos_dir.c msdos_eval.c msdos_file.c \
+ msdos_free.c msdos_fsunmount.c msdos_handlers_dir.c \
+ msdos_handlers_file.c msdos_init.c msdos_initsupp.c \
+ msdos_misc.c msdos_mknod.c msdos_node_type.c
+
+
+UNIX_C_FILES = msdos_unixstub.c
+
+EMBEDDED_C_FILES = $(FATFS_C_FILES) $(DOSFS_C_FILES)
+
+COMMON_C_FILES =
+
+if UNIX
+C_FILES = $(COMMON_C_FILES) $(UNIX_C_FILES)
+else
+C_FILES = $(COMMON_C_FILES) $(EMBEDDED_C_FILES)
+endif
+C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
+
+include_HEADERS = fat.h fat_fat_operations.h \
+ fat_file.h msdos.h dosfs.h
+SYS_H_FILES =
+RTEMS_H_FILES =
+noinst_HEADERS =
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../../../automake/compile.am
+include $(top_srcdir)/../../../automake/lib.am
+
+PREINSTALL_FILES = $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/rtems \
+ $(PROJECT_INCLUDE)/sys $(include_HEADERS:%=$(PROJECT_INCLUDE)/%) \
+ $(RTEMS_H_FILES:%=$(PROJECT_INCLUDE)/rtems/%) \
+ $(SYS_H_FILES:%=$(PROJECT_INCLUDE)/sys/%)
+
+$(PROJECT_INCLUDE):
+ @$(mkinstalldirs) $@
+$(PROJECT_INCLUDE)/rtems:
+ @$(mkinstalldirs) $@
+$(PROJECT_INCLUDE)/sys:
+ @$(mkinstalldirs) $@
+
+$(PROJECT_INCLUDE)/%.h: %.h
+ $(INSTALL_DATA) $< $@
+$(PROJECT_INCLUDE)/rtems/%.h: %.h
+ $(INSTALL_DATA) $< $@
+$(PROJECT_INCLUDE)/sys/%.h: %.h
+ $(INSTALL_DATA) $< $@
+
+OBJS = $(C_O_FILES)
+
+#
+# Add local stuff here using +=
+#
+
+AM_CFLAGS += $(LIBC_DEFINES)
+
+all-local: ${ARCH} $(LIB)
+
+$(LIB): ${OBJS}
+ $(make-library)
+
+DOC_FILES =
+
+EXTRA_DIST = $(DOC_FILES) $(COMMON_C_FILES) $(EMBEDDED_C_FILES) \
+ $(UNIX_C_FILES) $(RTEMS_H_FILES) $(SYS_H_FILES)
+
+include $(top_srcdir)/../../../automake/local.am