1 # Makefile.in generated by automake 1.15 from Makefile.am.
2 # libasn1common/Makefile. Generated from Makefile.in by configure.
4 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
19 if test -z '$(MAKELEVEL)'; then \
21 elif test -n '$(MAKE_HOST)'; then \
23 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
29 am__make_running_with_option = \
30 case $${target_option-} in \
32 *) echo "am__make_running_with_option: internal error: invalid" \
33 "target option '$${target_option-}' specified" >&2; \
37 sane_makeflags=$$MAKEFLAGS; \
38 if $(am__is_gnu_make); then \
39 sane_makeflags=$$MFLAGS; \
44 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
45 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
51 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
53 for flg in $$sane_makeflags; do \
54 test $$skip_next = yes && { skip_next=no; continue; }; \
57 -*I) strip_trailopt 'I'; skip_next=yes;; \
58 -*I?*) strip_trailopt 'I';; \
59 -*O) strip_trailopt 'O'; skip_next=yes;; \
60 -*O?*) strip_trailopt 'O';; \
61 -*l) strip_trailopt 'l'; skip_next=yes;; \
62 -*l?*) strip_trailopt 'l';; \
63 -[dEDm]) skip_next=yes;; \
64 -[JT]) skip_next=yes;; \
67 *$$target_option*) has_opt=yes; break;; \
71 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
72 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
73 pkgdatadir = $(datadir)/asn1c
74 pkgincludedir = $(includedir)/asn1c
75 pkglibdir = $(libdir)/asn1c
76 pkglibexecdir = $(libexecdir)/asn1c
77 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
78 install_sh_DATA = $(install_sh) -c -m 644
79 install_sh_PROGRAM = $(install_sh) -c
80 install_sh_SCRIPT = $(install_sh) -c
81 INSTALL_HEADER = $(INSTALL_DATA)
82 transform = $(program_transform_name)
89 build_triplet = x86_64-pc-linux-gnu
90 host_triplet = x86_64-pc-linux-gnu
91 subdir = libasn1common
92 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
93 am__aclocal_m4_deps = \
94 $(top_srcdir)/m4/ax_check_compile_and_link_flag.m4 \
95 $(top_srcdir)/m4/ax_check_compile_flag.m4 \
96 $(top_srcdir)/m4/ax_code_coverage.m4 \
97 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
98 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
99 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
100 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
102 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
103 mkinstalldirs = $(install_sh) -d
104 CONFIG_HEADER = $(top_builddir)/config.h
106 CONFIG_CLEAN_VPATH_FILES =
107 LTLIBRARIES = $(noinst_LTLIBRARIES)
108 libasn1common_la_LIBADD =
109 am_libasn1common_la_OBJECTS = asn1_ref.lo asn1_buffer.lo \
110 asn1_namespace.lo genhash.lo
111 libasn1common_la_OBJECTS = $(am_libasn1common_la_OBJECTS)
112 AM_V_lt = $(am__v_lt_$(V))
113 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
114 am__v_lt_0 = --silent
116 AM_V_P = $(am__v_P_$(V))
117 am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
120 AM_V_GEN = $(am__v_GEN_$(V))
121 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
122 am__v_GEN_0 = @echo " GEN " $@;
124 AM_V_at = $(am__v_at_$(V))
125 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
128 DEFAULT_INCLUDES = -I. -I$(top_builddir)
129 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
130 am__depfiles_maybe = depfiles
132 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
133 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
134 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
135 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
136 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
137 $(AM_CFLAGS) $(CFLAGS)
138 AM_V_CC = $(am__v_CC_$(V))
139 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
140 am__v_CC_0 = @echo " CC " $@;
143 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
144 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
145 $(AM_LDFLAGS) $(LDFLAGS) -o $@
146 AM_V_CCLD = $(am__v_CCLD_$(V))
147 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
148 am__v_CCLD_0 = @echo " CCLD " $@;
150 SOURCES = $(libasn1common_la_SOURCES)
151 DIST_SOURCES = $(libasn1common_la_SOURCES)
152 am__can_run_installinfo = \
153 case $$AM_UPDATE_INFO_DIR in \
155 *) (install-info --version) >/dev/null 2>&1;; \
157 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
158 # Read a list of newline-separated strings from the standard input,
159 # and print each of them once, without duplicates. Input order is
161 am__uniquify_input = $(AWK) '\
162 BEGIN { nonempty = 0; } \
163 { items[$$0] = 1; nonempty = 1; } \
164 END { if (nonempty) { for (i in items) print i; }; } \
166 # Make sure the list of sources is unique. This is necessary because,
167 # e.g., the same source file might be shared among _SOURCES variables
168 # for different programs/libraries.
169 am__define_uniq_tagged_files = \
170 list='$(am__tagged_files)'; \
171 unique=`for i in $$list; do \
172 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
173 done | $(am__uniquify_input)`
176 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp
177 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
178 ACLOCAL = ${SHELL} /home/nokia/mouse07410/asn1c/config/missing aclocal-1.15
181 AM_DEFAULT_VERBOSITY = 0
183 ASAN_ENV_FLAGS = ASAN_OPTIONS=detect_leaks=1
184 AUTOCONF = ${SHELL} /home/nokia/mouse07410/asn1c/config/missing autoconf
185 AUTOHEADER = ${SHELL} /home/nokia/mouse07410/asn1c/config/missing autoheader
186 AUTOMAKE = ${SHELL} /home/nokia/mouse07410/asn1c/config/missing automake-1.15
189 CCDEPMODE = depmode=gcc3
190 CFLAGS = -g -O2 -Wall -Wcast-qual -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wno-error=attributes -Wno-error=cast-align -std=gnu99
192 CODE_COVERAGE_CFLAGS =
193 CODE_COVERAGE_CPPFLAGS =
194 CODE_COVERAGE_CXXFLAGS =
195 CODE_COVERAGE_ENABLED = no
196 CODE_COVERAGE_LDFLAGS =
202 CXXDEPMODE = depmode=gcc3
203 CXXFLAGS = -std=c++11
205 DEFS = -DHAVE_CONFIG_H
219 INSTALL = /usr/bin/install -c
220 INSTALL_DATA = ${INSTALL} -m 644
221 INSTALL_PROGRAM = ${INSTALL}
222 INSTALL_SCRIPT = ${INSTALL}
223 INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
225 LD = /usr/bin/ld -m elf_x86_64
229 LEX_OUTPUT_ROOT = lex.yy
233 LIBTOOL = $(SHELL) $(top_builddir)/libtool
237 LT_SYS_LIBRARY_PATH =
238 MAKEINFO = ${SHELL} /home/nokia/mouse07410/asn1c/config/missing makeinfo
240 MKDIR_P = /bin/mkdir -p
248 PACKAGE_BUGREPORT = vlm@lionet.info
250 PACKAGE_STRING = asn1c 0.9.29
251 PACKAGE_TARNAME = asn1c
253 PACKAGE_VERSION = 0.9.29
257 SANITIZER_CFLAGS = -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer -fsanitize=address -fno-omit-frame-pointer
261 SKELETONS_CFLAGS = -std=c89 -Wpedantic -Wno-long-long -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer -fsanitize=address -fno-omit-frame-pointer
263 TESTSUITE_CFLAGS = -std=gnu99 -Wno-error=unused-variable -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer -fsanitize=address -fno-omit-frame-pointer
267 abs_builddir = /home/nokia/mouse07410/asn1c/libasn1common
268 abs_srcdir = /home/nokia/mouse07410/asn1c/libasn1common
269 abs_top_builddir = /home/nokia/mouse07410/asn1c
270 abs_top_srcdir = /home/nokia/mouse07410/asn1c
275 am__include = include
278 am__tar = $${TAR-tar} chof - "$$tardir"
279 am__untar = $${TAR-tar} xf -
280 bindir = ${exec_prefix}/bin
281 build = x86_64-pc-linux-gnu
287 datadir = ${datarootdir}
288 datarootdir = ${prefix}/share
289 docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
291 exec_prefix = ${prefix}
292 host = x86_64-pc-linux-gnu
298 includedir = ${prefix}/include
299 infodir = ${datarootdir}/info
300 install_sh = ${SHELL} /home/nokia/mouse07410/asn1c/config/install-sh
301 libdir = ${exec_prefix}/lib
302 libexecdir = ${exec_prefix}/libexec
303 localedir = ${datarootdir}/locale
304 localstatedir = ${prefix}/var
305 mandir = ${datarootdir}/man
307 oldincludedir = /usr/include
310 program_transform_name = s,x,x,
312 runstatedir = ${localstatedir}/run
313 sbindir = ${exec_prefix}/sbin
314 sharedstatedir = ${prefix}/com
316 sysconfdir = ${prefix}/etc
318 top_build_prefix = ../
322 noinst_LTLIBRARIES = libasn1common.la
323 libasn1common_la_SOURCES = \
324 asn1_ref.c asn1_ref.h \
325 asn1_buffer.c asn1_buffer.h \
326 asn1_namespace.c asn1_namespace.h \
332 .SUFFIXES: .c .lo .o .obj
333 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
335 case '$(am__configure_deps)' in \
337 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
338 && { if test -f $@; then exit 0; else break; fi; }; \
342 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libasn1common/Makefile'; \
343 $(am__cd) $(top_srcdir) && \
344 $(AUTOMAKE) --foreign libasn1common/Makefile
345 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
348 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
350 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
351 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
354 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
355 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
357 $(top_srcdir)/configure: $(am__configure_deps)
358 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
359 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
360 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
361 $(am__aclocal_m4_deps):
363 clean-noinstLTLIBRARIES:
364 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
365 @list='$(noinst_LTLIBRARIES)'; \
366 locs=`for p in $$list; do echo $$p; done | \
367 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
369 test -z "$$locs" || { \
370 echo rm -f $${locs}; \
374 libasn1common.la: $(libasn1common_la_OBJECTS) $(libasn1common_la_DEPENDENCIES) $(EXTRA_libasn1common_la_DEPENDENCIES)
375 $(AM_V_CCLD)$(LINK) $(libasn1common_la_OBJECTS) $(libasn1common_la_LIBADD) $(LIBS)
383 include ./$(DEPDIR)/asn1_buffer.Plo
384 include ./$(DEPDIR)/asn1_namespace.Plo
385 include ./$(DEPDIR)/asn1_ref.Plo
386 include ./$(DEPDIR)/genhash.Plo
389 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
390 $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
391 # $(AM_V_CC)source='$<' object='$@' libtool=no \
392 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
393 # $(AM_V_CC_no)$(COMPILE) -c -o $@ $<
396 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
397 $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
398 # $(AM_V_CC)source='$<' object='$@' libtool=no \
399 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
400 # $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
403 $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
404 $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
405 # $(AM_V_CC)source='$<' object='$@' libtool=yes \
406 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
407 # $(AM_V_CC_no)$(LTCOMPILE) -c -o $@ $<
415 ID: $(am__tagged_files)
416 $(am__define_uniq_tagged_files); mkid -fID $$unique
420 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
423 $(am__define_uniq_tagged_files); \
425 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
426 test -n "$$unique" || unique=$$empty_fix; \
427 if test $$# -gt 0; then \
428 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
431 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
438 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
439 $(am__define_uniq_tagged_files); \
440 test -z "$(CTAGS_ARGS)$$unique" \
441 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
445 here=`$(am__cd) $(top_builddir) && pwd` \
446 && $(am__cd) $(top_srcdir) \
447 && gtags -i $(GTAGS_ARGS) "$$here"
448 cscopelist: cscopelist-am
450 cscopelist-am: $(am__tagged_files)
451 list='$(am__tagged_files)'; \
452 case "$(srcdir)" in \
453 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
454 *) sdir=$(subdir)/$(srcdir) ;; \
456 for i in $$list; do \
457 if test -f "$$i"; then \
458 echo "$(subdir)/$$i"; \
462 done >> $(top_builddir)/cscope.files
465 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
467 distdir: $(DISTFILES)
468 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
469 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
470 list='$(DISTFILES)'; \
471 dist_files=`for file in $$list; do echo $$file; done | \
472 sed -e "s|^$$srcdirstrip/||;t" \
473 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
474 case $$dist_files in \
475 */*) $(MKDIR_P) `echo "$$dist_files" | \
476 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
479 for file in $$dist_files; do \
480 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
481 if test -d $$d/$$file; then \
482 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
483 if test -d "$(distdir)/$$file"; then \
484 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
486 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
487 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
488 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
490 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
492 test -f "$(distdir)/$$file" \
493 || cp -p $$d/$$file "$(distdir)/$$file" \
499 all-am: Makefile $(LTLIBRARIES)
502 install-exec: install-exec-am
503 install-data: install-data-am
504 uninstall: uninstall-am
507 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
509 installcheck: installcheck-am
511 if test -z '$(STRIP)'; then \
512 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
513 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
516 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
517 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
518 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
525 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
526 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
528 maintainer-clean-generic:
529 @echo "This command is intended for maintainers to use"
530 @echo "it deletes files that may require special tools to rebuild."
533 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
536 distclean: distclean-am
539 distclean-am: clean-am distclean-compile distclean-generic \
556 install-dvi: install-dvi-am
562 install-html: install-html-am
566 install-info: install-info-am
572 install-pdf: install-pdf-am
576 install-ps: install-ps-am
582 maintainer-clean: maintainer-clean-am
585 maintainer-clean-am: distclean-am maintainer-clean-generic
587 mostlyclean: mostlyclean-am
589 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
602 .MAKE: install-am install-strip
604 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
605 clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
606 ctags-am distclean distclean-compile distclean-generic \
607 distclean-libtool distclean-tags distdir dvi dvi-am html \
608 html-am info info-am install install-am install-data \
609 install-data-am install-dvi install-dvi-am install-exec \
610 install-exec-am install-html install-html-am install-info \
611 install-info-am install-man install-pdf install-pdf-am \
612 install-ps install-ps-am install-strip installcheck \
613 installcheck-am installdirs maintainer-clean \
614 maintainer-clean-generic mostlyclean mostlyclean-compile \
615 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
616 tags tags-am uninstall uninstall-am
624 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
625 # Multiple directories may be specified, separated by whitespace.
626 # (Default: $(top_builddir))
627 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
628 # by lcov for code coverage. (Default:
629 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
630 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
631 # reports to be created. (Default:
632 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
633 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
634 # set to 0 to disable it and leave empty to stay with the default.
636 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
637 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
638 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
639 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
640 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
641 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
642 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
643 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
644 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
645 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
646 # lcov instance. (Default: empty)
647 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
648 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
649 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
650 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
651 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
652 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
653 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
655 # The generated report will be titled using the $(PACKAGE_NAME) and
656 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
657 # use the git-version-gen script, available online.
660 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
661 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
662 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
663 CODE_COVERAGE_BRANCH_COVERAGE ?=
664 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
665 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
666 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
667 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
668 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
669 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
670 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
671 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
672 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
673 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
674 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
675 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
676 CODE_COVERAGE_IGNORE_PATTERN ?=
678 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
679 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
680 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
681 $(CODE_COVERAGE_OUTPUT_FILE);
682 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
683 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
684 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
685 $(CODE_COVERAGE_IGNORE_PATTERN);
686 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
687 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
688 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
689 code_coverage_quiet = $(code_coverage_quiet_$(V))
690 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
691 code_coverage_quiet_0 = --quiet
693 # sanitizes the test-name: replaces with underscores: dashes and dots
694 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
696 # Use recursive makes in order to ignore errors during check
698 @echo "Need to reconfigure with --enable-code-coverage"
701 # Capture code coverage data
702 code-coverage-capture: code-coverage-capture-hook
703 @echo "Need to reconfigure with --enable-code-coverage"
706 # Hook rule executed before code-coverage-capture, overridable by the user
707 code-coverage-capture-hook:
712 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
714 AM_DISTCHECK_CONFIGURE_FLAGS ?=
715 AM_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
717 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
720 # Tell versions [3.59,3.63) of GNU make to not export all variables.
721 # Otherwise a system limit (for SysV at least) may be exceeded.