source: rtems/cpukit/libfs/Makefile.am @ b71e8d0

4.104.114.84.95
Last change on this file since b71e8d0 was b71e8d0, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 9, 2004 at 6:22:16 PM

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

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