summaryrefslogtreecommitdiff
path: root/Makefile.am (plain)
blob: 7d883a4322b24aef734bb255a6488b97dd50f073
1
2MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
3
4if FUSE_INTERNAL
5FUSE_CFLAGS = -I$(top_srcdir)/include/fuse-lite
6FUSE_LIBS =
7else
8FUSE_CFLAGS = $(FUSE_MODULE_CFLAGS)
9FUSE_LIBS = $(FUSE_MODULE_LIBS)
10endif
11
12bin_PROGRAMS = ntfs-3g.probe
13rootbin_PROGRAMS = ntfs-3g lowntfs-3g
14rootsbin_DATA = #Create directory
15man_MANS = ntfs-3g.8 ntfs-3g.probe.8
16
17ntfs_3g_LDADD = $(FUSE_LIBS) $(top_builddir)/libntfs-3g/libntfs-3g.la
18if REALLYSTATIC
19ntfs_3g_LDFLAGS = $(AM_LDFLAGS) -all-static
20endif
21ntfs_3g_CFLAGS = \
22 $(AM_CFLAGS) \
23 -DFUSE_USE_VERSION=26 \
24 $(FUSE_CFLAGS) \
25 -I$(top_srcdir)/include/ntfs-3g
26ntfs_3g_SOURCES = ntfs-3g.c
27
28lowntfs_3g_LDADD = $(FUSE_LIBS) $(top_builddir)/libntfs-3g/libntfs-3g.la
29if REALLYSTATIC
30lowntfs_3g_LDFLAGS = $(AM_LDFLAGS) -all-static
31endif
32lowntfs_3g_CFLAGS = \
33 $(AM_CFLAGS) \
34 -DFUSE_USE_VERSION=26 \
35 $(FUSE_CFLAGS) \
36 -I$(top_srcdir)/include/ntfs-3g
37lowntfs_3g_SOURCES = lowntfs-3g.c
38
39ntfs_3g_probe_LDADD = $(top_builddir)/libntfs-3g/libntfs-3g.la
40if REALLYSTATIC
41ntfs_3g_probe_LDFLAGS = $(AM_LDFLAGS) -all-static
42endif
43ntfs_3g_probe_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include/ntfs-3g
44ntfs_3g_probe_SOURCES = ntfs-3g.probe.c
45
46if RUN_LDCONFIG
47install-exec-hook:
48 $(LDCONFIG)
49endif
50
51if ENABLE_MOUNT_HELPER
52install-exec-local: install-rootbinPROGRAMS
53 $(MKDIR_P) "$(DESTDIR)/sbin"
54 $(LN_S) -f "$(rootbindir)/ntfs-3g" "$(DESTDIR)/sbin/mount.ntfs-3g"
55 $(LN_S) -f "$(rootbindir)/lowntfs-3g" "$(DESTDIR)/sbin/mount.lowntfs-3g"
56endif
57
58install-data-local: install-man8
59 $(LN_S) -f ntfs-3g.8 "$(DESTDIR)$(man8dir)/mount.ntfs-3g.8"
60 $(LN_S) -f ntfs-3g.8 "$(DESTDIR)$(man8dir)/mount.lowntfs-3g.8"
61
62uninstall-local:
63 $(RM) -f "$(DESTDIR)$(man8dir)/mount.ntfs-3g.8"
64if ENABLE_MOUNT_HELPER
65 $(RM) -f "$(DESTDIR)/sbin/mount.ntfs-3g" "$(DESTDIR)/sbin/mount.lowntfs-3g"
66endif
67