1 2DEVELFLAGS = 3 4bin_PROGRAMS = \ 5 fuse-ext2 \ 6 fuse-ext2.probe 7 8if LINUX 9moddir = $(libdir)/umview/modules 10mod_LTLIBRARIES = umfuseext2.la 11endif 12 13fuse_ext2_probe_SOURCES = \ 14 fuse-ext2.h \ 15 fuse-ext2.probe.c \ 16 do_probe.c 17 18fuse_ext2_probe_CFLAGS = \ 19 -Wall \ 20 -DHAVE_CONFIG_H \ 21 -I/usr/local/include 22 23fuse_ext2_SOURCES = \ 24 fuse-ext2.h \ 25 fuse-ext2.c \ 26 do_probe.c \ 27 do_check.c \ 28 do_fillstatbuf.c \ 29 do_readinode.c \ 30 do_writeinode.c \ 31 do_killfilebyinode.c \ 32 op_init.c \ 33 op_destroy.c \ 34 op_access.c \ 35 op_fgetattr.c \ 36 op_getattr.c \ 37 op_getxattr.c \ 38 op_open.c \ 39 op_read.c \ 40 op_readdir.c \ 41 op_readlink.c \ 42 op_release.c \ 43 op_statfs.c \ 44 op_chown.c \ 45 op_chmod.c \ 46 op_create.c \ 47 op_flush.c \ 48 op_fsync.c \ 49 op_mkdir.c \ 50 op_rmdir.c \ 51 op_unlink.c \ 52 op_utimens.c \ 53 op_write.c \ 54 op_mknod.c \ 55 op_symlink.c \ 56 op_truncate.c \ 57 op_link.c \ 58 op_rename.c 59 60umfuseext2_la_SOURCES = \ 61 fuse-ext2.h \ 62 fuse-ext2.c \ 63 do_probe.c \ 64 do_check.c \ 65 do_fillstatbuf.c \ 66 do_readinode.c \ 67 do_writeinode.c \ 68 do_killfilebyinode.c \ 69 op_init.c \ 70 op_destroy.c \ 71 op_access.c \ 72 op_fgetattr.c \ 73 op_getattr.c \ 74 op_getxattr.c \ 75 op_open.c \ 76 op_read.c \ 77 op_readdir.c \ 78 op_readlink.c \ 79 op_release.c \ 80 op_statfs.c \ 81 op_chown.c \ 82 op_chmod.c \ 83 op_create.c \ 84 op_flush.c \ 85 op_fsync.c \ 86 op_mkdir.c \ 87 op_rmdir.c \ 88 op_unlink.c \ 89 op_utimens.c \ 90 op_write.c \ 91 op_mknod.c \ 92 op_symlink.c \ 93 op_truncate.c \ 94 op_link.c \ 95 op_rename.c 96 97umfuseext2_la_CFLAGS = \ 98 -Wall \ 99 -DHAVE_CONFIG_H \ 100 -D_GNU_SOURCE \ 101 $(DEVELFLAGS) \ 102 -I$(includedir)/umview \ 103 -I/usr/local/include 104 105umfuseext2_la_LDFLAGS = \ 106 -module \ 107 -avoid-version \ 108 -export-dynamic \ 109 -lext2fs 110 111fuse_ext2_CFLAGS = \ 112 -Wall \ 113 -DHAVE_CONFIG_H \ 114 -I/usr/local/include 115 116if DARWIN 117bin_PROGRAMS += \ 118 fuse-ext2.wait \ 119 fuse-ext2.install \ 120 fuse-ext2.uninstall 121 122fuse_ext2_wait_SOURCES = \ 123 fuse-ext2.wait.m 124 125fuse_ext2_wait_CFLAGS = \ 126 -Wall \ 127 -D__FreeBSD__=10 128 129fuse_ext2_wait_LDFLAGS = \ 130 -framework CoreFoundation 131 132fuse_ext2_install_SOURCES = \ 133 fuse-ext2.install.m 134 135fuse_ext2_install_CFLAGS = \ 136 -ObjC 137 138fuse_ext2_install_LDFLAGS = \ 139 -framework Foundation 140 141fuse_ext2_uninstall_SOURCES = \ 142 fuse-ext2.uninstall.m 143 144fuse_ext2_probe_CFLAGS += \ 145 -D__FreeBSD__=10 146 147fuse_ext2_CFLAGS += \ 148 -D__FreeBSD__=10 149endif 150 151if DARWIN 152install-exec-local: 153 $(INSTALL) -d "$(DESTDIR)/$(sbindir)" 154 $(LN_S) -f "/Library/Filesystems/fuse-ext2.fs/Contents/Resources/mount_fuse-ext2" "$(DESTDIR)/$(sbindir)/mount_fuse-ext2" 155 $(LN_S) -f "/usr/local/opt/e2fsprogs/sbin/e2label" "$(DESTDIR)/$(sbindir)/e2label" 156 $(LN_S) -f "/usr/local/opt/e2fsprogs/sbin/mke2fs" "$(DESTDIR)/$(sbindir)/mke2fs" 157endif 158if LINUX 159install-data-hook: 160 cd "$(DESTDIR)/$(moddir)" && rm -f $(mod_LTLIBRARIES) 161 162install-exec-local: 163 $(INSTALL) -d "$(DESTDIR)/$(sbindir)" 164 $(LN_S) -f "$(bindir)/fuse-ext2" "$(DESTDIR)/$(sbindir)/mount.fuse-ext2" 165endif 166