/[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 1158 by chpe, Mon Oct 22 19:43:50 2012 UTC revision 1196 by ph10, Thu Nov 1 17:41:36 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. It has to be entirely done using files in that
145    # directory, because the source directory may already be configured. If you
146    # just try running configure in a new directory, it complains that the source
147    # directory is already configured.
148    config.h.generic: configure.ac
149            rm -rf $@ _generic
150            mkdir _generic
151            cs=$(srcdir)/config.status; test ! -f $$cs || mv -f $$cs $$cs.aside
152            cd _generic && $(abs_top_srcdir)/configure || :
153            cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs
154            test -f _generic/config.h
155            perl -pe 'if(/^#define\s(?!PACKAGE)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$_="";}' _generic/config.h >$@
156            rm -rf _generic
157    
158    MAINTAINERCLEANFILES += pcre.h.generic config.h.generic
159    
160  # 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
161  # it is generated from pcre.h.in.  # it is generated from pcre.h.in.
# Line 188  BUILT_SOURCES = pcre_chartables.c Line 207  BUILT_SOURCES = pcre_chartables.c
207  # Build the 8 bit library if it is enabled.  # Build the 8 bit library if it is enabled.
208  if WITH_PCRE8  if WITH_PCRE8
209  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
210    
211  libpcre_la_SOURCES = \  libpcre_la_SOURCES = \
212    pcre_byte_order.c \    pcre_byte_order.c \
213    pcre_compile.c \    pcre_compile.c \
# Line 213  libpcre_la_SOURCES = \ Line 233  libpcre_la_SOURCES = \
233    ucp.h    ucp.h
234    
235  libpcre_la_CFLAGS = \  libpcre_la_CFLAGS = \
236      $(VISIBILITY_CFLAGS) \
237    $(AM_CFLAGS)    $(AM_CFLAGS)
238    
239  libpcre_la_LIBADD =  libpcre_la_LIBADD =
# Line 251  libpcre16_la_SOURCES = \ Line 272  libpcre16_la_SOURCES = \
272    pcre16_xclass.c    pcre16_xclass.c
273    
274  libpcre16_la_CFLAGS = \  libpcre16_la_CFLAGS = \
275      $(VISIBILITY_CFLAGS) \
276    $(AM_CFLAGS)    $(AM_CFLAGS)
277    
278  libpcre16_la_LIBADD =  libpcre16_la_LIBADD =
# Line 289  libpcre32_la_SOURCES = \ Line 311  libpcre32_la_SOURCES = \
311    pcre32_xclass.c    pcre32_xclass.c
312    
313  libpcre32_la_CFLAGS = \  libpcre32_la_CFLAGS = \
314      $(VISIBILITY_CFLAGS) \
315    $(AM_CFLAGS)    $(AM_CFLAGS)
316    
317  libpcre32_la_LIBADD =  libpcre32_la_LIBADD =
318    
319  ## 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 341  EXTRA_DIST += \
341    sljit/sljitNativePPC_32.c \    sljit/sljitNativePPC_32.c \
342    sljit/sljitNativePPC_64.c \    sljit/sljitNativePPC_64.c \
343    sljit/sljitNativePPC_common.c \    sljit/sljitNativePPC_common.c \
344      sljit/sljitNativeSPARC_32.c \
345      sljit/sljitNativeSPARC_common.c \
346    sljit/sljitNativeX86_32.c \    sljit/sljitNativeX86_32.c \
347    sljit/sljitNativeX86_64.c \    sljit/sljitNativeX86_64.c \
348    sljit/sljitNativeX86_common.c \    sljit/sljitNativeX86_common.c \
# Line 386  if WITH_PCRE8 Line 412  if WITH_PCRE8
412  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
413  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
414    pcreposix.c    pcreposix.c
415  libpcreposix_la_CFLAGS = $(AM_CFLAGS)  libpcreposix_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS)
416  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
417  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
418    
# Line 405  libpcrecpp_la_SOURCES = \ Line 431  libpcrecpp_la_SOURCES = \
431    pcrecpp.cc \    pcrecpp.cc \
432    pcre_scanner.cc \    pcre_scanner.cc \
433    pcre_stringpiece.cc    pcre_stringpiece.cc
434  libpcrecpp_la_CXXFLAGS = $(AM_CXXFLAGS)  libpcrecpp_la_CXXFLAGS = $(VISIBILITY_CXXFLAGS) $(AM_CXXFLAGS)
435  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
436  libpcrecpp_la_LIBADD = libpcre.la  libpcrecpp_la_LIBADD = libpcre.la
437    
# Line 528  EXTRA_DIST += \ Line 554  EXTRA_DIST += \
554    testdata/testinput20 \    testdata/testinput20 \
555    testdata/testinput21 \    testdata/testinput21 \
556    testdata/testinput22 \    testdata/testinput22 \
557      testdata/testinput23 \
558      testdata/testinput24 \
559      testdata/testinput25 \
560      testdata/testinput26 \
561    testdata/testinputEBC \    testdata/testinputEBC \
562    testdata/testoutput1 \    testdata/testoutput1 \
563    testdata/testoutput2 \    testdata/testoutput2 \
# Line 539  EXTRA_DIST += \ Line 569  EXTRA_DIST += \
569    testdata/testoutput8 \    testdata/testoutput8 \
570    testdata/testoutput9 \    testdata/testoutput9 \
571    testdata/testoutput10 \    testdata/testoutput10 \
   testdata/testoutput11-16 \  
