[d71c6c1] | 1 | ## |
---|
| 2 | ## $Id$ |
---|
| 3 | ## |
---|
| 4 | |
---|
[7cdf8b7e] | 5 | include $(top_srcdir)/automake/multilib.am |
---|
[970983e] | 6 | include $(top_srcdir)/automake/compile.am |
---|
[7cdf8b7e] | 7 | |
---|
[d71c6c1] | 8 | EXTRA_DIST = README |
---|
| 9 | |
---|
[30f66299] | 10 | include_rtemsdir = $(includedir)/rtems |
---|
| 11 | include_rtems_HEADERS = |
---|
[7cdf8b7e] | 12 | |
---|
[846a4af] | 13 | noinst_LIBRARIES = libimfs.a |
---|
[a369ade] | 14 | libimfs_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[970983e] | 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 \ |
---|
[7cdf8b7e] | 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 \ |
---|
[a63b383] | 35 | src/imfs/ioman.c src/imfs/miniimfs_init.c |
---|
[7cdf8b7e] | 36 | endif |
---|
| 37 | |
---|
[30f66299] | 38 | include_rtems_HEADERS += src/imfs/imfs.h |
---|
[7cdf8b7e] | 39 | |
---|
| 40 | # dosfs |
---|
| 41 | |
---|
[970983e] | 42 | if !UNIX |
---|
[846a4af] | 43 | noinst_LIBRARIES += libdosfs.a |
---|
[a369ade] | 44 | libdosfs_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[7cdf8b7e] | 45 | |
---|
[970983e] | 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 \ |
---|
[7cdf8b7e] | 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 \ |
---|
[b34665f8] | 58 | src/dosfs/msdos_conv.c src/dosfs/msdos.h src/dosfs/msdos_format.c |
---|
[7cdf8b7e] | 59 | |
---|
[30f66299] | 60 | include_rtems_HEADERS += src/dosfs/dosfs.h |
---|
[07347cb] | 61 | endif |
---|
[7cdf8b7e] | 62 | |
---|
[970983e] | 63 | EXTRA_DIST += $(UNUSED_FILES) |
---|
| 64 | |
---|
[846a4af] | 65 | all-local: $(PREINSTALL_FILES) |
---|
[7cdf8b7e] | 66 | |
---|
| 67 | # --- |
---|
| 68 | |
---|
[3d1de20] | 69 | PREINSTALL_DIRS = |
---|
[7cdf8b7e] | 70 | PREINSTALL_FILES = |
---|
| 71 | |
---|
[30f66299] | 72 | $(PROJECT_INCLUDE)/rtems/$(dirstamp): |
---|
| 73 | @$(mkdir_p) $(PROJECT_INCLUDE)/rtems |
---|
| 74 | @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
| 75 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
[9e7e53bf] | 76 | |
---|
[30f66299] | 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 |
---|
[7cdf8b7e] | 80 | |
---|
| 81 | if !UNIX |
---|
[30f66299] | 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 |
---|
[7cdf8b7e] | 85 | endif |
---|
| 86 | |
---|
[846a4af] | 87 | CLEANFILES = $(PREINSTALL_FILES) |
---|
[3d1de20] | 88 | DISTCLEANFILES = $(PREINSTALL_DIRS) |
---|
[8a2c1796] | 89 | |
---|
[c41c8b7] | 90 | include $(top_srcdir)/automake/local.am |
---|