summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/imfs/Makefile.am
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-10-18 18:10:55 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-10-18 18:10:55 +0000
commitd71c6c1f0e219510250e7253e9073cfe421a34c2 (patch)
tree6116936de5c391af2e9d96dffaa2362d93e73139 /cpukit/libfs/src/imfs/Makefile.am
parent45c3da3b366496d872fa7180588b5084e65cac0e (diff)
downloadrtems-d71c6c1f0e219510250e7253e9073cfe421a34c2.tar.bz2
2000-10-18 Chris Johns <ccj@acm.org>
* libfs created. * src, src/imfs, wrapup: New directories. * ChangeLog, Makefile.am, README, configure.in, src/Makefile.am, wrapup/Makefile.am: New files. * src/imfs/deviceio.c, src/imfs/imfs_getchild.c, src/imfs/imfs_readlink.c, src/imfs/imfs.h, src/imfs/imfs_gtkn.c, src/imfs/imfs_rmnod.c, src/imfs/imfs_chown.c, src/imfs/imfs_handlers_device.c, src/imfs/imfs_stat.c, src/imfs/imfs_creat.c, src/imfs/imfs_handlers_directory.c, src/imfs/imfs_symlink.c, src/imfs/imfs_debug.c, src/imfs/imfs_handlers_link.c, src/imfs/imfs_unixstub.c, src/imfs/imfs_directory.c, src/imfs/imfs_handlers_memfile.c, src/imfs/imfs_unlink.c, src/imfs/imfs_eval.c, src/imfs/imfs_init.c, src/imfs/imfs_unmount.c, src/imfs/imfs_fchmod.c, src/imfs/imfs_initsupp.c, src/imfs/imfs_utime.c, src/imfs/imfs_fcntl.c, src/imfs/imfs_link.c, src/imfs/memfile.c, src/imfs/imfs_fdatasync.c, src/imfs/imfs_mknod.c, src/imfs/miniimfs_init.c, src/imfs/imfs_free.c, src/imfs/imfs_mount.c, src/imfs/imfs_fsunmount.c, src/imfs/imfs_ntype.c: New files. Moved from libc.
Diffstat (limited to 'cpukit/libfs/src/imfs/Makefile.am')
-rw-r--r--cpukit/libfs/src/imfs/Makefile.am78
1 files changed, 78 insertions, 0 deletions
diff --git a/cpukit/libfs/src/imfs/Makefile.am b/cpukit/libfs/src/imfs/Makefile.am
new file mode 100644
index 0000000000..11446247ca
--- /dev/null
+++ b/cpukit/libfs/src/imfs/Makefile.am
@@ -0,0 +1,78 @@
+##
+## $Id$
+##
+
+AUTOMAKE_OPTIONS = foreign 1.4
+
+LIBNAME = libimfs
+LIB = ${ARCH}/${LIBNAME}.a
+
+IMFS_C_FILES = imfs_chown.c imfs_creat.c imfs_directory.c imfs_eval.c \
+ imfs_free.c imfs_fsunmount.c imfs_gtkn.c imfs_init.c imfs_initsupp.c \
+ imfs_link.c imfs_mknod.c imfs_mount.c imfs_fchmod.c imfs_unlink.c \
+ imfs_unmount.c imfs_utime.c imfs_ntype.c imfs_stat.c imfs_getchild.c \
+ memfile.c deviceio.c imfs_handlers_device.c imfs_handlers_directory.c \
+ imfs_handlers_link.c imfs_handlers_memfile.c imfs_debug.c imfs_rmnod.c \
+ imfs_symlink.c imfs_readlink.c imfs_fdatasync.c imfs_fcntl.c \
+ miniimfs_init.c
+
+UNIX_C_FILES = imfs_unixstub.c
+
+EMBEDDED_C_FILES = $(IMFS_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)
+
+H_FILES = imfs.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 $(H_FILES:%=$(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) -I $(top_srcdir)/../lib/libc
+
+all-local: ${ARCH} $(LIB)
+
+$(LIB): ${OBJS}
+ $(make-library)
+
+DOC_FILES = TODO CASES
+
+EXTRA_DIST = $(DOC_FILES) $(COMMON_C_FILES) $(EMBEDDED_C_FILES) \
+ $(UNIX_C_FILES) $(H_FILES) $(RTEMS_H_FILES) $(SYS_H_FILES)
+
+include $(top_srcdir)/../../../automake/local.am