source: rtems/cpukit/libfs/Makefile.am @ 53a8958

4.104.114.84.95
Last change on this file since 53a8958 was 53a8958, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 12, 2003 at 1:39:43 PM

2003-12-12 Ralf Corsepius <corsepiu@…>

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