[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 | |
---|
[7cdf8b7e] | 12 | include_HEADERS = |
---|
| 13 | |
---|
[970983e] | 14 | EXTRA_LIBRARIES = libimfs.a |
---|
| 15 | CLEANFILES = libimfs.a |
---|
| 16 | libimfs_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIBC_DEFINES) $(CFLAGS_OPTIMIZE_V) |
---|
| 17 | |
---|
| 18 | EXTRA_LIBRARIES += libimfs_g.a |
---|
| 19 | CLEANFILES += libimfs_g.a |
---|
| 20 | libimfs_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIBC_DEFINES) $(CFLAGS_DEBUG_V) |
---|
| 21 | |
---|
| 22 | UNUSED_FILES = src/imfs/imfs_load_tar.c |
---|
| 23 | |
---|
| 24 | libimfs_a_SOURCES = |
---|
| 25 | |
---|
| 26 | if UNIX |
---|
| 27 | libimfs_a_SOURCES += src/imfs/imfs_unixstub.c |
---|
| 28 | else |
---|
| 29 | libimfs_a_SOURCES += src/imfs/imfs_chown.c src/imfs/imfs_config.c \ |
---|
[7cdf8b7e] | 30 | src/imfs/imfs_creat.c src/imfs/imfs_directory.c src/imfs/imfs_eval.c \ |
---|
| 31 | src/imfs/imfs_free.c src/imfs/imfs_fsunmount.c src/imfs/imfs_gtkn.c \ |
---|
| 32 | src/imfs/imfs_init.c src/imfs/imfs_initsupp.c src/imfs/imfs_link.c \ |
---|
| 33 | src/imfs/imfs_mknod.c src/imfs/imfs_mount.c src/imfs/imfs_fchmod.c \ |
---|
| 34 | src/imfs/imfs_unlink.c src/imfs/imfs_unmount.c src/imfs/imfs_utime.c \ |
---|
| 35 | src/imfs/imfs_ntype.c src/imfs/imfs_stat.c src/imfs/imfs_getchild.c \ |
---|
| 36 | src/imfs/memfile.c src/imfs/linearfile.c src/imfs/deviceio.c \ |
---|
| 37 | src/imfs/imfs_handlers_device.c src/imfs/imfs_handlers_directory.c \ |
---|
| 38 | src/imfs/imfs_handlers_link.c src/imfs/imfs_handlers_memfile.c \ |
---|
| 39 | src/imfs/imfs_debug.c src/imfs/imfs_rmnod.c src/imfs/imfs_symlink.c \ |
---|
| 40 | src/imfs/imfs_readlink.c src/imfs/imfs_fdatasync.c src/imfs/imfs_fcntl.c \ |
---|
[a63b383] | 41 | src/imfs/ioman.c src/imfs/miniimfs_init.c |
---|
[7cdf8b7e] | 42 | endif |
---|
| 43 | |
---|
[b71e8d0] | 44 | libimfs_g_a_SOURCES = $(libimfs_a_SOURCES) |
---|
[7cdf8b7e] | 45 | |
---|
[07347cb] | 46 | include_HEADERS += src/imfs/imfs.h |
---|
[7cdf8b7e] | 47 | |
---|
[f670eb76] | 48 | IMFSLIB = libimfs$(LIB_VARIANT).a |
---|
[7cdf8b7e] | 49 | |
---|
| 50 | # dosfs |
---|
| 51 | |
---|
[970983e] | 52 | if !UNIX |
---|
| 53 | EXTRA_LIBRARIES += libdosfs.a |
---|
| 54 | CLEANFILES += libdosfs.a |
---|
| 55 | libdosfs_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIBC_DEFINES) $(CFLAGS_OPTIMIZE_V) |
---|
[7cdf8b7e] | 56 | |
---|
[970983e] | 57 | EXTRA_LIBRARIES += libdosfs_g.a |
---|
| 58 | CLEANFILES += libdosfs_g.a |
---|
| 59 | libdosfs_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIBC_DEFINES) $(CFLAGS_DEBUG_V) |
---|
| 60 | |
---|
| 61 | # libdosfs_FATFS_C_FILES |
---|
| 62 | libdosfs_a_SOURCES = src/dosfs/fat.c src/dosfs/fat.h \ |
---|
| 63 | src/dosfs/fat_fat_operations.c src/dosfs/fat_fat_operations.h \ |
---|
| 64 | src/dosfs/fat_file.c src/dosfs/fat_file.h |
---|
| 65 | |
---|
| 66 | # libdosfs_DOSFS_C_FILES |
---|
| 67 | libdosfs_a_SOURCES += src/dosfs/msdos_create.c src/dosfs/msdos_dir.c \ |
---|
[7cdf8b7e] | 68 | src/dosfs/msdos_eval.c src/dosfs/msdos_file.c src/dosfs/msdos_free.c \ |
---|
| 69 | src/dosfs/msdos_fsunmount.c src/dosfs/msdos_handlers_dir.c \ |
---|
| 70 | src/dosfs/msdos_handlers_file.c src/dosfs/msdos_init.c \ |
---|
| 71 | src/dosfs/msdos_initsupp.c src/dosfs/msdos_misc.c \ |
---|
| 72 | src/dosfs/msdos_mknod.c src/dosfs/msdos_node_type.c \ |
---|
[970983e] | 73 | src/dosfs/msdos_conv.c src/dosfs/msdos.h |
---|
[7cdf8b7e] | 74 | |
---|
[970983e] | 75 | libdosfs_g_a_SOURCES = $(libdosfs_a_SOURCES) |
---|
[7cdf8b7e] | 76 | |
---|
| 77 | include_HEADERS += src/dosfs/dosfs.h |
---|
| 78 | |
---|
[f670eb76] | 79 | DOSFSLIB = libdosfs$(LIB_VARIANT).a |
---|
[07347cb] | 80 | endif |
---|
[7cdf8b7e] | 81 | |
---|
[970983e] | 82 | EXTRA_DIST += $(UNUSED_FILES) |
---|
| 83 | |
---|
[07347cb] | 84 | all-local: $(PREINSTALL_FILES) $(IMFSLIB) $(DOSFSLIB) |
---|
[7cdf8b7e] | 85 | |
---|
| 86 | # --- |
---|
| 87 | |
---|
| 88 | PREINSTALL_FILES = |
---|
| 89 | |
---|
[9e7e53bf] | 90 | $(PROJECT_INCLUDE)/$(dirstamp): |
---|
[53a8958] | 91 | @$(mkdir_p) $(PROJECT_INCLUDE) |
---|
[9e7e53bf] | 92 | @: > $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 93 | |
---|
| 94 | $(PROJECT_INCLUDE)/imfs.h: src/imfs/imfs.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 95 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/imfs.h |
---|
[7cdf8b7e] | 96 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/imfs.h |
---|
| 97 | |
---|
| 98 | if !UNIX |
---|
[9e7e53bf] | 99 | $(PROJECT_INCLUDE)/dosfs.h: src/dosfs/dosfs.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
| 100 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/dosfs.h |
---|
[7cdf8b7e] | 101 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/dosfs.h |
---|
| 102 | endif |
---|
| 103 | |
---|
[c41c8b7] | 104 | include $(top_srcdir)/automake/local.am |
---|