source: rtems/cpukit/libfs/Makefile.am @ 35afb17

4.104.114.84.95
Last change on this file since 35afb17 was 35afb17, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 9, 2004 at 2:22:39 AM

2004-04-09 Ralf Corsepius <ralf_corsepius@…>

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