]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - libfrog/Makefile
xfsprogs: Release v6.8.0
[thirdparty/xfsprogs-dev.git] / libfrog / Makefile
index 6034da5676394abdbb0659d175975137b396b74a..cafee073fe3cb9327cb8eb7aa5a50f8b19f0a815 100644 (file)
@@ -1,4 +1,4 @@
-#
+# SPDX-License-Identifier: GPL-2.0
 # Copyright (c) 2017 Oracle.  All Rights Reserved.
 #
 
@@ -9,14 +9,61 @@ 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 \
+bitmap.c \
+bulkstat.c \
+convert.c \
+crc32.c \
+fsgeom.c \
 list_sort.c \
+linux.c \
+logging.c \
+paths.c \
+projects.c \
+ptvar.c \
 radix-tree.c \
-util.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 \
+dahashselftest.h \
+div64.h \
+fsgeom.h \
+logging.h \
+paths.h \
+projects.h \
+ptvar.h \
+radix-tree.h \
+randbytes.h \
+scrub.h \
+workqueue.h
+
+LSRCFILES += gen_crc32table.c
+
+LDIRT = gen_crc32table crc32table.h
 
 default: ltdepend $(LTLIBRARY)
 
+crc32table.h: gen_crc32table.c crc32defs.h
+       @echo "    [CC]     gen_crc32table"
+       $(Q) $(BUILD_CC) $(BUILD_CFLAGS) -o gen_crc32table $<
+       @echo "    [GENERATE] $@"
+       $(Q) ./gen_crc32table > crc32table.h
+
 include $(BUILDRULES)
 
 install install-dev: default