[d71c6c1] | 1 | ## |
---|
| 2 | ## $Id$ |
---|
| 3 | ## |
---|
| 4 | |
---|
[7cdf8b7e] | 5 | include $(top_srcdir)/automake/multilib.am |
---|
[970983e] | 6 | include $(top_srcdir)/automake/compile.am |
---|
[7cdf8b7e] | 7 | |
---|
| 8 | AM_CPPFLAGS += -I$(top_builddir) |
---|
[d71c6c1] | 9 | |
---|
| 10 | EXTRA_DIST = README |
---|
| 11 | |
---|
[30f66299] | 12 | include_rtemsdir = $(includedir)/rtems |
---|
| 13 | include_rtems_HEADERS = |
---|
[7cdf8b7e] | 14 | |
---|
[970983e] | 15 | EXTRA_LIBRARIES = libimfs.a |
---|
| 16 | CLEANFILES = libimfs.a |
---|
[35afb17] | 17 | libimfs_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) |
---|
[970983e] | 18 | |
---|
| 19 | EXTRA_LIBRARIES += libimfs_g.a |
---|
| 20 | CLEANFILES += libimfs_g.a |
---|
[35afb17] | 21 | libimfs_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) |
---|
[970983e] | 22 | |
---|
| 23 | UNUSED_FILES = src/imfs/imfs_load_tar.c |
---|
| 24 | |
---|
| 25 | libimfs_a_SOURCES = |
---|
| 26 | |
---|
| 27 | if UNIX |
---|
| 28 | libimfs_a_SOURCES += src/imfs/imfs_unixstub.c |
---|
| 29 | else |
---|
| 30 | libimfs_a_SOURCES += src/imfs/imfs_chown.c src/imfs/imfs_config.c \ |
---|
[7cdf8b7e] | 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 \ |
---|
[a63b383] | 42 | src/imfs/ioman.c src/imfs/miniimfs_init.c |
---|
[7cdf8b7e] | 43 | endif |
---|
| 44 | |
---|
[b71e8d0] | 45 | libimfs_g_a_SOURCES = $(libimfs_a_SOURCES) |
---|
[7cdf8b7e] | 46 | |
---|
[30f66299] | 47 | include_rtems_HEADERS += src/imfs/imfs.h |
---|
[7cdf8b7e] | 48 | |
---|
[f670eb76] | 49 | IMFSLIB = libimfs$(LIB_VARIANT).a |
---|
[7cdf8b7e] | 50 | |
---|
| 51 | # dosfs |
---|
| 52 | |
---|
[970983e] | 53 | if !UNIX |
---|
| 54 | EXTRA_LIBRARIES += libdosfs.a |
---|
| 55 | CLEANFILES += libdosfs.a |
---|
[35afb17] | 56 | libdosfs_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) |
---|
[7cdf8b7e] | 57 | |
---|
[970983e] | 58 | EXTRA_LIBRARIES += libdosfs_g.a |
---|
| 59 | CLEANFILES += libdosfs_g.a |
---|
[35afb17] | 60 | libdosfs_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) |
---|
[970983e] | 61 | |
---|
| 62 | # libdosfs_FATFS_C_FILES |
---|
| 63 | libdosfs_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 |
---|
| 68 | libdosfs_a_SOURCES += src/dosfs/msdos_create.c src/dosfs/msdos_dir.c \ |
---|
[7cdf8b7e] | 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 \ |
---|
[970983e] | 74 | src/dosfs/msdos_conv.c src/dosfs/msdos.h |
---|
[7cdf8b7e] | 75 | |
---|
[970983e] | 76 | libdosfs_g_a_SOURCES = $(libdosfs_a_SOURCES) |
---|
[7cdf8b7e] | 77 | |
---|
[30f66299] | 78 | include_rtems_HEADERS += src/dosfs/dosfs.h |
---|
[7cdf8b7e] | 79 | |
---|
[f670eb76] | 80 | DOSFSLIB = libdosfs$(LIB_VARIANT).a |
---|
[07347cb] | 81 | endif |
---|
[7cdf8b7e] | 82 | |
---|
[970983e] | 83 | EXTRA_DIST += $(UNUSED_FILES) |
---|
| 84 | |
---|
[07347cb] | 85 | all-local: $(PREINSTALL_FILES) $(IMFSLIB) $(DOSFSLIB) |
---|
[7cdf8b7e] | 86 | |
---|
| 87 | # --- |
---|
| 88 | |
---|
[3d1de20] | 89 | PREINSTALL_DIRS = |
---|
[7cdf8b7e] | 90 | PREINSTALL_FILES = |
---|
| 91 | |
---|
[30f66299] | 92 | $(PROJECT_INCLUDE)/rtems/$(dirstamp): |
---|
| 93 | @$(mkdir_p) $(PROJECT_INCLUDE)/rtems |
---|
| 94 | @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
| 95 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
[9e7e53bf] | 96 | |
---|
[30f66299] | 97 | $(PROJECT_INCLUDE)/rtems/imfs.h: src/imfs/imfs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
| 98 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/imfs.h |
---|
| 99 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/imfs.h |
---|
[7cdf8b7e] | 100 | |
---|
| 101 | if !UNIX |
---|
[30f66299] | 102 | $(PROJECT_INCLUDE)/rtems/dosfs.h: src/dosfs/dosfs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
| 103 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/dosfs.h |
---|
| 104 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/dosfs.h |
---|
[7cdf8b7e] | 105 | endif |
---|
| 106 | |
---|
[8a2c1796] | 107 | CLEANFILES += $(PREINSTALL_FILES) |
---|
[3d1de20] | 108 | DISTCLEANFILES = $(PREINSTALL_DIRS) |
---|
[8a2c1796] | 109 | |
---|
[c41c8b7] | 110 | include $(top_srcdir)/automake/local.am |
---|