/[pcre]/code/trunk/Makefile.am
ViewVC logotype

Diff of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1151 by chpe, Sun Oct 21 16:53:46 2012 UTC revision 1235 by ph10, Mon Dec 10 13:36:29 2012 UTC
# Line 18  dist_html_DATA = \ Line 18  dist_html_DATA = \
18    doc/html/index.html \    doc/html/index.html \
19    doc/html/pcre.html \    doc/html/pcre.html \
20    doc/html/pcre16.html \    doc/html/pcre16.html \
21      doc/html/pcre32.html \
22    doc/html/pcre-config.html \    doc/html/pcre-config.html \
23    doc/html/pcre_assign_jit_stack.html \    doc/html/pcre_assign_jit_stack.html \
24    doc/html/pcre_compile.html \    doc/html/pcre_compile.html \
# Line 36  dist_html_DATA = \ Line 37  dist_html_DATA = \
37    doc/html/pcre_get_stringtable_entries.html \    doc/html/pcre_get_stringtable_entries.html \
38    doc/html/pcre_get_substring.html \    doc/html/pcre_get_substring.html \
39    doc/html/pcre_get_substring_list.html \    doc/html/pcre_get_substring_list.html \
40      doc/html/pcre_jit_exec.html \
41    doc/html/pcre_jit_stack_alloc.html \    doc/html/pcre_jit_stack_alloc.html \
42    doc/html/pcre_jit_stack_free.html \    doc/html/pcre_jit_stack_free.html \
43    doc/html/pcre_maketables.html \    doc/html/pcre_maketables.html \
# Line 43  dist_html_DATA = \ Line 45  dist_html_DATA = \
45    doc/html/pcre_refcount.html \    doc/html/pcre_refcount.html \
46    doc/html/pcre_study.html \    doc/html/pcre_study.html \
47    doc/html/pcre_utf16_to_host_byte_order.html \    doc/html/pcre_utf16_to_host_byte_order.html \
48      doc/html/pcre_utf32_to_host_byte_order.html \
49    doc/html/pcre_version.html \    doc/html/pcre_version.html \
50    doc/html/pcreapi.html \    doc/html/pcreapi.html \
51    doc/html/pcrebuild.html \    doc/html/pcrebuild.html \
# Line 64  dist_html_DATA = \ Line 67  dist_html_DATA = \
67    doc/html/pcretest.html \    doc/html/pcretest.html \
68    doc/html/pcreunicode.html    doc/html/pcreunicode.html
69    
 #   doc/html/pcre32.html \  
 #   doc/html/pcre_utf32_to_host_byte_order.html \  
 #  
   
