source: rtems/cpukit/libfs/Makefile.am @ 970983e

4.104.114.84.95
Last change on this file since 970983e was 970983e, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 11, 2004 at 7:48:00 AM

2004-01-11 Ralf Corsepius <corsepiu@…>

  • Property mode set to 100644
File size: 3.2 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7
8AM_CPPFLAGS += -I$(top_builddir)
9
10EXTRA_DIST = README
11
12include_HEADERS =
13
14EXTRA_LIBRARIES = libimfs.a
15CLEANFILES = libimfs.a
16libimfs_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIBC_DEFINES) $(CFLAGS_OPTIMIZE_V)
17
18EXTRA_LIBRARIES += libimfs_g.a
19CLEANFILES += libimfs_g.a
20libimfs_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIBC_DEFINES) $(CFLAGS_DEBUG_V)
21
22UNUSED_FILES = src/imfs/imfs_load_tar.c
23
24libimfs_a_SOURCES =
25
26if UNIX
27libimfs_a_SOURCES += src/imfs/imfs_unixstub.c
28else
29libimfs_a_SOURCES += src/imfs/imfs_chown.c src/imfs/imfs_config.c \
30    src/imfs/imfs_creat.c src/imfs/imfs_directory.c src/imfs/imfs_eval.c \
31    src/imfs/imfs_free.c src/imfs/imfs_fsunmount.c src/imfs/imfs_gtkn.c \
32    src/imfs/imfs_init.c src/imfs/imfs_initsupp.c src/imfs/imfs_link.c \
33    src/imfs/imfs_mknod.c src/imfs/imfs_mount.c src/imfs/imfs_fchmod.c \
34    src/imfs/imfs_unlink.c src/imfs/imfs_unmount.c src/imfs/imfs_utime.c \
35    src/imfs/imfs_ntype.c src/imfs/imfs_stat.c src/imfs/imfs_getchild.c \
36    src/imfs/memfile.c src/imfs/linearfile.c src/imfs/deviceio.c \
37    src/imfs/imfs_handlers_device.c src/imfs/imfs_handlers_directory.c \
38    src/imfs/imfs_handlers_link.c src/imfs/imfs_handlers_memfile.c \
39    src/imfs/imfs_debug.c src/imfs/imfs_rmnod.c src/imfs/imfs_symlink.c \
40    src/imfs/imfs_readlink.c src/imfs/imfs_fdatasync.c src/imfs/imfs_fcntl.c \
41    src/imfs/ioman.c src/imfs/miniimfs_init.c
42endif
43
44libimfs_g_a_SOURCES = $(libimfs_a_SOURCES)
45
46include_HEADERS += src/imfs/imfs.h
47
48IMFSLIB = libimfs$(LIB_VARIANT).a
49
50# dosfs
51
52if !UNIX
53EXTRA_LIBRARIES += libdosfs.a
54CLEANFILES += libdosfs.a
55libdosfs_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIBC_DEFINES) $(CFLAGS_OPTIMIZE_V)
56
57EXTRA_LIBRARIES += libdosfs_g.a
58CLEANFILES += libdosfs_g.a
59libdosfs_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIBC_DEFINES) $(CFLAGS_DEBUG_V)
60
61# libdosfs_FATFS_C_FILES
62libdosfs_a_SOURCES = src/dosfs/fat.c src/dosfs/fat.h \
63    src/dosfs/fat_fat_operations.c src/dosfs/fat_fat_operations.h \
64    src/dosfs/fat_file.c src/dosfs/fat_file.h
65
66# libdosfs_DOSFS_C_FILES
67libdosfs_a_SOURCES += src/dosfs/msdos_create.c src/dosfs/msdos_dir.c \
68    src/dosfs/msdos_eval.c src/dosfs/msdos_file.c src/dosfs/msdos_free.c \
69    src/dosfs/msdos_fsunmount.c src/dosfs/msdos_handlers_dir.c \
70    src/dosfs/msdos_handlers_file.c src/dosfs/msdos_init.c \
71    src/dosfs/msdos_initsupp.c src/dosfs/msdos_misc.c \
72    src/dosfs/msdos_mknod.c src/dosfs/msdos_node_type.c \
73    src/dosfs/msdos_conv.c src/dosfs/msdos.h
74
75libdosfs_g_a_SOURCES = $(libdosfs_a_SOURCES)
76
77include_HEADERS += src/dosfs/dosfs.h
78
79DOSFSLIB = libdosfs$(LIB_VARIANT).a
80endif
81
82EXTRA_DIST += $(UNUSED_FILES)
83
84all-local: $(PREINSTALL_FILES) $(IMFSLIB) $(DOSFSLIB)
85
86# ---
87
88PREINSTALL_FILES =
89
90$(PROJECT_INCLUDE)/$(dirstamp):
91        @$(mkdir_p) $(PROJECT_INCLUDE)
92        @: > $(PROJECT_INCLUDE)/$(dirstamp)
93
94$(PROJECT_INCLUDE)/imfs.h: src/imfs/imfs.h $(PROJECT_INCLUDE)/$(dirstamp)
95        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/imfs.h
96PREINSTALL_FILES += $(PROJECT_INCLUDE)/imfs.h
97
98if !UNIX
99$(PROJECT_INCLUDE)/dosfs.h: src/dosfs/dosfs.h $(PROJECT_INCLUDE)/$(dirstamp)
100        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/dosfs.h
101PREINSTALL_FILES += $(PROJECT_INCLUDE)/dosfs.h
102endif
103
104include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.