[d71c6c1] | 1 | ## |
---|
| 2 | ## $Id$ |
---|
| 3 | ## |
---|
| 4 | |
---|
[7cdf8b7e] | 5 | include $(top_srcdir)/automake/multilib.am |
---|
[07347cb] | 6 | include $(top_srcdir)/automake/amcompile.am |
---|
[7cdf8b7e] | 7 | |
---|
| 8 | AM_CPPFLAGS += -I$(top_builddir) |
---|
| 9 | AM_CPPFLAGS += $(LIBC_DEFINES) |
---|
[d71c6c1] | 10 | |
---|
| 11 | EXTRA_DIST = README |
---|
| 12 | |
---|
[7cdf8b7e] | 13 | include_HEADERS = |
---|
| 14 | |
---|
| 15 | # imfs |
---|
| 16 | libimfs_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 \ |
---|
[a63b383] | 28 | src/imfs/ioman.c src/imfs/miniimfs_init.c |
---|
[7cdf8b7e] | 29 | |
---|
| 30 | libimfs_UNUSED_C_FILES = src/imfs/imfs_load_tar.c |
---|
| 31 | |
---|
| 32 | libimfs_UNIX_C_FILES = src/imfs/imfs_unixstub.c |
---|
| 33 | |
---|
| 34 | if UNIX |
---|
| 35 | libimfs_C_FILES = $(libimfs_UNIX_C_FILES) |
---|
| 36 | else |
---|
| 37 | libimfs_C_FILES = $(libimfs_EMBEDDED_C_FILES) |
---|
| 38 | endif |
---|
| 39 | |
---|
[f670eb76] | 40 | EXTRA_LIBRARIES = libimfs.a |
---|
[b71e8d0] | 41 | CLEANFILES = libimfs.a |
---|
[f670eb76] | 42 | libimfs_a_SOURCES = $(libimfs_C_FILES) |
---|
| 43 | libimfs_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) |
---|
[7cdf8b7e] | 44 | |
---|
[f670eb76] | 45 | EXTRA_LIBRARIES += libimfs_g.a |
---|
[b71e8d0] | 46 | CLEANFILES += libimfs_g.a |
---|
| 47 | libimfs_g_a_SOURCES = $(libimfs_a_SOURCES) |
---|
[f670eb76] | 48 | libimfs_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) |
---|
[7cdf8b7e] | 49 | |
---|
[07347cb] | 50 | include_HEADERS += src/imfs/imfs.h |
---|
[7cdf8b7e] | 51 | |
---|
[f670eb76] | 52 | IMFSLIB = libimfs$(LIB_VARIANT).a |
---|
[7cdf8b7e] | 53 | |
---|
| 54 | # dosfs |
---|
| 55 | |
---|
| 56 | libdosfs_FATFS_C_FILES = src/dosfs/fat.c src/dosfs/fat_fat_operations.c \ |
---|
[b71e8d0] | 57 | src/dosfs/fat_file.c src/dosfs/fat.h |
---|
[7cdf8b7e] | 58 | |
---|
| 59 | libdosfs_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 | |
---|
| 67 | if !UNIX |
---|
| 68 | libdosfs_C_FILES = $(libdosfs_FATFS_C_FILES) $(libdosfs_DOSFS_C_FILES) |
---|
| 69 | |
---|
| 70 | include_HEADERS += src/dosfs/dosfs.h |
---|
| 71 | |
---|
[f670eb76] | 72 | DOSFSLIB = libdosfs$(LIB_VARIANT).a |
---|
[7cdf8b7e] | 73 | |
---|
[f670eb76] | 74 | EXTRA_LIBRARIES += libdosfs.a |
---|
[b71e8d0] | 75 | CLEANFILES += libdosfs.a |
---|
[f670eb76] | 76 | libdosfs_a_SOURCES = $(libdosfs_C_FILES) |
---|
| 77 | libdosfs_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) |
---|
[7cdf8b7e] | 78 | |
---|
[f670eb76] | 79 | EXTRA_LIBRARIES += libdosfs_g.a |
---|
[b71e8d0] | 80 | CLEANFILES += libdosfs_g.a |
---|
| 81 | libdosfs_g_a_SOURCES = $(libdosfs_a_SOURCES) |
---|
[f670eb76] | 82 | libdosfs_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) |
---|
[07347cb] | 83 | endif |
---|
[7cdf8b7e] | 84 | |
---|
[07347cb] | 85 | all-local: $(PREINSTALL_FILES) $(IMFSLIB) $(DOSFSLIB) |
---|
[7cdf8b7e] | 86 | |
---|
| 87 | # --- |
---|
| 88 | |
---|
| 89 | PREINSTALL_FILES = |
---|
| 90 | |
---|
[9e7e53bf] | 91 | $(PROJECT_INCLUDE)/$(dirstamp): |
---|
[53a8958] | 92 | @$(mkdir_p) $(PROJECT_INCLUDE) |
---|
[9e7e53bf] | 93 | @: > $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 94 | |
---|
| 95 | $(PROJECT_INCLUDE)/imfs.h: src/imfs/imfs.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 96 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/imfs.h |
---|
[7cdf8b7e] | 97 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/imfs.h |
---|
| 98 | |
---|
| 99 | if !UNIX |
---|
[9e7e53bf] | 100 | $(PROJECT_INCLUDE)/dosfs.h: src/dosfs/dosfs.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 101 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/dosfs.h |
---|
[7cdf8b7e] | 102 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/dosfs.h |
---|
| 103 | endif |
---|
| 104 | |
---|
[c41c8b7] | 105 | include $(top_srcdir)/automake/local.am |
---|