blob: 045ca52d0d8dafc2f3cc89ba29bb8bdc3a1f3763
1 | |
2 | MAINTAINERCLEANFILES = $(srcdir)/Makefile.in |
3 | |
4 | if INSTALL_LIBRARY |
5 | rootlib_LTLIBRARIES=#Create directory |
6 | lib_LTLIBRARIES = libntfs-3g.la |
7 | pkgconfig_DATA = libntfs-3g.pc |
8 | else |
9 | noinst_LTLIBRARIES = libntfs-3g.la |
10 | endif |
11 | |
12 | libntfs_3g_la_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/include/ntfs-3g |
13 | libntfs_3g_la_CPPFLAGS= $(AM_CPPFLAGS) $(LIBNTFS_CPPFLAGS) |
14 | libntfs_3g_la_LIBADD = $(LIBNTFS_LIBS) |
15 | libntfs_3g_la_LDFLAGS = -version-info $(LIBNTFS_3G_VERSION) -no-undefined |
16 | |
17 | libntfs_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 | efs.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 | object_id.c \ |
40 | realpath.c \ |
41 | reparse.c \ |
42 | runlist.c \ |
43 | security.c \ |
44 | unistr.c \ |
45 | volume.c \ |
46 | xattrs.c |
47 | |
48 | if NTFS_DEVICE_DEFAULT_IO_OPS |
49 | if WINDOWS |
50 | libntfs_3g_la_SOURCES += win32_io.c |
51 | else |
52 | libntfs_3g_la_SOURCES += unix_io.c |
53 | endif |
54 | endif |
55 | |
56 | # We may need to move .so files to root |
57 | # And create ldscript or symbolic link from /usr |
58 | install-exec-hook: install-rootlibLTLIBRARIES |
59 | if INSTALL_LIBRARY |
60 | if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \ |
61 | $(MV) -f "$(DESTDIR)/$(libdir)"/libntfs-3g.so* "$(DESTDIR)/$(rootlibdir)"; \ |
62 | fi |
63 | if GENERATE_LDSCRIPT |
64 | if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \ |
65 | $(install_sh_PROGRAM) "libntfs-3g.script.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \ |
66 | fi |
67 | else |
68 | if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \ |
69 | $(LN_S) "$(rootlibdir)/libntfs-3g.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \ |
70 | fi |
71 | endif |
72 | endif |
73 | |
74 | uninstall-local: |
75 | if INSTALL_LIBRARY |
76 | $(RM) -f "$(DESTDIR)/$(rootlibdir)"/libntfs-3g.so* |
77 | endif |
78 | |
79 | if ENABLE_NTFSPROGS |
80 | libs: $(lib_LTLIBRARIES) |
81 | endif |
82 | |
83 |