]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - libfrog/Makefile
libfrog: fix bitmap error communication problems
[thirdparty/xfsprogs-dev.git] / libfrog / Makefile
CommitLineData
959ef981 1# SPDX-License-Identifier: GPL-2.0
5caa042b
DW
2# Copyright (c) 2017 Oracle. All Rights Reserved.
3#
4
5TOPDIR = ..
6include $(TOPDIR)/include/builddefs
7
8LTLIBRARY = libfrog.la
9LT_CURRENT = 0
10LT_REVISION = 0
11LT_AGE = 0
12
24f4f998 13CFILES = \
67f3fafd 14avl64.c \
b06ebacf 15bitmap.c \
f31b5e12 16bulkstat.c \
b95410da 17convert.c \
973de649 18crc32.c \
96aaf9bc 19fsgeom.c \
b28b84ca 20list_sort.c \
bf64c900 21linux.c \
bd987fe3
DW
22paths.c \
23projects.c \
d11cc69e 24ptvar.c \
b28b84ca 25radix-tree.c \
5ef3b66a 26scrub.c \
695fc504 27topology.c \
f434fd95
DW
28util.c \
29workqueue.c
5caa042b 30
973de649 31HFILES = \
b4a09f89 32avl64.h \
f31b5e12 33bulkstat.h \
a58400ed 34bitmap.h \
25e98e81 35convert.h \
63153a95
DW
36crc32c.h \
37crc32cselftest.h \
973de649 38crc32defs.h \
7478c2e3 39crc32table.h \
fee68490 40fsgeom.h \
42b4c8e8 41paths.h \
59f1f2a6 42projects.h \
14051909 43ptvar.h \
8bf7924e 44radix-tree.h \
5ef3b66a 45scrub.h \
56598728
DW
46topology.h \
47workqueue.h
973de649
DW
48
49LSRCFILES += gen_crc32table.c
50
bd987fe3
DW
51ifeq ($(HAVE_GETMNTENT),yes)
52LCFLAGS += -DHAVE_GETMNTENT
53endif
54
973de649
DW
55LDIRT = gen_crc32table crc32table.h crc32selftest
56
57default: crc32selftest ltdepend $(LTLIBRARY)
58
59crc32table.h: gen_crc32table.c crc32defs.h
60 @echo " [CC] gen_crc32table"
61 $(Q) $(BUILD_CC) $(BUILD_CFLAGS) -o gen_crc32table $<
62 @echo " [GENERATE] $@"
63 $(Q) ./gen_crc32table > crc32table.h
64
65# The selftest binary will return an error if it fails. This is made a
66# dependency of the build process so that we refuse to build the tools on broken
67# systems/architectures. Hence we make sure that xfsprogs will never use a
68# busted CRC calculation at build time and hence avoid putting bad CRCs down on
69# disk.
70crc32selftest: gen_crc32table.c crc32table.h crc32.c crc32defs.h
71 @echo " [TEST] CRC32"
72 $(Q) $(BUILD_CC) $(BUILD_CFLAGS) -D CRC32_SELFTEST=1 crc32.c -o $@
73 $(Q) ./$@
5caa042b
DW
74
75include $(BUILDRULES)
76
77install install-dev: default
78
79-include .ltdep