noinst_LIBRARIES = libfind.a
-check_PROGRAMS = regexprops
+check_PROGRAMS = regexprops test_splitstring
check_SCRIPTS = check-regexprops
regexprops_SOURCES = regexprops.c regextype.c
# The regexprops program needs to be a native executable, so we
# can't build it with a cross-compiler.
else
-TESTS += check-regexprops
+TESTS += check-regexprops test_splitstring
endif
-libfind_a_SOURCES = gnulib-version.c findutils-version.c
-EXTRA_DIST = extendbuf.h savedirinfo.h buildcmd.h \
- gnulib-version.h gnulib-version.c findutils-version.h \
+libfind_a_SOURCES = findutils-version.c
+EXTRA_DIST = extendbuf.h buildcmd.h \
+ findutils-version.h \
fdleak.h unused-result.h check-regexprops.sh
-BUILT_SOURCES = gnulib-version.c
SUFFIXES =
MOSTLYCLEANFILES =
-CLEANFILES = check-regexprops
DISTCLEANFILES =
MAINTAINERCLEANFILES =
-INCLUDES = -I../gnulib/lib -I$(top_srcdir)/gnulib/lib
-LDADD = ../gnulib/lib/libgnulib.a $(LIBINTL)
+AM_CPPFLAGS = -I../gl/lib -I$(top_srcdir)/gl/lib
+LDADD = ../gl/lib/libgnulib.a $(LIBINTL)
-libfind_a_SOURCES += nextelem.h printquoted.h listfile.h \
- regextype.h dircallback.h safe-atoi.h arg-max.h
-libfind_a_SOURCES += listfile.c nextelem.c extendbuf.c buildcmd.c savedirinfo.c \
+libfind_a_SOURCES += printquoted.h listfile.h \
+ regextype.h dircallback.h safe-atoi.h splitstring.h
+libfind_a_SOURCES += listfile.c extendbuf.c buildcmd.c \
forcefindlib.c qmark.c printquoted.c regextype.c dircallback.c fdleak.c \
- safe-atoi.c
+ safe-atoi.c splitstring.c
+
+CLEANFILES = check-regexprops
+
+# Clean coverage files generated by running binaries built with
+# gcc -fprofile-arcs -ftest-coverage
+coverage-clean:
+ $(RM) *.gcno *.gcda *.gcov *.lcov
+
+clean-local: coverage-clean
EXTRA_DIST += waitpid.c forcefindlib.c
TESTS_ENVIRONMENT = REGEXPROPS=regexprops$(EXEEXT)
-libfind_a_LIBADD = @FINDLIBOBJS@
-libfind_a_DEPENDENCIES = @FINDLIBOBJS@
-# libfind_la_LIBADD = @LTFINDLIBOBJS@
-
-# libfind_a_OBJECTS += @FINDLIBOBJS@
-# libfind_la_OBJECTS += @LTFINDLIBOBJS@
+libfind_a_LIBADD = $(FINDLIBOBJS)
+libfind_a_DEPENDENCIES = $(FINDLIBOBJS)
check-regexprops: check-regexprops.sh
cp $(srcdir)/check-regexprops.sh check-regexprops
chmod +x check-regexprops
+
+test_splitstring_SOURCES = test_splitstring.c splitstring.c