1 ## Process this file with automake to produce Makefile.in.
3 AUTOMAKE_OPTIONS = 1.5 gnits
5 AM_CFLAGS = $(WARN_CFLAGS)
7 noinst_LIBRARIES = libfind.a
9 check_PROGRAMS = regexprops test_splitstring
10 check_SCRIPTS = check-regexprops
11 regexprops_SOURCES = regexprops.c regextype.c
15 # The regexprops program needs to be a native executable, so we
16 # can't build it with a cross-compiler.
18 TESTS += check-regexprops test_splitstring
21 libfind_a_SOURCES = findutils-version.c
22 EXTRA_DIST = extendbuf.h buildcmd.h \
24 fdleak.h unused-result.h check-regexprops.sh
28 MAINTAINERCLEANFILES =
31 AM_CPPFLAGS = -I../gl/lib -I$(top_srcdir)/gl/lib
32 LDADD = ../gl/lib/libgnulib.a $(LIBINTL)
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
40 CLEANFILES = check-regexprops
42 # Clean coverage files generated by running binaries built with
43 # gcc -fprofile-arcs -ftest-coverage
45 $(RM) *.gcno *.gcda *.gcov *.lcov
47 clean-local: coverage-clean
49 EXTRA_DIST += waitpid.c forcefindlib.c
50 TESTS_ENVIRONMENT = REGEXPROPS=regexprops$(EXEEXT)
51 libfind_a_LIBADD = $(FINDLIBOBJS)
52 libfind_a_DEPENDENCIES = $(FINDLIBOBJS)
54 check-regexprops: check-regexprops.sh
55 cp $(srcdir)/check-regexprops.sh check-regexprops
56 chmod +x check-regexprops
58 test_splitstring_SOURCES = test_splitstring.c splitstring.c