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