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) -I$(top_srcdir)/include/ntfs-3g
13
14libntfs_3g_la_LDFLAGS = -version-info $(LIBNTFS_3G_VERSION) -no-undefined
15
16if FUSE_INTERNAL
17libntfs_3g_la_LIBADD  = $(top_builddir)/libfuse-lite/libfuse-lite.la
18endif
19
20libntfs_3g_la_SOURCES =	\
21	attrib.c 	\
22	attrlist.c 	\
23	bitmap.c 	\
24	bootsect.c 	\
25	collate.c 	\
26	compat.c 	\
27	compress.c 	\
28	debug.c 	\
29	device.c 	\
30	dir.c 		\
31	index.c 	\
32	inode.c 	\
33	lcnalloc.c 	\
34	logfile.c 	\
35	logging.c 	\
36	mft.c 		\
37	misc.c 		\
38	mst.c 		\
39	runlist.c 	\
40	security.c 	\
41	unistr.c 	\
42	volume.c
43
44if NTFS_DEVICE_DEFAULT_IO_OPS
45if WINDOWS
46libntfs_3g_la_SOURCES += win32_io.c
47else
48libntfs_3g_la_SOURCES += unix_io.c
49endif
50endif
51
52# We may need to move .so files to root
53# And create ldscript or symbolic link from /usr
54install-exec-hook: install-rootlibLTLIBRARIES
55if INSTALL_LIBRARY
56	if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
57		$(MV) -f "$(DESTDIR)/$(libdir)"/libntfs-3g.so* "$(DESTDIR)/$(rootlibdir)";  \
58	fi
59if GENERATE_LDSCRIPT
60	if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
61		$(install_sh_PROGRAM) "libntfs-3g.script.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \
62	fi
63else
64	if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
65		$(LN_S) "$(rootlibdir)/libntfs-3g.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \
66	fi
67endif
68endif
69
70uninstall-local:
71if INSTALL_LIBRARY
72	$(RM) -f "$(DESTDIR)/$(rootlibdir)"/libntfs-3g.so*
73endif
74
75