• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2EXTRA_DIST = ntfs-3g_common.h
3
4MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
5
6if FUSE_INTERNAL
7FUSE_CFLAGS = -I$(top_srcdir)/include/fuse-lite
8FUSE_LIBS   = $(top_builddir)/libfuse-lite/libfuse-lite.la
9else
10FUSE_CFLAGS = $(FUSE_MODULE_CFLAGS)
11FUSE_LIBS   = $(FUSE_MODULE_LIBS)
12endif
13
14if !DISABLE_PLUGINS
15plugindir        = $(libdir)/ntfs-3g
16PLUGIN_CFLAGS    = -DPLUGIN_DIR=\"$(plugindir)\"
17endif
18
19if ENABLE_NTFS_3G
20
21bin_PROGRAMS	 = ntfs-3g.probe
22rootbin_PROGRAMS = ntfs-3g lowntfs-3g
23rootsbin_DATA 	 = #Create directory
24man_MANS	 = ntfs-3g.8 ntfs-3g.probe.8
25
26ntfs_3g_LDADD    = $(LIBDL) $(FUSE_LIBS) $(top_builddir)/libntfs-3g/libntfs-3g.la
27if REALLYSTATIC
28ntfs_3g_LDFLAGS  = $(AM_LDFLAGS) -all-static
29endif
30ntfs_3g_CFLAGS   =			\
31	$(AM_CFLAGS) 			\
32	-DFUSE_USE_VERSION=26 		\
33	$(FUSE_CFLAGS) 			\
34	-I$(top_srcdir)/include/ntfs-3g	\
35	$(PLUGIN_CFLAGS)
36ntfs_3g_SOURCES  = ntfs-3g.c ntfs-3g_common.c
37
38lowntfs_3g_LDADD    = $(LIBDL) $(FUSE_LIBS) $(top_builddir)/libntfs-3g/libntfs-3g.la
39if REALLYSTATIC
40lowntfs_3g_LDFLAGS  = $(AM_LDFLAGS) -all-static
41endif
42lowntfs_3g_CFLAGS   =			\
43	$(AM_CFLAGS) 			\
44	-DFUSE_USE_VERSION=26 		\
45	$(FUSE_CFLAGS) 			\
46	-I$(top_srcdir)/include/ntfs-3g	\
47	$(PLUGIN_CFLAGS)
48lowntfs_3g_SOURCES  = lowntfs-3g.c ntfs-3g_common.c
49
50ntfs_3g_probe_LDADD 	= $(top_builddir)/libntfs-3g/libntfs-3g.la
51if REALLYSTATIC
52ntfs_3g_probe_LDFLAGS	= $(AM_LDFLAGS) -all-static
53endif
54ntfs_3g_probe_CFLAGS  	= $(AM_CFLAGS) -I$(top_srcdir)/include/ntfs-3g
55ntfs_3g_probe_SOURCES 	= ntfs-3g.probe.c
56
57drivers : $(FUSE_LIBS) ntfs-3g lowntfs-3g
58
59install-exec-hook:
60if RUN_LDCONFIG
61	$(LDCONFIG)
62endif
63if !DISABLE_PLUGINS
64	$(MKDIR_P) $(DESTDIR)/$(plugindir)
65endif
66
67if ENABLE_MOUNT_HELPER
68install-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"
72
73install-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"
76
77uninstall-local:
78	$(RM) -f "$(DESTDIR)$(man8dir)/mount.ntfs-3g.8"
79	$(RM) -f "$(DESTDIR)/sbin/mount.ntfs-3g" "$(DESTDIR)/sbin/mount.lowntfs-3g"
80endif
81
82endif # ENABLE_NTFS_3G
83