]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - scrub/Makefile
xfs_scrub: warn about normalized Unicode name collisions
[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 \
d11cc69e 20counter.h \
a555a1f4 21disk.h \
c6eb0ff2 22filemap.h \
604dd334 23fscounters.h \
372d4ba9 24inodes.h \
fd7d73c0 25scrub.h \
bc94c5d6 26spacemap.h \
4bbed4ec 27unicrash.h \
95b1e505
DW
28xfs_scrub.h
29
30CFILES = \
31common.c \
d11cc69e 32counter.c \
a555a1f4 33disk.c \
c6eb0ff2 34filemap.c \
604dd334 35fscounters.c \
372d4ba9 36inodes.c \
50a573a7 37phase1.c \
e758ad01 38phase2.c \
fa16b376 39phase3.c \
c4892e76 40phase5.c \
fd7d73c0 41scrub.c \
bc94c5d6 42spacemap.c \
95b1e505
DW
43xfs_scrub.c
44
4bbed4ec
DW
45LLDLIBS += $(LIBHANDLE) $(LIBFROG) $(LIBPTHREAD) $(LIBUNISTRING)
46LTDEPENDENCIES += $(LIBHANDLE) $(LIBFROG) $(LIBUNISTRING)
95b1e505
DW
47LLDFLAGS = -static
48
173a0283
DW
49ifeq ($(HAVE_MALLINFO),yes)
50LCFLAGS += -DHAVE_MALLINFO
51endif
52
50a573a7
DW
53ifeq ($(HAVE_SYNCFS),yes)
54LCFLAGS += -DHAVE_SYNCFS
55endif
56
396cd022
DW
57ifeq ($(HAVE_LIBATTR),yes)
58LCFLAGS += -DHAVE_LIBATTR
59endif
60
4bbed4ec
DW
61ifeq ($(HAVE_U8NORMALIZE),yes)
62CFILES += unicrash.c
63LCFLAGS += -DHAVE_U8NORMALIZE
64endif
65
95b1e505
DW
66default: depend $(LTCOMMAND)
67
4bbed4ec 68phase5.o unicrash.o xfs.o: $(TOPDIR)/include/builddefs
396cd022 69
95b1e505
DW
70include $(BUILDRULES)
71
72install: default $(INSTALL_SCRUB)
73
74install-scrub:
75 $(INSTALL) -m 755 -d $(PKG_ROOT_SBIN_DIR)
76 $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_ROOT_SBIN_DIR)
77
78install-dev:
79
80-include .dep