572    testdata/testoutput11-8 \    testdata/testoutput11-8 \
573      testdata/testoutput11-16 \
574      testdata/testoutput11-32 \
575    testdata/testoutput12 \    testdata/testoutput12 \
576    testdata/testoutput13 \    testdata/testoutput13 \
577    testdata/testoutput14 \    testdata/testoutput14 \
578    testdata/testoutput15 \    testdata/testoutput15 \
579    testdata/testoutput16 \    testdata/testoutput16 \
580    testdata/testoutput17 \    testdata/testoutput17 \
581    testdata/testoutput18 \    testdata/testoutput18-16 \
582      testdata/testoutput18-32 \
583    testdata/testoutput19 \    testdata/testoutput19 \
584    testdata/testoutput20 \    testdata/testoutput20 \
585    testdata/testoutput21 \    testdata/testoutput21-16 \
586    testdata/testoutput22 \    testdata/testoutput21-32 \
587      testdata/testoutput22-16 \
588      testdata/testoutput22-32 \
589      testdata/testoutput23 \
590      testdata/testoutput24 \
591      testdata/testoutput25 \
592      testdata/testoutput26 \
593    testdata/testoutputEBC \    testdata/testoutputEBC \
594    testdata/wintestinput3 \    testdata/wintestinput3 \
595    testdata/wintestoutput3 \    testdata/wintestoutput3 \
# Line 633  dist_man_MANS = \ Line 671  dist_man_MANS = \
671    doc/pcre_get_stringtable_entries.3 \    doc/pcre_get_stringtable_entries.3 \
672    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
673    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
674      doc/pcre_jit_exec.3 \
675    doc/pcre_jit_stack_alloc.3 \    doc/pcre_jit_stack_alloc.3 \
676    doc/pcre_jit_stack_free.3 \    doc/pcre_jit_stack_free.3 \
677    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
# Line 680  install-data-hook: Line 719  install-data-hook:
719          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
720          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3
721          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
722            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre16_jit_exec.3
723          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
724          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
725          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre16_maketables.3          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre16_maketables.3
# Line 705  install-data-hook: Line 745  install-data-hook:
745          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
746          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3
747          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
748            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre32_jit_exec.3
749          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
750          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
751          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3
# Line 723  endif Line 764  endif
764    
765  # gcov/lcov code coverage reporting  # gcov/lcov code coverage reporting
766    
767  GCOV_NAME ?= $(PACKAGE)-$(VERSION)  if WITH_GCOV
768  GCOV_OUTPUT_FILE ?= $(GCOV_NAME)-coverage.info  
769  GCOV_OUTPUT_DIR ?= $(GCOV_NAME)-coverage  # Coverage reporting targets:
770  GCOV_LCOV_FLAGS ?=  #
771  GCOV_GENHTML_FLAGS ?=  # coverage: Create a coverage report from 'make check'
772    # coverage-baseline: Capture baseline coverage information
773  gcov_quiet = $(gcov_quiet_$(V))  # coverage-reset: This zeros the coverage counters only
774  gcov_quiet_ = $(gcov_quiet_$(AM_DEFAULT_VERBOSITY))  # coverage-report: This creates the coverage report only
775  gcov_quiet_0 = --quiet  # coverage-clean-report: This removes the generated coverage report
776    #   without cleaning the coverage data itself
777    # coverage-clean-data: This removes the captured coverage data without
778    #   removing the coverage files created at compile time (*.gcno)
779    # coverage-clean: This cleans all coverage data including the generated
780    #   coverage report.
781    
782    COVERAGE_TEST_NAME = $(PACKAGE)
783    COVERAGE_NAME = $(PACKAGE)-$(VERSION)
784    COVERAGE_OUTPUT_FILE = $(COVERAGE_NAME)-coverage.info
785    COVERAGE_OUTPUT_DIR = $(COVERAGE_NAME)-coverage
786    COVERAGE_LCOV_EXTRA_FLAGS =
787    COVERAGE_GENHTML_EXTRA_FLAGS =
788    
789    coverage_quiet = $(coverage_quiet_$(V))
790    coverage_quiet_ = $(coverage_quiet_$(AM_DEFAULT_VERBOSITY))
791    coverage_quiet_0 = --quiet
792    
793  coverage-check: all  coverage-check: all
794          -$(MAKE) $(AM_MAKEFLAGS) -k check          -$(MAKE) $(AM_MAKEFLAGS) -k check
795    
796    coverage-baseline:
797            $(LCOV) $(coverage_quiet) \
798                    --directory $(top_builddir) \
799                    --output-file "$(COVERAGE_OUTPUT_FILE)" \
800                    --capture \
801                    --initial
802    
803  coverage-report:  coverage-report:
804          $(LCOV) $(gcov_quiet) \          $(LCOV) $(coverage_quiet) \
805                  --directory $(top_builddir) \                  --directory $(top_builddir) \
806                  --capture \                  --capture \
807                  --output-file "$(GCOV_OUTPUT_FILE).tmp" \                  --output-file "$(COVERAGE_OUTPUT_FILE).tmp" \
808                  --test-name "$(GCOV_NAME)" \                  --test-name "$(COVERAGE_TEST_NAME)" \
809                  --no-checksum \                  --no-checksum \
810                  --compat-libtool \                  --compat-libtool \
811                  $(GCOV_LCOV_FLAGS)                  $(COVERAGE_LCOV_EXTRA_FLAGS)
812          $(LCOV) $(gcov_quiet) \          $(LCOV) $(coverage_quiet) \
813                  --directory $(top_builddir) \                  --directory $(top_builddir) \
814                  --output-file "$(GCOV_OUTPUT_FILE)" \                  --output-file "$(COVERAGE_OUTPUT_FILE)" \
815                  --remove "$(GCOV_OUTPUT_FILE).tmp" \                  --remove "$(COVERAGE_OUTPUT_FILE).tmp" \
816                  "/tmp/*" \                  "/tmp/*" \
817                  "/usr/include/*" \                  "/usr/include/*" \
818                  "$(includedir)/*"                  "$(includedir)/*"
819          -@rm -f "$(GCOV_OUTPUT_FILE).tmp"          -@rm -f "$(COVERAGE_OUTPUT_FILE).tmp"
820          LANG=C $(GENHTML) $(gcov_quiet) \          LANG=C $(GENHTML) $(coverage_quiet) \
821                  --prefix $(top_builddir) \                  --prefix $(top_builddir) \
822                  --output-directory "$(GCOV_OUTPUT_DIR)" \                  --output-directory "$(COVERAGE_OUTPUT_DIR)" \
823                  --title "$(PACKAGE) $(VERSION) Code Coverage Report" \                  --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
824                  --show-details "$(GCOV_OUTPUT_FILE)" \                  --show-details "$(COVERAGE_OUTPUT_FILE)" \
825                  --legend \                  --legend \
826                  $(GCOV_GENHTML_FLAGS)                  $(COVERAGE_GENHTML_EXTRA_FLAGS)
827          @echo "Code coverage report written to file://$(abs_builddir)/$(GCOV_OUTPUT_DIR)/index.html"          @echo "Code coverage report written to file://$(abs_builddir)/$(COVERAGE_OUTPUT_DIR)/index.html"
828    
829  coverage-clean:  coverage-reset:
830          -$(LCOV) $(gcov_quiet) --zerocounters --directory $(top_builddir)          -$(LCOV) $(coverage_quiet) --zerocounters --directory $(top_builddir)
         -rm -f "$(GCOV_OUTPUT_FILE)"  
         -rm -f "$(GCOV_OUTPUT_FILE).tmp"  
         -rm -rf "$(GCOV_NAME)"  
         -find $(top_builddir) -name '*.gcda' -o -name "*.gcov" -delete  
831    
832  coverage: coverage-check coverage-report  coverage-clean-report:
833            -rm -f "$(COVERAGE_OUTPUT_FILE)" "$(COVERAGE_OUTPUT_FILE).tmp"
834            -rm -rf "$(COVERAGE_OUTPUT_DIR)"
835    
836    coverage-clean-data:
837            -find $(top_builddir) -name "*.gcda" -delete
838    
839    coverage-clean: coverage-reset coverage-clean-report coverage-clean-data
840            -find $(top_builddir) -name "*.gcno" -delete
841    
842    coverage-distclean: coverage-clean
843    
844    coverage: coverage-reset coverage-baseline coverage-check coverage-report
845  clean-local: coverage-clean  clean-local: coverage-clean
846  distclean-local: coverage-clean  distclean-local: coverage-distclean
847    
848    .PHONY: coverage coverage-baseline coverage-check coverage-report coverage-reset coverage-clean-report coverage-clean-data coverage-clean coverage-distclean
849    
850    else
851    
852    coverage:
853            @echo "Configuring with --enable-coverage required to generate code coverage report."
854    
855    endif # WITH_GCOV
856    
857  ## CMake support  ## CMake support
858    

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

  ViewVC Help
Powered by ViewVC 1.1.5