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