2006-10-31 06:32:48 +08:00
|
|
|
|
2008-05-20 01:40:34 +08:00
|
|
|
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
|
2006-10-31 06:32:48 +08:00
|
|
|
|
2007-08-24 06:32:25 +08:00
|
|
|
if INSTALL_LIBRARY
|
2008-03-29 06:26:24 +08:00
|
|
|
rootlib_LTLIBRARIES=#Create directory
|
|
|
|
lib_LTLIBRARIES = libntfs-3g.la
|
|
|
|
pkgconfig_DATA = libntfs-3g.pc
|
2007-08-24 06:32:25 +08:00
|
|
|
else
|
|
|
|
noinst_LTLIBRARIES = libntfs-3g.la
|
|
|
|
endif
|
|
|
|
|
2008-03-29 06:26:24 +08:00
|
|
|
libntfs_3g_la_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include/ntfs-3g
|
|
|
|
|
|
|
|
libntfs_3g_la_LDFLAGS = -version-info $(LIBNTFS_3G_VERSION) -no-undefined
|
|
|
|
|
|
|
|
if FUSE_INTERNAL
|
2008-05-20 01:40:34 +08:00
|
|
|
libntfs_3g_la_LIBADD = $(top_builddir)/libfuse-lite/libfuse-lite.la
|
2008-03-29 06:26:24 +08:00
|
|
|
endif
|
|
|
|
|
2006-10-31 06:32:48 +08:00
|
|
|
libntfs_3g_la_SOURCES = \
|
2008-08-21 18:27:46 +08:00
|
|
|
acls.c \
|
2008-03-29 06:26:24 +08:00
|
|
|
attrib.c \
|
|
|
|
attrlist.c \
|
|
|
|
bitmap.c \
|
|
|
|
bootsect.c \
|
2009-12-18 01:36:06 +08:00
|
|
|
cache.c \
|
2008-03-29 06:26:24 +08:00
|
|
|
collate.c \
|
|
|
|
compat.c \
|
|
|
|
compress.c \
|
|
|
|
debug.c \
|
|
|
|
device.c \
|
|
|
|
dir.c \
|
2009-05-20 22:17:31 +08:00
|
|
|
efs.c \
|
2008-03-29 06:26:24 +08:00
|
|
|
index.c \
|
|
|
|
inode.c \
|
|
|
|
lcnalloc.c \
|
|
|
|
logfile.c \
|
|
|
|
logging.c \
|
|
|
|
mft.c \
|
|
|
|
misc.c \
|
|
|
|
mst.c \
|
2009-12-17 17:07:56 +08:00
|
|
|
object_id.c \
|
2009-05-20 22:17:31 +08:00
|
|
|
reparse.c \
|
2008-03-29 06:26:24 +08:00
|
|
|
runlist.c \
|
|
|
|
security.c \
|
|
|
|
unistr.c \
|
2010-10-26 14:59:51 +08:00
|
|
|
volume.c \
|
|
|
|
xattrs.c
|
2006-10-31 06:32:48 +08:00
|
|
|
|
2008-03-29 06:26:24 +08:00
|
|
|
if NTFS_DEVICE_DEFAULT_IO_OPS
|
|
|
|
if WINDOWS
|
|
|
|
libntfs_3g_la_SOURCES += win32_io.c
|
|
|
|
else
|
|
|
|
libntfs_3g_la_SOURCES += unix_io.c
|
|
|
|
endif
|
|
|
|
endif
|
2006-10-31 06:32:48 +08:00
|
|
|
|
2008-03-29 06:26:24 +08:00
|
|
|
# We may need to move .so files to root
|
|
|
|
# And create ldscript or symbolic link from /usr
|
|
|
|
install-exec-hook: install-rootlibLTLIBRARIES
|
|
|
|
if INSTALL_LIBRARY
|
2008-08-21 18:27:46 +08:00
|
|
|
if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
|
2008-03-29 06:26:24 +08:00
|
|
|
$(MV) -f "$(DESTDIR)/$(libdir)"/libntfs-3g.so* "$(DESTDIR)/$(rootlibdir)"; \
|
|
|
|
fi
|
|
|
|
if GENERATE_LDSCRIPT
|
2008-08-21 18:27:46 +08:00
|
|
|
if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
|
2008-03-29 06:26:24 +08:00
|
|
|
$(install_sh_PROGRAM) "libntfs-3g.script.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \
|
|
|
|
fi
|
|
|
|
else
|
2008-08-21 18:27:46 +08:00
|
|
|
if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
|
2008-03-29 06:26:24 +08:00
|
|
|
$(LN_S) "$(rootlibdir)/libntfs-3g.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \
|
|
|
|
fi
|
|
|
|
endif
|
|
|
|
endif
|
2006-10-31 06:32:48 +08:00
|
|
|
|
2008-03-29 06:26:24 +08:00
|
|
|
uninstall-local:
|
|
|
|
if INSTALL_LIBRARY
|
|
|
|
$(RM) -f "$(DESTDIR)/$(rootlibdir)"/libntfs-3g.so*
|
|
|
|
endif
|
2006-10-31 06:32:48 +08:00
|
|
|
|
2010-12-15 21:58:24 +08:00
|
|
|
if ENABLE_NTFSPROGS
|
2010-12-15 21:09:10 +08:00
|
|
|
libs: $(lib_LTLIBRARIES)
|
2010-12-15 21:58:24 +08:00
|
|
|
endif
|
2010-12-15 21:09:10 +08:00
|
|
|
|