From: Darrick J. Wong Date: Wed, 23 May 2018 21:30:48 +0000 (-0500) Subject: libfrog: move platform specific runtime support code out of libxfs X-Git-Tag: v4.17.0-rc1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe08f67092cbb041334febc77d24be757755f65f;p=thirdparty%2Fxfsprogs-dev.git libfrog: move platform specific runtime support code out of libxfs Move the platform support code to libfrog, which should remove the final dependency of libfrog on libxfs. libfrog is the runtime support library, and these files provide platform support. Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- diff --git a/libfrog/Makefile b/libfrog/Makefile index 230b08fda..21bb5b7dc 100644 --- a/libfrog/Makefile +++ b/libfrog/Makefile @@ -22,6 +22,10 @@ topology.c \ util.c \ workqueue.c +CFILES += $(PKG_PLATFORM).c +PCFILES = darwin.c freebsd.c irix.c linux.c +LSRCFILES = $(shell echo $(PCFILES) | sed -e "s/$(PKG_PLATFORM).c//g") + ifeq ($(HAVE_GETMNTENT),yes) LCFLAGS += -DHAVE_GETMNTENT endif diff --git a/libxfs/darwin.c b/libfrog/darwin.c similarity index 100% rename from libxfs/darwin.c rename to libfrog/darwin.c diff --git a/libxfs/freebsd.c b/libfrog/freebsd.c similarity index 100% rename from libxfs/freebsd.c rename to libfrog/freebsd.c diff --git a/libxfs/irix.c b/libfrog/irix.c similarity index 100% rename from libxfs/irix.c rename to libfrog/irix.c diff --git a/libxfs/linux.c b/libfrog/linux.c similarity index 100% rename from libxfs/linux.c rename to libfrog/linux.c diff --git a/libxfs/Makefile b/libxfs/Makefile index 0470f5f60..7cde18d36 100644 --- a/libxfs/Makefile +++ b/libxfs/Makefile @@ -97,9 +97,6 @@ CFILES = cache.c \ xfs_symlink_remote.c \ xfs_trans_resv.c -CFILES += $(PKG_PLATFORM).c -PCFILES = darwin.c freebsd.c irix.c linux.c -LSRCFILES = $(shell echo $(PCFILES) | sed -e "s/$(PKG_PLATFORM).c//g") LSRCFILES += gen_crc32table.c #