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