/[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 1230 by ph10, Fri Dec 7 10:22:16 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. We can get this by doing a configure in a
142    # temporary directory. However, some trickery is needed,
143    # because the source directory may already be configured. If you
144    # just try running configure in a new directory, it complains. For this reason,
145    # we move config.status out of the way while doing the default configuration.
146    # The resulting config.h is munged by perl to put #ifdefs round any #defines
147    # and to get rid of any gcc-specific visibility settings. Make sure that
148    # PCRE_EXP_DEFN is unset (in case it has visibility settings).
149    config.h.generic: configure.ac
150            rm -rf $@ _generic
151            mkdir _generic
152            cs=$(srcdir)/config.status; test ! -f $$cs || mv -f $$cs $$cs.aside
153            cd _generic && $(abs_top_srcdir)/configure || :
154            cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs
155            test -f _generic/config.h
156            perl -n \
157              -e 'BEGIN{$$blank=0;}' \
158              -e 'if(/PCRE_EXP_DEFN/){print"/* #undef PCRE_EXP_DEFN */\n";$$blank=0;next;}' \
159              -e 'if(/to make a symbol visible/){next;}' \
160              -e 'if(/__attribute__ \(\(visibility/){next;}' \
161              -e 'if(/^#define\s(?!PACKAGE)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$blank=0;}' \
162              -e 'else {if(/^\s*$$/){print unless $$blank; $$blank=1;} else{print;$$blank=0;}}' \
163              _generic/config.h >$@
164            rm -rf _generic
165    
166    MAINTAINERCLEANFILES += pcre.h.generic config.h.generic
167    
168  # 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
169  # it is generated from pcre.h.in.  # it is generated from pcre.h.in.
# Line 188  BUILT_SOURCES = pcre_chartables.c Line 215  BUILT_SOURCES = pcre_chartables.c
215  # Build the 8 bit library if it is enabled.  # Build the 8 bit library if it is enabled.
216  if WITH_PCRE8  if WITH_PCRE8
217  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
218    
219  libpcre_la_SOURCES = \  libpcre_la_SOURCES = \
220    pcre_byte_order.c \    pcre_byte_order.c \
221    pcre_compile.c \    pcre_compile.c \
# Line 213  libpcre_la_SOURCES = \ Line 241  libpcre_la_SOURCES = \
241    ucp.h    ucp.h
242    
243  libpcre_la_CFLAGS = \  libpcre_la_CFLAGS = \
244      $(VISIBILITY_CFLAGS) \
245    $(AM_CFLAGS)    $(AM_CFLAGS)
246    
247  libpcre_la_LIBADD =  libpcre_la_LIBADD =
# Line 251  libpcre16_la_SOURCES = \ Line 280  libpcre16_la_SOURCES = \
280    pcre16_xclass.c    pcre16_xclass.c
281    
282  libpcre16_la_CFLAGS = \  libpcre16_la_CFLAGS = \
283      $(VISIBILITY_CFLAGS) \
284    $(AM_CFLAGS)    $(AM_CFLAGS)
285    
286  libpcre16_la_LIBADD =  libpcre16_la_LIBADD =
# Line 289  libpcre32_la_SOURCES = \ Line 319  libpcre32_la_SOURCES = \
319    pcre32_xclass.c    pcre32_xclass.c
320    
321  libpcre32_la_CFLAGS = \  libpcre32_la_CFLAGS = \
322      $(VISIBILITY_CFLAGS) \
323    $(AM_CFLAGS)    $(AM_CFLAGS)
324    
325  libpcre32_la_LIBADD =  libpcre32_la_LIBADD =
326    
327  ## 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 349  EXTRA_DIST += \
349    sljit/sljitNativePPC_32.c \    sljit/sljitNativePPC_32.c \
350    sljit/sljitNativePPC_64.c \    sljit/sljitNativePPC_64.c \
351    sljit/sljitNativePPC_common.c \    sljit/sljitNativePPC_common.c \
352      sljit/sljitNativeSPARC_32.c \
353      sljit/sljitNativeSPARC_common.c \
354    sljit/sljitNativeX86_32.c \    sljit/sljitNativeX86_32.c \
355    sljit/sljitNativeX86_64.c \    sljit/sljitNativeX86_64.c \
356    sljit/sljitNativeX86_common.c \    sljit/sljitNativeX86_common.c \
# Line 386  if WITH_PCRE8 Line 420  if WITH_PCRE8
420  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
421  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
422    pcreposix.c    pcreposix.c
423  libpcreposix_la_CFLAGS = $(AM_CFLAGS)  libpcreposix_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS)
424  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
425  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
426    
# Line 405  libpcrecpp_la_SOURCES = \ Line 439  libpcrecpp_la_SOURCES = \
439    pcrecpp.cc \    pcrecpp.cc \
440    pcre_scanner.cc \    pcre_scanner.cc \
441    pcre_stringpiece.cc    pcre_stringpiece.cc
442  libpcrecpp_la_CXXFLAGS = $(AM_CXXFLAGS)  libpcrecpp_la_CXXFLAGS = $(VISIBILITY_CXXFLAGS) $(AM_CXXFLAGS)
443  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
444  libpcrecpp_la_LIBADD = libpcre.la  libpcrecpp_la_LIBADD = libpcre.la
445    
# Line 645  dist_man_MANS = \ Line 679  dist_man_MANS = \
679    doc/pcre_get_stringtable_entries.3 \    doc/pcre_get_stringtable_entries.3 \
680    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
681    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
682      doc/pcre_jit_exec.3 \
683    doc/pcre_jit_stack_alloc.3 \    doc/pcre_jit_stack_alloc.3 \
684    doc/pcre_jit_stack_free.3 \    doc/pcre_jit_stack_free.3 \
685    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
# Line 692  install-data-hook: Line 727  install-data-hook:
727          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
728          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3
729          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
730            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre16_jit_exec.3
731          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
732          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
733          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 753  install-data-hook:
753          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
754          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3
755          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
756            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre32_jit_exec.3
757          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
758          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
759          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3
# Line 737  endif Line 774  endif
774    
775  if WITH_GCOV  if WITH_GCOV
776    
777  GCOV_NAME = $(PACKAGE)-$(VERSION)  # Coverage reporting targets:
778  GCOV_OUTPUT_FILE = $(GCOV_NAME)-coverage.info  #
779  GCOV_OUTPUT_DIR = $(GCOV_NAME)-coverage  # coverage: Create a coverage report from 'make check'
780  GCOV_LCOV_FLAGS =  # coverage-baseline: Capture baseline coverage information
781  GCOV_GENHTML_FLAGS =  # coverage-reset: This zeros the coverage counters only
782    # coverage-report: This creates the coverage report only
783  gcov_quiet = $(gcov_quiet_$(V))  # coverage-clean-report: This removes the generated coverage report
784  gcov_quiet_ = $(gcov_quiet_$(AM_DEFAULT_VERBOSITY))  #   without cleaning the coverage data itself
785  gcov_quiet_0 = --quiet  # coverage-clean-data: This removes the captured coverage data without
786    #   removing the coverage files created at compile time (*.gcno)
787    # coverage-clean: This cleans all coverage data including the generated
788    #   coverage report.
789    
790    COVERAGE_TEST_NAME = $(PACKAGE)
791    COVERAGE_NAME = $(PACKAGE)-$(VERSION)
792    COVERAGE_OUTPUT_FILE = $(COVERAGE_NAME)-coverage.info
793    COVERAGE_OUTPUT_DIR = $(COVERAGE_NAME)-coverage
794    COVERAGE_LCOV_EXTRA_FLAGS =
795    COVERAGE_GENHTML_EXTRA_FLAGS =
796    
797    coverage_quiet = $(coverage_quiet_$(V))
798    coverage_quiet_ = $(coverage_quiet_$(AM_DEFAULT_VERBOSITY))
799    coverage_quiet_0 = --quiet
800    
801  coverage-check: all  coverage-check: all
802          -$(MAKE) $(AM_MAKEFLAGS) -k check          -$(MAKE) $(AM_MAKEFLAGS) -k check
803    
804    coverage-baseline:
805            $(LCOV) $(coverage_quiet) \
806                    --directory $(top_builddir) \
807                    --output-file "$(COVERAGE_OUTPUT_FILE)" \
808                    --capture \
809                    --initial
810    
811  coverage-report:  coverage-report:
812          $(LCOV) $(gcov_quiet) \          $(LCOV) $(coverage_quiet) \
813                  --directory $(top_builddir) \                  --directory $(top_builddir) \
814                  --capture \                  --capture \
815                  --output-file "$(GCOV_OUTPUT_FILE).tmp" \                  --output-file "$(COVERAGE_OUTPUT_FILE).tmp" \
816                  --test-name "$(GCOV_NAME)" \                  --test-name "$(COVERAGE_TEST_NAME)" \
817                  --no-checksum \                  --no-checksum \
818                  --compat-libtool \                  --compat-libtool \
819                  $(GCOV_LCOV_FLAGS)                  $(COVERAGE_LCOV_EXTRA_FLAGS)
820          $(LCOV) $(gcov_quiet) \          $(LCOV) $(coverage_quiet) \
821                  --directory $(top_builddir) \                  --directory $(top_builddir) \
822                  --output-file "$(GCOV_OUTPUT_FILE)" \                  --output-file "$(COVERAGE_OUTPUT_FILE)" \
823                  --remove "$(GCOV_OUTPUT_FILE).tmp" \                  --remove "$(COVERAGE_OUTPUT_FILE).tmp" \
824                  "/tmp/*" \                  "/tmp/*" \
825                  "/usr/include/*" \                  "/usr/include/*" \
826                  "$(includedir)/*"                  "$(includedir)/*"
827          -@rm -f "$(GCOV_OUTPUT_FILE).tmp"          -@rm -f "$(COVERAGE_OUTPUT_FILE).tmp"
828          LANG=C $(GENHTML) $(gcov_quiet) \          LANG=C $(GENHTML) $(coverage_quiet) \
829                  --prefix $(top_builddir) \                  --prefix $(top_builddir) \
830                  --output-directory "$(GCOV_OUTPUT_DIR)" \                  --output-directory "$(COVERAGE_OUTPUT_DIR)" \
831                  --title "$(PACKAGE) $(VERSION) Code Coverage Report" \                  --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
832                  --show-details "$(GCOV_OUTPUT_FILE)" \                  --show-details "$(COVERAGE_OUTPUT_FILE)" \
833                  --legend \                  --legend \
834                  $(GCOV_GENHTML_FLAGS)                  $(COVERAGE_GENHTML_EXTRA_FLAGS)
835          @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"
836    
837    coverage-reset:
838            -$(LCOV) $(coverage_quiet) --zerocounters --directory $(top_builddir)
839    
840    coverage-clean-report:
841            -rm -f "$(COVERAGE_OUTPUT_FILE)" "$(COVERAGE_OUTPUT_FILE).tmp"
842            -rm -rf "$(COVERAGE_OUTPUT_DIR)"
843    
844  coverage-clean:  coverage-clean-data:
845          -$(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  
846    
847  coverage: coverage-check coverage-report  coverage-clean: coverage-reset coverage-clean-report coverage-clean-data
848            -find $(top_builddir) -name "*.gcno" -delete
849    
850    coverage-distclean: coverage-clean
851    
852    coverage: coverage-reset coverage-baseline coverage-check coverage-report
853  clean-local: coverage-clean  clean-local: coverage-clean
854  distclean-local: coverage-clean  distclean-local: coverage-distclean
855    
856    .PHONY: coverage coverage-baseline coverage-check coverage-report coverage-reset coverage-clean-report coverage-clean-data coverage-clean coverage-distclean
857    
858  else  else
859    

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

  ViewVC Help
Powered by ViewVC 1.1.5