From 5caa042bcd6f1f6524daae7772a587f91b3cc3d7 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Wed, 6 Dec 2017 09:17:07 -0600 Subject: [PATCH] libfrog: move all the userspace support stuff into a new library This library is meant to contain all the Funny Random Other Gunk that the xfsprogs utilities rely on. Move all that stuff into this library to reduce the pollution in the other libraries. Ribbit! Ribbit! Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- Makefile | 2 +- debian/rules | 2 +- include/builddefs.in | 1 + libfrog/Makefile | 21 +++++++++++++++++++++ 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 libfrog/Makefile diff --git a/Makefile b/Makefile index 72d004412..4146473e2 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ endif # header install rules to populate include/xfs correctly HDR_SUBDIRS = include libxfs -DLIB_SUBDIRS = libxlog libxcmd libhandle +DLIB_SUBDIRS = libfrog libxlog libxcmd libhandle LIB_SUBDIRS = libxfs $(DLIB_SUBDIRS) TOOL_SUBDIRS = copy db estimate fsck growfs io logprint mkfs quota \ mdrestore repair rtcp m4 man doc debian spaceman diff --git a/debian/rules b/debian/rules index f186d79f6..baefdba15 100755 --- a/debian/rules +++ b/debian/rules @@ -48,7 +48,7 @@ dibuild: for dir in include libxfs; do \ $(MAKE) -C $$dir NODEP=1 install-headers; \ done; \ - for dir in include libxfs libxcmd mkfs; do \ + for dir in include libxfs libxcmd libfrog mkfs; do \ $(MAKE) -C $$dir; \ done; \ mv mkfs/mkfs.xfs mkfs/mkfs.xfs-$(bootpkg); \ diff --git a/include/builddefs.in b/include/builddefs.in index fd274ddc6..f4448c62d 100644 --- a/include/builddefs.in +++ b/include/builddefs.in @@ -36,6 +36,7 @@ LIBEDITLINE = @libeditline@ LIBREADLINE = @libreadline@ LIBBLKID = @libblkid@ LIBXFS = $(TOPDIR)/libxfs/libxfs.la +LIBFROG = $(TOPDIR)/libfrog/libfrog.la LIBXCMD = $(TOPDIR)/libxcmd/libxcmd.la LIBXLOG = $(TOPDIR)/libxlog/libxlog.la LIBHANDLE = $(TOPDIR)/libhandle/libhandle.la diff --git a/libfrog/Makefile b/libfrog/Makefile new file mode 100644 index 000000000..231a73402 --- /dev/null +++ b/libfrog/Makefile @@ -0,0 +1,21 @@ +# +# Copyright (c) 2017 Oracle. All Rights Reserved. +# + +TOPDIR = .. +include $(TOPDIR)/include/builddefs + +LTLIBRARY = libfrog.la +LT_CURRENT = 0 +LT_REVISION = 0 +LT_AGE = 0 + +CFILES = + +default: ltdepend $(LTLIBRARY) + +include $(BUILDRULES) + +install install-dev: default + +-include .ltdep -- 2.47.2