1 ## Process this file with automake to produce Makefile.in.
3 ACLOCAL_AMFLAGS = -I m4
20 # Note that pcrecpp.html is not in this list; it is listed separately below.
23 doc/html/NON-AUTOTOOLS-BUILD.txt \
26 doc/html/pcre-config.html \
28 doc/html/pcre16.html \
29 doc/html/pcre32.html \
30 doc/html/pcre_assign_jit_stack.html \
31 doc/html/pcre_compile.html \
32 doc/html/pcre_compile2.html \
33 doc/html/pcre_config.html \
34 doc/html/pcre_copy_named_substring.html \
35 doc/html/pcre_copy_substring.html \
36 doc/html/pcre_dfa_exec.html \
37 doc/html/pcre_exec.html \
38 doc/html/pcre_free_study.html \
39 doc/html/pcre_free_substring.html \
40 doc/html/pcre_free_substring_list.html \
41 doc/html/pcre_fullinfo.html \
42 doc/html/pcre_get_named_substring.html \
43 doc/html/pcre_get_stringnumber.html \
44 doc/html/pcre_get_stringtable_entries.html \
45 doc/html/pcre_get_substring.html \
46 doc/html/pcre_get_substring_list.html \
47 doc/html/pcre_jit_exec.html \
48 doc/html/pcre_jit_stack_alloc.html \
49 doc/html/pcre_jit_stack_free.html \
50 doc/html/pcre_maketables.html \
51 doc/html/pcre_pattern_to_host_byte_order.html \
52 doc/html/pcre_refcount.html \
53 doc/html/pcre_study.html \
54 doc/html/pcre_utf16_to_host_byte_order.html \
55 doc/html/pcre_utf32_to_host_byte_order.html \
56 doc/html/pcre_version.html \
57 doc/html/pcreapi.html \
58 doc/html/pcrebuild.html \
59 doc/html/pcrecallout.html \
60 doc/html/pcrecompat.html \
61 doc/html/pcredemo.html \
62 doc/html/pcregrep.html \
63 doc/html/pcrejit.html \
64 doc/html/pcrelimits.html \
65 doc/html/pcrematching.html \
66 doc/html/pcrepartial.html \
67 doc/html/pcrepattern.html \
68 doc/html/pcreperform.html \
69 doc/html/pcreposix.html \
70 doc/html/pcreprecompile.html \
71 doc/html/pcresample.html \
72 doc/html/pcrestack.html \
73 doc/html/pcresyntax.html \
74 doc/html/pcretest.html \
75 doc/html/pcreunicode.html
77 pcrecpp_html = doc/html/pcrecpp.html
78 dist_noinst_DATA = $(pcrecpp_html)
81 html_DATA = $(pcrecpp_html)
84 # The Libtool libraries to install. We'll add to this later.
87 # Unit tests you want to run when people type 'make check'.
88 # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
93 # Some of the binaries we make are to be installed, and others are
94 # (non-user-visible) helper programs needed to build libpcre, libpcre16
99 # Additional files to delete on 'make clean' and 'make maintainer-clean'.
101 MAINTAINERCLEANFILES =
103 # Additional files to bundle with the distribution, over and above what
104 # the Autotools include by default.
107 # These files contain additional m4 macros that are used by autoconf.
109 m4/ax_pthread.m4 m4/pcre_visibility.m4
111 # These files contain maintenance information
115 NON-AUTOTOOLS-BUILD \
118 # These files are used in the preparation of a release
127 # These files are to do with building for Virtual Pascal
134 # These files are usable versions of pcre.h and config.h that are distributed
135 # for the benefit of people who are building PCRE manually, without the
141 # The only difference between pcre.h.in and pcre.h is the setting of the PCRE
142 # version number. Therefore, we can create the generic version just by copying.
143 pcre.h.generic: pcre.h.in configure.ac
147 # It is more complicated for config.h.generic. We need the version that results
148 # from a default configuration so as to get all the default values for PCRE
149 # configuration macros such as MATCH_LIMIT and NEWLINE. We can get this by
150 # doing a configure in a temporary directory. However, some trickery is needed,
151 # because the source directory may already be configured. If you just try
152 # running configure in a new directory, it complains. For this reason, we move
153 # config.status out of the way while doing the default configuration. The
154 # resulting config.h is munged by perl to put #ifdefs round any #defines for
155 # macros with values, and to #undef all boolean macros such as HAVE_xxx and
156 # SUPPORT_xxx. We also get rid of any gcc-specific visibility settings. Make
157 # sure that PCRE_EXP_DEFN is unset (in case it has visibility settings).
158 config.h.generic: configure.ac
161 cs=$(srcdir)/config.status; test ! -f $$cs || mv -f $$cs $$cs.aside
162 cd _generic && $(abs_top_srcdir)/configure || :
163 cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs
164 test -f _generic/config.h
166 -e 'BEGIN{$$blank=0;}' \
167 -e 'if(/PCRE_EXP_DEFN/){print"/* #undef PCRE_EXP_DEFN */\n";$$blank=0;next;}' \
168 -e 'if(/to make a symbol visible/){next;}' \
169 -e 'if(/__attribute__ \(\(visibility/){next;}' \
170 -e 'if(/LT_OBJDIR/){print"/* This is ignored unless you are using libtool. */\n";}' \
171 -e 'if(/^#define\s((?:HAVE|SUPPORT|STDC)_\w+)/){print"/* #undef $$1 */\n";$$blank=0;next;}' \
172 -e 'if(/^#define\s(?!PACKAGE|VERSION)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$blank=0;next;}' \
173 -e 'if(/^\s*$$/){print unless $$blank; $$blank=1;} else{print;$$blank=0;}' \
174 _generic/config.h >$@
177 MAINTAINERCLEANFILES += pcre.h.generic config.h.generic
179 # These are the header files we'll install. We do not distribute pcre.h because
180 # it is generated from pcre.h.in.
181 nodist_include_HEADERS = \
184 otherincludedir = $(includedir)/pcreposix
185 otherinclude_HEADERS = \
187 nodist_otherinclude_HEADERS = \
190 regex.h : $(srcdir)/pcreposix.h
191 cp -p $(srcdir)/pcreposix.h $@
193 # These additional headers will be be installed if C++ support is enabled. We
194 # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
195 # from corresponding .h.in files (which we do distribute).
197 nodist_include_HEADERS += \
203 endif # WITH_PCRE_CPP
205 bin_SCRIPTS = pcre-config
207 ## ---------------------------------------------------------------
208 ## The dftables program is used to rebuild character tables before compiling
209 ## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
210 ## program. The default (when --enable-rebuild-chartables is not specified) is
211 ## to copy a distributed set of tables that are defined for ASCII code. In this
212 ## case, dftables is not needed.
214 if WITH_REBUILD_CHARTABLES
216 noinst_PROGRAMS += dftables
217 dftables_SOURCES = dftables.c
219 pcre_chartables.c: dftables$(EXEEXT)
220 ./dftables$(EXEEXT) $@
223 pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
225 $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
227 endif # WITH_REBUILD_CHARTABLES
229 BUILT_SOURCES = pcre_chartables.c
231 ## The main pcre library
233 # Build the 8 bit library if it is enabled.
235 lib_LTLIBRARIES += libpcre.la
237 libpcre_la_SOURCES = \
252 pcre_string_utils.c \
261 libpcre_la_CFLAGS = \
262 $(VISIBILITY_CFLAGS) \
267 ## This file is generated as part of the building process, so don't distribute.
268 nodist_libpcre_la_SOURCES = \
273 # Build the 16 bit library if it is enabled.
275 lib_LTLIBRARIES += libpcre16.la
276 libpcre16_la_SOURCES = \
277 pcre16_byte_order.c \
278 pcre16_chartables.c \
286 pcre16_jit_compile.c \
287 pcre16_maketables.c \
291 pcre16_string_utils.c \
295 pcre16_utf16_utils.c \
296 pcre16_valid_utf16.c \
300 libpcre16_la_CFLAGS = \
301 $(VISIBILITY_CFLAGS) \
304 libpcre16_la_LIBADD =
306 ## This file is generated as part of the building process, so don't distribute.
307 nodist_libpcre16_la_SOURCES = \
312 # Build the 32 bit library if it is enabled.
314 lib_LTLIBRARIES += libpcre32.la
315 libpcre32_la_SOURCES = \
316 pcre32_byte_order.c \
317 pcre32_chartables.c \
325 pcre32_jit_compile.c \
326 pcre32_maketables.c \
330 pcre32_string_utils.c \
334 pcre32_utf32_utils.c \
335 pcre32_valid_utf32.c \
339 libpcre32_la_CFLAGS = \
340 $(VISIBILITY_CFLAGS) \
343 libpcre32_la_LIBADD =
345 ## This file is generated as part of the building process, so don't distribute.
346 nodist_libpcre32_la_SOURCES = \
351 # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,
352 # used unless --enable-rebuild-chartables is specified.
353 EXTRA_DIST += pcre_chartables.c.dist
355 # The JIT compiler lives in a separate directory, but its files are #included
356 # when pcre_jit_compile.c is processed, so they must be distributed.
358 sljit/sljitConfig.h \
359 sljit/sljitConfigInternal.h \
360 sljit/sljitExecAllocator.c \
363 sljit/sljitNativeARM_32.c \
364 sljit/sljitNativeARM_64.c \
365 sljit/sljitNativeARM_T2_32.c \
366 sljit/sljitNativeMIPS_32.c \
367 sljit/sljitNativeMIPS_64.c \
368 sljit/sljitNativeMIPS_common.c \
369 sljit/sljitNativePPC_32.c \
370 sljit/sljitNativePPC_64.c \
371 sljit/sljitNativePPC_common.c \
372 sljit/sljitNativeSPARC_32.c \
373 sljit/sljitNativeSPARC_common.c \
374 sljit/sljitNativeTILEGX_64.c \
375 sljit/sljitNativeTILEGX-encoder.c \
376 sljit/sljitNativeX86_32.c \
377 sljit/sljitNativeX86_64.c \
378 sljit/sljitNativeX86_common.c \
382 libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
385 libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)
388 libpcre32_la_LDFLAGS = $(EXTRA_LIBPCRE32_LDFLAGS)
393 libpcre_la_CFLAGS += $(VALGRIND_CFLAGS)
396 libpcre16_la_CFLAGS += $(VALGRIND_CFLAGS)
399 libpcre32_la_CFLAGS += $(VALGRIND_CFLAGS)
401 endif # WITH_VALGRIND
405 libpcre_la_CFLAGS += $(GCOV_CFLAGS)
408 libpcre16_la_CFLAGS += $(GCOV_CFLAGS)
411 libpcre32_la_CFLAGS += $(GCOV_CFLAGS)
415 CLEANFILES += pcre_chartables.c
417 ## If JIT support is enabled, arrange for the JIT test program to run.
419 TESTS += pcre_jit_test
420 noinst_PROGRAMS += pcre_jit_test
421 pcre_jit_test_SOURCES = pcre_jit_test.c
422 pcre_jit_test_CFLAGS = $(AM_CFLAGS)
423 pcre_jit_test_LDADD =
425 pcre_jit_test_LDADD += libpcre.la
428 pcre_jit_test_LDADD += libpcre16.la
431 pcre_jit_test_LDADD += libpcre32.la
434 pcre_jit_test_CFLAGS += $(GCOV_CFLAGS)
435 pcre_jit_test_LDADD += $(GCOV_LIBS)
439 ## A version of the main pcre library that has a posix re API.
442 lib_LTLIBRARIES += libpcreposix.la
443 libpcreposix_la_SOURCES = \
445 libpcreposix_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS)
446 libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
447 libpcreposix_la_LIBADD = libpcre.la
450 libpcreposix_la_CFLAGS += $(GCOV_CFLAGS)
455 ## There's a C++ library as well.
458 lib_LTLIBRARIES += libpcrecpp.la
459 libpcrecpp_la_SOURCES = \
464 libpcrecpp_la_CXXFLAGS = $(VISIBILITY_CXXFLAGS) $(AM_CXXFLAGS)
465 libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
466 libpcrecpp_la_LIBADD = libpcre.la
468 TESTS += pcrecpp_unittest
469 noinst_PROGRAMS += pcrecpp_unittest
470 pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
471 pcrecpp_unittest_CXXFLAGS = $(AM_CXXFLAGS)
472 pcrecpp_unittest_LDADD = libpcrecpp.la
474 TESTS += pcre_scanner_unittest
475 noinst_PROGRAMS += pcre_scanner_unittest
476 pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
477 pcre_scanner_unittest_CXXFLAGS = $(AM_CXXFLAGS)
478 pcre_scanner_unittest_LDADD = libpcrecpp.la
480 TESTS += pcre_stringpiece_unittest
481 noinst_PROGRAMS += pcre_stringpiece_unittest
482 pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
483 pcre_stringpiece_unittest_CXXFLAGS = $(AM_CXXFLAGS)
484 pcre_stringpiece_unittest_LDADD = libpcrecpp.la
487 libpcrecpp_la_CXXFLAGS += $(GCOV_CXXFLAGS)
488 pcrecpp_unittest_LDADD += $(GCOV_LIBS)
489 pcre_scanner_unittest_LDADD += $(GCOV_LIBS)
490 pcre_stringpiece_unittest_LDADD += $(GCOV_LIBS)
493 endif # WITH_PCRE_CPP
495 ## The main unit tests
497 # Each unit test is a binary plus a script that runs that binary in various
498 # ways. We install these test binaries in case folks find it helpful.
501 dist_noinst_SCRIPTS += RunTest
502 EXTRA_DIST += RunTest.bat
503 bin_PROGRAMS += pcretest
504 pcretest_SOURCES = pcretest.c
505 pcretest_CFLAGS = $(AM_CFLAGS)
506 pcretest_LDADD = $(LIBREADLINE)
508 pcretest_SOURCES += pcre_printint.c
509 pcretest_LDADD += libpcre.la libpcreposix.la
512 pcretest_SOURCES += pcre16_printint.c
513 pcretest_LDADD += libpcre16.la
516 pcretest_SOURCES += pcre32_printint.c
517 pcretest_LDADD += libpcre32.la
520 pcretest_CFLAGS += $(VALGRIND_CFLAGS)
521 endif # WITH_VALGRIND
523 pcretest_CFLAGS += $(GCOV_CFLAGS)
524 pcretest_LDADD += $(GCOV_LIBS)
529 dist_noinst_SCRIPTS += RunGrepTest
530 bin_PROGRAMS += pcregrep
531 pcregrep_SOURCES = pcregrep.c
532 pcregrep_CFLAGS = $(AM_CFLAGS)
533 pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
534 pcregrep_LDADD += libpcre.la libpcreposix.la
536 pcregrep_CFLAGS += $(GCOV_CFLAGS)
537 pcregrep_LDADD += $(GCOV_LIBS)
542 testdata/grepbinary \
543 testdata/grepfilelist \
545 testdata/grepinput3 \
546 testdata/grepinput8 \
547 testdata/grepinputv \
548 testdata/grepinputx \
550 testdata/grepoutput \
551 testdata/grepoutput8 \
552 testdata/grepoutputN \
555 testdata/saved16BE-1 \
556 testdata/saved16BE-2 \
557 testdata/saved16LE-1 \
558 testdata/saved16LE-2 \
560 testdata/saved32BE-1 \
561 testdata/saved32BE-2 \
562 testdata/saved32LE-1 \
563 testdata/saved32LE-2 \
565 testdata/testinput1 \
566 testdata/testinput2 \
567 testdata/testinput3 \
568 testdata/testinput4 \
569 testdata/testinput5 \
570 testdata/testinput6 \
571 testdata/testinput7 \
572 testdata/testinput8 \
573 testdata/testinput9 \
574 testdata/testinput10 \
575 testdata/testinput11 \
576 testdata/testinput12 \
577 testdata/testinput13 \
578 testdata/testinput14 \
579 testdata/testinput15 \
580 testdata/testinput16 \
581 testdata/testinput17 \
582 testdata/testinput18 \
583 testdata/testinput19 \
584 testdata/testinput20 \
585 testdata/testinput21 \
586 testdata/testinput22 \
587 testdata/testinput23 \
588 testdata/testinput24 \
589 testdata/testinput25 \
590 testdata/testinput26 \
591 testdata/testinputEBC \
592 testdata/testoutput1 \
593 testdata/testoutput2 \
594 testdata/testoutput3 \
595 testdata/testoutput3A \
596 testdata/testoutput3B \
597 testdata/testoutput4 \
598 testdata/testoutput5 \
599 testdata/testoutput6 \
600 testdata/testoutput7 \
601 testdata/testoutput8 \
602 testdata/testoutput9 \
603 testdata/testoutput10 \
604 testdata/testoutput11-8 \
605 testdata/testoutput11-16 \
606 testdata/testoutput11-32 \
607 testdata/testoutput12 \
608 testdata/testoutput13 \
609 testdata/testoutput14 \
610 testdata/testoutput15 \
611 testdata/testoutput16 \
612 testdata/testoutput17 \
613 testdata/testoutput18-16 \
614 testdata/testoutput18-32 \
615 testdata/testoutput19 \
616 testdata/testoutput20 \
617 testdata/testoutput21-16 \
618 testdata/testoutput21-32 \
619 testdata/testoutput22-16 \
620 testdata/testoutput22-32 \
621 testdata/testoutput23 \
622 testdata/testoutput24 \
623 testdata/testoutput25 \
624 testdata/testoutput26 \
625 testdata/testoutputEBC \
626 testdata/valgrind-jit.supp \
627 testdata/wintestinput3 \
628 testdata/wintestoutput3 \
641 # PCRE demonstration program. No longer built automatcally. The point is that
642 # the users should build it themselves. So just distribute the source.
643 # noinst_PROGRAMS += pcredemo
644 # pcredemo_SOURCES = pcredemo.c
645 # pcredemo_LDADD = libpcre.la
647 EXTRA_DIST += pcredemo.c
650 ## Utility rules, documentation, etc.
652 # A compatibility line, the old build system worked with 'make test'
656 # A PCRE user submitted the following addition, saying that it "will allow
657 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
658 # nice DLL for Windows use". (It is used by the pcre.dll target.)
659 DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
660 pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
661 pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
662 pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
663 pcre_study.o pcre_tables.o pcre_ucd.o \
664 pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
667 # A PCRE user submitted the following addition, saying that it "will allow
668 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
669 # nice DLL for Windows use".
670 pcre.dll: $(DLL_OBJS)
671 $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
674 # We have .pc files for pkg-config users.
675 pkgconfigdir = $(libdir)/pkgconfig
676 pkgconfig_DATA = libpcre.pc libpcreposix.pc
678 pkgconfig_DATA += libpcre16.pc
681 pkgconfig_DATA += libpcre32.pc
684 pkgconfig_DATA += libpcrecpp.pc
687 # Note that pcrecpp.3 is not in this list, but is included separately below.
694 doc/pcre_assign_jit_stack.3 \
696 doc/pcre_compile2.3 \
698 doc/pcre_copy_named_substring.3 \
699 doc/pcre_copy_substring.3 \
700 doc/pcre_dfa_exec.3 \
702 doc/pcre_free_study.3 \
703 doc/pcre_free_substring.3 \
704 doc/pcre_free_substring_list.3 \
705 doc/pcre_fullinfo.3 \
706 doc/pcre_get_named_substring.3 \
707 doc/pcre_get_stringnumber.3 \
708 doc/pcre_get_stringtable_entries.3 \
709 doc/pcre_get_substring.3 \
710 doc/pcre_get_substring_list.3 \
711 doc/pcre_jit_exec.3 \
712 doc/pcre_jit_stack_alloc.3 \
713 doc/pcre_jit_stack_free.3 \
714 doc/pcre_maketables.3 \
715 doc/pcre_pattern_to_host_byte_order.3 \
716 doc/pcre_refcount.3 \
718 doc/pcre_utf16_to_host_byte_order.3 \
719 doc/pcre_utf32_to_host_byte_order.3 \
734 doc/pcreprecompile.3 \
741 # Arrange for the per-function man pages to have 16- and 32-bit names as well.
743 ln -sf pcre_assign_jit_stack.3 $(DESTDIR)$(man3dir)/pcre16_assign_jit_stack.3
744 ln -sf pcre_compile.3 $(DESTDIR)$(man3dir)/pcre16_compile.3
745 ln -sf pcre_compile2.3 $(DESTDIR)$(man3dir)/pcre16_compile2.3
746 ln -sf pcre_config.3 $(DESTDIR)$(man3dir)/pcre16_config.3
747 ln -sf pcre_copy_named_substring.3 $(DESTDIR)$(man3dir)/pcre16_copy_named_substring.3
748 ln -sf pcre_copy_substring.3 $(DESTDIR)$(man3dir)/pcre16_copy_substring.3
749 ln -sf pcre_dfa_exec.3 $(DESTDIR)$(man3dir)/pcre16_dfa_exec.3
750 ln -sf pcre_exec.3 $(DESTDIR)$(man3dir)/pcre16_exec.3
751 ln -sf pcre_free_study.3 $(DESTDIR)$(man3dir)/pcre16_free_study.3
752 ln -sf pcre_free_substring.3 $(DESTDIR)$(man3dir)/pcre16_free_substring.3
753 ln -sf pcre_free_substring_list.3 $(DESTDIR)$(man3dir)/pcre16_free_substring_list.3
754 ln -sf pcre_fullinfo.3 $(DESTDIR)$(man3dir)/pcre16_fullinfo.3
755 ln -sf pcre_get_named_substring.3 $(DESTDIR)$(man3dir)/pcre16_get_named_substring.3
756 ln -sf pcre_get_stringnumber.3 $(DESTDIR)$(man3dir)/pcre16_get_stringnumber.3
757 ln -sf pcre_get_stringtable_entries.3 $(DESTDIR)$(man3dir)/pcre16_get_stringtable_entries.3
758 ln -sf pcre_get_substring.3 $(DESTDIR)$(man3dir)/pcre16_get_substring.3
759 ln -sf pcre_get_substring_list.3 $(DESTDIR)$(man3dir)/pcre16_get_substring_list.3
760 ln -sf pcre_jit_exec.3 $(DESTDIR)$(man3dir)/pcre16_jit_exec.3
761 ln -sf pcre_jit_stack_alloc.3 $(DESTDIR)$(man3dir)/pcre16_jit_stack_alloc.3
762 ln -sf pcre_jit_stack_free.3 $(DESTDIR)$(man3dir)/pcre16_jit_stack_free.3
763 ln -sf pcre_maketables.3 $(DESTDIR)$(man3dir)/pcre16_maketables.3
764 ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_pattern_to_host_byte_order.3
765 ln -sf pcre_refcount.3 $(DESTDIR)$(man3dir)/pcre16_refcount.3
766 ln -sf pcre_study.3 $(DESTDIR)$(man3dir)/pcre16_study.3
767 ln -sf pcre_utf16_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_utf16_to_host_byte_order.3
768 ln -sf pcre_version.3 $(DESTDIR)$(man3dir)/pcre16_version.3
769 ln -sf pcre_assign_jit_stack.3 $(DESTDIR)$(man3dir)/pcre32_assign_jit_stack.3
770 ln -sf pcre_compile.3 $(DESTDIR)$(man3dir)/pcre32_compile.3
771 ln -sf pcre_compile2.3 $(DESTDIR)$(man3dir)/pcre32_compile2.3
772 ln -sf pcre_config.3 $(DESTDIR)$(man3dir)/pcre32_config.3
773 ln -sf pcre_copy_named_substring.3 $(DESTDIR)$(man3dir)/pcre32_copy_named_substring.3
774 ln -sf pcre_copy_substring.3 $(DESTDIR)$(man3dir)/pcre32_copy_substring.3
775 ln -sf pcre_dfa_exec.3 $(DESTDIR)$(man3dir)/pcre32_dfa_exec.3
776 ln -sf pcre_exec.3 $(DESTDIR)$(man3dir)/pcre32_exec.3
777 ln -sf pcre_free_study.3 $(DESTDIR)$(man3dir)/pcre32_free_study.3
778 ln -sf pcre_free_substring.3 $(DESTDIR)$(man3dir)/pcre32_free_substring.3
779 ln -sf pcre_free_substring_list.3 $(DESTDIR)$(man3dir)/pcre32_free_substring_list.3
780 ln -sf pcre_fullinfo.3 $(DESTDIR)$(man3dir)/pcre32_fullinfo.3
781 ln -sf pcre_get_named_substring.3 $(DESTDIR)$(man3dir)/pcre32_get_named_substring.3
782 ln -sf pcre_get_stringnumber.3 $(DESTDIR)$(man3dir)/pcre32_get_stringnumber.3
783 ln -sf pcre_get_stringtable_entries.3 $(DESTDIR)$(man3dir)/pcre32_get_stringtable_entries.3
784 ln -sf pcre_get_substring.3 $(DESTDIR)$(man3dir)/pcre32_get_substring.3
785 ln -sf pcre_get_substring_list.3 $(DESTDIR)$(man3dir)/pcre32_get_substring_list.3
786 ln -sf pcre_jit_exec.3 $(DESTDIR)$(man3dir)/pcre32_jit_exec.3
787 ln -sf pcre_jit_stack_alloc.3 $(DESTDIR)$(man3dir)/pcre32_jit_stack_alloc.3
788 ln -sf pcre_jit_stack_free.3 $(DESTDIR)$(man3dir)/pcre32_jit_stack_free.3
789 ln -sf pcre_maketables.3 $(DESTDIR)$(man3dir)/pcre32_maketables.3
790 ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_pattern_to_host_byte_order.3
791 ln -sf pcre_refcount.3 $(DESTDIR)$(man3dir)/pcre32_refcount.3
792 ln -sf pcre_study.3 $(DESTDIR)$(man3dir)/pcre32_study.3
793 ln -sf pcre_utf32_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_utf32_to_host_byte_order.3
794 ln -sf pcre_version.3 $(DESTDIR)$(man3dir)/pcre32_version.3
796 pcrecpp_man = doc/pcrecpp.3
797 EXTRA_DIST += $(pcrecpp_man)
800 man_MANS = $(pcrecpp_man)
803 # gcov/lcov code coverage reporting
807 # Coverage reporting targets:
809 # coverage: Create a coverage report from 'make check'
810 # coverage-baseline: Capture baseline coverage information
811 # coverage-reset: This zeros the coverage counters only
812 # coverage-report: This creates the coverage report only
813 # coverage-clean-report: This removes the generated coverage report
814 # without cleaning the coverage data itself
815 # coverage-clean-data: This removes the captured coverage data without
816 # removing the coverage files created at compile time (*.gcno)
817 # coverage-clean: This cleans all coverage data including the generated
820 COVERAGE_TEST_NAME = $(PACKAGE)
821 COVERAGE_NAME = $(PACKAGE)-$(VERSION)
822 COVERAGE_OUTPUT_FILE = $(COVERAGE_NAME)-coverage.info
823 COVERAGE_OUTPUT_DIR = $(COVERAGE_NAME)-coverage
824 COVERAGE_LCOV_EXTRA_FLAGS =
825 COVERAGE_GENHTML_EXTRA_FLAGS =
827 coverage_quiet = $(coverage_quiet_$(V))
828 coverage_quiet_ = $(coverage_quiet_$(AM_DEFAULT_VERBOSITY))
829 coverage_quiet_0 = --quiet
832 -$(MAKE) $(AM_MAKEFLAGS) -k check
835 $(LCOV) $(coverage_quiet) \
836 --directory $(top_builddir) \
837 --output-file "$(COVERAGE_OUTPUT_FILE)" \
842 $(LCOV) $(coverage_quiet) \
843 --directory $(top_builddir) \
845 --output-file "$(COVERAGE_OUTPUT_FILE).tmp" \
846 --test-name "$(COVERAGE_TEST_NAME)" \
849 $(COVERAGE_LCOV_EXTRA_FLAGS)
850 $(LCOV) $(coverage_quiet) \
851 --directory $(top_builddir) \
852 --output-file "$(COVERAGE_OUTPUT_FILE)" \
853 --remove "$(COVERAGE_OUTPUT_FILE).tmp" \
857 -@rm -f "$(COVERAGE_OUTPUT_FILE).tmp"
858 LANG=C $(GENHTML) $(coverage_quiet) \
859 --prefix $(top_builddir) \
860 --output-directory "$(COVERAGE_OUTPUT_DIR)" \
861 --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
862 --show-details "$(COVERAGE_OUTPUT_FILE)" \
864 $(COVERAGE_GENHTML_EXTRA_FLAGS)
865 @echo "Code coverage report written to file://$(abs_builddir)/$(COVERAGE_OUTPUT_DIR)/index.html"
868 -$(LCOV) $(coverage_quiet) --zerocounters --directory $(top_builddir)
870 coverage-clean-report:
871 -rm -f "$(COVERAGE_OUTPUT_FILE)" "$(COVERAGE_OUTPUT_FILE).tmp"
872 -rm -rf "$(COVERAGE_OUTPUT_DIR)"
875 -find $(top_builddir) -name "*.gcda" -delete
877 coverage-clean: coverage-reset coverage-clean-report coverage-clean-data
878 -find $(top_builddir) -name "*.gcno" -delete
880 coverage-distclean: coverage-clean
882 coverage: coverage-reset coverage-baseline coverage-check coverage-report
883 clean-local: coverage-clean
884 distclean-local: coverage-distclean
886 .PHONY: coverage coverage-baseline coverage-check coverage-report coverage-reset coverage-clean-report coverage-clean-data coverage-clean coverage-distclean
891 @echo "Configuring with --enable-coverage required to generate code coverage report."
898 cmake/COPYING-CMAKE-SCRIPTS \
899 cmake/FindPackageHandleStandardArgs.cmake \
900 cmake/FindReadline.cmake \
901 cmake/FindEditline.cmake \