1 ## Process this file with automake to produce Makefile.in
3 AM_CPPFLAGS = -D_FILE_OFFSET_BITS=64
4 bin_PROGRAMS = fusermount ulockmgr_server
5 noinst_PROGRAMS = mount.fuse
7 fusermount_SOURCES = fusermount.c
8 fusermount_LDADD = ../lib/mount_util.lo
9 fusermount_CPPFLAGS = -I../lib
10 mount_fuse_SOURCES = mount.fuse.c
12 ulockmgr_server_SOURCES = ulockmgr_server.c
13 ulockmgr_server_CPPFLAGS = -D_FILE_OFFSET_BITS=64 -D_REENTRANT
14 ulockmgr_server_LDFLAGS = -pthread
17 -chown root $(DESTDIR)$(bindir)/fusermount
18 -chmod u+s $(DESTDIR)$(bindir)/fusermount
19 @if test ! -e $(DESTDIR)/dev/fuse; then \
20 $(mkdir_p) $(DESTDIR)/dev; \
21 echo "mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true"; \
22 mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true; \
25 EXTRA_DIST = udev.rules init_script
27 MOUNT_FUSE_PATH = @MOUNT_FUSE_PATH@
28 UDEV_RULES_PATH = @UDEV_RULES_PATH@
29 INIT_D_PATH = @INIT_D_PATH@
32 $(mkdir_p) $(DESTDIR)$(MOUNT_FUSE_PATH)
33 $(INSTALL_PROGRAM) $(srcdir)/mount.fuse $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse
34 $(mkdir_p) $(DESTDIR)$(INIT_D_PATH)
35 $(INSTALL_SCRIPT) $(srcdir)/init_script $(DESTDIR)$(INIT_D_PATH)/fuse
36 @if test -x /usr/sbin/update-rc.d; then \
37 echo "/usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 . || true"; \
38 /usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 . || true; \
42 $(mkdir_p) $(DESTDIR)$(UDEV_RULES_PATH)
43 $(INSTALL_DATA) $(srcdir)/udev.rules $(DESTDIR)$(UDEV_RULES_PATH)/99-fuse.rules
46 rm -f $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse
47 rm -f $(DESTDIR)$(UDEV_RULES_PATH)/99-fuse.rules
48 rm -f $(DESTDIR)$(INIT_D_PATH)/fuse
49 @if test -x /usr/sbin/update-rc.d; then \
50 echo "/usr/sbin/update-rc.d fuse remove || true"; \
51 /usr/sbin/update-rc.d fuse remove || true; \