Findutils 4.3.x defaults to using the the FTS implementation of find.
[findutils.git] / find / Makefile.am
blob2f30303e0b3796f31bba59c8afb750629807cda8
1 AUTOMAKE_OPTIONS = std-options
2 localedir = $(datadir)/locale
3 # noinst_PROGRAMS = regexprops
4 # regexprops_SOURCES = regexprops.c
6 noinst_LIBRARIES = libfindtools.a
7 libfindtools_a_SOURCES = finddata.c fstype.c parser.c pred.c tree.c util.c version.c
10 # We always build two versions of find, one with fts, one without.
11 # Their names depend on whether the user specified --with-fts.
13 # --with-fts            find            extra binary
14 #       yes             with fts        'oldfind', without fts
15 #        no             without fts     'ftsfind', with fts
16
17 if WITH_FTS
18 bin_PROGRAMS     = find oldfind
19 find_SOURCES     = ftsfind.c
20 oldfind_SOURCES  = find.c
21 else
22 bin_PROGRAMS      = find ftsfind
23 find_SOURCES      = find.c
24 ftsfind_SOURCES   = ftsfind.c
25 endif
27 EXTRA_DIST = defs.h $(man_MANS)
28 INCLUDES = -I../gnulib/lib -I$(top_srcdir)/lib -I$(top_srcdir)/gnulib/lib -I../intl -DLOCALEDIR=\"$(localedir)\"
29 LDADD = ./libfindtools.a ../lib/libfind.a ../gnulib/lib/libgnulib.a @INTLLIBS@
30 man_MANS = find.1
31 SUBDIRS = testsuite
33 #$(PROGRAMS): ../lib/libfind.a