]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - scrub/Makefile
xfs_scrub: check directory connectivity
[thirdparty/xfsprogs-dev.git] / scrub / Makefile
CommitLineData
95b1e505
DW
1#
2# Copyright (C) 2018 Oracle. All Rights Reserved.
3#
4
5TOPDIR = ..
6include $(TOPDIR)/include/builddefs
7
8# On linux we get fsmap from the system or define it ourselves
9# so include this based on platform type. If this reverts to only
10# the autoconf check w/o local definition, change to testing HAVE_GETFSMAP
11SCRUB_PREREQS=$(PKG_PLATFORM)
12
13ifeq ($(SCRUB_PREREQS),linux)
14LTCOMMAND = xfs_scrub
15INSTALL_SCRUB = install-scrub
16endif # scrub_prereqs
17
18HFILES = \
19common.h \
d11cc69e 20counter.h \
a555a1f4 21disk.h \
c6eb0ff2 22filemap.h \
604dd334 23fscounters.h \
372d4ba9 24inodes.h \
fd7d73c0 25scrub.h \
bc94c5d6 26spacemap.h \
95b1e505
DW
27xfs_scrub.h
28
29CFILES = \
30common.c \
d11cc69e 31counter.c \
a555a1f4 32disk.c \
c6eb0ff2 33filemap.c \
604dd334 34fscounters.c \
372d4ba9 35inodes.c \
50a573a7 36phase1.c \
e758ad01 37phase2.c \
fa16b376 38phase3.c \
c4892e76 39phase5.c \
fd7d73c0 40scrub.c \
bc94c5d6 41spacemap.c \
95b1e505
DW
42xfs_scrub.c
43
44LLDLIBS += $(LIBHANDLE) $(LIBFROG) $(LIBPTHREAD)
45LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG)
46LLDFLAGS = -static
47
173a0283
DW
48ifeq ($(HAVE_MALLINFO),yes)
49LCFLAGS += -DHAVE_MALLINFO
50endif
51
50a573a7
DW
52ifeq ($(HAVE_SYNCFS),yes)
53LCFLAGS += -DHAVE_SYNCFS
54endif
55
95b1e505
DW
56default: depend $(LTCOMMAND)
57
58include $(BUILDRULES)
59
60install: default $(INSTALL_SCRUB)
61
62install-scrub:
63 $(INSTALL) -m 755 -d $(PKG_ROOT_SBIN_DIR)
64 $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_ROOT_SBIN_DIR)
65
66install-dev:
67
68-include .dep