source: rtems/c/src/libfs/src/imfs/Makefile.am @ d6b1d73

4.104.114.84.9
Last change on this file since d6b1d73 was d6b1d73, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 22, 2001 at 2:05:14 PM

2001-01-22 Ralf Corsepius <corsepiu@…>

  • configure.in: Add src/imfs/config.h
  • src/imfs/Makefile.am: Add INCLUDES += -I. to pickup config.h
  • src/imfs/.cvsignore: Add config.h and stamp-h
  • src/imfs/*.c: Add config.h support.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1##
2##  $Id$
3##
4
5AUTOMAKE_OPTIONS = foreign 1.4
6
7INCLUDES += -I.
8
9LIBNAME = libimfs
10LIB = ${ARCH}/${LIBNAME}.a
11
12IMFS_C_FILES = imfs_chown.c imfs_config.c imfs_creat.c imfs_directory.c \
13    imfs_eval.c imfs_free.c imfs_fsunmount.c imfs_gtkn.c imfs_init.c \
14    imfs_initsupp.c imfs_link.c imfs_mknod.c imfs_mount.c imfs_fchmod.c \
15    imfs_unlink.c imfs_unmount.c imfs_utime.c imfs_ntype.c imfs_stat.c \
16    imfs_getchild.c memfile.c linearfile.c deviceio.c imfs_handlers_device.c \
17    imfs_handlers_directory.c imfs_handlers_link.c imfs_handlers_memfile.c \
18    imfs_debug.c imfs_rmnod.c imfs_symlink.c imfs_readlink.c imfs_fdatasync.c \
19    imfs_fcntl.c ioman.c miniimfs_init.c imfs_load_tar.c
20
21UNIX_C_FILES = imfs_unixstub.c
22
23EMBEDDED_C_FILES = $(IMFS_C_FILES)
24
25COMMON_C_FILES =
26
27if UNIX
28C_FILES = $(COMMON_C_FILES) $(UNIX_C_FILES)
29else
30C_FILES = $(COMMON_C_FILES) $(EMBEDDED_C_FILES)
31endif
32C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
33
34H_FILES = imfs.h
35SYS_H_FILES =
36RTEMS_H_FILES =
37noinst_HEADERS =
38
39include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
40include $(top_srcdir)/../../../automake/compile.am
41include $(top_srcdir)/../../../automake/lib.am
42
43PREINSTALL_FILES += $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/rtems \
44    $(PROJECT_INCLUDE)/sys $(H_FILES:%=$(PROJECT_INCLUDE)/%) \
45    $(RTEMS_H_FILES:%=$(PROJECT_INCLUDE)/rtems/%) \
46    $(SYS_H_FILES:%=$(PROJECT_INCLUDE)/sys/%)
47
48$(PROJECT_INCLUDE):
49        @$(mkinstalldirs) $@
50$(PROJECT_INCLUDE)/rtems:
51        @$(mkinstalldirs) $@
52$(PROJECT_INCLUDE)/sys:
53        @$(mkinstalldirs) $@
54
55$(PROJECT_INCLUDE)/%.h: %.h
56        $(INSTALL_DATA) $< $@
57$(PROJECT_INCLUDE)/rtems/%.h: %.h
58        $(INSTALL_DATA) $< $@
59$(PROJECT_INCLUDE)/sys/%.h: %.h
60        $(INSTALL_DATA) $< $@
61
62OBJS = $(C_O_FILES)
63
64#
65# Add local stuff here using +=
66#
67
68AM_CFLAGS += $(LIBC_DEFINES)
69
70all-local: ${ARCH} $(LIB)
71
72$(LIB): ${OBJS}
73        $(make-library)
74
75DOC_FILES = TODO CASES
76
77EXTRA_DIST = $(DOC_FILES) $(COMMON_C_FILES) $(EMBEDDED_C_FILES) \
78    $(UNIX_C_FILES) $(H_FILES) $(RTEMS_H_FILES) $(SYS_H_FILES)
79
80include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.