/[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 1230 by ph10, Fri Dec 7 10:22:16 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. We can get this by doing a configure in a
142    # temporary directory. However, some trickery is needed,
143    # because the source directory may already be configured. If you
144    # just try running configure in a new directory, it complains. For this reason,
145    # we move config.status out of the way while doing the default configuration.
146    # The resulting config.h is munged by perl to put #ifdefs round any #defines
147    # and to get rid of any gcc-specific visibility settings. Make sure that
148    # PCRE_EXP_DEFN is unset (in case it has visibility settings).
149    config.h.generic: configure.ac
150            rm -rf $@ _generic
151            mkdir _generic
152            cs=$(srcdir)/config.status; test ! -f $$cs || mv -f $$cs $$cs.aside
153            cd _generic && $(abs_top_srcdir)/configure || :
154            cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs
155            test -f _generic/config.h
156            perl -n \
157              -e 'BEGIN{$$blank=0;}' \
158              -e 'if(/PCRE_EXP_DEFN/){print"/* #undef PCRE_EXP_DEFN */\n";$$blank=0;next;}' \
159              -e 'if(/to make a symbol visible/){next;}' \
160              -e 'if(/__attribute__ \(\(visibility/){next;}' \
161              -e 'if(/^#define\s(?!PACKAGE)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$blank=0;}' \
162              -e 'else {if(/^\s*$$/){print unless $$blank; $$blank=1;} else{print;$$blank=0;}}' \
163              _generic/config.h >$@
164            rm -rf _generic
165    
166    MAINTAINERCLEANFILES += pcre.h.generic config.h.generic
167    
168  # 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
169  # it is generated from pcre.h.in.  # it is generated from pcre.h.in.
# Line 188  BUILT_SOURCES = pcre_chartables.c Line 215  BUILT_SOURCES = pcre_chartables.c
215  # Build the 8 bit library if it is enabled.  # Build the 8 bit library if it is enabled.
216  if WITH_PCRE8  if WITH_PCRE8
217  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
218    
219  libpcre_la_SOURCES = \  libpcre_la_SOURCES = \
220    pcre_byte_order.c \    pcre_byte_order.c \
221    pcre_compile.c \    pcre_compile.c \
# Line 213  libpcre_la_SOURCES = \ Line 241  libpcre_la_SOURCES = \
241    ucp.h    ucp.h
242    
243  libpcre_la_CFLAGS = \  libpcre_la_CFLAGS = \
244      $(VISIBILITY_CFLAGS) \
245    $(AM_CFLAGS)    $(AM_CFLAGS)
246    
247  libpcre_la_LIBADD =  libpcre_la_LIBADD =
# Line 251  libpcre16_la_SOURCES = \ Line 280  libpcre16_la_SOURCES = \
280    pcre16_xclass.c    pcre16_xclass.c
281    
282  libpcre16_la_CFLAGS = \  libpcre16_la_CFLAGS = \
283      $(VISIBILITY_CFLAGS) \
284    $(AM_CFLAGS)    $(AM_CFLAGS)
285    
286  libpcre16_la_LIBADD =  libpcre16_la_LIBADD =
# Line 289  libpcre32_la_SOURCES = \ Line 319  libpcre32_la_SOURCES = \
319    pcre32_xclass.c    pcre32_xclass.c
320    
321  libpcre32_la_CFLAGS = \  libpcre32_la_CFLAGS = \
322      $(VISIBILITY_CFLAGS) \
323    $(AM_CFLAGS)    $(AM_CFLAGS)
324    
325  libpcre32_la_LIBADD =  libpcre32_la_LIBADD =
326    
327  ## 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 349  EXTRA_DIST += \
349    sljit/sljitNativePPC_32.c \    sljit/sljitNativePPC_32.c \
350    sljit/sljitNativePPC_64.c \    sljit/sljitNativePPC_64.c \
351    sljit/sljitNativePPC_common.c \    sljit/sljitNativePPC_common.c \
352      sljit/sljitNativeSPARC_32.c \
353      sljit/sljitNativeSPARC_common.c \
354    sljit/sljitNativeX86_32.c \    sljit/sljitNativeX86_32.c \
355    sljit/sljitNativeX86_64.c \    sljit/sljitNativeX86_64.c \
356    sljit/sljitNativeX86_common.c \    sljit/sljitNativeX86_common.c \
# Line 344  libpcre32_la_CFLAGS += $(VALGRIND_CFLAGS Line 378  libpcre32_la_CFLAGS += $(VALGRIND_CFLAGS
378  endif # WITH_PCRE32  endif # WITH_PCRE32
379  endif # WITH_VALGRIND  endif # WITH_VALGRIND
380    
381    if WITH_GCOV
382    if WITH_PCRE8
383    libpcre_la_CFLAGS += $(GCOV_CFLAGS)
384    endif # WITH_PCRE8
385    if WITH_PCRE16
386    libpcre16_la_CFLAGS += $(GCOV_CFLAGS)
387    endif # WITH_PCRE16
388    if WITH_PCRE32
389    libpcre32_la_CFLAGS += $(GCOV_CFLAGS)
390    endif # WITH_PCRE32
391    endif # WITH_GCOV
392    
393  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
394    
395  ## 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 397  if WITH_JIT
397  TESTS += pcre_jit_test  TESTS += pcre_jit_test
398  noinst_PROGRAMS += pcre_jit_test  noinst_PROGRAMS += pcre_jit_test
399  pcre_jit_test_SOURCES = pcre_jit_test.c  pcre_jit_test_SOURCES = pcre_jit_test.c
400    pcre_jit_test_CFLAGS = $(AM_CFLAGS)
401  pcre_jit_test_LDADD =  pcre_jit_test_LDADD =
402  if WITH_PCRE8  if WITH_PCRE8
403  pcre_jit_test_LDADD += libpcre.la  pcre_jit_test_LDADD += libpcre.la
# Line 361  endif # WITH_PCRE16 Line 408  endif # WITH_PCRE16
408  if WITH_PCRE32  if WITH_PCRE32
409  pcre_jit_test_LDADD += libpcre32.la  pcre_jit_test_LDADD += libpcre32.la
410  endif # WITH_PCRE32  endif # WITH_PCRE32
411    if WITH_GCOV
412    pcre_jit_test_CFLAGS += $(GCOV_CFLAGS)
413    pcre_jit_test_LDADD += $(GCOV_LIBS)
414    endif # WITH_GCOV
415  endif # WITH_JIT  endif # WITH_JIT
416    
417  ## 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.
418  if WITH_PCRE8  if WITH_PCRE8
419    
420  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
421  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
422    pcreposix.c    pcreposix.c
423    libpcreposix_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS)
424  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
425  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
426    
427    if WITH_GCOV
428    libpcreposix_la_CFLAGS += $(GCOV_CFLAGS)
429    endif # WITH_GCOV
430    
431  endif # WITH_PCRE8  endif # WITH_PCRE8
432    
433  ## There's a C++ library as well.  ## There's a C++ library as well.
# Line 381  libpcrecpp_la_SOURCES = \ Line 439  libpcrecpp_la_SOURCES = \
439    pcrecpp.cc \    pcrecpp.cc \
440    pcre_scanner.cc \    pcre_scanner.cc \
441    pcre_stringpiece.cc    pcre_stringpiece.cc
442    libpcrecpp_la_CXXFLAGS = $(VISIBILITY_CXXFLAGS) $(AM_CXXFLAGS)
443  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
444  libpcrecpp_la_LIBADD = libpcre.la  libpcrecpp_la_LIBADD = libpcre.la
445    
446  TESTS += pcrecpp_unittest  TESTS += pcrecpp_unittest
447  noinst_PROGRAMS += pcrecpp_unittest  noinst_PROGRAMS += pcrecpp_unittest
448  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
449    pcrecpp_unittest_CXXFLAGS = $(AM_CXXFLAGS)
450  pcrecpp_unittest_LDADD = libpcrecpp.la  pcrecpp_unittest_LDADD = libpcrecpp.la
451    
452  TESTS += pcre_scanner_unittest  TESTS += pcre_scanner_unittest
453  noinst_PROGRAMS += pcre_scanner_unittest  noinst_PROGRAMS += pcre_scanner_unittest
454  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
455    pcre_scanner_unittest_CXXFLAGS = $(AM_CXXFLAGS)
456  pcre_scanner_unittest_LDADD = libpcrecpp.la  pcre_scanner_unittest_LDADD = libpcrecpp.la
457    
458  TESTS += pcre_stringpiece_unittest  TESTS += pcre_stringpiece_unittest
459  noinst_PROGRAMS += pcre_stringpiece_unittest  noinst_PROGRAMS += pcre_stringpiece_unittest
460  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
461    pcre_stringpiece_unittest_CXXFLAGS = $(AM_CXXFLAGS)
462  pcre_stringpiece_unittest_LDADD = libpcrecpp.la  pcre_stringpiece_unittest_LDADD = libpcrecpp.la
463    
464    if WITH_GCOV
465    libpcrecpp_la_CXXFLAGS += $(GCOV_CXXFLAGS)
466    pcrecpp_unittest_LDADD += $(GCOV_LIBS)
467    pcre_scanner_unittest_LDADD += $(GCOV_LIBS)
468    pcre_stringpiece_unittest_LDADD += $(GCOV_LIBS)
469    endif # WITH_GCOV
470    
471  endif # WITH_PCRE_CPP  endif # WITH_PCRE_CPP
472    
473  ## The main unit tests  ## The main unit tests
# Line 428  endif # WITH_PCRE32 Line 497  endif # WITH_PCRE32
497  if WITH_VALGRIND  if WITH_VALGRIND
498  pcretest_CFLAGS += $(VALGRIND_CFLAGS)  pcretest_CFLAGS += $(VALGRIND_CFLAGS)
499  endif # WITH_VALGRIND  endif # WITH_VALGRIND
500    if WITH_GCOV
501    pcretest_CFLAGS += $(GCOV_CFLAGS)
502    pcretest_LDADD += $(GCOV_LIBS)
503    endif # WITH_GCOV
504    
505  if WITH_PCRE8  if WITH_PCRE8
506  TESTS += RunGrepTest  TESTS += RunGrepTest
507  dist_noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
508  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
509  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
510    pcregrep_CFLAGS = $(AM_CFLAGS)
511  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
512  pcregrep_LDADD += libpcre.la libpcreposix.la  pcregrep_LDADD += libpcre.la libpcreposix.la
513    if WITH_GCOV
514    pcregrep_CFLAGS += $(GCOV_CFLAGS)
515    pcregrep_LDADD += $(GCOV_LIBS)
516    endif # WITH_GCOV
517  endif # WITH_PCRE8  endif # WITH_PCRE8
518    
519  EXTRA_DIST += \  EXTRA_DIST += \
# Line 484  EXTRA_DIST += \ Line 562  EXTRA_DIST += \
562    testdata/testinput20 \    testdata/testinput20 \
563    testdata/testinput21 \    testdata/testinput21 \
564    testdata/testinput22 \    testdata/testinput22 \
565      testdata/testinput23 \
566      testdata/testinput24 \
567      testdata/testinput25 \
568      testdata/testinput26 \
569    testdata/testinputEBC \    testdata/testinputEBC \
570    testdata/testoutput1 \    testdata/testoutput1 \
571    testdata/testoutput2 \    testdata/testoutput2 \
# Line 495  EXTRA_DIST += \ Line 577  EXTRA_DIST += \
577    testdata/testoutput8 \    testdata/testoutput8 \
578    testdata/testoutput9 \    testdata/testoutput9 \
579    testdata/testoutput10 \    testdata/testoutput10 \
   testdata/testoutput11-16 \  
