]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libfrog: move platform specific runtime support code out of libxfs
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 23 May 2018 21:30:48 +0000 (16:30 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 23 May 2018 21:30:48 +0000 (16:30 -0500)
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 <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libfrog/Makefile
libfrog/darwin.c [moved from libxfs/darwin.c with 100% similarity]
libfrog/freebsd.c [moved from libxfs/freebsd.c with 100% similarity]
libfrog/irix.c [moved from libxfs/irix.c with 100% similarity]
libfrog/linux.c [moved from libxfs/linux.c with 100% similarity]
libxfs/Makefile

index 230b08fda3c15be1aa6209481507a6c11f608197..21bb5b7dc4173ef3523fbb19e0dbc7e2eba9ac43 100644 (file)
@@ -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
similarity index 100%
rename from libxfs/darwin.c
rename to libfrog/darwin.c
similarity index 100%
rename from libxfs/freebsd.c
rename to libfrog/freebsd.c
similarity index 100%
rename from libxfs/irix.c
rename to libfrog/irix.c
similarity index 100%
rename from libxfs/linux.c
rename to libfrog/linux.c
index 0470f5f6074a5a9e6c33bad56269afb3dff6f7b8..7cde18d36eca2883b8d36d7c6153c73ea9d14259 100644 (file)
@@ -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
 
 #