]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - spaceman/Makefile
xfs_spaceman: report health problems
[thirdparty/xfsprogs-dev.git] / spaceman / Makefile
CommitLineData
959ef981 1# SPDX-License-Identifier: GPL-2.0
48ec2905
DC
2# Copyright (c) 2012 Red Hat, Inc. All Rights Reserved.
3#
4
5TOPDIR = ..
6include $(TOPDIR)/include/builddefs
7
8LTCOMMAND = xfs_spaceman
9HFILES = init.h space.h
bb85ae74 10CFILES = info.c init.c file.c health.c prealloc.c trim.c
3fda24ed 11LSRCFILES = xfs_info.sh
48ec2905 12
b95410da
DW
13LLDLIBS = $(LIBXCMD) $(LIBFROG)
14LTDEPENDENCIES = $(LIBXCMD) $(LIBFROG)
48ec2905
DC
15LLDFLAGS = -static
16
17ifeq ($(ENABLE_READLINE),yes)
18LLDLIBS += $(LIBREADLINE) $(LIBTERMCAP)
19endif
20
21ifeq ($(ENABLE_EDITLINE),yes)
22LLDLIBS += $(LIBEDITLINE) $(LIBTERMCAP)
23endif
24
cccf6abc 25# On linux we get fsmap from the system or define it ourselves
bf64c900
ES
26# so include this unconditionally. If this reverts to only
27# the autoconf check w/o local definition, test HAVE_GETFSMAP
cccf6abc 28CFILES += freesp.c
cccf6abc 29
48ec2905
DC
30default: depend $(LTCOMMAND)
31
32include $(BUILDRULES)
33
34install: default
35 $(INSTALL) -m 755 -d $(PKG_SBIN_DIR)
36 $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_SBIN_DIR)
3fda24ed 37 $(INSTALL) -m 755 xfs_info.sh $(PKG_SBIN_DIR)/xfs_info
48ec2905
DC
38install-dev:
39
40-include .dep