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 # we re-use mount_util.c from the library, but do want to keep ourself
8 # as stand-alone as possible. in order to make an out-of-source build
9 # possible, we "generate" the file from its original location by
11 fusermount_SOURCES = fusermount.c mount_util.c
12 fusermount_CPPFLAGS = -I$(top_srcdir)/lib
13 fusermount_CFLAGS = -fPIE $(AM_CFLAGS)
14 fusermount_LDFLAGS = -pie $(AM_LDFLAGS)
15 BUILT_SOURCES = mount_util.c
16 mount_util.c: $(top_srcdir)/lib/mount_util.c
17 @cp $(top_srcdir)/lib/mount_util.c .
19 mount_fuse_SOURCES = mount.fuse.c
21 ulockmgr_server_SOURCES = ulockmgr_server.c
22 ulockmgr_server_CPPFLAGS = -D_FILE_OFFSET_BITS=64 -D_REENTRANT
23 ulockmgr_server_LDFLAGS = -pthread
26 -chmod u+s $(DESTDIR)$(bindir)/fusermount
27 @if test ! -e $(DESTDIR)/dev/fuse; then \
28 $(MKDIR_P) $(DESTDIR)/dev; \
29 echo "mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true"; \
30 mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true; \
33 EXTRA_DIST = udev.rules init_script
35 MOUNT_FUSE_PATH = @MOUNT_FUSE_PATH@
36 UDEV_RULES_PATH = @UDEV_RULES_PATH@
37 INIT_D_PATH = @INIT_D_PATH@
40 $(MKDIR_P) $(DESTDIR)$(MOUNT_FUSE_PATH)
41 $(INSTALL_PROGRAM) $(builddir)/mount.fuse $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse
42 $(MKDIR_P) $(DESTDIR)$(INIT_D_PATH)
43 $(INSTALL_SCRIPT) $(srcdir)/init_script $(DESTDIR)$(INIT_D_PATH)/fuse
44 @if test -x /usr/sbin/update-rc.d; then \
45 echo "/usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 . || true"; \
46 /usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 . || true; \
50 $(MKDIR_P) $(DESTDIR)$(UDEV_RULES_PATH)
51 $(INSTALL_DATA) $(srcdir)/udev.rules $(DESTDIR)$(UDEV_RULES_PATH)/99-fuse.rules
54 rm -f $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse
55 rm -f $(DESTDIR)$(UDEV_RULES_PATH)/99-fuse.rules
56 rm -f $(DESTDIR)$(INIT_D_PATH)/fuse
57 @if test -x /usr/sbin/update-rc.d; then \
58 echo "/usr/sbin/update-rc.d fuse remove || true"; \
59 /usr/sbin/update-rc.d fuse remove || true; \