1 ## Process this file with automake to produce Makefile.in.
3 ACLOCAL_AMFLAGS = -I m4
17 # Note that pcrecpp.html is not in this list; it is listed separately below.
20 doc/html/NON-AUTOTOOLS-BUILD.txt \
23 doc/html/pcre-config.html \
25 doc/html/pcre16.html \
26 doc/html/pcre32.html \
27 doc/html/pcre_assign_jit_stack.html \
28 doc/html/pcre_compile.html \
29 doc/html/pcre_compile2.html \
30 doc/html/pcre_config.html \
31 doc/html/pcre_copy_named_substring.html \
32 doc/html/pcre_copy_substring.html \
33 doc/html/pcre_dfa_exec.html \
34 doc/html/pcre_exec.html \
35 doc/html/pcre_free_study.html \
36 doc/html/pcre_free_substring.html \
37 doc/html/pcre_free_substring_list.html \
38 doc/html/pcre_fullinfo.html \
39 doc/html/pcre_get_named_substring.html \
40 doc/html/pcre_get_stringnumber.html \
41 doc/html/pcre_get_stringtable_entries.html \
42 doc/html/pcre_get_substring.html \
43 doc/html/pcre_get_substring_list.html \
44 doc/html/pcre_jit_exec.html \
45 doc/html/pcre_jit_stack_alloc.html \
46 doc/html/pcre_jit_stack_free.html \
47 doc/html/pcre_maketables.html \
48 doc/html/pcre_pattern_to_host_byte_order.html \
49 doc/html/pcre_refcount.html \
50 doc/html/pcre_study.html \
51 doc/html/pcre_utf16_to_host_byte_order.html \
52 doc/html/pcre_utf32_to_host_byte_order.html \
53 doc/html/pcre_version.html \
54 doc/html/pcreapi.html \
55 doc/html/pcrebuild.html \
56 doc/html/pcrecallout.html \
57 doc/html/pcrecompat.html \
58 doc/html/pcredemo.html \
59 doc/html/pcregrep.html \
60 doc/html/pcrejit.html \
61 doc/html/pcrelimits.html \
62 doc/html/pcrematching.html \
63 doc/html/pcrepartial.html \
64 doc/html/pcrepattern.html \
65 doc/html/pcreperform.html \
66 doc/html/pcreposix.html \
67 doc/html/pcreprecompile.html \
68 doc/html/pcresample.html \
69 doc/html/pcrestack.html \
70 doc/html/pcresyntax.html \
71 doc/html/pcretest.html \
72 doc/html/pcreunicode.html
74 pcrecpp_html = doc/html/pcrecpp.html
75 dist_noinst_DATA = $(pcrecpp_html)
78 html_DATA = $(pcrecpp_html)
81 # The Libtool libraries to install. We'll add to this later.
84 # Unit tests you want to run when people type 'make check'.
85 # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
90 # Some of the binaries we make are to be installed, and others are
91 # (non-user-visible) helper programs needed to build libpcre, libpcre16
96 # Additional files to delete on 'make clean' and 'make maintainer-clean'.
98 MAINTAINERCLEANFILES =
100 # Additional files to bundle with the distribution, over and above what
101 # the Autotools include by default.
104 # These files contain additional m4 macros that are used by autoconf.
106 m4/ax_pthread.m4 m4/pcre_visibility.m4
108 # These files contain maintenance information
112 NON-AUTOTOOLS-BUILD \
115 # These files are used in the preparation of a release
124 # These files are to do with building for Virtual Pascal
131 # These files are usable versions of pcre.h and config.h that are distributed
132 # for the benefit of people who are building PCRE manually, without the
138 # The only difference between pcre.h.in and pcre.h is the setting of the PCRE
139 # version number. Therefore, we can create the generic version just by copying.
140 pcre.h.generic: pcre.h.in configure.ac
144 # It is more complicated for config.h.generic. We need the version that results
145 # from a default configuration so as to get all the default values for PCRE
146 # configuration macros such as MATCH_LIMIT and NEWLINE. We can get this by
147 # doing a configure in a temporary directory. However, some trickery is needed,
148 # because the source directory may already be configured. If you just try
149 # running configure in a new directory, it complains. For this reason, we move
150 # config.status out of the way while doing the default configuration. The
151 # resulting config.h is munged by perl to put #ifdefs round any #defines for
152 # macros with values, and to #undef all boolean macros such as HAVE_xxx and
153 # SUPPORT_xxx. We also get rid of any gcc-specific visibility settings. Make
154 # sure that PCRE_EXP_DEFN is unset (in case it has visibility settings).
155 config.h.generic: configure.ac
158 cs=$(srcdir)/config.status; test ! -f $$cs || mv -f $$cs $$cs.aside
159 cd _generic && $(abs_top_srcdir)/configure || :
160 cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs
161 test -f _generic/config.h
163 -e 'BEGIN{$$blank=0;}' \
164 -e 'if(/PCRE_EXP_DEFN/){print"/* #undef PCRE_EXP_DEFN */\n";$$blank=0;next;}' \
165 -e 'if(/to make a symbol visible/){next;}' \
166 -e 'if(/__attribute__ \(\(visibility/){next;}' \
167 -e 'if(/LT_OBJDIR/){print"/* This is ignored unless you are using libtool. */\n";}' \
168 -e 'if(/^#define\s((?:HAVE|SUPPORT|STDC)_\w+)/){print"/* #undef $$1 */\n";$$blank=0;next;}' \
169 -e 'if(/^#define\s(?!PACKAGE|VERSION)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$blank=0;next;}' \
170 -e 'if(/^\s*$$/){print unless $$blank; $$blank=1;} else{print;$$blank=0;}' \
171 _generic/config.h >$@
174 MAINTAINERCLEANFILES += pcre.h.generic config.h.generic
176 # These are the header files we'll install. We do not distribute pcre.h because
177 # it is generated from pcre.h.in.
178 nodist_include_HEADERS = \
183 # These additional headers will be be installed if C++ support is enabled. We
184 # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
185 # from corresponding .h.in files (which we do distribute).
187 nodist_include_HEADERS += \
193 endif # WITH_PCRE_CPP
195 bin_SCRIPTS = pcre-config
197 ## ---------------------------------------------------------------
198 ## The dftables program is used to rebuild character tables before compiling
199 ## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
200 ## program. The default (when --enable-rebuild-chartables is not specified) is
201 ## to copy a distributed set of tables that are defined for ASCII code. In this
202 ## case, dftables is not needed.
204 if WITH_REBUILD_CHARTABLES
206 noinst_PROGRAMS += dftables
207 dftables_SOURCES = dftables.c
209 pcre_chartables.c: dftables$(EXEEXT)
210 ./dftables$(EXEEXT) $@
213 pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
215 $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
217 endif # WITH_REBUILD_CHARTABLES
219 BUILT_SOURCES = pcre_chartables.c
221 ## The main pcre library
223 # Build the 8 bit library if it is enabled.
225 lib_LTLIBRARIES += libpcre.la
227 libpcre_la_SOURCES = \
243 pcre_string_utils.c \
252 libpcre_la_CFLAGS = \
253 $(VISIBILITY_CFLAGS) \
258 ## This file is generated as part of the building process, so don't distribute.
259 nodist_libpcre_la_SOURCES = \
264 # Build the 16 bit library if it is enabled.
266 lib_LTLIBRARIES += libpcre16.la
267 libpcre16_la_SOURCES = \
268 pcre16_byte_order.c \
269 pcre16_chartables.c \
277 pcre16_jit_compile.c \
278 pcre16_maketables.c \
282 pcre16_string_utils.c \
286 pcre16_utf16_utils.c \
287 pcre16_valid_utf16.c \
291 libpcre16_la_CFLAGS = \
292 $(VISIBILITY_CFLAGS) \
295 libpcre16_la_LIBADD =
297 ## This file is generated as part of the building process, so don't distribute.
298 nodist_libpcre16_la_SOURCES = \
303 # Build the 32 bit library if it is enabled.
305 lib_LTLIBRARIES += libpcre32.la
306 libpcre32_la_SOURCES = \
307 pcre32_byte_order.c \
308 pcre32_chartables.c \
316 pcre32_jit_compile.c \
317 pcre32_maketables.c \
321 pcre32_string_utils.c \
325 pcre32_utf32_utils.c \
326 pcre32_valid_utf32.c \
330 libpcre32_la_CFLAGS = \
331 $(VISIBILITY_CFLAGS) \
334 libpcre32_la_LIBADD =
336 ## This file is generated as part of the building process, so don't distribute.
337 nodist_libpcre32_la_SOURCES = \
342 # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,
343 # used unless --enable-rebuild-chartables is specified.
344 EXTRA_DIST += pcre_chartables.c.dist
346 # The JIT compiler lives in a separate directory, but its files are #included
347 # when pcre_jit_compile.c is processed, so they must be distributed.
349 sljit/sljitConfig.h \
350 sljit/sljitConfigInternal.h \
351 sljit/sljitExecAllocator.c \
354 sljit/sljitNativeARM_32.c \
355 sljit/sljitNativeARM_64.c \
356 sljit/sljitNativeARM_T2_32.c \
357 sljit/sljitNativeMIPS_32.c \
358 sljit/sljitNativeMIPS_64.c \
359 sljit/sljitNativeMIPS_common.c \
360 sljit/sljitNativePPC_32.c \
361 sljit/sljitNativePPC_64.c \
362 sljit/sljitNativePPC_common.c \
363 sljit/sljitNativeSPARC_32.c \
364 sljit/sljitNativeSPARC_common.c \
365 sljit/sljitNativeTILEGX_64.c \
366 sljit/sljitNativeTILEGX-encoder.c \
367 sljit/sljitNativeX86_32.c \
368 sljit/sljitNativeX86_64.c \
369 sljit/sljitNativeX86_common.c \
373 libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
376 libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)
379 libpcre32_la_LDFLAGS = $(EXTRA_LIBPCRE32_LDFLAGS)
384 libpcre_la_CFLAGS += $(VALGRIND_CFLAGS)
387 libpcre16_la_CFLAGS += $(VALGRIND_CFLAGS)
390 libpcre32_la_CFLAGS += $(VALGRIND_CFLAGS)
392 endif # WITH_VALGRIND
396 libpcre_la_CFLAGS += $(GCOV_CFLAGS)
399 libpcre16_la_CFLAGS += $(GCOV_CFLAGS)
402 libpcre32_la_CFLAGS += $(GCOV_CFLAGS)
406 CLEANFILES += pcre_chartables.c
408 ## If JIT support is enabled, arrange for the JIT test program to run.
410 TESTS += pcre_jit_test
411 noinst_PROGRAMS += pcre_jit_test
412 pcre_jit_test_SOURCES = pcre_jit_test.c
413 pcre_jit_test_CFLAGS = $(AM_CFLAGS)
414 pcre_jit_test_LDADD =
416 pcre_jit_test_LDADD += libpcre.la
419 pcre_jit_test_LDADD += libpcre16.la
422 pcre_jit_test_LDADD += libpcre32.la
425 pcre_jit_test_CFLAGS += $(GCOV_CFLAGS)
426 pcre_jit_test_LDADD += $(GCOV_LIBS)
430 ## A version of the main pcre library that has a posix re API.
433 lib_LTLIBRARIES += libpcreposix.la
434 libpcreposix_la_SOURCES = \
436 libpcreposix_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS)
437 libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
438 libpcreposix_la_LIBADD = libpcre.la
441 libpcreposix_la_CFLAGS += $(GCOV_CFLAGS)
446 ## There's a C++ library as well.
449 lib_LTLIBRARIES += libpcrecpp.la
450 libpcrecpp_la_SOURCES = \
455 libpcrecpp_la_CXXFLAGS = $(VISIBILITY_CXXFLAGS) $(AM_CXXFLAGS)
456 libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
457 libpcrecpp_la_LIBADD = libpcre.la
459 TESTS += pcrecpp_unittest
460 noinst_PROGRAMS += pcrecpp_unittest
461 pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
462 pcrecpp_unittest_CXXFLAGS = $(AM_CXXFLAGS)
463 pcrecpp_unittest_LDADD = libpcrecpp.la
465 TESTS += pcre_scanner_unittest
466 noinst_PROGRAMS += pcre_scanner_unittest
467 pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
468 pcre_scanner_unittest_CXXFLAGS = $(AM_CXXFLAGS)
469 pcre_scanner_unittest_LDADD = libpcrecpp.la
471 TESTS += pcre_stringpiece_unittest
472 noinst_PROGRAMS += pcre_stringpiece_unittest
473 pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
474 pcre_stringpiece_unittest_CXXFLAGS = $(AM_CXXFLAGS)
475 pcre_stringpiece_unittest_LDADD = libpcrecpp.la
478 libpcrecpp_la_CXXFLAGS += $(GCOV_CXXFLAGS)
479 pcrecpp_unittest_LDADD += $(GCOV_LIBS)
480 pcre_scanner_unittest_LDADD += $(GCOV_LIBS)
481 pcre_stringpiece_unittest_LDADD += $(GCOV_LIBS)
484 endif # WITH_PCRE_CPP
486 ## The main unit tests
488 # Each unit test is a binary plus a script that runs that binary in various
489 # ways. We install these test binaries in case folks find it helpful.
492 dist_noinst_SCRIPTS += RunTest
493 EXTRA_DIST += RunTest.bat
494 bin_PROGRAMS += pcretest
495 pcretest_SOURCES = pcretest.c
496 pcretest_CFLAGS = $(AM_CFLAGS)
497 pcretest_LDADD = $(LIBREADLINE)
499 pcretest_SOURCES += pcre_printint.c
500 pcretest_LDADD += libpcre.la libpcreposix.la
503 pcretest_SOURCES += pcre16_printint.c
504 pcretest_LDADD += libpcre16.la
507 pcretest_SOURCES += pcre32_printint.c
508 pcretest_LDADD += libpcre32.la
511 pcretest_CFLAGS += $(VALGRIND_CFLAGS)
512 endif # WITH_VALGRIND
514 pcretest_CFLAGS += $(GCOV_CFLAGS)
515 pcretest_LDADD += $(GCOV_LIBS)
520 dist_noinst_SCRIPTS += RunGrepTest
521 bin_PROGRAMS += pcregrep
522 pcregrep_SOURCES = pcregrep.c
523 pcregrep_CFLAGS = $(AM_CFLAGS)
524 pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
525 pcregrep_LDADD += libpcre.la libpcreposix.la
527 pcregrep_CFLAGS += $(GCOV_CFLAGS)
528 pcregrep_LDADD += $(GCOV_LIBS)
533 testdata/grepbinary \
534 testdata/grepfilelist \
536 testdata/grepinput3 \
537 testdata/grepinput8 \
538 testdata/grepinputv \
539 testdata/grepinputx \
541 testdata/grepoutput \
542 testdata/grepoutput8 \
543 testdata/grepoutputN \
546 testdata/saved16BE-1 \
547 testdata/saved16BE-2 \
548 testdata/saved16LE-1 \
549 testdata/saved16LE-2 \
551 testdata/saved32BE-1 \
552 testdata/saved32BE-2 \
553 testdata/saved32LE-1 \
554 testdata/saved32LE-2 \
556 testdata/testinput1 \
557 testdata/testinput2 \
558 testdata/testinput3 \
559 testdata/testinput4 \
560 testdata/testinput5 \
561 testdata/testinput6 \
562 testdata/testinput7 \
563 testdata/testinput8 \
564 testdata/testinput9 \
565 testdata/testinput10 \
566 testdata/testinput11 \
567 testdata/testinput12 \
568 testdata/testinput13 \
569 testdata/testinput14 \
570 testdata/testinput15 \
571 testdata/testinput16 \
572 testdata/testinput17 \
573 testdata/testinput18 \
574 testdata/testinput19 \
575 testdata/testinput20 \
576 testdata/testinput21 \
577 testdata/testinput22 \
578 testdata/testinput23 \
579 testdata/testinput24 \
580 testdata/testinput25 \
581 testdata/testinput26 \
582 testdata/testinputEBC \
583 testdata/testoutput1 \
584 testdata/testoutput2 \
585 testdata/testoutput3 \
586 testdata/testoutput3A \
587 testdata/testoutput3B \
588 testdata/testoutput4 \
589 testdata/testoutput5 \
590 testdata/testoutput6 \
591 testdata/testoutput7 \
592 testdata/testoutput8 \
593 testdata/testoutput9 \
594 testdata/testoutput10 \
595 testdata/testoutput11-8 \
596 testdata/testoutput11-16 \
597 testdata/testoutput11-32 \
598 testdata/testoutput12 \
599 testdata/testoutput13 \
600 testdata/testoutput14 \
601 testdata/testoutput15 \
602 testdata/testoutput16 \
603 testdata/testoutput17 \
604 testdata/testoutput18-16 \
605 testdata/testoutput18-32 \
606 testdata/testoutput19 \
607 testdata/testoutput20 \
608 testdata/testoutput21-16 \
609 testdata/testoutput21-32 \
610 testdata/testoutput22-16 \
611 testdata/testoutput22-32 \
612 testdata/testoutput23 \
613 testdata/testoutput24 \
614 testdata/testoutput25 \
615 testdata/testoutput26 \
616 testdata/testoutputEBC \
617 testdata/wintestinput3 \
618 testdata/wintestoutput3 \
631 # PCRE demonstration program. No longer built automatcally. The point is that
632 # the users should build it themselves. So just distribute the source.
633 # noinst_PROGRAMS += pcredemo
634 # pcredemo_SOURCES = pcredemo.c
635 # pcredemo_LDADD = libpcre.la
637 EXTRA_DIST += pcredemo.c
640 ## Utility rules, documentation, etc.
642 # A compatibility line, the old build system worked with 'make test'
646 # A PCRE user submitted the following addition, saying that it "will allow
647 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
648 # nice DLL for Windows use". (It is used by the pcre.dll target.)
649 DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
650 pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
651 pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \
652 pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
653 pcre_study.o pcre_tables.o pcre_ucd.o \
654 pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
657 # A PCRE user submitted the following addition, saying that it "will allow
658 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
659 # nice DLL for Windows use".
660 pcre.dll: $(DLL_OBJS)
661 $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
664 # We have .pc files for pkg-config users.
665 pkgconfigdir = $(libdir)/pkgconfig
666 pkgconfig_DATA = libpcre.pc libpcreposix.pc
668 pkgconfig_DATA += libpcre16.pc
671 pkgconfig_DATA += libpcre32.pc
674 pkgconfig_DATA += libpcrecpp.pc
677 # Note that pcrecpp.3 is not in this list, but is included separately below.
684 doc/pcre_assign_jit_stack.3 \
686 doc/pcre_compile2.3 \
688 doc/pcre_copy_named_substring.3 \
689 doc/pcre_copy_substring.3 \
690 doc/pcre_dfa_exec.3 \
692 doc/pcre_free_study.3 \
693 doc/pcre_free_substring.3 \
694 doc/pcre_free_substring_list.3 \
695 doc/pcre_fullinfo.3 \
696 doc/pcre_get_named_substring.3 \
697 doc/pcre_get_stringnumber.3 \
698 doc/pcre_get_stringtable_entries.3 \
699 doc/pcre_get_substring.3 \
700 doc/pcre_get_substring_list.3 \
701 doc/pcre_jit_exec.3 \
702 doc/pcre_jit_stack_alloc.3 \
703 doc/pcre_jit_stack_free.3 \
704 doc/pcre_maketables.3 \
705 doc/pcre_pattern_to_host_byte_order.3 \
706 doc/pcre_refcount.3 \
708 doc/pcre_utf16_to_host_byte_order.3 \
709 doc/pcre_utf32_to_host_byte_order.3 \
724 doc/pcreprecompile.3 \
731 # Arrange for the per-function man pages to have 16- and 32-bit names as well.
733 ln -sf pcre_assign_jit_stack.3 $(DESTDIR)$(man3dir)/pcre16_assign_jit_stack.3
734 ln -sf pcre_compile.3 $(DESTDIR)$(man3dir)/pcre16_compile.3
735 ln -sf pcre_compile2.3 $(DESTDIR)$(man3dir)/pcre16_compile2.3
736 ln -sf pcre_config.3 $(DESTDIR)$(man3dir)/pcre16_config.3
737 ln -sf pcre_copy_named_substring.3 $(DESTDIR)$(man3dir)/pcre16_copy_named_substring.3
738 ln -sf pcre_copy_substring.3 $(DESTDIR)$(man3dir)/pcre16_copy_substring.3
739 ln -sf pcre_dfa_exec.3 $(DESTDIR)$(man3dir)/pcre16_dfa_exec.3
740 ln -sf pcre_exec.3 $(DESTDIR)$(man3dir)/pcre16_exec.3
741 ln -sf pcre_free_study.3 $(DESTDIR)$(man3dir)/pcre16_free_study.3
742 ln -sf pcre_free_substring.3 $(DESTDIR)$(man3dir)/pcre16_free_substring.3
743 ln -sf pcre_free_substring_list.3 $(DESTDIR)$(man3dir)/pcre16_free_substring_list.3
744 ln -sf pcre_fullinfo.3 $(DESTDIR)$(man3dir)/pcre16_fullinfo.3
745 ln -sf pcre_get_named_substring.3 $(DESTDIR)$(man3dir)/pcre16_get_named_substring.3
746 ln -sf pcre_get_stringnumber.3 $(DESTDIR)$(man3dir)/pcre16_get_stringnumber.3
747 ln -sf pcre_get_stringtable_entries.3 $(DESTDIR)$(man3dir)/pcre16_get_stringtable_entries.3
748 ln -sf pcre_get_substring.3 $(DESTDIR)$(man3dir)/pcre16_get_substring.3
749 ln -sf pcre_get_substring_list.3 $(DESTDIR)$(man3dir)/pcre16_get_substring_list.3
750 ln -sf pcre_jit_exec.3 $(DESTDIR)$(man3dir)/pcre16_jit_exec.3
751 ln -sf pcre_jit_stack_alloc.3 $(DESTDIR)$(man3dir)/pcre16_jit_stack_alloc.3
752 ln -sf pcre_jit_stack_free.3 $(DESTDIR)$(man3dir)/pcre16_jit_stack_free.3
753 ln -sf pcre_maketables.3 $(DESTDIR)$(man3dir)/pcre16_maketables.3
754 ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_pattern_to_host_byte_order.3
755 ln -sf pcre_refcount.3 $(DESTDIR)$(man3dir)/pcre16_refcount.3
756 ln -sf pcre_study.3 $(DESTDIR)$(man3dir)/pcre16_study.3
757 ln -sf pcre_utf16_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_utf16_to_host_byte_order.3
758 ln -sf pcre_version.3 $(DESTDIR)$(man3dir)/pcre16_version.3
759 ln -sf pcre_assign_jit_stack.3 $(DESTDIR)$(man3dir)/pcre32_assign_jit_stack.3
760 ln -sf pcre_compile.3 $(DESTDIR)$(man3dir)/pcre32_compile.3
761 ln -sf pcre_compile2.3 $(DESTDIR)$(man3dir)/pcre32_compile2.3
762 ln -sf pcre_config.3 $(DESTDIR)$(man3dir)/pcre32_config.3
763 ln -sf pcre_copy_named_substring.3 $(DESTDIR)$(man3dir)/pcre32_copy_named_substring.3
764 ln -sf pcre_copy_substring.3 $(DESTDIR)$(man3dir)/pcre32_copy_substring.3
765 ln -sf pcre_dfa_exec.3 $(DESTDIR)$(man3dir)/pcre32_dfa_exec.3
766 ln -sf pcre_exec.3 $(DESTDIR)$(man3dir)/pcre32_exec.3
767 ln -sf pcre_free_study.3 $(DESTDIR)$(man3dir)/pcre32_free_study.3
768 ln -sf pcre_free_substring.3 $(DESTDIR)$(man3dir)/pcre32_free_substring.3
769 ln -sf pcre_free_substring_list.3 $(DESTDIR)$(man3dir)/pcre32_free_substring_list.3
770 ln -sf pcre_fullinfo.3 $(DESTDIR)$(man3dir)/pcre32_fullinfo.3
771 ln -sf pcre_get_named_substring.3 $(DESTDIR)$(man3dir)/pcre32_get_named_substring.3
772 ln -sf pcre_get_stringnumber.3 $(DESTDIR)$(man3dir)/pcre32_get_stringnumber.3
773 ln -sf pcre_get_stringtable_entries.3 $(DESTDIR)$(man3dir)/pcre32_get_stringtable_entries.3
774 ln -sf pcre_get_substring.3 $(DESTDIR)$(man3dir)/pcre32_get_substring.3
775 ln -sf pcre_get_substring_list.3 $(DESTDIR)$(man3dir)/pcre32_get_substring_list.3
776 ln -sf pcre_jit_exec.3 $(DESTDIR)$(man3dir)/pcre32_jit_exec.3
777 ln -sf pcre_jit_stack_alloc.3 $(DESTDIR)$(man3dir)/pcre32_jit_stack_alloc.3
778 ln -sf pcre_jit_stack_free.3 $(DESTDIR)$(man3dir)/pcre32_jit_stack_free.3
779 ln -sf pcre_maketables.3 $(DESTDIR)$(man3dir)/pcre32_maketables.3
780 ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_pattern_to_host_byte_order.3
781 ln -sf pcre_refcount.3 $(DESTDIR)$(man3dir)/pcre32_refcount.3
782 ln -sf pcre_study.3 $(DESTDIR)$(man3dir)/pcre32_study.3
783 ln -sf pcre_utf32_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_utf32_to_host_byte_order.3
784 ln -sf pcre_version.3 $(DESTDIR)$(man3dir)/pcre32_version.3
786 pcrecpp_man = doc/pcrecpp.3
787 EXTRA_DIST += $(pcrecpp_man)
790 man_MANS = $(pcrecpp_man)
793 # gcov/lcov code coverage reporting
797 # Coverage reporting targets:
799 # coverage: Create a coverage report from 'make check'
800 # coverage-baseline: Capture baseline coverage information
801 # coverage-reset: This zeros the coverage counters only
802 # coverage-report: This creates the coverage report only
803 # coverage-clean-report: This removes the generated coverage report
804 # without cleaning the coverage data itself
805 # coverage-clean-data: This removes the captured coverage data without
806 # removing the coverage files created at compile time (*.gcno)
807 # coverage-clean: This cleans all coverage data including the generated
810 COVERAGE_TEST_NAME = $(PACKAGE)
811 COVERAGE_NAME = $(PACKAGE)-$(VERSION)
812 COVERAGE_OUTPUT_FILE = $(COVERAGE_NAME)-coverage.info
813 COVERAGE_OUTPUT_DIR = $(COVERAGE_NAME)-coverage
814 COVERAGE_LCOV_EXTRA_FLAGS =
815 COVERAGE_GENHTML_EXTRA_FLAGS =
817 coverage_quiet = $(coverage_quiet_$(V))
818 coverage_quiet_ = $(coverage_quiet_$(AM_DEFAULT_VERBOSITY))
819 coverage_quiet_0 = --quiet
822 -$(MAKE) $(AM_MAKEFLAGS) -k check
825 $(LCOV) $(coverage_quiet) \
826 --directory $(top_builddir) \
827 --output-file "$(COVERAGE_OUTPUT_FILE)" \
832 $(LCOV) $(coverage_quiet) \
833 --directory $(top_builddir) \
835 --output-file "$(COVERAGE_OUTPUT_FILE).tmp" \
836 --test-name "$(COVERAGE_TEST_NAME)" \
839 $(COVERAGE_LCOV_EXTRA_FLAGS)
840 $(LCOV) $(coverage_quiet) \
841 --directory $(top_builddir) \
842 --output-file "$(COVERAGE_OUTPUT_FILE)" \
843 --remove "$(COVERAGE_OUTPUT_FILE).tmp" \
847 -@rm -f "$(COVERAGE_OUTPUT_FILE).tmp"
848 LANG=C $(GENHTML) $(coverage_quiet) \
849 --prefix $(top_builddir) \
850 --output-directory "$(COVERAGE_OUTPUT_DIR)" \
851 --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
852 --show-details "$(COVERAGE_OUTPUT_FILE)" \
854 $(COVERAGE_GENHTML_EXTRA_FLAGS)
855 @echo "Code coverage report written to file://$(abs_builddir)/$(COVERAGE_OUTPUT_DIR)/index.html"
858 -$(LCOV) $(coverage_quiet) --zerocounters --directory $(top_builddir)
860 coverage-clean-report:
861 -rm -f "$(COVERAGE_OUTPUT_FILE)" "$(COVERAGE_OUTPUT_FILE).tmp"
862 -rm -rf "$(COVERAGE_OUTPUT_DIR)"
865 -find $(top_builddir) -name "*.gcda" -delete
867 coverage-clean: coverage-reset coverage-clean-report coverage-clean-data
868 -find $(top_builddir) -name "*.gcno" -delete
870 coverage-distclean: coverage-clean
872 coverage: coverage-reset coverage-baseline coverage-check coverage-report
873 clean-local: coverage-clean
874 distclean-local: coverage-distclean
876 .PHONY: coverage coverage-baseline coverage-check coverage-report coverage-reset coverage-clean-report coverage-clean-data coverage-clean coverage-distclean
881 @echo "Configuring with --enable-coverage required to generate code coverage report."
888 cmake/COPYING-CMAKE-SCRIPTS \
889 cmake/FindPackageHandleStandardArgs.cmake \
890 cmake/FindReadline.cmake \
891 cmake/FindEditline.cmake \