/[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 980 by ph10, Mon Jun 18 16:47:14 2012 UTC revision 1158 by chpe, Mon Oct 22 19:43:50 2012 UTC
# Line 64  dist_html_DATA = \ Line 64  dist_html_DATA = \
64    doc/html/pcretest.html \    doc/html/pcretest.html \
65    doc/html/pcreunicode.html    doc/html/pcreunicode.html
66    
67    #   doc/html/pcre32.html \
68    #   doc/html/pcre_utf32_to_host_byte_order.html \
69    #
70    
71  pcrecpp_html = doc/html/pcrecpp.html  pcrecpp_html = doc/html/pcrecpp.html
72  dist_noinst_DATA = $(pcrecpp_html)  dist_noinst_DATA = $(pcrecpp_html)
73    
# Line 81  check_SCRIPTS = Line 85  check_SCRIPTS =
85  dist_noinst_SCRIPTS =  dist_noinst_SCRIPTS =
86    
87  # Some of the binaries we make are to be installed, and others are  # Some of the binaries we make are to be installed, and others are
88  # (non-user-visible) helper programs needed to build libpcre or libpcre16.  # (non-user-visible) helper programs needed to build libpcre, libpcre16
89    # or libpcre32.
90  bin_PROGRAMS =  bin_PROGRAMS =
91  noinst_PROGRAMS =  noinst_PROGRAMS =
92    
# Line 93  MAINTAINERCLEANFILES = Line 98  MAINTAINERCLEANFILES =
98  # the Autotools include by default.  # the Autotools include by default.
99  EXTRA_DIST =  EXTRA_DIST =
100    
101    # These files contain additional m4 macros that are used by autoconf.
102    EXTRA_DIST += \
103      m4/ax_pthread.m4
104    
105  # These files contain maintenance information  # These files contain maintenance information
106  EXTRA_DIST += \  EXTRA_DIST += \
107    doc/perltest.txt \    doc/perltest.txt \
108    NON-UNIX-USE \    NON-UNIX-USE \
109      NON-AUTOTOOLS-BUILD \
110    HACKING    HACKING
111    
112  # These files are used in the preparation of a release  # These files are used in the preparation of a release
# Line 202  libpcre_la_SOURCES = \ Line 212  libpcre_la_SOURCES = \
212    pcre_xclass.c \    pcre_xclass.c \
213    ucp.h    ucp.h
214    
215    libpcre_la_CFLAGS = \
216      $(AM_CFLAGS)
217    
218    libpcre_la_LIBADD =
219    
220  ## 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.
221  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
222    pcre_chartables.c    pcre_chartables.c
# Line 235  libpcre16_la_SOURCES = \ Line 250  libpcre16_la_SOURCES = \
250    pcre16_version.c \    pcre16_version.c \
251    pcre16_xclass.c    pcre16_xclass.c
252    
253    libpcre16_la_CFLAGS = \
254      $(AM_CFLAGS)
255    
256    libpcre16_la_LIBADD =
257    
258  ## 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.
259  nodist_libpcre16_la_SOURCES = \  nodist_libpcre16_la_SOURCES = \
260    pcre_chartables.c    pcre_chartables.c
261    
262  endif # WITH_PCRE16  endif # WITH_PCRE16
263    
264    # Build the 32 bit library if it is enabled.
265    if WITH_PCRE32
266    lib_LTLIBRARIES += libpcre32.la
267    libpcre32_la_SOURCES = \
268      pcre32_byte_order.c \
269      pcre32_chartables.c \
270      pcre32_compile.c \
271      pcre32_config.c \
272      pcre32_dfa_exec.c \
273      pcre32_exec.c \
274      pcre32_fullinfo.c \
275      pcre32_get.c \
276      pcre32_globals.c \
277      pcre32_jit_compile.c \
278      pcre32_maketables.c \
279      pcre32_newline.c \
280      pcre32_ord2utf32.c \
281      pcre32_refcount.c \
282      pcre32_string_utils.c \
283      pcre32_study.c \
284      pcre32_tables.c \
285      pcre32_ucd.c \
286      pcre32_utf32_utils.c \
287      pcre32_valid_utf32.c \
288      pcre32_version.c \
289      pcre32_xclass.c
290    
291    libpcre32_la_CFLAGS = \
292      $(AM_CFLAGS)
293    libpcre32_la_LIBADD =
294    
295    ## This file is generated as part of the building process, so don't distribute.
296    nodist_libpcre32_la_SOURCES = \
297      pcre_chartables.c
298    
299    endif # WITH_PCRE32
300    
301  # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,  # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,
302  # used unless --enable-rebuild-chartables is specified.  # used unless --enable-rebuild-chartables is specified.
303  EXTRA_DIST += pcre_chartables.c.dist  EXTRA_DIST += pcre_chartables.c.dist
# Line 271  endif # WITH_PCRE8 Line 328  endif # WITH_PCRE8
328  if WITH_PCRE16  if WITH_PCRE16
329  libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)  libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)
330  endif # WITH_PCRE16  endif # WITH_PCRE16
331    if WITH_PCRE32
332    libpcre32_la_LDFLAGS = $(EXTRA_LIBPCRE32_LDFLAGS)
333    endif # WITH_PCRE32
334    
335    if WITH_VALGRIND
336    if WITH_PCRE8
337    libpcre_la_CFLAGS += $(VALGRIND_CFLAGS)
338    endif # WITH_PCRE8
339    if WITH_PCRE16
340    libpcre16_la_CFLAGS += $(VALGRIND_CFLAGS)
341    endif # WITH_PCRE16
342    if WITH_PCRE32
343    libpcre32_la_CFLAGS += $(VALGRIND_CFLAGS)
344    endif # WITH_PCRE32
345    endif # WITH_VALGRIND
346    
347    if WITH_GCOV
348    if WITH_PCRE8
349    libpcre_la_CFLAGS += $(GCOV_CFLAGS)
350    endif # WITH_PCRE8
351    if WITH_PCRE16
352    libpcre16_la_CFLAGS += $(GCOV_CFLAGS)
353    endif # WITH_PCRE16
354    if WITH_PCRE32
355    libpcre32_la_CFLAGS += $(GCOV_CFLAGS)
356    endif # WITH_PCRE32
357    endif # WITH_GCOV
358    
359  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
360    
# Line 279  if WITH_JIT Line 363  if WITH_JIT
363  TESTS += pcre_jit_test  TESTS += pcre_jit_test
364  noinst_PROGRAMS += pcre_jit_test  noinst_PROGRAMS += pcre_jit_test
365  pcre_jit_test_SOURCES = pcre_jit_test.c  pcre_jit_test_SOURCES = pcre_jit_test.c
366    pcre_jit_test_CFLAGS = $(AM_CFLAGS)
367  pcre_jit_test_LDADD =  pcre_jit_test_LDADD =
368  if WITH_PCRE8  if WITH_PCRE8
369  pcre_jit_test_LDADD += libpcre.la  pcre_jit_test_LDADD += libpcre.la
# Line 286  endif # WITH_PCRE8 Line 371  endif # WITH_PCRE8
371  if WITH_PCRE16  if WITH_PCRE16
372  pcre_jit_test_LDADD += libpcre16.la  pcre_jit_test_LDADD += libpcre16.la
373  endif # WITH_PCRE16  endif # WITH_PCRE16
374    if WITH_PCRE32
375    pcre_jit_test_LDADD += libpcre32.la
376    endif # WITH_PCRE32
377    if WITH_GCOV
378    pcre_jit_test_CFLAGS += $(GCOV_CFLAGS)
379    pcre_jit_test_LDADD += $(GCOV_LIBS)
380    endif # WITH_GCOV
381  endif # WITH_JIT  endif # WITH_JIT
382    
383  ## 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.
384  if WITH_PCRE8  if WITH_PCRE8
385    
386  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
387  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
388    pcreposix.c    pcreposix.c
389    libpcreposix_la_CFLAGS = $(AM_CFLAGS)
390  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
391  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
392    
393    if WITH_GCOV
394    libpcreposix_la_CFLAGS += $(GCOV_CFLAGS)
395    endif # WITH_GCOV
396    
397  endif # WITH_PCRE8  endif # WITH_PCRE8
398    
399  ## There's a C++ library as well.  ## There's a C++ library as well.
# Line 306  libpcrecpp_la_SOURCES = \ Line 405  libpcrecpp_la_SOURCES = \
405    pcrecpp.cc \    pcrecpp.cc \
406    pcre_scanner.cc \    pcre_scanner.cc \
407    pcre_stringpiece.cc    pcre_stringpiece.cc
408    libpcrecpp_la_CXXFLAGS = $(AM_CXXFLAGS)
409  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
410  libpcrecpp_la_LIBADD = libpcre.la  libpcrecpp_la_LIBADD = libpcre.la
411    
412  TESTS += pcrecpp_unittest  TESTS += pcrecpp_unittest
413  noinst_PROGRAMS += pcrecpp_unittest  noinst_PROGRAMS += pcrecpp_unittest
414  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
415    pcrecpp_unittest_CXXFLAGS = $(AM_CXXFLAGS)
416  pcrecpp_unittest_LDADD = libpcrecpp.la  pcrecpp_unittest_LDADD = libpcrecpp.la
417    
418  TESTS += pcre_scanner_unittest  TESTS += pcre_scanner_unittest
419  noinst_PROGRAMS += pcre_scanner_unittest  noinst_PROGRAMS += pcre_scanner_unittest
420  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
421    pcre_scanner_unittest_CXXFLAGS = $(AM_CXXFLAGS)
422  pcre_scanner_unittest_LDADD = libpcrecpp.la  pcre_scanner_unittest_LDADD = libpcrecpp.la
423    
424  TESTS += pcre_stringpiece_unittest  TESTS += pcre_stringpiece_unittest
425  noinst_PROGRAMS += pcre_stringpiece_unittest  noinst_PROGRAMS += pcre_stringpiece_unittest
426  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
427    pcre_stringpiece_unittest_CXXFLAGS = $(AM_CXXFLAGS)
428  pcre_stringpiece_unittest_LDADD = libpcrecpp.la  pcre_stringpiece_unittest_LDADD = libpcrecpp.la
429    
430    if WITH_GCOV
431    libpcrecpp_la_CXXFLAGS += $(GCOV_CXXFLAGS)
432    pcrecpp_unittest_LDADD += $(GCOV_LIBS)
433    pcre_scanner_unittest_LDADD += $(GCOV_LIBS)
434    pcre_stringpiece_unittest_LDADD += $(GCOV_LIBS)
435    endif # WITH_GCOV
436    
437  endif # WITH_PCRE_CPP  endif # WITH_PCRE_CPP
438    
439  ## The main unit tests  ## The main unit tests
# Line 336  dist_noinst_SCRIPTS += RunTest Line 446  dist_noinst_SCRIPTS += RunTest
446  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
447  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
448  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
449    pcretest_CFLAGS = $(AM_CFLAGS)
450  pcretest_LDADD = $(LIBREADLINE)  pcretest_LDADD = $(LIBREADLINE)
451  if WITH_PCRE8  if WITH_PCRE8
452  pcretest_SOURCES += pcre_printint.c  pcretest_SOURCES += pcre_printint.c
# Line 345  if WITH_PCRE16 Line 456  if WITH_PCRE16
456  pcretest_SOURCES += pcre16_printint.c  pcretest_SOURCES += pcre16_printint.c
457  pcretest_LDADD += libpcre16.la  pcretest_LDADD += libpcre16.la
458  endif # WITH_PCRE16  endif # WITH_PCRE16
459    if WITH_PCRE32
460    pcretest_SOURCES += pcre32_printint.c
461    pcretest_LDADD += libpcre32.la
462    endif # WITH_PCRE32
463    if WITH_VALGRIND
464    pcretest_CFLAGS += $(VALGRIND_CFLAGS)
465    endif # WITH_VALGRIND
466    if WITH_GCOV
467    pcretest_CFLAGS += $(GCOV_CFLAGS)
468    pcretest_LDADD += $(GCOV_LIBS)
469    endif # WITH_GCOV
470    
471  if WITH_PCRE8  if WITH_PCRE8
472  TESTS += RunGrepTest  TESTS += RunGrepTest
473  dist_noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
474  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
475  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
476    pcregrep_CFLAGS = $(AM_CFLAGS)
477  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
478  pcregrep_LDADD += libpcre.la libpcreposix.la  pcregrep_LDADD += libpcre.la libpcreposix.la
479    if WITH_GCOV
480    pcregrep_CFLAGS += $(GCOV_CFLAGS)
481    pcregrep_LDADD += $(GCOV_LIBS)
482    endif # WITH_GCOV
483  endif # WITH_PCRE8  endif # WITH_PCRE8
484    
485  EXTRA_DIST += \  EXTRA_DIST += \
# Line 373  EXTRA_DIST += \ Line 500  EXTRA_DIST += \
500    testdata/saved16BE-2 \    testdata/saved16BE-2 \
501    testdata/saved16LE-1 \    testdata/saved16LE-1 \
502    testdata/saved16LE-2 \    testdata/saved16LE-2 \
503      testdata/saved32 \
504      testdata/saved32BE-1 \
505      testdata/saved32BE-2 \
506      testdata/saved32LE-1 \
507      testdata/saved32LE-2 \
508    testdata/saved8 \    testdata/saved8 \
509    testdata/testinput1 \    testdata/testinput1 \
510    testdata/testinput2 \    testdata/testinput2 \
# Line 396  EXTRA_DIST += \ Line 528  EXTRA_DIST += \
528    testdata/testinput20 \    testdata/testinput20 \
529    testdata/testinput21 \    testdata/testinput21 \
530    testdata/testinput22 \    testdata/testinput22 \
531      testdata/testinputEBC \
532    testdata/testoutput1 \    testdata/testoutput1 \
533    testdata/testoutput2 \    testdata/testoutput2 \
534    testdata/testoutput3 \    testdata/testoutput3 \
# Line 419  EXTRA_DIST += \ Line 552  EXTRA_DIST += \
552    testdata/testoutput20 \    testdata/testoutput20 \
553    testdata/testoutput21 \    testdata/testoutput21 \
554    testdata/testoutput22 \    testdata/testoutput22 \
555      testdata/testoutputEBC \
556    testdata/wintestinput3 \    testdata/wintestinput3 \
557    testdata/wintestoutput3 \    testdata/wintestoutput3 \
558    perltest.pl    perltest.pl
# Line 426  EXTRA_DIST += \ Line 560  EXTRA_DIST += \
560  CLEANFILES += \  CLEANFILES += \
561          testsavedregex \          testsavedregex \
562          teststderr \          teststderr \
563            testtemp* \
564          testtry \          testtry \
565          testNinput          testNinput
566    
# Line 469  pkgconfig_DATA = libpcre.pc libpcreposix Line 604  pkgconfig_DATA = libpcre.pc libpcreposix
604  if WITH_PCRE16  if WITH_PCRE16
605  pkgconfig_DATA += libpcre16.pc  pkgconfig_DATA += libpcre16.pc
606  endif  endif
607    if WITH_PCRE32
608    pkgconfig_DATA += libpcre32.pc
609    endif
610  if WITH_PCRE_CPP  if WITH_PCRE_CPP
611  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
612  endif  endif
# Line 476  endif Line 614  endif
614  dist_man_MANS = \  dist_man_MANS = \
615    doc/pcre.3 \    doc/pcre.3 \
616    doc/pcre16.3 \    doc/pcre16.3 \
617      doc/pcre32.3 \
618    doc/pcre-config.1 \    doc/pcre-config.1 \
619    doc/pcre_assign_jit_stack.3 \    doc/pcre_assign_jit_stack.3 \
620    doc/pcre_compile.3 \    doc/pcre_compile.3 \
# Line 501  dist_man_MANS = \ Line 640  dist_man_MANS = \
640    doc/pcre_refcount.3 \    doc/pcre_refcount.3 \
641    doc/pcre_study.3 \    doc/pcre_study.3 \
642    doc/pcre_utf16_to_host_byte_order.3 \    doc/pcre_utf16_to_host_byte_order.3 \
643      doc/pcre_utf32_to_host_byte_order.3 \
644    doc/pcre_version.3 \    doc/pcre_version.3 \
645    doc/pcreapi.3 \    doc/pcreapi.3 \
646    doc/pcrebuild.3 \    doc/pcrebuild.3 \
# Line 521  dist_man_MANS = \ Line 661  dist_man_MANS = \
661    doc/pcretest.1 \    doc/pcretest.1 \
662    doc/pcreunicode.3    doc/pcreunicode.3
663    
664  # Arrange for the per-function man pages to have 16-bit names as well.  # Arrange for the per-function man pages to have 16- and 32-bit names as well.
665  install-data-hook:  install-data-hook:
666          ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre16_assign_jit_stack.3          ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre16_assign_jit_stack.3
667          ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre16_compile.3          ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre16_compile.3
# Line 548  install-data-hook: Line 688  install-data-hook:
688          ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre16_study.3          ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre16_study.3
689          ln -sf pcre_utf16_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre16_utf16_to_host_byte_order.3          ln -sf pcre_utf16_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre16_utf16_to_host_byte_order.3
690          ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre16_version.3          ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre16_version.3
691            ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre32_assign_jit_stack.3
692            ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre32_compile.3
693            ln -sf pcre_compile2.3                   $(DESTDIR)$(man3dir)/pcre32_compile2.3
694            ln -sf pcre_config.3                     $(DESTDIR)$(man3dir)/pcre32_config.3
695            ln -sf pcre_copy_named_substring.3       $(DESTDIR)$(man3dir)/pcre32_copy_named_substring.3
696            ln -sf pcre_copy_substring.3             $(DESTDIR)$(man3dir)/pcre32_copy_substring.3
697            ln -sf pcre_dfa_exec.3                   $(DESTDIR)$(man3dir)/pcre32_dfa_exec.3
698            ln -sf pcre_exec.3                       $(DESTDIR)$(man3dir)/pcre32_exec.3
699            ln -sf pcre_free_study.3                 $(DESTDIR)$(man3dir)/pcre32_free_study.3
700            ln -sf pcre_free_substring.3             $(DESTDIR)$(man3dir)/pcre32_free_substring.3
701            ln -sf pcre_free_substring_list.3        $(DESTDIR)$(man3dir)/pcre32_free_substring_list.3
702            ln -sf pcre_fullinfo.3                   $(DESTDIR)$(man3dir)/pcre32_fullinfo.3
703            ln -sf pcre_get_named_substring.3        $(DESTDIR)$(man3dir)/pcre32_get_named_substring.3
704            ln -sf pcre_get_stringnumber.3           $(DESTDIR)$(man3dir)/pcre32_get_stringnumber.3
705            ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre32_get_stringtable_entries.3
706            ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3
707            ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre32_get_substring_list.3
708            ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre32_jit_stack_alloc.3
709            ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre32_jit_stack_free.3
710            ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3
711            ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_pattern_to_host_byte_order.3
712            ln -sf pcre_refcount.3                   $(DESTDIR)$(man3dir)/pcre32_refcount.3
713            ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre32_study.3
714            ln -sf pcre_utf32_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre32_utf32_to_host_byte_order.3
715            ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre32_version.3
716    
717  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
718  EXTRA_DIST += $(pcrecpp_man)  EXTRA_DIST += $(pcrecpp_man)
# Line 556  if WITH_PCRE_CPP Line 721  if WITH_PCRE_CPP
721  man_MANS = $(pcrecpp_man)  man_MANS = $(pcrecpp_man)
722  endif  endif
723    
724    # gcov/lcov code coverage reporting
725    
726    GCOV_NAME ?= $(PACKAGE)-$(VERSION)
727    GCOV_OUTPUT_FILE ?= $(GCOV_NAME)-coverage.info
728    GCOV_OUTPUT_DIR ?= $(GCOV_NAME)-coverage
729    GCOV_LCOV_FLAGS ?=
730    GCOV_GENHTML_FLAGS ?=
731    
732    gcov_quiet = $(gcov_quiet_$(V))
733    gcov_quiet_ = $(gcov_quiet_$(AM_DEFAULT_VERBOSITY))
734    gcov_quiet_0 = --quiet
735    
736    coverage-check: all
737            -$(MAKE) $(AM_MAKEFLAGS) -k check
738    
739    coverage-report:
740            $(LCOV) $(gcov_quiet) \
741                    --directory $(top_builddir) \
742                    --capture \
743                    --output-file "$(GCOV_OUTPUT_FILE).tmp" \
744                    --test-name "$(GCOV_NAME)" \
745                    --no-checksum \
746                    --compat-libtool \
747                    $(GCOV_LCOV_FLAGS)
748            $(LCOV) $(gcov_quiet) \
749                    --directory $(top_builddir) \
750                    --output-file "$(GCOV_OUTPUT_FILE)" \
751                    --remove "$(GCOV_OUTPUT_FILE).tmp" \
752                    "/tmp/*" \
753                    "/usr/include/*" \
754                    "$(includedir)/*"
755            -@rm -f "$(GCOV_OUTPUT_FILE).tmp"
756            LANG=C $(GENHTML) $(gcov_quiet) \
757                    --prefix $(top_builddir) \
758                    --output-directory "$(GCOV_OUTPUT_DIR)" \
759                    --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
760                    --show-details "$(GCOV_OUTPUT_FILE)" \
761                    --legend \
762                    $(GCOV_GENHTML_FLAGS)
763            @echo "Code coverage report written to file://$(abs_builddir)/$(GCOV_OUTPUT_DIR)/index.html"
764    
765    coverage-clean:
766            -$(LCOV) $(gcov_quiet) --zerocounters --directory $(top_builddir)
767            -rm -f "$(GCOV_OUTPUT_FILE)"
768            -rm -f "$(GCOV_OUTPUT_FILE).tmp"
769            -rm -rf "$(GCOV_NAME)"
770            -find $(top_builddir) -name '*.gcda' -o -name "*.gcov" -delete
771    
772    coverage: coverage-check coverage-report
773    clean-local: coverage-clean
774    distclean-local: coverage-clean
775    
776  ## CMake support  ## CMake support
777    
778  EXTRA_DIST += \  EXTRA_DIST += \

Legend:
Removed from v.980  
changed lines
  Added in v.1158

  ViewVC Help
Powered by ViewVC 1.1.5