]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - libfrog/Makefile
xfsprogs: Release v6.10.1
[thirdparty/xfsprogs-dev.git] / libfrog / Makefile
index 4f6a54abc2fd83ad130ca92f7bac0906d72aefa8..acddc894ee9395d53a6a37dcd3d244b534a9fe42 100644 (file)
@@ -9,6 +9,8 @@ LTLIBRARY = libfrog.la
 LT_CURRENT = 0
 LT_REVISION = 0
 LT_AGE = 0
+# we need a static build even if --disable-static is specified
+LTLDFLAGS += -static
 
 CFILES = \
 avl64.c \
@@ -16,31 +18,58 @@ bitmap.c \
 bulkstat.c \
 convert.c \
 crc32.c \
+file_exchange.c \
 fsgeom.c \
+fsproperties.c \
+getparents.c \
+histogram.c \
 list_sort.c \
 linux.c \
+logging.c \
 paths.c \
 projects.c \
 ptvar.c \
 radix-tree.c \
-topology.c \
+randbytes.c \
+scrub.c \
 util.c \
 workqueue.c
 
 HFILES = \
+avl64.h \
 bulkstat.h \
+bitmap.h \
+convert.h \
+crc32c.h \
+crc32cselftest.h \
 crc32defs.h \
-crc32table.h
+crc32table.h \
+dahashselftest.h \
+div64.h \
+file_exchange.h \
+fsgeom.h \
+fsproperties.h \
+getparents.h \
+histogram.h \
+logging.h \
+paths.h \
+projects.h \
+ptvar.h \
+radix-tree.h \
+randbytes.h \
+scrub.h \
+workqueue.h
 
 LSRCFILES += gen_crc32table.c
 
-ifeq ($(HAVE_GETMNTENT),yes)
-LCFLAGS += -DHAVE_GETMNTENT
+ifeq ($(HAVE_LIBATTR),yes)
+CFILES+=fsprops.c
+HFILES+=fsprops.h
 endif
 
-LDIRT = gen_crc32table crc32table.h crc32selftest
+LDIRT = gen_crc32table crc32table.h
 
-default: crc32selftest ltdepend $(LTLIBRARY)
+default: ltdepend $(LTLIBRARY)
 
 crc32table.h: gen_crc32table.c crc32defs.h
        @echo "    [CC]     gen_crc32table"
@@ -48,16 +77,6 @@ crc32table.h: gen_crc32table.c crc32defs.h
        @echo "    [GENERATE] $@"
        $(Q) ./gen_crc32table > crc32table.h
 
-# The selftest binary will return an error if it fails. This is made a
-# dependency of the build process so that we refuse to build the tools on broken
-# systems/architectures. Hence we make sure that xfsprogs will never use a
-# busted CRC calculation at build time and hence avoid putting bad CRCs down on
-# disk.
-crc32selftest: gen_crc32table.c crc32table.h crc32.c crc32defs.h
-       @echo "    [TEST]    CRC32"
-       $(Q) $(BUILD_CC) $(BUILD_CFLAGS) -D CRC32_SELFTEST=1 crc32.c -o $@
-       $(Q) ./$@
-
 include $(BUILDRULES)
 
 install install-dev: default