580    testdata/testoutput11-8 \    testdata/testoutput11-8 \
581      testdata/testoutput11-16 \
582      testdata/testoutput11-32 \
583    testdata/testoutput12 \    testdata/testoutput12 \
584    testdata/testoutput13 \    testdata/testoutput13 \
585    testdata/testoutput14 \    testdata/testoutput14 \
586    testdata/testoutput15 \    testdata/testoutput15 \
587    testdata/testoutput16 \    testdata/testoutput16 \
588    testdata/testoutput17 \    testdata/testoutput17 \
589    testdata/testoutput18 \    testdata/testoutput18-16 \
590      testdata/testoutput18-32 \
591    testdata/testoutput19 \    testdata/testoutput19 \
592    testdata/testoutput20 \    testdata/testoutput20 \
593    testdata/testoutput21 \    testdata/testoutput21-16 \
594    testdata/testoutput22 \    testdata/testoutput21-32 \
595      testdata/testoutput22-16 \
596      testdata/testoutput22-32 \
597      testdata/testoutput23 \
598      testdata/testoutput24 \
599      testdata/testoutput25 \
600      testdata/testoutput26 \
601    testdata/testoutputEBC \    testdata/testoutputEBC \
602    testdata/wintestinput3 \    testdata/wintestinput3 \
603    testdata/wintestoutput3 \    testdata/wintestoutput3 \
# Line 589  dist_man_MANS = \ Line 679  dist_man_MANS = \
679    doc/pcre_get_stringtable_entries.3 \    doc/pcre_get_stringtable_entries.3 \
680    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
681    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
682      doc/pcre_jit_exec.3 \
683    doc/pcre_jit_stack_alloc.3 \    doc/pcre_jit_stack_alloc.3 \
684    doc/pcre_jit_stack_free.3 \    doc/pcre_jit_stack_free.3 \
685    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
# Line 636  install-data-hook: Line 727  install-data-hook:
727          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
728          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3
729          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
730            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre16_jit_exec.3
731          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
732          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
733          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 753  install-data-hook:
753          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
754          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3
755          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
756            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre32_jit_exec.3
757          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
758          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
759          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 770  if WITH_PCRE_CPP
770  man_MANS = $(pcrecpp_man)  man_MANS = $(pcrecpp_man)
771  endif  endif
772    
773    # gcov/lcov code coverage reporting
774    
775    if WITH_GCOV
776    
777    # Coverage reporting targets:
778    #
779    # coverage: Create a coverage report from 'make check'
780    # coverage-baseline: Capture baseline coverage information
781    # coverage-reset: This zeros the coverage counters only
782    # coverage-report: This creates the coverage report only
783    # coverage-clean-report: This removes the generated coverage report
784    #   without cleaning the coverage data itself
785    # coverage-clean-data: This removes the captured coverage data without
786    #   removing the coverage files created at compile time (*.gcno)
787    # coverage-clean: This cleans all coverage data including the generated
788    #   coverage report.
789    
790    COVERAGE_TEST_NAME = $(PACKAGE)
791    COVERAGE_NAME = $(PACKAGE)-$(VERSION)
792    COVERAGE_OUTPUT_FILE = $(COVERAGE_NAME)-coverage.info
793    COVERAGE_OUTPUT_DIR = $(COVERAGE_NAME)-coverage
794    COVERAGE_LCOV_EXTRA_FLAGS =
795    COVERAGE_GENHTML_EXTRA_FLAGS =
796    
797    coverage_quiet = $(coverage_quiet_$(V))
798    coverage_quiet_ = $(coverage_quiet_$(AM_DEFAULT_VERBOSITY))
799    coverage_quiet_0 = --quiet
800    
801    coverage-check: all
802            -$(MAKE) $(AM_MAKEFLAGS) -k check
803    
804    coverage-baseline:
805            $(LCOV) $(coverage_quiet) \
806                    --directory $(top_builddir) \
807                    --output-file "$(COVERAGE_OUTPUT_FILE)" \
808                    --capture \
809                    --initial
810    
811    coverage-report:
812            $(LCOV) $(coverage_quiet) \
813                    --directory $(top_builddir) \
814                    --capture \
815                    --output-file "$(COVERAGE_OUTPUT_FILE).tmp" \
816                    --test-name "$(COVERAGE_TEST_NAME)" \
817                    --no-checksum \
818                    --compat-libtool \
819                    $(COVERAGE_LCOV_EXTRA_FLAGS)
820            $(LCOV) $(coverage_quiet) \
821                    --directory $(top_builddir) \
822                    --output-file "$(COVERAGE_OUTPUT_FILE)" \
823                    --remove "$(COVERAGE_OUTPUT_FILE).tmp" \
824                    "/tmp/*" \
825                    "/usr/include/*" \
826                    "$(includedir)/*"
827            -@rm -f "$(COVERAGE_OUTPUT_FILE).tmp"
828            LANG=C $(GENHTML) $(coverage_quiet) \
829                    --prefix $(top_builddir) \
830                    --output-directory "$(COVERAGE_OUTPUT_DIR)" \
831                    --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
832                    --show-details "$(COVERAGE_OUTPUT_FILE)" \
833                    --legend \
834                    $(COVERAGE_GENHTML_EXTRA_FLAGS)
835            @echo "Code coverage report written to file://$(abs_builddir)/$(COVERAGE_OUTPUT_DIR)/index.html"
836    
837    coverage-reset:
838            -$(LCOV) $(coverage_quiet) --zerocounters --directory $(top_builddir)
839    
840    coverage-clean-report:
841            -rm -f "$(COVERAGE_OUTPUT_FILE)" "$(COVERAGE_OUTPUT_FILE).tmp"
842            -rm -rf "$(COVERAGE_OUTPUT_DIR)"
843    
844    coverage-clean-data:
845            -find $(top_builddir) -name "*.gcda" -delete
846    
847    coverage-clean: coverage-reset coverage-clean-report coverage-clean-data
848            -find $(top_builddir) -name "*.gcno" -delete
849    
850    coverage-distclean: coverage-clean
851    
852    coverage: coverage-reset coverage-baseline coverage-check coverage-report
853    clean-local: coverage-clean
854    distclean-local: coverage-distclean
855    
856    .PHONY: coverage coverage-baseline coverage-check coverage-report coverage-reset coverage-clean-report coverage-clean-data coverage-clean coverage-distclean
857    
858    else
859    
860    coverage:
861            @echo "Configuring with --enable-coverage required to generate code coverage report."
862    
863    endif # WITH_GCOV
864    
865  ## CMake support  ## CMake support
866    
867  EXTRA_DIST += \  EXTRA_DIST += \

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

  ViewVC Help
Powered by ViewVC 1.1.5