Imported Upstream version 4.5.14
[platform/upstream/findutils.git] / lib / Makefile.am
1 ## Process this file with automake to produce Makefile.in.
2
3 AUTOMAKE_OPTIONS = 1.5 gnits
4 # no-dependencies
5 AM_CFLAGS = $(WARN_CFLAGS)
6
7 noinst_LIBRARIES = libfind.a
8
9 check_PROGRAMS = regexprops test_splitstring
10 check_SCRIPTS = check-regexprops
11 regexprops_SOURCES = regexprops.c regextype.c
12
13 TESTS =
14 if CROSS_COMPILING
15 # The regexprops program needs to be a native executable, so we
16 # can't build it with a cross-compiler.
17 else
18 TESTS += check-regexprops test_splitstring
19 endif
20
21 libfind_a_SOURCES = findutils-version.c
22 EXTRA_DIST = extendbuf.h buildcmd.h \
23         findutils-version.h \
24         fdleak.h unused-result.h check-regexprops.sh
25 SUFFIXES =
26 MOSTLYCLEANFILES =
27 DISTCLEANFILES =
28 MAINTAINERCLEANFILES =
29
30
31 AM_CPPFLAGS = -I../gl/lib -I$(top_srcdir)/gl/lib
32 LDADD = ../gl/lib/libgnulib.a $(LIBINTL)
33
34 libfind_a_SOURCES += printquoted.h listfile.h \
35         regextype.h dircallback.h safe-atoi.h splitstring.h
36 libfind_a_SOURCES += listfile.c extendbuf.c buildcmd.c \
37         forcefindlib.c qmark.c printquoted.c regextype.c dircallback.c fdleak.c \
38         safe-atoi.c splitstring.c
39
40 CLEANFILES = check-regexprops
41
42 # Clean coverage files generated by running binaries built with
43 # gcc -fprofile-arcs -ftest-coverage
44 coverage-clean:
45         $(RM) *.gcno *.gcda *.gcov *.lcov
46
47 clean-local: coverage-clean
48
49 EXTRA_DIST += waitpid.c forcefindlib.c
50 TESTS_ENVIRONMENT = REGEXPROPS=regexprops$(EXEEXT)
51 libfind_a_LIBADD = $(FINDLIBOBJS)
52 libfind_a_DEPENDENCIES = $(FINDLIBOBJS)
53
54 check-regexprops: check-regexprops.sh
55         cp  $(srcdir)/check-regexprops.sh check-regexprops
56         chmod +x check-regexprops
57
58 test_splitstring_SOURCES = test_splitstring.c splitstring.c