/[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 1055 by chpe, Tue Oct 16 15:53:30 2012 UTC revision 1225 by ph10, Sat Nov 24 11:29:45 2012 UTC
# Line 36  dist_html_DATA = \ Line 36  dist_html_DATA = \
36    doc/html/pcre_get_stringtable_entries.html \    doc/html/pcre_get_stringtable_entries.html \
37    doc/html/pcre_get_substring.html \    doc/html/pcre_get_substring.html \
38    doc/html/pcre_get_substring_list.html \    doc/html/pcre_get_substring_list.html \
39      doc/html/pcre_jit_exec.html \
40    doc/html/pcre_jit_stack_alloc.html \    doc/html/pcre_jit_stack_alloc.html \
41    doc/html/pcre_jit_stack_free.html \    doc/html/pcre_jit_stack_free.html \
42    doc/html/pcre_maketables.html \    doc/html/pcre_maketables.html \
# Line 100  EXTRA_DIST = Line 101  EXTRA_DIST =
101    
102  # These files contain additional m4 macros that are used by autoconf.  # These files contain additional m4 macros that are used by autoconf.
103  EXTRA_DIST += \  EXTRA_DIST += \
104    m4/ax_pthread.m4    m4/ax_pthread.m4 m4/pcre_visibility.m4
105    
106  # These files contain maintenance information  # These files contain maintenance information
107  EXTRA_DIST += \  EXTRA_DIST += \
# Line 132  EXTRA_DIST += \ Line 133  EXTRA_DIST += \
133    pcre.h.generic \    pcre.h.generic \
134    config.h.generic    config.h.generic
135    
136  pcre.h.generic: configure.ac  # The only difference between pcre.h.in and pcre.h is the setting of the PCRE
137    # version number. Therefore, we can create the generic version just by copying.
138    pcre.h.generic: pcre.h.in configure.ac
139          rm -f $@          rm -f $@
140          cp -p pcre.h $@          cp -p pcre.h $@
141    
142  MAINTAINERCLEANFILES += pcre.h.generic  # It is more complicated for config.h.generic. We need the version that results
143    # from a default configuration. We can get this by doing a configure in a
144    # temporary directory. However, some trickery is needed,
145    # because the source directory may already be configured. If you
146    # just try running configure in a new directory, it complains. For this reason,
147    # we move config.status out of the way while doing the default configuration.
148    # The resulting config.h is munged by perl to put #ifdefs round any #defines
149    # and to get rid of any gcc-specific visibility settings. Make sure that
150    # 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(/^#define\s(?!PACKAGE)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$blank=0;}' \
164              -e 'else {if(/^\s*$$/){print unless $$blank; $$blank=1;} else{print;$$blank=0;}}' \
165              _generic/config.h >$@
166            rm -rf _generic
167    
168    MAINTAINERCLEANFILES += pcre.h.generic config.h.generic
169    
170  # 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
171  # it is generated from pcre.h.in.  # it is generated from pcre.h.in.
# Line 188  BUILT_SOURCES = pcre_chartables.c Line 217  BUILT_SOURCES = pcre_chartables.c
217  # Build the 8 bit library if it is enabled.  # Build the 8 bit library if it is enabled.
218  if WITH_PCRE8  if WITH_PCRE8
219  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
220    
221  libpcre_la_SOURCES = \  libpcre_la_SOURCES = \
222    pcre_byte_order.c \    pcre_byte_order.c \
223    pcre_compile.c \    pcre_compile.c \
# Line 212  libpcre_la_SOURCES = \ Line 242  libpcre_la_SOURCES = \
242    pcre_xclass.c \    pcre_xclass.c \
243    ucp.h    ucp.h
244    
245    libpcre_la_CFLAGS = \
246      $(VISIBILITY_CFLAGS) \
247      $(AM_CFLAGS)
248    
249    libpcre_la_LIBADD =
250    
251  ## 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.
252  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
253    pcre_chartables.c    pcre_chartables.c
# Line 245  libpcre16_la_SOURCES = \ Line 281  libpcre16_la_SOURCES = \
281    pcre16_version.c \    pcre16_version.c \
282    pcre16_xclass.c    pcre16_xclass.c
283    
284    libpcre16_la_CFLAGS = \
285      $(VISIBILITY_CFLAGS) \
286      $(AM_CFLAGS)
287    
288    libpcre16_la_LIBADD =
289    
290  ## 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.
291  nodist_libpcre16_la_SOURCES = \  nodist_libpcre16_la_SOURCES = \
292    pcre_chartables.c    pcre_chartables.c
# Line 278  libpcre32_la_SOURCES = \ Line 320  libpcre32_la_SOURCES = \
320    pcre32_version.c \    pcre32_version.c \
321    pcre32_xclass.c    pcre32_xclass.c
322    
323    libpcre32_la_CFLAGS = \
324      $(VISIBILITY_CFLAGS) \
325      $(AM_CFLAGS)
326    
327    libpcre32_la_LIBADD =
328    
329  ## 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.
330  nodist_libpcre32_la_SOURCES = \  nodist_libpcre32_la_SOURCES = \
331    pcre_chartables.c    pcre_chartables.c
# Line 303  EXTRA_DIST += \ Line 351  EXTRA_DIST += \
351    sljit/sljitNativePPC_32.c \    sljit/sljitNativePPC_32.c \
352    sljit/sljitNativePPC_64.c \    sljit/sljitNativePPC_64.c \
353    sljit/sljitNativePPC_common.c \    sljit/sljitNativePPC_common.c \
354      sljit/sljitNativeSPARC_32.c \
355      sljit/sljitNativeSPARC_common.c \
356    sljit/sljitNativeX86_32.c \    sljit/sljitNativeX86_32.c \
357    sljit/sljitNativeX86_64.c \    sljit/sljitNativeX86_64.c \
358    sljit/sljitNativeX86_common.c \    sljit/sljitNativeX86_common.c \
# Line 318  if WITH_PCRE32 Line 368  if WITH_PCRE32
368  libpcre32_la_LDFLAGS = $(EXTRA_LIBPCRE32_LDFLAGS)  libpcre32_la_LDFLAGS = $(EXTRA_LIBPCRE32_LDFLAGS)
369  endif # WITH_PCRE32  endif # WITH_PCRE32
370    
371    if WITH_VALGRIND
372    if WITH_PCRE8
373    libpcre_la_CFLAGS += $(VALGRIND_CFLAGS)
374    endif # WITH_PCRE8
375    if WITH_PCRE16
376    libpcre16_la_CFLAGS += $(VALGRIND_CFLAGS)
377    endif # WITH_PCRE16
378    if WITH_PCRE32
379    libpcre32_la_CFLAGS += $(VALGRIND_CFLAGS)
380    endif # WITH_PCRE32
381    endif # WITH_VALGRIND
382    
383    if WITH_GCOV
384    if WITH_PCRE8
385    libpcre_la_CFLAGS += $(GCOV_CFLAGS)
386    endif # WITH_PCRE8
387    if WITH_PCRE16
388    libpcre16_la_CFLAGS += $(GCOV_CFLAGS)
389    endif # WITH_PCRE16
390    if WITH_PCRE32
391    libpcre32_la_CFLAGS += $(GCOV_CFLAGS)
392    endif # WITH_PCRE32
393    endif # WITH_GCOV
394    
395  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
396    
397  ## 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 325  if WITH_JIT Line 399  if WITH_JIT
399  TESTS += pcre_jit_test  TESTS += pcre_jit_test
400  noinst_PROGRAMS += pcre_jit_test  noinst_PROGRAMS += pcre_jit_test
401  pcre_jit_test_SOURCES = pcre_jit_test.c  pcre_jit_test_SOURCES = pcre_jit_test.c
402    pcre_jit_test_CFLAGS = $(AM_CFLAGS)
403  pcre_jit_test_LDADD =  pcre_jit_test_LDADD =
404  if WITH_PCRE8  if WITH_PCRE8
405  pcre_jit_test_LDADD += libpcre.la  pcre_jit_test_LDADD += libpcre.la
# Line 335  endif # WITH_PCRE16 Line 410  endif # WITH_PCRE16
410  if WITH_PCRE32  if WITH_PCRE32
411  pcre_jit_test_LDADD += libpcre32.la  pcre_jit_test_LDADD += libpcre32.la
412  endif # WITH_PCRE32  endif # WITH_PCRE32
413    if WITH_GCOV
414    pcre_jit_test_CFLAGS += $(GCOV_CFLAGS)
415    pcre_jit_test_LDADD += $(GCOV_LIBS)
416    endif # WITH_GCOV
417  endif # WITH_JIT  endif # WITH_JIT
418    
419  ## 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.
420  if WITH_PCRE8  if WITH_PCRE8
421    
422  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
423  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
424    pcreposix.c    pcreposix.c
425    libpcreposix_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS)
426  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
427  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
428    
429    if WITH_GCOV
430    libpcreposix_la_CFLAGS += $(GCOV_CFLAGS)
431    endif # WITH_GCOV
432    
433  endif # WITH_PCRE8  endif # WITH_PCRE8
434    
435  ## There's a C++ library as well.  ## There's a C++ library as well.
# Line 355  libpcrecpp_la_SOURCES = \ Line 441  libpcrecpp_la_SOURCES = \
441    pcrecpp.cc \    pcrecpp.cc \
442    pcre_scanner.cc \    pcre_scanner.cc \
443    pcre_stringpiece.cc    pcre_stringpiece.cc
444    libpcrecpp_la_CXXFLAGS = $(VISIBILITY_CXXFLAGS) $(AM_CXXFLAGS)
445  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
446  libpcrecpp_la_LIBADD = libpcre.la  libpcrecpp_la_LIBADD = libpcre.la
447    
448  TESTS += pcrecpp_unittest  TESTS += pcrecpp_unittest
449  noinst_PROGRAMS += pcrecpp_unittest  noinst_PROGRAMS += pcrecpp_unittest
450  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
451    pcrecpp_unittest_CXXFLAGS = $(AM_CXXFLAGS)
452  pcrecpp_unittest_LDADD = libpcrecpp.la  pcrecpp_unittest_LDADD = libpcrecpp.la
453    
454  TESTS += pcre_scanner_unittest  TESTS += pcre_scanner_unittest
455  noinst_PROGRAMS += pcre_scanner_unittest  noinst_PROGRAMS += pcre_scanner_unittest
456  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
457    pcre_scanner_unittest_CXXFLAGS = $(AM_CXXFLAGS)
458  pcre_scanner_unittest_LDADD = libpcrecpp.la  pcre_scanner_unittest_LDADD = libpcrecpp.la
459    
460  TESTS += pcre_stringpiece_unittest  TESTS += pcre_stringpiece_unittest
461  noinst_PROGRAMS += pcre_stringpiece_unittest  noinst_PROGRAMS += pcre_stringpiece_unittest
462  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
463    pcre_stringpiece_unittest_CXXFLAGS = $(AM_CXXFLAGS)
464  pcre_stringpiece_unittest_LDADD = libpcrecpp.la  pcre_stringpiece_unittest_LDADD = libpcrecpp.la
465    
466    if WITH_GCOV
467    libpcrecpp_la_CXXFLAGS += $(GCOV_CXXFLAGS)
468    pcrecpp_unittest_LDADD += $(GCOV_LIBS)
469    pcre_scanner_unittest_LDADD += $(GCOV_LIBS)
470    pcre_stringpiece_unittest_LDADD += $(GCOV_LIBS)
471    endif # WITH_GCOV
472    
473  endif # WITH_PCRE_CPP  endif # WITH_PCRE_CPP
474    
475  ## The main unit tests  ## The main unit tests
# Line 385  dist_noinst_SCRIPTS += RunTest Line 482  dist_noinst_SCRIPTS += RunTest
482  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
483  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
484  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
485    pcretest_CFLAGS = $(AM_CFLAGS)
486  pcretest_LDADD = $(LIBREADLINE)  pcretest_LDADD = $(LIBREADLINE)
487  if WITH_PCRE8  if WITH_PCRE8
488  pcretest_SOURCES += pcre_printint.c  pcretest_SOURCES += pcre_printint.c
# Line 398  if WITH_PCRE32 Line 496  if WITH_PCRE32
496  pcretest_SOURCES += pcre32_printint.c  pcretest_SOURCES += pcre32_printint.c
497  pcretest_LDADD += libpcre32.la  pcretest_LDADD += libpcre32.la
498  endif # WITH_PCRE32  endif # WITH_PCRE32
499    if WITH_VALGRIND
500    pcretest_CFLAGS += $(VALGRIND_CFLAGS)
501    endif # WITH_VALGRIND
502    if WITH_GCOV
503    pcretest_CFLAGS += $(GCOV_CFLAGS)
504    pcretest_LDADD += $(GCOV_LIBS)
505    endif # WITH_GCOV
506    
507  if WITH_PCRE8  if WITH_PCRE8
508  TESTS += RunGrepTest  TESTS += RunGrepTest
509  dist_noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
510  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
511  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
512    pcregrep_CFLAGS = $(AM_CFLAGS)
513  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
514  pcregrep_LDADD += libpcre.la libpcreposix.la  pcregrep_LDADD += libpcre.la libpcreposix.la
515    if WITH_GCOV
516    pcregrep_CFLAGS += $(GCOV_CFLAGS)
517    pcregrep_LDADD += $(GCOV_LIBS)
518    endif # WITH_GCOV
519  endif # WITH_PCRE8  endif # WITH_PCRE8
520    
521  EXTRA_DIST += \  EXTRA_DIST += \
# Line 454  EXTRA_DIST += \ Line 564  EXTRA_DIST += \
564    testdata/testinput20 \    testdata/testinput20 \
565    testdata/testinput21 \    testdata/testinput21 \
566    testdata/testinput22 \    testdata/testinput22 \
567      testdata/testinput23 \
568      testdata/testinput24 \
569      testdata/testinput25 \
570      testdata/testinput26 \
571    testdata/testinputEBC \    testdata/testinputEBC \
572    testdata/testoutput1 \    testdata/testoutput1 \
573    testdata/testoutput2 \    testdata/testoutput2 \
# Line 465  EXTRA_DIST += \ Line 579  EXTRA_DIST += \
579    testdata/testoutput8 \    testdata/testoutput8 \
580    testdata/testoutput9 \    testdata/testoutput9 \
581    testdata/testoutput10 \    testdata/testoutput10 \
   testdata/testoutput11-16 \  
