/[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 1235 by ph10, Mon Dec 10 13:36:29 2012 UTC
# Line 18  dist_html_DATA = \ Line 18  dist_html_DATA = \
18    doc/html/index.html \    doc/html/index.html \
19    doc/html/pcre.html \    doc/html/pcre.html \
20    doc/html/pcre16.html \    doc/html/pcre16.html \
21      doc/html/pcre32.html \
22    doc/html/pcre-config.html \    doc/html/pcre-config.html \
23    doc/html/pcre_assign_jit_stack.html \    doc/html/pcre_assign_jit_stack.html \
24    doc/html/pcre_compile.html \    doc/html/pcre_compile.html \
# Line 36  dist_html_DATA = \ Line 37  dist_html_DATA = \
37    doc/html/pcre_get_stringtable_entries.html \    doc/html/pcre_get_stringtable_entries.html \
38    doc/html/pcre_get_substring.html \    doc/html/pcre_get_substring.html \
39    doc/html/pcre_get_substring_list.html \    doc/html/pcre_get_substring_list.html \
40      doc/html/pcre_jit_exec.html \
41    doc/html/pcre_jit_stack_alloc.html \    doc/html/pcre_jit_stack_alloc.html \
42    doc/html/pcre_jit_stack_free.html \    doc/html/pcre_jit_stack_free.html \
43    doc/html/pcre_maketables.html \    doc/html/pcre_maketables.html \
# Line 43  dist_html_DATA = \ Line 45  dist_html_DATA = \
45    doc/html/pcre_refcount.html \    doc/html/pcre_refcount.html \
46    doc/html/pcre_study.html \    doc/html/pcre_study.html \
47    doc/html/pcre_utf16_to_host_byte_order.html \    doc/html/pcre_utf16_to_host_byte_order.html \
48      doc/html/pcre_utf32_to_host_byte_order.html \
49    doc/html/pcre_version.html \    doc/html/pcre_version.html \
50    doc/html/pcreapi.html \    doc/html/pcreapi.html \
51    doc/html/pcrebuild.html \    doc/html/pcrebuild.html \
# Line 64  dist_html_DATA = \ Line 67  dist_html_DATA = \
67    doc/html/pcretest.html \    doc/html/pcretest.html \
68    doc/html/pcreunicode.html    doc/html/pcreunicode.html
69    
 #   doc/html/pcre32.html \  
 #   doc/html/pcre_utf32_to_host_byte_order.html \  
 #  
   
70  pcrecpp_html = doc/html/pcrecpp.html  pcrecpp_html = doc/html/pcrecpp.html
71  dist_noinst_DATA = $(pcrecpp_html)  dist_noinst_DATA = $(pcrecpp_html)
72    
# Line 100  EXTRA_DIST = Line 99  EXTRA_DIST =
99    
100  # These files contain additional m4 macros that are used by autoconf.  # These files contain additional m4 macros that are used by autoconf.
101  EXTRA_DIST += \  EXTRA_DIST += \
102    m4/ax_pthread.m4    m4/ax_pthread.m4 m4/pcre_visibility.m4
103    
104  # These files contain maintenance information  # These files contain maintenance information
105  EXTRA_DIST += \  EXTRA_DIST += \
# Line 132  EXTRA_DIST += \ Line 131  EXTRA_DIST += \
131    pcre.h.generic \    pcre.h.generic \
132    config.h.generic    config.h.generic
133    
134  pcre.h.generic: configure.ac  # The only difference between pcre.h.in and pcre.h is the setting of the PCRE
135    # version number. Therefore, we can create the generic version just by copying.
136    pcre.h.generic: pcre.h.in configure.ac
137          rm -f $@          rm -f $@
138          cp -p pcre.h $@          cp -p pcre.h $@
139    
140  MAINTAINERCLEANFILES += pcre.h.generic  # It is more complicated for config.h.generic. We need the version that results
141    # from a default configuration so as to get all the default values for PCRE
142    # configuration macros such as MATCH_LIMIT and NEWLINE. We can get this by
143    # doing a configure in a temporary directory. However, some trickery is needed,
144    # because the source directory may already be configured. If you just try
145    # running configure in a new directory, it complains. For this reason, we move
146    # config.status out of the way while doing the default configuration. The
147    # resulting config.h is munged by perl to put #ifdefs round any #defines for
148    # macros with values, and to #undef all boolean macros such as HAVE_xxx and
149    # SUPPORT_xxx. We also get rid of any gcc-specific visibility settings. Make
150    # sure that 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(/LT_OBJDIR/){print"/* This is ignored unless you are using libtool. */\n";}' \
164              -e 'if(/^#define\s((?:HAVE|SUPPORT|STDC)_\w+)/){print"/* #undef $$1 */\n";$$blank=0;next;}' \
165              -e 'if(/^#define\s(?!PACKAGE|VERSION)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$blank=0;next;}' \
166              -e 'if(/^\s*$$/){print unless $$blank; $$blank=1;} else{print;$$blank=0;}' \
167              _generic/config.h >$@
168            rm -rf _generic
169    
170    MAINTAINERCLEANFILES += pcre.h.generic config.h.generic
171    
172  # 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
173  # it is generated from pcre.h.in.  # it is generated from pcre.h.in.
# Line 188  BUILT_SOURCES = pcre_chartables.c Line 219  BUILT_SOURCES = pcre_chartables.c
219  # Build the 8 bit library if it is enabled.  # Build the 8 bit library if it is enabled.
220  if WITH_PCRE8  if WITH_PCRE8
221  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
222    
223  libpcre_la_SOURCES = \  libpcre_la_SOURCES = \
224    pcre_byte_order.c \    pcre_byte_order.c \
225    pcre_compile.c \    pcre_compile.c \
# Line 213  libpcre_la_SOURCES = \ Line 245  libpcre_la_SOURCES = \
245    ucp.h    ucp.h
246    
247  libpcre_la_CFLAGS = \  libpcre_la_CFLAGS = \
248      $(VISIBILITY_CFLAGS) \
249    $(AM_CFLAGS)    $(AM_CFLAGS)
250    
251  libpcre_la_LIBADD =  libpcre_la_LIBADD =
# Line 251  libpcre16_la_SOURCES = \ Line 284  libpcre16_la_SOURCES = \
284    pcre16_xclass.c    pcre16_xclass.c
285    
286  libpcre16_la_CFLAGS = \  libpcre16_la_CFLAGS = \
287      $(VISIBILITY_CFLAGS) \
288    $(AM_CFLAGS)    $(AM_CFLAGS)
289    
290  libpcre16_la_LIBADD =  libpcre16_la_LIBADD =
# Line 289  libpcre32_la_SOURCES = \ Line 323  libpcre32_la_SOURCES = \
323    pcre32_xclass.c    pcre32_xclass.c
324    
325  libpcre32_la_CFLAGS = \  libpcre32_la_CFLAGS = \
326      $(VISIBILITY_CFLAGS) \
327    $(AM_CFLAGS)    $(AM_CFLAGS)
328    
329  libpcre32_la_LIBADD =  libpcre32_la_LIBADD =
330    
331  ## 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 353  EXTRA_DIST += \
353    sljit/sljitNativePPC_32.c \    sljit/sljitNativePPC_32.c \
354    sljit/sljitNativePPC_64.c \    sljit/sljitNativePPC_64.c \
355    sljit/sljitNativePPC_common.c \    sljit/sljitNativePPC_common.c \
356      sljit/sljitNativeSPARC_32.c \
357      sljit/sljitNativeSPARC_common.c \
358    sljit/sljitNativeX86_32.c \    sljit/sljitNativeX86_32.c \
359    sljit/sljitNativeX86_64.c \    sljit/sljitNativeX86_64.c \
360    sljit/sljitNativeX86_common.c \    sljit/sljitNativeX86_common.c \
# Line 386  if WITH_PCRE8 Line 424  if WITH_PCRE8
424  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
425  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
426    pcreposix.c    pcreposix.c
427  libpcreposix_la_CFLAGS = $(AM_CFLAGS)  libpcreposix_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS)
428  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
429  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
430    
# Line 405  libpcrecpp_la_SOURCES = \ Line 443  libpcrecpp_la_SOURCES = \
443    pcrecpp.cc \    pcrecpp.cc \
444    pcre_scanner.cc \    pcre_scanner.cc \
445    pcre_stringpiece.cc    pcre_stringpiece.cc
446  libpcrecpp_la_CXXFLAGS = $(AM_CXXFLAGS)  libpcrecpp_la_CXXFLAGS = $(VISIBILITY_CXXFLAGS) $(AM_CXXFLAGS)
447  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
448  libpcrecpp_la_LIBADD = libpcre.la  libpcrecpp_la_LIBADD = libpcre.la
449    
# Line 645  dist_man_MANS = \ Line 683  dist_man_MANS = \
683    doc/pcre_get_stringtable_entries.3 \    doc/pcre_get_stringtable_entries.3 \
684    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
685    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
686      doc/pcre_jit_exec.3 \
687    doc/pcre_jit_stack_alloc.3 \    doc/pcre_jit_stack_alloc.3 \
688    doc/pcre_jit_stack_free.3 \    doc/pcre_jit_stack_free.3 \
689    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
# Line 692  install-data-hook: Line 731  install-data-hook:
731          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
732          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3
733          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
734            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre16_jit_exec.3
735          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
736          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
737          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 757  install-data-hook:
757          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
758          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3
759          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
760            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre32_jit_exec.3
761          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
762          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
763          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3
# Line 737  endif Line 778  endif
778    
779  if WITH_GCOV  if WITH_GCOV
780    
781  GCOV_NAME = $(PACKAGE)-$(VERSION)  # Coverage reporting targets:
782  GCOV_OUTPUT_FILE = $(GCOV_NAME)-coverage.info  #
783  GCOV_OUTPUT_DIR = $(GCOV_NAME)-coverage  # coverage: Create a coverage report from 'make check'
784  GCOV_LCOV_FLAGS =  # coverage-baseline: Capture baseline coverage information
785  GCOV_GENHTML_FLAGS =  # coverage-reset: This zeros the coverage counters only
786    # coverage-report: This creates the coverage report only
787  gcov_quiet = $(gcov_quiet_$(V))  # coverage-clean-report: This removes the generated coverage report
788  gcov_quiet_ = $(gcov_quiet_$(AM_DEFAULT_VERBOSITY))  #   without cleaning the coverage data itself
789  gcov_quiet_0 = --quiet  # coverage-clean-data: This removes the captured coverage data without
790    #   removing the coverage files created at compile time (*.gcno)
791    # coverage-clean: This cleans all coverage data including the generated
792    #   coverage report.
793    
794    COVERAGE_TEST_NAME = $(PACKAGE)
795    COVERAGE_NAME = $(PACKAGE)-$(VERSION)
796    COVERAGE_OUTPUT_FILE = $(COVERAGE_NAME)-coverage.info
797    COVERAGE_OUTPUT_DIR = $(COVERAGE_NAME)-coverage
798    COVERAGE_LCOV_EXTRA_FLAGS =
799    COVERAGE_GENHTML_EXTRA_FLAGS =
800    
801    coverage_quiet = $(coverage_quiet_$(V))
802    coverage_quiet_ = $(coverage_quiet_$(AM_DEFAULT_VERBOSITY))
803    coverage_quiet_0 = --quiet
804    
805  coverage-check: all  coverage-check: all
806          -$(MAKE) $(AM_MAKEFLAGS) -k check          -$(MAKE) $(AM_MAKEFLAGS) -k check
807    
808    coverage-baseline:
809            $(LCOV) $(coverage_quiet) \
810                    --directory $(top_builddir) \
811                    --output-file "$(COVERAGE_OUTPUT_FILE)" \
812                    --capture \
813                    --initial
814    
815  coverage-report:  coverage-report:
816          $(LCOV) $(gcov_quiet) \          $(LCOV) $(coverage_quiet) \
817                  --directory $(top_builddir) \                  --directory $(top_builddir) \
818                  --capture \                  --capture \
819                  --output-file "$(GCOV_OUTPUT_FILE).tmp" \                  --output-file "$(COVERAGE_OUTPUT_FILE).tmp" \
820                  --test-name "$(GCOV_NAME)" \                  --test-name "$(COVERAGE_TEST_NAME)" \
821                  --no-checksum \                  --no-checksum \
822                  --compat-libtool \                  --compat-libtool \
823                  $(GCOV_LCOV_FLAGS)                  $(COVERAGE_LCOV_EXTRA_FLAGS)
824          $(LCOV) $(gcov_quiet) \          $(LCOV) $(coverage_quiet) \
825                  --directory $(top_builddir) \                  --directory $(top_builddir) \
826                  --output-file "$(GCOV_OUTPUT_FILE)" \                  --output-file "$(COVERAGE_OUTPUT_FILE)" \
827                  --remove "$(GCOV_OUTPUT_FILE).tmp" \                  --remove "$(COVERAGE_OUTPUT_FILE).tmp" \
828                  "/tmp/*" \                  "/tmp/*" \
829                  "/usr/include/*" \                  "/usr/include/*" \
830                  "$(includedir)/*"                  "$(includedir)/*"
831          -@rm -f "$(GCOV_OUTPUT_FILE).tmp"          -@rm -f "$(COVERAGE_OUTPUT_FILE).tmp"
832          LANG=C $(GENHTML) $(gcov_quiet) \          LANG=C $(GENHTML) $(coverage_quiet) \
833                  --prefix $(top_builddir) \                  --prefix $(top_builddir) \
834                  --output-directory "$(GCOV_OUTPUT_DIR)" \                  --output-directory "$(COVERAGE_OUTPUT_DIR)" \
835                  --title "$(PACKAGE) $(VERSION) Code Coverage Report" \                  --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
836                  --show-details "$(GCOV_OUTPUT_FILE)" \                  --show-details "$(COVERAGE_OUTPUT_FILE)" \
837                  --legend \                  --legend \
838                  $(GCOV_GENHTML_FLAGS)                  $(COVERAGE_GENHTML_EXTRA_FLAGS)
839          @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"
840    
841    coverage-reset:
842            -$(LCOV) $(coverage_quiet) --zerocounters --directory $(top_builddir)
843    
844    coverage-clean-report:
845            -rm -f "$(COVERAGE_OUTPUT_FILE)" "$(COVERAGE_OUTPUT_FILE).tmp"
846            -rm -rf "$(COVERAGE_OUTPUT_DIR)"
847    
848  coverage-clean:  coverage-clean-data:
849          -$(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  
850    
851  coverage: coverage-check coverage-report  coverage-clean: coverage-reset coverage-clean-report coverage-clean-data
852            -find $(top_builddir) -name "*.gcno" -delete
853    
854    coverage-distclean: coverage-clean
855    
856    coverage: coverage-reset coverage-baseline coverage-check coverage-report
857  clean-local: coverage-clean  clean-local: coverage-clean
858  distclean-local: coverage-clean  distclean-local: coverage-distclean
859    
860    .PHONY: coverage coverage-baseline coverage-check coverage-report coverage-reset coverage-clean-report coverage-clean-data coverage-clean coverage-distclean
861    
862  else  else
863    

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

  ViewVC Help
Powered by ViewVC 1.1.5