]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - scrub/Makefile
xfs_scrub: add file space map iteration functions
[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 \
a555a1f4 20disk.h \
c6eb0ff2 21filemap.h \
372d4ba9 22inodes.h \
bc94c5d6 23spacemap.h \
95b1e505
DW
24xfs_scrub.h
25
26CFILES = \
27common.c \
a555a1f4 28disk.c \
c6eb0ff2 29filemap.c \
372d4ba9 30inodes.c \
50a573a7 31phase1.c \
bc94c5d6 32spacemap.c \
95b1e505
DW
33xfs_scrub.c
34
35LLDLIBS += $(LIBHANDLE) $(LIBFROG) $(LIBPTHREAD)
36LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG)
37LLDFLAGS = -static
38
173a0283
DW
39ifeq ($(HAVE_MALLINFO),yes)
40LCFLAGS += -DHAVE_MALLINFO
41endif
42
50a573a7
DW
43ifeq ($(HAVE_SYNCFS),yes)
44LCFLAGS += -DHAVE_SYNCFS
45endif
46
95b1e505
DW
47default: depend $(LTCOMMAND)
48
49include $(BUILDRULES)
50
51install: default $(INSTALL_SCRUB)
52
53install-scrub:
54 $(INSTALL) -m 755 -d $(PKG_ROOT_SBIN_DIR)
55 $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_ROOT_SBIN_DIR)
56
57install-dev:
58
59-include .dep