1 2MAINTAINERCLEANFILES = $(srcdir)/Makefile.in 3 4if INSTALL_LIBRARY 5rootlib_LTLIBRARIES=#Create directory 6lib_LTLIBRARIES = libntfs-3g.la 7pkgconfig_DATA = libntfs-3g.pc 8else 9noinst_LTLIBRARIES = libntfs-3g.la 10endif 11 12libntfs_3g_la_CFLAGS = $(AM_CFLAGS) 13libntfs_3g_la_CPPFLAGS= $(AM_CPPFLAGS) $(LIBNTFS_CPPFLAGS) -I$(top_srcdir)/include/ntfs-3g 14libntfs_3g_la_LIBADD = $(LIBNTFS_LIBS) 15libntfs_3g_la_LDFLAGS = -version-info $(LIBNTFS_3G_VERSION) -no-undefined 16 17libntfs_3g_la_SOURCES = \ 18 acls.c \ 19 attrib.c \ 20 attrlist.c \ 21 bitmap.c \ 22 bootsect.c \ 23 cache.c \ 24 collate.c \ 25 compat.c \ 26 compress.c \ 27 debug.c \ 28 device.c \ 29 dir.c \ 30 ea.c \ 31 efs.c \ 32 index.c \ 33 inode.c \ 34 ioctl.c \ 35 lcnalloc.c \ 36 logfile.c \ 37 logging.c \ 38 mft.c \ 39 misc.c \ 40 mst.c \ 41 object_id.c \ 42 realpath.c \ 43 reparse.c \ 44 runlist.c \ 45 security.c \ 46 unistr.c \ 47 volume.c \ 48 xattrs.c 49 50if NTFS_DEVICE_DEFAULT_IO_OPS 51if WINDOWS 52libntfs_3g_la_SOURCES += win32_io.c 53else 54libntfs_3g_la_SOURCES += unix_io.c 55endif 56endif 57 58# We may need to move .so files to root 59# And create ldscript or symbolic link from /usr 60install-exec-hook: install-rootlibLTLIBRARIES 61if INSTALL_LIBRARY 62 if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \ 63 $(MV) -f "$(DESTDIR)/$(libdir)"/libntfs-3g.so* "$(DESTDIR)/$(rootlibdir)"; \ 64 fi 65if GENERATE_LDSCRIPT 66 if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \ 67 $(install_sh_PROGRAM) "libntfs-3g.script.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \ 68 fi 69else 70 if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \ 71 $(LN_S) "$(rootlibdir)/libntfs-3g.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \ 72 fi 73endif 74endif 75 76uninstall-local: 77if INSTALL_LIBRARY 78 $(RM) -f "$(DESTDIR)/$(rootlibdir)"/libntfs-3g.so* 79endif 80 81if ENABLE_NTFSPROGS 82libs: $(lib_LTLIBRARIES) 83endif 84 85