mirror of
git://git.sv.gnu.org/findutils.git
synced 2026-01-30 13:18:59 +01:00
* find/parser.c: Include "safe-atoi.h". Remove the body of safe_atoi. (parse_group): pass options.err_quoting_style to safe_atoi. (insert_depthspec): Likewise. (parse_user): Likewise. * lib/safe-atoi.h: New file. * lib/safe-atoi.c: New file. Add parameter for quoting style (to avoid an external reference to the "options"struct). * lib/Makefile.am (libfind_a_SOURCES): Add safe-atoi.c and safe-atoi.h. Signed-off-by: James Youngman <jay@gnu.org>
54 lines
1.5 KiB
Makefile
54 lines
1.5 KiB
Makefile
## Process this file with automake to produce Makefile.in.
|
|
|
|
AUTOMAKE_OPTIONS = 1.5 gnits
|
|
# no-dependencies
|
|
AM_CFLAGS = $(WARN_CFLAGS)
|
|
|
|
noinst_LIBRARIES = libfind.a
|
|
|
|
check_PROGRAMS = regexprops
|
|
check_SCRIPTS = check-regexprops
|
|
regexprops_SOURCES = regexprops.c regextype.c
|
|
|
|
TESTS =
|
|
if CROSS_COMPILING
|
|
# The regexprops program needs to be a native executable, so we
|
|
# can't build it with a cross-compiler.
|
|
else
|
|
TESTS += check-regexprops
|
|
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 \
|
|
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)
|
|
|
|
libfind_a_SOURCES += nextelem.h printquoted.h listfile.h \
|
|
regextype.h dircallback.h safe-atoi.h
|
|
libfind_a_SOURCES += listfile.c nextelem.c extendbuf.c buildcmd.c savedirinfo.c \
|
|
forcefindlib.c qmark.c printquoted.c regextype.c dircallback.c fdleak.c \
|
|
safe-atoi.c
|
|
|
|
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@
|
|
|
|
check-regexprops: check-regexprops.sh
|
|
cp $(srcdir)/check-regexprops.sh check-regexprops
|
|
chmod +x check-regexprops
|