/[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 1165 by chpe, Tue Oct 23 11:17:28 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 213  libpcre_la_SOURCES = \ Line 243  libpcre_la_SOURCES = \
243    ucp.h    ucp.h
244    
245  libpcre_la_CFLAGS = \  libpcre_la_CFLAGS = \
246      $(VISIBILITY_CFLAGS) \
247    $(AM_CFLAGS)    $(AM_CFLAGS)
248    
249  libpcre_la_LIBADD =  libpcre_la_LIBADD =
# Line 251  libpcre16_la_SOURCES = \ Line 282  libpcre16_la_SOURCES = \
282    pcre16_xclass.c    pcre16_xclass.c
283    
284  libpcre16_la_CFLAGS = \  libpcre16_la_CFLAGS = \
285      $(VISIBILITY_CFLAGS) \
286    $(AM_CFLAGS)    $(AM_CFLAGS)
287    
288  libpcre16_la_LIBADD =  libpcre16_la_LIBADD =
# Line 289  libpcre32_la_SOURCES = \ Line 321  libpcre32_la_SOURCES = \
321    pcre32_xclass.c    pcre32_xclass.c
322    
323  libpcre32_la_CFLAGS = \  libpcre32_la_CFLAGS = \
324      $(VISIBILITY_CFLAGS) \
325    $(AM_CFLAGS)    $(AM_CFLAGS)
326    
327  libpcre32_la_LIBADD =  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.
# Line 317  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 386  if WITH_PCRE8 Line 422  if WITH_PCRE8
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 = $(AM_CFLAGS)  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    
# Line 405  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 = $(AM_CXXFLAGS)  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    
# Line 645  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 692  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 717  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 737  endif Line 776  endif
776    
777  if WITH_GCOV  if WITH_GCOV
778    
779  GCOV_NAME = $(PACKAGE)-$(VERSION)  # Coverage reporting targets:
780  GCOV_OUTPUT_FILE = $(GCOV_NAME)-coverage.info  #
781  GCOV_OUTPUT_DIR = $(GCOV_NAME)-coverage  # coverage: Create a coverage report from 'make check'
782  GCOV_LCOV_FLAGS =  # coverage-baseline: Capture baseline coverage information
783  GCOV_GENHTML_FLAGS =  # coverage-reset: This zeros the coverage counters only
784    # coverage-report: This creates the coverage report only
785  gcov_quiet = $(gcov_quiet_$(V))  # coverage-clean-report: This removes the generated coverage report
786  gcov_quiet_ = $(gcov_quiet_$(AM_DEFAULT_VERBOSITY))  #   without cleaning the coverage data itself
787  gcov_quiet_0 = --quiet  # 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  coverage-check: all
804          -$(MAKE) $(AM_MAKEFLAGS) -k check          -$(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:  coverage-report:
814          $(LCOV) $(gcov_quiet) \          $(LCOV) $(coverage_quiet) \
815                  --directory $(top_builddir) \                  --directory $(top_builddir) \
816                  --capture \                  --capture \
817                  --output-file "$(GCOV_OUTPUT_FILE).tmp" \                  --output-file "$(COVERAGE_OUTPUT_FILE).tmp" \
818                  --test-name "$(GCOV_NAME)" \                  --test-name "$(COVERAGE_TEST_NAME)" \
819                  --no-checksum \                  --no-checksum \
820                  --compat-libtool \                  --compat-libtool \
821                  $(GCOV_LCOV_FLAGS)                  $(COVERAGE_LCOV_EXTRA_FLAGS)
822          $(LCOV) $(gcov_quiet) \          $(LCOV) $(coverage_quiet) \
823                  --directory $(top_builddir) \                  --directory $(top_builddir) \
824                  --output-file "$(GCOV_OUTPUT_FILE)" \                  --output-file "$(COVERAGE_OUTPUT_FILE)" \
825                  --remove "$(GCOV_OUTPUT_FILE).tmp" \                  --remove "$(COVERAGE_OUTPUT_FILE).tmp" \
826                  "/tmp/*" \                  "/tmp/*" \
827                  "/usr/include/*" \                  "/usr/include/*" \
828                  "$(includedir)/*"                  "$(includedir)/*"
829          -@rm -f "$(GCOV_OUTPUT_FILE).tmp"          -@rm -f "$(COVERAGE_OUTPUT_FILE).tmp"
830          LANG=C $(GENHTML) $(gcov_quiet) \          LANG=C $(GENHTML) $(coverage_quiet) \
831                  --prefix $(top_builddir) \                  --prefix $(top_builddir) \
832                  --output-directory "$(GCOV_OUTPUT_DIR)" \                  --output-directory "$(COVERAGE_OUTPUT_DIR)" \
833                  --title "$(PACKAGE) $(VERSION) Code Coverage Report" \                  --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
834                  --show-details "$(GCOV_OUTPUT_FILE)" \                  --show-details "$(COVERAGE_OUTPUT_FILE)" \
835                  --legend \                  --legend \
836                  $(GCOV_GENHTML_FLAGS)                  $(COVERAGE_GENHTML_EXTRA_FLAGS)
837          @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"
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:  coverage-clean-data:
847          -$(LCOV) $(gcov_quiet) --zerocounters --directory $(top_builddir)          -find $(top_builddir) -name "*.gcda" -delete
         -rm -f "$(GCOV_OUTPUT_FILE)"  
         -rm -f "$(GCOV_OUTPUT_FILE).tmp"  
         -rm -rf "$(GCOV_NAME)"  
         -find $(top_builddir) -name '*.gcda' -o -name "*.gcov" -delete  
848    
849  coverage: coverage-check coverage-report  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  clean-local: coverage-clean
856  distclean-local: coverage-clean  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  else
861    

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

  ViewVC Help
Powered by ViewVC 1.1.5