2 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
5 rootlib_LTLIBRARIES=#Create directory
6 lib_LTLIBRARIES = libntfs-3g.la
7 pkgconfig_DATA = libntfs-3g.pc
9 noinst_LTLIBRARIES = libntfs-3g.la
12 libntfs_3g_la_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include/ntfs-3g
14 libntfs_3g_la_LDFLAGS = -version-info $(LIBNTFS_3G_VERSION) -no-undefined
16 libntfs_3g_la_SOURCES = \
47 if NTFS_DEVICE_DEFAULT_IO_OPS
49 libntfs_3g_la_SOURCES += win32_io.c
51 libntfs_3g_la_SOURCES += unix_io.c
55 # We may need to move .so files to root
56 # And create ldscript or symbolic link from /usr
57 install-exec-hook: install-rootlibLTLIBRARIES
59 if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
60 $(MV) -f "$(DESTDIR)/$(libdir)"/libntfs-3g.so* "$(DESTDIR)/$(rootlibdir)"; \
63 if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
64 $(install_sh_PROGRAM) "libntfs-3g.script.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \
67 if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
68 $(LN_S) "$(rootlibdir)/libntfs-3g.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \
75 $(RM) -f "$(DESTDIR)/$(rootlibdir)"/libntfs-3g.so*
79 libs: $(lib_LTLIBRARIES)