]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - spaceman/Makefile
Merge branch 'libxfs-4.15-sync' into for-next
[thirdparty/xfsprogs-dev.git] / spaceman / Makefile
1 #
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 = init.c file.c prealloc.c trim.c
11
12 LLDLIBS = $(LIBXCMD) $(LIBFROG)
13 LTDEPENDENCIES = $(LIBXCMD) $(LIBFROG)
14 LLDFLAGS = -static
15
16 ifeq ($(ENABLE_READLINE),yes)
17 LLDLIBS += $(LIBREADLINE) $(LIBTERMCAP)
18 endif
19
20 ifeq ($(ENABLE_EDITLINE),yes)
21 LLDLIBS += $(LIBEDITLINE) $(LIBTERMCAP)
22 endif
23
24 # On linux we get fsmap from the system or define it ourselves
25 # so include this based on platform type. If this reverts to only
26 # the autoconf check w/o local definition, change to testing HAVE_GETFSMAP
27 ifeq ($(PKG_PLATFORM),linux)
28 CFILES += freesp.c
29 endif
30
31 default: depend $(LTCOMMAND)
32
33 include $(BUILDRULES)
34
35 install: default
36 $(INSTALL) -m 755 -d $(PKG_SBIN_DIR)
37 $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_SBIN_DIR)
38 install-dev:
39
40 -include .dep