Fixed a constant string concatenation
[ntfs-3g.git] / src / Makefile.am
blob8d9840830364860cfec9c617e7def668c816187e
2 EXTRA_DIST = ntfs-3g_common.h
4 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
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
14 if !DISABLE_PLUGINS
15 plugindir        = $(libdir)/ntfs-3g
16 PLUGIN_CFLAGS    = -DPLUGIN_DIR=\"$(plugindir)\"
17 endif
19 if ENABLE_NTFS_3G
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
27 if REALLYSTATIC
28 ntfs_3g_LDFLAGS  = $(AM_LDFLAGS) -all-static
29 endif
30 ntfs_3g_CFLAGS   =                      \
31         $(AM_CFLAGS)                    \
32         -DFUSE_USE_VERSION=26           \
33         $(FUSE_CFLAGS)                  \
34         -I$(top_srcdir)/include/ntfs-3g \
35         $(PLUGIN_CFLAGS)
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
39 if REALLYSTATIC
40 lowntfs_3g_LDFLAGS  = $(AM_LDFLAGS) -all-static
41 endif
42 lowntfs_3g_CFLAGS   =                   \
43         $(AM_CFLAGS)                    \
44         -DFUSE_USE_VERSION=26           \
45         $(FUSE_CFLAGS)                  \
46         -I$(top_srcdir)/include/ntfs-3g \
47         $(PLUGIN_CFLAGS)
48 lowntfs_3g_SOURCES  = lowntfs-3g.c ntfs-3g_common.c
50 ntfs_3g_probe_LDADD     = $(top_builddir)/libntfs-3g/libntfs-3g.la
51 if REALLYSTATIC
52 ntfs_3g_probe_LDFLAGS   = $(AM_LDFLAGS) -all-static
53 endif
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
59 install-exec-hook:
60 if RUN_LDCONFIG
61         $(LDCONFIG)
62 endif
63 if !DISABLE_PLUGINS
64         $(MKDIR_P) $(DESTDIR)/$(plugindir)
65 endif
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"
77 uninstall-local:
78         $(RM) -f "$(DESTDIR)$(man8dir)/mount.ntfs-3g.8"
79         $(RM) -f "$(DESTDIR)/sbin/mount.ntfs-3g" "$(DESTDIR)/sbin/mount.lowntfs-3g"
80 endif
82 endif # ENABLE_NTFS_3G