70  pcrecpp_html = doc/html/pcrecpp.html  pcrecpp_html = doc/html/pcrecpp.html
71  dist_noinst_DATA = $(pcrecpp_html)  dist_noinst_DATA = $(pcrecpp_html)
72    
# Line 100  EXTRA_DIST = Line 99  EXTRA_DIST =
99    
100  # These files contain additional m4 macros that are used by autoconf.  # These files contain additional m4 macros that are used by autoconf.
101  EXTRA_DIST += \  EXTRA_DIST += \
102    m4/ax_pthread.m4    m4/ax_pthread.m4 m4/pcre_visibility.m4
103    
104  # These files contain maintenance information  # These files contain maintenance information
105  EXTRA_DIST += \  EXTRA_DIST += \
# Line 132  EXTRA_DIST += \ Line 131  EXTRA_DIST += \
131    pcre.h.generic \    pcre.h.generic \
132    config.h.generic    config.h.generic
133    
134  pcre.h.generic: configure.ac  # The only difference between pcre.h.in and pcre.h is the setting of the PCRE
135    # version number. Therefore, we can create the generic version just by copying.
136    pcre.h.generic: pcre.h.in configure.ac
137          rm -f $@          rm -f $@
138          cp -p pcre.h $@          cp -p pcre.h $@
139    
140  MAINTAINERCLEANFILES += pcre.h.generic  # It is more complicated for config.h.generic. We need the version that results
141    # from a default configuration so as to get all the default values for PCRE
142    # configuration macros such as MATCH_LIMIT and NEWLINE. We can get this by
143    # doing a configure in a temporary directory. However, some trickery is needed,
144    # because the source directory may already be configured. If you just try
145    # running configure in a new directory, it complains. For this reason, we move
146    # config.status out of the way while doing the default configuration. The
147    # resulting config.h is munged by perl to put #ifdefs round any #defines for
148    # macros with values, and to #undef all boolean macros such as HAVE_xxx and
149    # SUPPORT_xxx. We also get rid of any gcc-specific visibility settings. Make
150    # sure that PCRE_EXP_DEFN is unset (in case it has visibility settings).
151    config.h.generic: configure.ac
152            rm -rf $@ _generic
153            mkdir _generic
154            cs=$(srcdir)/config.status; test ! -f $$cs || mv -f $$cs $$cs.aside
155            cd _generic && $(abs_top_srcdir)/configure || :
156            cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs
157            test -f _generic/config.h
158            perl -n \
159              -e 'BEGIN{$$blank=0;}' \
160              -e 'if(/PCRE_EXP_DEFN/){print"/* #undef PCRE_EXP_DEFN */\n";$$blank=0;next;}' \
161              -e 'if(/to make a symbol visible/){next;}' \
162              -e 'if(/__attribute__ \(\(visibility/){next;}' \
163              -e 'if(/LT_OBJDIR/){print"/* This is ignored unless you are using libtool. */\n";}' \
164              -e 'if(/^#define\s((?:HAVE|SUPPORT|STDC)_\w+)/){print"/* #undef $$1 */\n";$$blank=0;next;}' \
165              -e 'if(/^#define\s(?!PACKAGE|VERSION)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$blank=0;next;}' \
166              -e 'if(/^\s*$$/){print unless $$blank; $$blank=1;} else{print;$$blank=0;}' \
167              _generic/config.h >$@
168            rm -rf _generic
169    
170    MAINTAINERCLEANFILES += pcre.h.generic config.h.generic
171    
172  # These are the header files we'll install. We do not distribute pcre.h because  # These are the header files we'll install. We do not distribute pcre.h because
173  # it is generated from pcre.h.in.  # it is generated from pcre.h.in.
# Line 188  BUILT_SOURCES = pcre_chartables.c Line 219  BUILT_SOURCES = pcre_chartables.c
219  # Build the 8 bit library if it is enabled.  # Build the 8 bit library if it is enabled.
220  if WITH_PCRE8  if WITH_PCRE8
221  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
222    
223  libpcre_la_SOURCES = \  libpcre_la_SOURCES = \
224    pcre_byte_order.c \    pcre_byte_order.c \
225    pcre_compile.c \    pcre_compile.c \
# Line 213  libpcre_la_SOURCES = \ Line 245  libpcre_la_SOURCES = \
245    ucp.h    ucp.h
246    
247  libpcre_la_CFLAGS = \  libpcre_la_CFLAGS = \
248      $(VISIBILITY_CFLAGS) \
249    $(AM_CFLAGS)    $(AM_CFLAGS)
250    
251  libpcre_la_LIBADD =  libpcre_la_LIBADD =
# Line 251  libpcre16_la_SOURCES = \ Line 284  libpcre16_la_SOURCES = \
284    pcre16_xclass.c    pcre16_xclass.c
285    
286  libpcre16_la_CFLAGS = \  libpcre16_la_CFLAGS = \
287      $(VISIBILITY_CFLAGS) \
288    $(AM_CFLAGS)    $(AM_CFLAGS)
289    
290  libpcre16_la_LIBADD =  libpcre16_la_LIBADD =
# Line 289  libpcre32_la_SOURCES = \ Line 323  libpcre32_la_SOURCES = \
323    pcre32_xclass.c    pcre32_xclass.c
324    
325  libpcre32_la_CFLAGS = \  libpcre32_la_CFLAGS = \
326      $(VISIBILITY_CFLAGS) \
327    $(AM_CFLAGS)    $(AM_CFLAGS)
328    
329  libpcre32_la_LIBADD =  libpcre32_la_LIBADD =
330    
331  ## This file is generated as part of the building process, so don't distribute.  ## This file is generated as part of the building process, so don't distribute.
# Line 317  EXTRA_DIST += \ Line 353  EXTRA_DIST += \
353    sljit/sljitNativePPC_32.c \    sljit/sljitNativePPC_32.c \
354    sljit/sljitNativePPC_64.c \    sljit/sljitNativePPC_64.c \
355    sljit/sljitNativePPC_common.c \    sljit/sljitNativePPC_common.c \
356      sljit/sljitNativeSPARC_32.c \
357      sljit/sljitNativeSPARC_common.c \
358    sljit/sljitNativeX86_32.c \    sljit/sljitNativeX86_32.c \
359    sljit/sljitNativeX86_64.c \    sljit/sljitNativeX86_64.c \
360    sljit/sljitNativeX86_common.c \    sljit/sljitNativeX86_common.c \
# Line 344  libpcre32_la_CFLAGS += $(VALGRIND_CFLAGS Line 382  libpcre32_la_CFLAGS += $(VALGRIND_CFLAGS
382  endif # WITH_PCRE32  endif # WITH_PCRE32
383  endif # WITH_VALGRIND  endif # WITH_VALGRIND
384    
385    if WITH_GCOV
386    if WITH_PCRE8
387    libpcre_la_CFLAGS += $(GCOV_CFLAGS)
388    endif # WITH_PCRE8
389    if WITH_PCRE16
390    libpcre16_la_CFLAGS += $(GCOV_CFLAGS)
391    endif # WITH_PCRE16
392    if WITH_PCRE32
393    libpcre32_la_CFLAGS += $(GCOV_CFLAGS)
394    endif # WITH_PCRE32
395    endif # WITH_GCOV
396    
397  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
398    
399  ## If JIT support is enabled, arrange for the JIT test program to run.  ## If JIT support is enabled, arrange for the JIT test program to run.
# Line 351  if WITH_JIT Line 401  if WITH_JIT
401  TESTS += pcre_jit_test  TESTS += pcre_jit_test
402  noinst_PROGRAMS += pcre_jit_test  noinst_PROGRAMS += pcre_jit_test
403  pcre_jit_test_SOURCES = pcre_jit_test.c  pcre_jit_test_SOURCES = pcre_jit_test.c
404    pcre_jit_test_CFLAGS = $(AM_CFLAGS)
405  pcre_jit_test_LDADD =  pcre_jit_test_LDADD =
406  if WITH_PCRE8  if WITH_PCRE8
407  pcre_jit_test_LDADD += libpcre.la  pcre_jit_test_LDADD += libpcre.la
# Line 361  endif # WITH_PCRE16 Line 412  endif # WITH_PCRE16
412  if WITH_PCRE32  if WITH_PCRE32
413  pcre_jit_test_LDADD += libpcre32.la  pcre_jit_test_LDADD += libpcre32.la
414  endif # WITH_PCRE32  endif # WITH_PCRE32
415    if WITH_GCOV
416    pcre_jit_test_CFLAGS += $(GCOV_CFLAGS)
417    pcre_jit_test_LDADD += $(GCOV_LIBS)
418    endif # WITH_GCOV
419  endif # WITH_JIT  endif # WITH_JIT
420    
421  ## A version of the main pcre library that has a posix re API.  ## A version of the main pcre library that has a posix re API.
422  if WITH_PCRE8  if WITH_PCRE8
423    
424  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
425  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
426    pcreposix.c    pcreposix.c
427    libpcreposix_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS)
428  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
429  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
430    
431    if WITH_GCOV
432    libpcreposix_la_CFLAGS += $(GCOV_CFLAGS)
433    endif # WITH_GCOV
434    
435  endif # WITH_PCRE8  endif # WITH_PCRE8
436    
437  ## There's a C++ library as well.  ## There's a C++ library as well.
# Line 381  libpcrecpp_la_SOURCES = \ Line 443  libpcrecpp_la_SOURCES = \
443    pcrecpp.cc \    pcrecpp.cc \
444    pcre_scanner.cc \    pcre_scanner.cc \
445    pcre_stringpiece.cc    pcre_stringpiece.cc
446    libpcrecpp_la_CXXFLAGS = $(VISIBILITY_CXXFLAGS) $(AM_CXXFLAGS)
447  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
448  libpcrecpp_la_LIBADD = libpcre.la  libpcrecpp_la_LIBADD = libpcre.la
449    
450  TESTS += pcrecpp_unittest  TESTS += pcrecpp_unittest
451  noinst_PROGRAMS += pcrecpp_unittest  noinst_PROGRAMS += pcrecpp_unittest
452  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
453    pcrecpp_unittest_CXXFLAGS = $(AM_CXXFLAGS)
454  pcrecpp_unittest_LDADD = libpcrecpp.la  pcrecpp_unittest_LDADD = libpcrecpp.la
455    
456  TESTS += pcre_scanner_unittest  TESTS += pcre_scanner_unittest
457  noinst_PROGRAMS += pcre_scanner_unittest  noinst_PROGRAMS += pcre_scanner_unittest
458  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
459    pcre_scanner_unittest_CXXFLAGS = $(AM_CXXFLAGS)
460  pcre_scanner_unittest_LDADD = libpcrecpp.la  pcre_scanner_unittest_LDADD = libpcrecpp.la
461    
462  TESTS += pcre_stringpiece_unittest  TESTS += pcre_stringpiece_unittest
463  noinst_PROGRAMS += pcre_stringpiece_unittest  noinst_PROGRAMS += pcre_stringpiece_unittest
464  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
465    pcre_stringpiece_unittest_CXXFLAGS = $(AM_CXXFLAGS)
466  pcre_stringpiece_unittest_LDADD = libpcrecpp.la  pcre_stringpiece_unittest_LDADD = libpcrecpp.la
467    
468    if WITH_GCOV
469    libpcrecpp_la_CXXFLAGS += $(GCOV_CXXFLAGS)
470    pcrecpp_unittest_LDADD += $(GCOV_LIBS)
471    pcre_scanner_unittest_LDADD += $(GCOV_LIBS)
472    pcre_stringpiece_unittest_LDADD += $(GCOV_LIBS)
473    endif # WITH_GCOV
474    
475  endif # WITH_PCRE_CPP  endif # WITH_PCRE_CPP
476    
477  ## The main unit tests  ## The main unit tests
# Line 428  endif # WITH_PCRE32 Line 501  endif # WITH_PCRE32
501  if WITH_VALGRIND  if WITH_VALGRIND
502  pcretest_CFLAGS += $(VALGRIND_CFLAGS)  pcretest_CFLAGS += $(VALGRIND_CFLAGS)
503  endif # WITH_VALGRIND  endif # WITH_VALGRIND
504    if WITH_GCOV
505    pcretest_CFLAGS += $(GCOV_CFLAGS)
506    pcretest_LDADD += $(GCOV_LIBS)
507    endif # WITH_GCOV
508    
509  if WITH_PCRE8  if WITH_PCRE8
510  TESTS += RunGrepTest  TESTS += RunGrepTest
511  dist_noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
512  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
513  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
514    pcregrep_CFLAGS = $(AM_CFLAGS)
515  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
516  pcregrep_LDADD += libpcre.la libpcreposix.la  pcregrep_LDADD += libpcre.la libpcreposix.la
517    if WITH_GCOV
518    pcregrep_CFLAGS += $(GCOV_CFLAGS)
519    pcregrep_LDADD += $(GCOV_LIBS)
520    endif # WITH_GCOV
521  endif # WITH_PCRE8  endif # WITH_PCRE8
522    
523  EXTRA_DIST += \  EXTRA_DIST += \
# Line 484  EXTRA_DIST += \ Line 566  EXTRA_DIST += \
566    testdata/testinput20 \    testdata/testinput20 \
567    testdata/testinput21 \    testdata/testinput21 \
568    testdata/testinput22 \    testdata/testinput22 \
569      testdata/testinput23 \
570      testdata/testinput24 \
571      testdata/testinput25 \
572      testdata/testinput26 \
573    testdata/testinputEBC \    testdata/testinputEBC \
574    testdata/testoutput1 \    testdata/testoutput1 \
575    testdata/testoutput2 \    testdata/testoutput2 \
# Line 495  EXTRA_DIST += \ Line 581  EXTRA_DIST += \
581    testdata/testoutput8 \    testdata/testoutput8 \
582    testdata/testoutput9 \    testdata/testoutput9 \
583    testdata/testoutput10 \    testdata/testoutput10 \
   testdata/testoutput11-16 \  
