]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - scrub/Makefile
xfs_scrub: figure out how many threads we're going to need
[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 \
20xfs_scrub.h
21
22CFILES = \
23common.c \
24xfs_scrub.c
25
26LLDLIBS += $(LIBHANDLE) $(LIBFROG) $(LIBPTHREAD)
27LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG)
28LLDFLAGS = -static
29
173a0283
DW
30ifeq ($(HAVE_MALLINFO),yes)
31LCFLAGS += -DHAVE_MALLINFO
32endif
33
95b1e505
DW
34default: depend $(LTCOMMAND)
35
36include $(BUILDRULES)
37
38install: default $(INSTALL_SCRUB)
39
40install-scrub:
41 $(INSTALL) -m 755 -d $(PKG_ROOT_SBIN_DIR)
42 $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_ROOT_SBIN_DIR)
43
44install-dev:
45
46-include .dep