1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | include $(top_srcdir)/automake/multilib.am |
---|
6 | include $(top_srcdir)/automake/compile.am |
---|
7 | |
---|
8 | EXTRA_DIST = README |
---|
9 | |
---|
10 | include_rtemsdir = $(includedir)/rtems |
---|
11 | include_rtems_HEADERS = |
---|
12 | |
---|
13 | noinst_LIBRARIES = libimfs.a |
---|
14 | libimfs_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
15 | |
---|
16 | UNUSED_FILES = src/imfs/imfs_load_tar.c |
---|
17 | |
---|
18 | libimfs_a_SOURCES = |
---|
19 | |
---|
20 | if UNIX |
---|
21 | libimfs_a_SOURCES += src/imfs/imfs_unixstub.c |
---|
22 | else |
---|
23 | libimfs_a_SOURCES += src/imfs/imfs_chown.c src/imfs/imfs_config.c \ |
---|
24 | src/imfs/imfs_creat.c src/imfs/imfs_directory.c src/imfs/imfs_eval.c \ |
---|
25 | src/imfs/imfs_free.c src/imfs/imfs_fsunmount.c src/imfs/imfs_gtkn.c \ |
---|
26 | src/imfs/imfs_init.c src/imfs/imfs_initsupp.c src/imfs/imfs_link.c \ |
---|
27 | src/imfs/imfs_mknod.c src/imfs/imfs_mount.c src/imfs/imfs_fchmod.c \ |
---|
28 | src/imfs/imfs_unlink.c src/imfs/imfs_unmount.c src/imfs/imfs_utime.c \ |
---|
29 | src/imfs/imfs_ntype.c src/imfs/imfs_stat.c src/imfs/imfs_getchild.c \ |
---|
30 | src/imfs/memfile.c src/imfs/linearfile.c src/imfs/deviceio.c \ |
---|
31 | src/imfs/imfs_handlers_device.c src/imfs/imfs_handlers_directory.c \ |
---|
32 | src/imfs/imfs_handlers_link.c src/imfs/imfs_handlers_memfile.c \ |
---|
33 | src/imfs/imfs_debug.c src/imfs/imfs_rmnod.c src/imfs/imfs_symlink.c \ |
---|
34 | src/imfs/imfs_readlink.c src/imfs/imfs_fdatasync.c src/imfs/imfs_fcntl.c \ |
---|
35 | src/imfs/ioman.c src/imfs/miniimfs_init.c |
---|
36 | endif |
---|
37 | |
---|
38 | include_rtems_HEADERS += src/imfs/imfs.h |
---|
39 | |
---|
40 | # dosfs |
---|
41 | |
---|
42 | if !UNIX |
---|
43 | noinst_LIBRARIES += libdosfs.a |
---|
44 | libdosfs_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
45 | |
---|
46 | # libdosfs_FATFS_C_FILES |
---|
47 | libdosfs_a_SOURCES = src/dosfs/fat.c src/dosfs/fat.h \ |
---|
48 | src/dosfs/fat_fat_operations.c src/dosfs/fat_fat_operations.h \ |
---|
49 | src/dosfs/fat_file.c src/dosfs/fat_file.h |
---|
50 | |
---|
51 | # libdosfs_DOSFS_C_FILES |
---|
52 | libdosfs_a_SOURCES += src/dosfs/msdos_create.c src/dosfs/msdos_dir.c \ |
---|
53 | src/dosfs/msdos_eval.c src/dosfs/msdos_file.c src/dosfs/msdos_free.c \ |
---|
54 | src/dosfs/msdos_fsunmount.c src/dosfs/msdos_handlers_dir.c \ |
---|
55 | src/dosfs/msdos_handlers_file.c src/dosfs/msdos_init.c \ |
---|
56 | src/dosfs/msdos_initsupp.c src/dosfs/msdos_misc.c \ |
---|
57 | src/dosfs/msdos_mknod.c src/dosfs/msdos_node_type.c \ |
---|
58 | src/dosfs/msdos_conv.c src/dosfs/msdos.h src/dosfs/msdos_format.c |
---|
59 | |
---|
60 | include_rtems_HEADERS += src/dosfs/dosfs.h |
---|
61 | endif |
---|
62 | |
---|
63 | EXTRA_DIST += $(UNUSED_FILES) |
---|
64 | |
---|
65 | all-local: $(PREINSTALL_FILES) |
---|
66 | |
---|
67 | # --- |
---|
68 | |
---|
69 | PREINSTALL_DIRS = |
---|
70 | PREINSTALL_FILES = |
---|
71 | |
---|
72 | $(PROJECT_INCLUDE)/rtems/$(dirstamp): |
---|
73 | @$(mkdir_p) $(PROJECT_INCLUDE)/rtems |
---|
74 | @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
75 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
76 | |
---|
77 | $(PROJECT_INCLUDE)/rtems/imfs.h: src/imfs/imfs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
78 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/imfs.h |
---|
79 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/imfs.h |
---|
80 | |
---|
81 | if !UNIX |
---|
82 | $(PROJECT_INCLUDE)/rtems/dosfs.h: src/dosfs/dosfs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
83 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/dosfs.h |
---|
84 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/dosfs.h |
---|
85 | endif |
---|
86 | |
---|
87 | CLEANFILES = $(PREINSTALL_FILES) |
---|
88 | DISTCLEANFILES = $(PREINSTALL_DIRS) |
---|
89 | |
---|
90 | include $(top_srcdir)/automake/local.am |
---|