summaryrefslogtreecommitdiff
path: root/src/Makefile.am (plain)
blob: 89ac5ce09f8b36f59b7d7869d056d473ecbab777
1
2EXTRA_DIST = secaudit.h 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 ENABLE_NTFS_3G
15
16bin_PROGRAMS = ntfs-3g.probe \
17 ntfs-3g.usermap \
18 ntfs-3g.secaudit
19rootbin_PROGRAMS = ntfs-3g lowntfs-3g
20rootsbin_DATA = #Create directory
21man_MANS = ntfs-3g.8 ntfs-3g.probe.8 \
22 ntfs-3g.usermap.8 \
23 ntfs-3g.secaudit.8
24
25ntfs_3g_LDADD = $(FUSE_LIBS) $(top_builddir)/libntfs-3g/libntfs-3g.la
26if REALLYSTATIC
27ntfs_3g_LDFLAGS = $(AM_LDFLAGS) -all-static
28endif
29ntfs_3g_CFLAGS = \
30 $(AM_CFLAGS) \
31 -DFUSE_USE_VERSION=26 \
32 $(FUSE_CFLAGS) \
33 -I$(top_srcdir)/include/ntfs-3g
34ntfs_3g_SOURCES = ntfs-3g.c ntfs-3g_common.c
35
36lowntfs_3g_LDADD = $(FUSE_LIBS) $(top_builddir)/libntfs-3g/libntfs-3g.la
37if REALLYSTATIC
38lowntfs_3g_LDFLAGS = $(AM_LDFLAGS) -all-static
39endif
40lowntfs_3g_CFLAGS = \
41 $(AM_CFLAGS) \
42 -DFUSE_USE_VERSION=26 \
43 $(FUSE_CFLAGS) \
44 -I$(top_srcdir)/include/ntfs-3g
45lowntfs_3g_SOURCES = lowntfs-3g.c ntfs-3g_common.c
46
47ntfs_3g_probe_LDADD = $(top_builddir)/libntfs-3g/libntfs-3g.la
48ntfs_3g_usermap_LDADD = $(top_builddir)/libntfs-3g/libntfs-3g.la
49ntfs_3g_secaudit_LDADD = $(top_builddir)/libntfs-3g/libntfs-3g.la
50if REALLYSTATIC
51ntfs_3g_probe_LDFLAGS = $(AM_LDFLAGS) -all-static
52ntfs_3g_usermap_LDFLAGS = $(AM_LDFLAGS) -all-static
53ntfs_3g_secaudit_LDFLAGS = $(AM_LDFLAGS) -all-static
54endif
55ntfs_3g_probe_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include/ntfs-3g
56ntfs_3g_usermap_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include/ntfs-3g
57ntfs_3g_secaudit_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include/ntfs-3g
58ntfs_3g_probe_SOURCES = ntfs-3g.probe.c
59ntfs_3g_usermap_SOURCES = usermap.c
60ntfs_3g_secaudit_SOURCES = secaudit.c
61
62drivers : $(FUSE_LIBS) ntfs-3g lowntfs-3g
63
64if RUN_LDCONFIG
65install-exec-hook:
66 $(LDCONFIG)
67endif
68
69if ENABLE_MOUNT_HELPER
70install-exec-local: install-rootbinPROGRAMS
71 $(MKDIR_P) "$(DESTDIR)/sbin"
72 $(LN_S) -f "$(rootbindir)/ntfs-3g" "$(DESTDIR)/sbin/mount.ntfs-3g"
73 $(LN_S) -f "$(rootbindir)/lowntfs-3g" "$(DESTDIR)/sbin/mount.lowntfs-3g"
74endif
75
76install-data-local: install-man8
77 $(LN_S) -f ntfs-3g.8 "$(DESTDIR)$(man8dir)/mount.ntfs-3g.8"
78 $(LN_S) -f ntfs-3g.8 "$(DESTDIR)$(man8dir)/mount.lowntfs-3g.8"
79
80uninstall-local:
81 $(RM) -f "$(DESTDIR)$(man8dir)/mount.ntfs-3g.8"
82if ENABLE_MOUNT_HELPER
83 $(RM) -f "$(DESTDIR)/sbin/mount.ntfs-3g" "$(DESTDIR)/sbin/mount.lowntfs-3g"
84endif
85
86endif # ENABLE_NTFS_3G
87