584    testdata/testoutput11-8 \    testdata/testoutput11-8 \
585      testdata/testoutput11-16 \
586      testdata/testoutput11-32 \
587    testdata/testoutput12 \    testdata/testoutput12 \
588    testdata/testoutput13 \    testdata/testoutput13 \
589    testdata/testoutput14 \    testdata/testoutput14 \
590    testdata/testoutput15 \    testdata/testoutput15 \
591    testdata/testoutput16 \    testdata/testoutput16 \
592    testdata/testoutput17 \    testdata/testoutput17 \
593    testdata/testoutput18 \    testdata/testoutput18-16 \
594      testdata/testoutput18-32 \
595    testdata/testoutput19 \    testdata/testoutput19 \
596    testdata/testoutput20 \    testdata/testoutput20 \
597    testdata/testoutput21 \    testdata/testoutput21-16 \
598    testdata/testoutput22 \    testdata/testoutput21-32 \
599      testdata/testoutput22-16 \
600      testdata/testoutput22-32 \
601      testdata/testoutput23 \
602      testdata/testoutput24 \
603      testdata/testoutput25 \
604      testdata/testoutput26 \
605    testdata/testoutputEBC \    testdata/testoutputEBC \
606    testdata/wintestinput3 \    testdata/wintestinput3 \
607    testdata/wintestoutput3 \    testdata/wintestoutput3 \
# Line 589  dist_man_MANS = \ Line 683  dist_man_MANS = \
683    doc/pcre_get_stringtable_entries.3 \    doc/pcre_get_stringtable_entries.3 \
684    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
685    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
686      doc/pcre_jit_exec.3 \
687    doc/pcre_jit_stack_alloc.3 \    doc/pcre_jit_stack_alloc.3 \
688    doc/pcre_jit_stack_free.3 \    doc/pcre_jit_stack_free.3 \
689    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
# Line 636  install-data-hook: Line 731  install-data-hook:
731          ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre16_get_stringtable_entries.3          ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre16_get_stringtable_entries.3
732          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3
733          ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre16_get_substring_list.3          ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre16_get_substring_list.3
734            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre16_jit_exec.3
735          ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre16_jit_stack_alloc.3          ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre16_jit_stack_alloc.3
736          ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre16_jit_stack_free.3          ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre16_jit_stack_free.3
737          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre16_maketables.3          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre16_maketables.3
# Line 661  install-data-hook: Line 757  install-data-hook:
757          ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre32_get_stringtable_entries.3          ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre32_get_stringtable_entries.3
758          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3
759          ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre32_get_substring_list.3          ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre32_get_substring_list.3
760            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre32_jit_exec.3
761          ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre32_jit_stack_alloc.3          ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre32_jit_stack_alloc.3
762          ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre32_jit_stack_free.3          ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre32_jit_stack_free.3
763          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3
# Line 677  if WITH_PCRE_CPP Line 774  if WITH_PCRE_CPP
774  man_MANS = $(pcrecpp_man)  man_MANS = $(pcrecpp_man)
775  endif  endif
776    
777    # gcov/lcov code coverage reporting
778    
779    if WITH_GCOV
780    
781    # Coverage reporting targets:
782    #
783    # coverage: Create a coverage report from 'make check'
784    # coverage-baseline: Capture baseline coverage information
785    # coverage-reset: This zeros the coverage counters only
786    # coverage-report: This creates the coverage report only
787    # coverage-clean-report: This removes the generated coverage report
788    #   without cleaning the coverage data itself
789    # coverage-clean-data: This removes the captured coverage data without
790    #   removing the coverage files created at compile time (*.gcno)
791    # coverage-clean: This cleans all coverage data including the generated
792    #   coverage report.
793    
794    COVERAGE_TEST_NAME = $(PACKAGE)
795    COVERAGE_NAME = $(PACKAGE)-$(VERSION)
796    COVERAGE_OUTPUT_FILE = $(COVERAGE_NAME)-coverage.info
797    COVERAGE_OUTPUT_DIR = $(COVERAGE_NAME)-coverage
798    COVERAGE_LCOV_EXTRA_FLAGS =
799    COVERAGE_GENHTML_EXTRA_FLAGS =
800    
801    coverage_quiet = $(coverage_quiet_$(V))
802    coverage_quiet_ = $(coverage_quiet_$(AM_DEFAULT_VERBOSITY))
803    coverage_quiet_0 = --quiet
804    
805    coverage-check: all
806            -$(MAKE) $(AM_MAKEFLAGS) -k check
807    
808    coverage-baseline:
809            $(LCOV) $(coverage_quiet) \
810                    --directory $(top_builddir) \
811                    --output-file "$(COVERAGE_OUTPUT_FILE)" \
812                    --capture \
813                    --initial
814    
815    coverage-report:
816            $(LCOV) $(coverage_quiet) \
817                    --directory $(top_builddir) \
818                    --capture \
819                    --output-file "$(COVERAGE_OUTPUT_FILE).tmp" \
820                    --test-name "$(COVERAGE_TEST_NAME)" \
821                    --no-checksum \
822                    --compat-libtool \
823                    $(COVERAGE_LCOV_EXTRA_FLAGS)
824            $(LCOV) $(coverage_quiet) \
825                    --directory $(top_builddir) \
826                    --output-file "$(COVERAGE_OUTPUT_FILE)" \
827                    --remove "$(COVERAGE_OUTPUT_FILE).tmp" \
828                    "/tmp/*" \
829                    "/usr/include/*" \
830                    "$(includedir)/*"
831            -@rm -f "$(COVERAGE_OUTPUT_FILE).tmp"
832            LANG=C $(GENHTML) $(coverage_quiet) \
833                    --prefix $(top_builddir) \
834                    --output-directory "$(COVERAGE_OUTPUT_DIR)" \
835                    --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
836                    --show-details "$(COVERAGE_OUTPUT_FILE)" \
837                    --legend \
838                    $(COVERAGE_GENHTML_EXTRA_FLAGS)
839            @echo "Code coverage report written to file://$(abs_builddir)/$(COVERAGE_OUTPUT_DIR)/index.html"
840    
841    coverage-reset:
842            -$(LCOV) $(coverage_quiet) --zerocounters --directory $(top_builddir)
843    
844    coverage-clean-report:
845            -rm -f "$(COVERAGE_OUTPUT_FILE)" "$(COVERAGE_OUTPUT_FILE).tmp"
846            -rm -rf "$(COVERAGE_OUTPUT_DIR)"
847    
848    coverage-clean-data:
849            -find $(top_builddir) -name "*.gcda" -delete
850    
851    coverage-clean: coverage-reset coverage-clean-report coverage-clean-data
852            -find $(top_builddir) -name "*.gcno" -delete
853    
854    coverage-distclean: coverage-clean
855    
856    coverage: coverage-reset coverage-baseline coverage-check coverage-report
857    clean-local: coverage-clean
858    distclean-local: coverage-distclean
859    
860    .PHONY: coverage coverage-baseline coverage-check coverage-report coverage-reset coverage-clean-report coverage-clean-data coverage-clean coverage-distclean
861    
862    else
863    
864    coverage:
865            @echo "Configuring with --enable-coverage required to generate code coverage report."
866    
867    endif # WITH_GCOV
868    
869  ## CMake support  ## CMake support
870    
871  EXTRA_DIST += \  EXTRA_DIST += \

Legend:
Removed from v.1151  
changed lines
  Added in v.1235

  ViewVC Help
Powered by ViewVC 1.1.5