582    testdata/testoutput11-8 \    testdata/testoutput11-8 \
583      testdata/testoutput11-16 \
584      testdata/testoutput11-32 \
585    testdata/testoutput12 \    testdata/testoutput12 \
586    testdata/testoutput13 \    testdata/testoutput13 \
587    testdata/testoutput14 \    testdata/testoutput14 \
588    testdata/testoutput15 \    testdata/testoutput15 \
589    testdata/testoutput16 \    testdata/testoutput16 \
590    testdata/testoutput17 \    testdata/testoutput17 \
591    testdata/testoutput18 \    testdata/testoutput18-16 \
592      testdata/testoutput18-32 \
593    testdata/testoutput19 \    testdata/testoutput19 \
594    testdata/testoutput20 \    testdata/testoutput20 \
595    testdata/testoutput21 \    testdata/testoutput21-16 \
596    testdata/testoutput22 \    testdata/testoutput21-32 \
597      testdata/testoutput22-16 \
598      testdata/testoutput22-32 \
599      testdata/testoutput23 \
600      testdata/testoutput24 \
601      testdata/testoutput25 \
602      testdata/testoutput26 \
603    testdata/testoutputEBC \    testdata/testoutputEBC \
604    testdata/wintestinput3 \    testdata/wintestinput3 \
605    testdata/wintestoutput3 \    testdata/wintestoutput3 \
# Line 559  dist_man_MANS = \ Line 681  dist_man_MANS = \
681    doc/pcre_get_stringtable_entries.3 \    doc/pcre_get_stringtable_entries.3 \
682    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
683    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
684      doc/pcre_jit_exec.3 \
685    doc/pcre_jit_stack_alloc.3 \    doc/pcre_jit_stack_alloc.3 \
686    doc/pcre_jit_stack_free.3 \    doc/pcre_jit_stack_free.3 \
687    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
# Line 606  install-data-hook: Line 729  install-data-hook:
729          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
730          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3
731          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
732            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre16_jit_exec.3
733          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
734          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
735          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre16_maketables.3          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre16_maketables.3
# Line 631  install-data-hook: Line 755  install-data-hook:
755          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
756          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3
757          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
758            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre32_jit_exec.3
759          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
760          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
761          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3
# Line 647  if WITH_PCRE_CPP Line 772  if WITH_PCRE_CPP
772  man_MANS = $(pcrecpp_man)  man_MANS = $(pcrecpp_man)
773  endif  endif
774    
775    # gcov/lcov code coverage reporting
776    
777    if WITH_GCOV
778    
779    # Coverage reporting targets:
780    #
781    # coverage: Create a coverage report from 'make check'
782    # coverage-baseline: Capture baseline coverage information
783    # coverage-reset: This zeros the coverage counters only
784    # coverage-report: This creates the coverage report only
785    # coverage-clean-report: This removes the generated coverage report
786    #   without cleaning the coverage data itself
787    # coverage-clean-data: This removes the captured coverage data without
788    #   removing the coverage files created at compile time (*.gcno)
789    # coverage-clean: This cleans all coverage data including the generated
790    #   coverage report.
791    
792    COVERAGE_TEST_NAME = $(PACKAGE)
793    COVERAGE_NAME = $(PACKAGE)-$(VERSION)
794    COVERAGE_OUTPUT_FILE = $(COVERAGE_NAME)-coverage.info
795    COVERAGE_OUTPUT_DIR = $(COVERAGE_NAME)-coverage
796    COVERAGE_LCOV_EXTRA_FLAGS =
797    COVERAGE_GENHTML_EXTRA_FLAGS =
798    
799    coverage_quiet = $(coverage_quiet_$(V))
800    coverage_quiet_ = $(coverage_quiet_$(AM_DEFAULT_VERBOSITY))
801    coverage_quiet_0 = --quiet
802    
803    coverage-check: all
804            -$(MAKE) $(AM_MAKEFLAGS) -k check
805    
806    coverage-baseline:
807            $(LCOV) $(coverage_quiet) \
808                    --directory $(top_builddir) \
809                    --output-file "$(COVERAGE_OUTPUT_FILE)" \
810                    --capture \
811                    --initial
812    
813    coverage-report:
814            $(LCOV) $(coverage_quiet) \
815                    --directory $(top_builddir) \
816                    --capture \
817                    --output-file "$(COVERAGE_OUTPUT_FILE).tmp" \
818                    --test-name "$(COVERAGE_TEST_NAME)" \
819                    --no-checksum \
820                    --compat-libtool \
821                    $(COVERAGE_LCOV_EXTRA_FLAGS)
822            $(LCOV) $(coverage_quiet) \
823                    --directory $(top_builddir) \
824                    --output-file "$(COVERAGE_OUTPUT_FILE)" \
825                    --remove "$(COVERAGE_OUTPUT_FILE).tmp" \
826                    "/tmp/*" \
827                    "/usr/include/*" \
828                    "$(includedir)/*"
829            -@rm -f "$(COVERAGE_OUTPUT_FILE).tmp"
830            LANG=C $(GENHTML) $(coverage_quiet) \
831                    --prefix $(top_builddir) \
832                    --output-directory "$(COVERAGE_OUTPUT_DIR)" \
833                    --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
834                    --show-details "$(COVERAGE_OUTPUT_FILE)" \
835                    --legend \
836                    $(COVERAGE_GENHTML_EXTRA_FLAGS)
837            @echo "Code coverage report written to file://$(abs_builddir)/$(COVERAGE_OUTPUT_DIR)/index.html"
838    
839    coverage-reset:
840            -$(LCOV) $(coverage_quiet) --zerocounters --directory $(top_builddir)
841    
842    coverage-clean-report:
843            -rm -f "$(COVERAGE_OUTPUT_FILE)" "$(COVERAGE_OUTPUT_FILE).tmp"
844            -rm -rf "$(COVERAGE_OUTPUT_DIR)"
845    
846    coverage-clean-data:
847            -find $(top_builddir) -name "*.gcda" -delete
848    
849    coverage-clean: coverage-reset coverage-clean-report coverage-clean-data
850            -find $(top_builddir) -name "*.gcno" -delete
851    
852    coverage-distclean: coverage-clean
853    
854    coverage: coverage-reset coverage-baseline coverage-check coverage-report
855    clean-local: coverage-clean
856    distclean-local: coverage-distclean
857    
858    .PHONY: coverage coverage-baseline coverage-check coverage-report coverage-reset coverage-clean-report coverage-clean-data coverage-clean coverage-distclean
859    
860    else
861    
862    coverage:
863            @echo "Configuring with --enable-coverage required to generate code coverage report."
864    
865    endif # WITH_GCOV
866    
867  ## CMake support  ## CMake support
868    
869  EXTRA_DIST += \  EXTRA_DIST += \

Legend:
Removed from v.1055  
changed lines
  Added in v.1225

  ViewVC Help
Powered by ViewVC 1.1.5