summaryrefslogtreecommitdiff
path: root/libntfs-3g/Makefile.am (plain)
blob: fe2fb9da4b5abaa06695ab70d0a0dbbb480aba07
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 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
49if NTFS_DEVICE_DEFAULT_IO_OPS
50if WINDOWS
51libntfs_3g_la_SOURCES += win32_io.c
52else
53libntfs_3g_la_SOURCES += unix_io.c
54endif
55endif
56
57# We may need to move .so files to root
58# And create ldscript or symbolic link from /usr
59install-exec-hook: install-rootlibLTLIBRARIES
60if INSTALL_LIBRARY
61 if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
62 $(MV) -f "$(DESTDIR)/$(libdir)"/libntfs-3g.so* "$(DESTDIR)/$(rootlibdir)"; \
63 fi
64if GENERATE_LDSCRIPT
65 if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
66 $(install_sh_PROGRAM) "libntfs-3g.script.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \
67 fi
68else
69 if [ ! "$(rootlibdir)" -ef "$(libdir)" ]; then \
70 $(LN_S) "$(rootlibdir)/libntfs-3g.so" "$(DESTDIR)/$(libdir)/libntfs-3g.so"; \
71 fi
72endif
73endif
74
75uninstall-local:
76if INSTALL_LIBRARY
77 $(RM) -f "$(DESTDIR)/$(rootlibdir)"/libntfs-3g.so*
78endif
79
80