Signed-off-by: Diego Elio 'Flameeyes' Pettenò <flameeyes@xxxxxxxxx> --- Makefile.am | 6 +-- configure.ac | 1 - shlibs/mount/Makefile.am | 13 ----- shlibs/mount/module.am | 107 ++++++++++++++++++++++++++++++++++++++++++++ shlibs/mount/src/module.am | 101 ----------------------------------------- 5 files changed, 108 insertions(+), 120 deletions(-) delete mode 100644 shlibs/mount/Makefile.am create mode 100644 shlibs/mount/module.am delete mode 100644 shlibs/mount/src/module.am diff --git a/Makefile.am b/Makefile.am index a7b6a1c..5107b35 100644 --- a/Makefile.am +++ b/Makefile.am @@ -39,10 +39,6 @@ if BUILD_LIBUUID SHLIBS_DIRS += shlibs/uuid endif -if BUILD_LIBMOUNT -SHLIBS_DIRS += shlibs/mount -endif - SUBDIRS = . \ $(SHLIBS_DIRS) \ po @@ -107,7 +103,7 @@ include text-utils/module.am include mount/module.am include sys-utils/module.am include shlibs/blkid/module.am -include shlibs/mount/src/module.am +include shlibs/mount/module.am include shlibs/uuid/src/module.am clean-local: diff --git a/configure.ac b/configure.ac index 5ae4e2e..b2c1f92 100644 --- a/configure.ac +++ b/configure.ac @@ -1141,7 +1141,6 @@ shlibs/blkid/docs/Makefile shlibs/blkid/docs/version.xml shlibs/blkid/src/blkid.h shlibs/mount/mount.pc -shlibs/mount/Makefile shlibs/mount/src/mount.h shlibs/mount/docs/Makefile shlibs/mount/docs/version.xml diff --git a/shlibs/mount/Makefile.am b/shlibs/mount/Makefile.am deleted file mode 100644 index 9de67c0..0000000 --- a/shlibs/mount/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -include $(top_srcdir)/config/include-sub-Makefile.am - -SUBDIRS = - -if ENABLE_GTK_DOC -SUBDIRS += docs -endif - -# pkg-config stuff -pkgconfigdir = $(usrlib_execdir)/pkgconfig -pkgconfig_DATA = mount.pc - -EXTRA_DIST = mount.pc.in diff --git a/shlibs/mount/module.am b/shlibs/mount/module.am new file mode 100644 index 0000000..dd17625 --- /dev/null +++ b/shlibs/mount/module.am @@ -0,0 +1,107 @@ +AM_CPPFLAGS += -I$(ul_libmount_incdir) \ + -I$(ul_libmount_srcdir) \ + -I$(ul_libblkid_incdir) + +# includes +mountincdir = $(includedir)/mount +nodist_mountinc_HEADERS = shlibs/mount/src/mount.h + +shlibs_mount_src_libmount_la_SOURCES = shlibs/mount/src/mountP.h \ + shlibs/mount/src/version.c \ + shlibs/mount/src/utils.c \ + shlibs/mount/src/test.c \ + shlibs/mount/src/init.c \ + shlibs/mount/src/cache.c \ + shlibs/mount/src/optstr.c \ + shlibs/mount/src/optmap.c \ + shlibs/mount/src/optent.c \ + shlibs/mount/src/optls.c \ + shlibs/mount/src/iter.c \ + shlibs/mount/src/lock.c shlibs/mount/src/fs.c \ + shlibs/mount/src/tab.c \ + shlibs/mount/src/tab_parse.c \ + $(mountinc_HEADERS) include/list.h \ + lib/mangle.c lib/canonicalize.c + +shlibs_mount_src_libmount_la_LIBADD = shlibs/blkid/src/libblkid.la + +shlibs_mount_src_libmount_la_DEPENDENCIES = $(shlibs_mount_src_libmount_la_LIBADD) \ + shlibs/mount/src/mount.sym shlibs/mount/src/mount.h.in + +shlibs_mount_src_libmount_la_LDFLAGS = -Wl,--version-script=$(ul_libmount_srcdir)/mount.sym \ + -version-info $(LIBMOUNT_VERSION_INFO) + +EXTRA_DIST += shlibs/mount/src/mount.sym shlibs/mount/src/mount.h.in + +LIBMOUNT_TESTS_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_PROGRAM +LIBMOUNT_TESTS_LDADD = shlibs/mount/src/libmount.la $(UUID_LIBS) + +shlibs_mount_src_test_cache_CPPFLAGS = $(LIBMOUNT_TESTS_CPPFLAGS) +shlibs_mount_src_test_cache_LDADD = $(LIBMOUNT_TESTS_LDADD) +shlibs_mount_src_test_cache_LDFLAGS = -static +shlibs_mount_src_test_cache_SOURCES = shlibs/mount/src/cache.c + +shlibs_mount_src_test_lock_CPPFLAGS = $(LIBMOUNT_TESTS_CPPFLAGS) +shlibs_mount_src_test_lock_LDADD = $(LIBMOUNT_TESTS_LDADD) +shlibs_mount_src_test_lock_LDFLAGS = -static +shlibs_mount_src_test_lock_SOURCES = shlibs/mount/src/lock.c + +shlibs_mount_src_test_optls_CPPFLAGS = $(LIBMOUNT_TESTS_CPPFLAGS) +shlibs_mount_src_test_optls_LDADD = $(LIBMOUNT_TESTS_LDADD) +shlibs_mount_src_test_optls_LDFLAGS = -static +shlibs_mount_src_test_optls_SOURCES = shlibs/mount/src/optls.c + +shlibs_mount_src_test_optstr_CPPFLAGS = $(LIBMOUNT_TESTS_CPPFLAGS) +shlibs_mount_src_test_optstr_LDADD = $(LIBMOUNT_TESTS_LDADD) +shlibs_mount_src_test_optstr_LDFLAGS = -static +shlibs_mount_src_test_optstr_SOURCES = shlibs/mount/src/optstr.c + +shlibs_mount_src_test_tab_CPPFLAGS = $(LIBMOUNT_TESTS_CPPFLAGS) +shlibs_mount_src_test_tab_LDADD = $(LIBMOUNT_TESTS_LDADD) +shlibs_mount_src_test_tab_LDFLAGS = -static +shlibs_mount_src_test_tab_SOURCES = shlibs/mount/src/tab.c + +shlibs_mount_src_test_utils_CPPFLAGS = $(LIBMOUNT_TESTS_CPPFLAGS) +shlibs_mount_src_test_utils_LDADD = $(LIBMOUNT_TESTS_LDADD) +shlibs_mount_src_test_utils_LDFLAGS = -static +shlibs_mount_src_test_utils_SOURCES = shlibs/mount/src/utils.c + +shlibs_mount_src_test_version_CPPFLAGS = $(LIBMOUNT_TESTS_CPPFLAGS) +shlibs_mount_src_test_version_LDADD = $(LIBMOUNT_TESTS_LDADD) +shlibs_mount_src_test_version_LDFLAGS = -static +shlibs_mount_src_test_version_SOURCES = shlibs/mount/src/version.c + +if BUILD_LIBMOUNT +usrlib_exec_LTLIBRARIES += shlibs/mount/src/libmount.la + +check_PROGRAMS += shlibs/mount/src/test_version \ + shlibs/mount/src/test_cache \ + shlibs/mount/src/test_optstr \ + shlibs/mount/src/test_optls \ + shlibs/mount/src/test_lock shlibs/mount/src/test_tab \ + shlibs/mount/src/test_utils + +pkgconfig_DATA += shlibs/mount/mount.pc + +if ENABLE_GTK_DOC +SUBDIRS += shlibs/mount/docs +endif + +# move lib from $(usrlib_execdir) to $(libdir) if needed +install-exec-hook-libmount: + if test "$(usrlib_execdir)" != "$(libdir)"; then \ + mkdir -p $(DESTDIR)$(libdir); \ + mv $(DESTDIR)$(usrlib_execdir)/libmount.so.* $(DESTDIR)$(libdir); \ + so_img_name=$$(readlink $(DESTDIR)$(usrlib_execdir)/libmount.so); \ + so_img_rel_target=$$(echo $(usrlib_execdir) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \ + (cd $(DESTDIR)$(usrlib_execdir) && \ + rm -f libmount.so && \ + $(LN_S) $$so_img_rel_target$(libdir)/$$so_img_name libmount.so); \ + fi + +uninstall-hook-libmount: + rm -f $(DESTDIR)$(libdir)/libmount.so* + +INSTALL_EXEC_HOOKS += install-exec-hook-libmount +UNINSTALL_HOOKS += uninstall-hook-libmount +endif diff --git a/shlibs/mount/src/module.am b/shlibs/mount/src/module.am deleted file mode 100644 index 1c50bd5..0000000 --- a/shlibs/mount/src/module.am +++ /dev/null @@ -1,101 +0,0 @@ -AM_CPPFLAGS += -I$(ul_libmount_incdir) \ - -I$(ul_libmount_srcdir) \ - -I$(ul_libblkid_incdir) - -# includes -mountincdir = $(includedir)/mount -nodist_mountinc_HEADERS = shlibs/mount/src/mount.h - -shlibs_mount_src_libmount_la_SOURCES = shlibs/mount/src/mountP.h \ - shlibs/mount/src/version.c \ - shlibs/mount/src/utils.c \ - shlibs/mount/src/test.c \ - shlibs/mount/src/init.c \ - shlibs/mount/src/cache.c \ - shlibs/mount/src/optstr.c \ - shlibs/mount/src/optmap.c \ - shlibs/mount/src/optent.c \ - shlibs/mount/src/optls.c \ - shlibs/mount/src/iter.c \ - shlibs/mount/src/lock.c shlibs/mount/src/fs.c \ - shlibs/mount/src/tab.c \ - shlibs/mount/src/tab_parse.c \ - $(mountinc_HEADERS) include/list.h \ - lib/mangle.c lib/canonicalize.c - -shlibs_mount_src_libmount_la_LIBADD = shlibs/blkid/src/libblkid.la - -shlibs_mount_src_libmount_la_DEPENDENCIES = $(shlibs_mount_src_libmount_la_LIBADD) \ - shlibs/mount/src/mount.sym shlibs/mount/src/mount.h.in - -shlibs_mount_src_libmount_la_LDFLAGS = -Wl,--version-script=$(ul_libmount_srcdir)/mount.sym \ - -version-info $(LIBMOUNT_VERSION_INFO) - -EXTRA_DIST += shlibs/mount/src/mount.sym shlibs/mount/src/mount.h.in - -LIBMOUNT_TESTS_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_PROGRAM -LIBMOUNT_TESTS_LDADD = shlibs/mount/src/libmount.la $(UUID_LIBS) - -shlibs_mount_src_test_cache_CPPFLAGS = $(LIBMOUNT_TESTS_CPPFLAGS) -shlibs_mount_src_test_cache_LDADD = $(LIBMOUNT_TESTS_LDADD) -shlibs_mount_src_test_cache_LDFLAGS = -static -shlibs_mount_src_test_cache_SOURCES = shlibs/mount/src/cache.c - -shlibs_mount_src_test_lock_CPPFLAGS = $(LIBMOUNT_TESTS_CPPFLAGS) -shlibs_mount_src_test_lock_LDADD = $(LIBMOUNT_TESTS_LDADD) -shlibs_mount_src_test_lock_LDFLAGS = -static -shlibs_mount_src_test_lock_SOURCES = shlibs/mount/src/lock.c - -shlibs_mount_src_test_optls_CPPFLAGS = $(LIBMOUNT_TESTS_CPPFLAGS) -shlibs_mount_src_test_optls_LDADD = $(LIBMOUNT_TESTS_LDADD) -shlibs_mount_src_test_optls_LDFLAGS = -static -shlibs_mount_src_test_optls_SOURCES = shlibs/mount/src/optls.c - -shlibs_mount_src_test_optstr_CPPFLAGS = $(LIBMOUNT_TESTS_CPPFLAGS) -shlibs_mount_src_test_optstr_LDADD = $(LIBMOUNT_TESTS_LDADD) -shlibs_mount_src_test_optstr_LDFLAGS = -static -shlibs_mount_src_test_optstr_SOURCES = shlibs/mount/src/optstr.c - -shlibs_mount_src_test_tab_CPPFLAGS = $(LIBMOUNT_TESTS_CPPFLAGS) -shlibs_mount_src_test_tab_LDADD = $(LIBMOUNT_TESTS_LDADD) -shlibs_mount_src_test_tab_LDFLAGS = -static -shlibs_mount_src_test_tab_SOURCES = shlibs/mount/src/tab.c - -shlibs_mount_src_test_utils_CPPFLAGS = $(LIBMOUNT_TESTS_CPPFLAGS) -shlibs_mount_src_test_utils_LDADD = $(LIBMOUNT_TESTS_LDADD) -shlibs_mount_src_test_utils_LDFLAGS = -static -shlibs_mount_src_test_utils_SOURCES = shlibs/mount/src/utils.c - -shlibs_mount_src_test_version_CPPFLAGS = $(LIBMOUNT_TESTS_CPPFLAGS) -shlibs_mount_src_test_version_LDADD = $(LIBMOUNT_TESTS_LDADD) -shlibs_mount_src_test_version_LDFLAGS = -static -shlibs_mount_src_test_version_SOURCES = shlibs/mount/src/version.c - -if BUILD_LIBMOUNT -usrlib_exec_LTLIBRARIES += shlibs/mount/src/libmount.la - -check_PROGRAMS += shlibs/mount/src/test_version \ - shlibs/mount/src/test_cache \ - shlibs/mount/src/test_optstr \ - shlibs/mount/src/test_optls \ - shlibs/mount/src/test_lock shlibs/mount/src/test_tab \ - shlibs/mount/src/test_utils - -# move lib from $(usrlib_execdir) to $(libdir) if needed -install-exec-hook-libmount: - if test "$(usrlib_execdir)" != "$(libdir)"; then \ - mkdir -p $(DESTDIR)$(libdir); \ - mv $(DESTDIR)$(usrlib_execdir)/libmount.so.* $(DESTDIR)$(libdir); \ - so_img_name=$$(readlink $(DESTDIR)$(usrlib_execdir)/libmount.so); \ - so_img_rel_target=$$(echo $(usrlib_execdir) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \ - (cd $(DESTDIR)$(usrlib_execdir) && \ - rm -f libmount.so && \ - $(LN_S) $$so_img_rel_target$(libdir)/$$so_img_name libmount.so); \ - fi - -uninstall-hook-libmount: - rm -f $(DESTDIR)$(libdir)/libmount.so* - -INSTALL_EXEC_HOOKS += install-exec-hook-libmount -UNINSTALL_HOOKS += uninstall-hook-libmount -endif -- 1.7.1.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html