2 # Copyright (c) 2012 Red Hat, Inc. All Rights Reserved.
6 include $(TOPDIR
)/include/builddefs
8 LTCOMMAND
= xfs_spaceman
9 HFILES
= init.h space.h
10 CFILES
= init.c file.c prealloc.c trim.c
12 LLDLIBS
= $(LIBXCMD
) $(LIBFROG
)
13 LTDEPENDENCIES
= $(LIBXCMD
) $(LIBFROG
)
16 ifeq ($(ENABLE_READLINE
),yes
)
17 LLDLIBS
+= $(LIBREADLINE
) $(LIBTERMCAP
)
20 ifeq ($(ENABLE_EDITLINE
),yes
)
21 LLDLIBS
+= $(LIBEDITLINE
) $(LIBTERMCAP
)
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
)
31 default
: depend
$(LTCOMMAND
)
36 $(INSTALL
) -m
755 -d
$(PKG_SBIN_DIR
)
37 $(LTINSTALL
) -m
755 $(LTCOMMAND
) $(PKG_SBIN_DIR
)