You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.0 KiB

  1. ## Process this file with automake to produce Makefile.in
  2. AM_CPPFLAGS = -D_FILE_OFFSET_BITS=64
  3. bin_PROGRAMS = fusermount ulockmgr_server
  4. noinst_PROGRAMS = mount.fuse
  5. # we re-use mount_util.c from the library, but do want to keep ourself
  6. # as stand-alone as possible. in order to make an out-of-source build
  7. # possible, we "generate" the file from its original location by
  8. # copying it over.
  9. fusermount_SOURCES = fusermount.c mount_util.c
  10. fusermount_CPPFLAGS = -I$(top_srcdir)/lib
  11. BUILT_SOURCES = mount_util.c
  12. mount_util.c: $(top_srcdir)/lib/mount_util.c
  13. @cp $(top_srcdir)/lib/mount_util.c .
  14. mount_fuse_SOURCES = mount.fuse.c
  15. ulockmgr_server_SOURCES = ulockmgr_server.c
  16. ulockmgr_server_CPPFLAGS = -D_FILE_OFFSET_BITS=64 -D_REENTRANT
  17. ulockmgr_server_LDFLAGS = -pthread
  18. install-exec-hook:
  19. -chmod u+s $(DESTDIR)$(bindir)/fusermount
  20. @if test ! -e $(DESTDIR)/dev/fuse; then \
  21. $(MKDIR_P) $(DESTDIR)/dev; \
  22. echo "mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true"; \
  23. mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true; \
  24. fi
  25. EXTRA_DIST = udev.rules init_script
  26. MOUNT_FUSE_PATH = @MOUNT_FUSE_PATH@
  27. UDEV_RULES_PATH = @UDEV_RULES_PATH@
  28. INIT_D_PATH = @INIT_D_PATH@
  29. install-exec-local:
  30. $(MKDIR_P) $(DESTDIR)$(MOUNT_FUSE_PATH)
  31. $(INSTALL_PROGRAM) $(builddir)/mount.fuse $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse
  32. $(MKDIR_P) $(DESTDIR)$(INIT_D_PATH)
  33. $(INSTALL_SCRIPT) $(srcdir)/init_script $(DESTDIR)$(INIT_D_PATH)/fuse
  34. @if test -x /usr/sbin/update-rc.d; then \
  35. echo "/usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 . || true"; \
  36. /usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 . || true; \
  37. fi
  38. install-data-local:
  39. $(MKDIR_P) $(DESTDIR)$(UDEV_RULES_PATH)
  40. $(INSTALL_DATA) $(srcdir)/udev.rules $(DESTDIR)$(UDEV_RULES_PATH)/99-fuse.rules
  41. uninstall-local:
  42. rm -f $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse
  43. rm -f $(DESTDIR)$(UDEV_RULES_PATH)/99-fuse.rules
  44. rm -f $(DESTDIR)$(INIT_D_PATH)/fuse
  45. @if test -x /usr/sbin/update-rc.d; then \
  46. echo "/usr/sbin/update-rc.d fuse remove || true"; \
  47. /usr/sbin/update-rc.d fuse remove || true; \
  48. fi