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