Imported Upstream version 4.5.10
[platform/upstream/findutils.git] / find / Makefile.am
1 AUTOMAKE_OPTIONS = std-options
2 AM_CFLAGS = $(WARN_CFLAGS)
3 localedir = $(datadir)/locale
4 # noinst_PROGRAMS = regexprops
5 # regexprops_SOURCES = regexprops.c
6
7 noinst_LIBRARIES = libfindtools.a
8 libfindtools_a_SOURCES = finddata.c fstype.c parser.c pred.c tree.c util.c sharefile.c
9
10
11 # We always build two versions of find, one with fts, one without.
12 # Their names depend on whether the user specified --with-fts.
13 #
14 # --with-fts            find            extra binary
15 #       yes             with fts        'oldfind', without fts
16 #        no             without fts     'ftsfind', with fts
17 #
18 if WITH_FTS
19 bin_PROGRAMS     = find oldfind
20 find_SOURCES     = ftsfind.c
21 oldfind_SOURCES  = find.c
22 else
23 bin_PROGRAMS      = find ftsfind
24 find_SOURCES      = find.c
25 ftsfind_SOURCES   = ftsfind.c
26 endif
27
28 EXTRA_DIST = defs.h sharefile.h $(man_MANS)
29 INCLUDES = -I../gnulib/lib -I$(top_srcdir)/lib -I$(top_srcdir)/gnulib/lib -I../intl -DLOCALEDIR=\"$(localedir)\"
30 LDADD = ./libfindtools.a ../lib/libfind.a ../gnulib/lib/libgnulib.a $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIB_SELINUX) $(LIB_CLOSE) $(MODF_LIBM) @FINDLIBS@
31 man_MANS = find.1
32 SUBDIRS = . testsuite
33
34 #$(PROGRAMS): ../lib/libfind.a
35
36 dist-hook: findutils-check-manpages
37
38 findutils-check-manpages:
39         $(top_srcdir)/build-aux/man-lint.sh $(srcdir) $(man_MANS)