2 EXTRA_DIST = ntfs-3g_common.h
4 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
7 FUSE_CFLAGS = -I$(top_srcdir)/include/fuse-lite
8 FUSE_LIBS = $(top_builddir)/libfuse-lite/libfuse-lite.la
10 FUSE_CFLAGS = $(FUSE_MODULE_CFLAGS)
11 FUSE_LIBS = $(FUSE_MODULE_LIBS)
15 plugindir = $(libdir)/ntfs-3g
16 PLUGIN_CFLAGS = -DPLUGIN_DIR=\"$(plugindir)\"
21 bin_PROGRAMS = ntfs-3g.probe
22 rootbin_PROGRAMS = ntfs-3g lowntfs-3g
23 rootsbin_DATA = #Create directory
24 man_MANS = ntfs-3g.8 ntfs-3g.probe.8
26 ntfs_3g_LDADD = $(LIBDL) $(FUSE_LIBS) $(top_builddir)/libntfs-3g/libntfs-3g.la
28 ntfs_3g_LDFLAGS = $(AM_LDFLAGS) -all-static
32 -DFUSE_USE_VERSION=26 \
34 -I$(top_srcdir)/include/ntfs-3g \
36 ntfs_3g_SOURCES = ntfs-3g.c ntfs-3g_common.c
38 lowntfs_3g_LDADD = $(LIBDL) $(FUSE_LIBS) $(top_builddir)/libntfs-3g/libntfs-3g.la
40 lowntfs_3g_LDFLAGS = $(AM_LDFLAGS) -all-static
44 -DFUSE_USE_VERSION=26 \
46 -I$(top_srcdir)/include/ntfs-3g \
48 lowntfs_3g_SOURCES = lowntfs-3g.c ntfs-3g_common.c
50 ntfs_3g_probe_LDADD = $(top_builddir)/libntfs-3g/libntfs-3g.la
52 ntfs_3g_probe_LDFLAGS = $(AM_LDFLAGS) -all-static
54 ntfs_3g_probe_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include/ntfs-3g
55 ntfs_3g_probe_SOURCES = ntfs-3g.probe.c
57 drivers : $(FUSE_LIBS) ntfs-3g lowntfs-3g
64 $(MKDIR_P) $(DESTDIR)/$(plugindir)
67 if ENABLE_MOUNT_HELPER
68 install-exec-local: install-rootbinPROGRAMS
69 $(MKDIR_P) "$(DESTDIR)/sbin"
70 $(LN_S) -f "$(rootbindir)/ntfs-3g" "$(DESTDIR)/sbin/mount.ntfs-3g"
71 $(LN_S) -f "$(rootbindir)/lowntfs-3g" "$(DESTDIR)/sbin/mount.lowntfs-3g"
73 install-data-local: install-man8
74 $(LN_S) -f ntfs-3g.8 "$(DESTDIR)$(man8dir)/mount.ntfs-3g.8"
75 $(LN_S) -f ntfs-3g.8 "$(DESTDIR)$(man8dir)/mount.lowntfs-3g.8"
78 $(RM) -f "$(DESTDIR)$(man8dir)/mount.ntfs-3g.8"
79 $(RM) -f "$(DESTDIR)/sbin/mount.ntfs-3g" "$(DESTDIR)/sbin/mount.lowntfs-3g"
82 endif # ENABLE_NTFS_3G