/[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 1019 by ph10, Mon Aug 27 13:15:02 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 81  check_SCRIPTS = Line 84  check_SCRIPTS =
84  dist_noinst_SCRIPTS =  dist_noinst_SCRIPTS =
85    
86  # Some of the binaries we make are to be installed, and others are  # Some of the binaries we make are to be installed, and others are
87  # (non-user-visible) helper programs needed to build libpcre or libpcre16.  # (non-user-visible) helper programs needed to build libpcre, libpcre16
88    # or libpcre32.
89  bin_PROGRAMS =  bin_PROGRAMS =
90  noinst_PROGRAMS =  noinst_PROGRAMS =
91    
# Line 95  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 127  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 183  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 207  libpcre_la_SOURCES = \ Line 240  libpcre_la_SOURCES = \
240    pcre_xclass.c \    pcre_xclass.c \
241    ucp.h    ucp.h
242    
243    libpcre_la_CFLAGS = \
244      $(VISIBILITY_CFLAGS) \
245      $(AM_CFLAGS)
246    
247    libpcre_la_LIBADD =
248    
249  ## 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.
250  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
251    pcre_chartables.c    pcre_chartables.c
# Line 240  libpcre16_la_SOURCES = \ Line 279  libpcre16_la_SOURCES = \
279    pcre16_version.c \    pcre16_version.c \
280    pcre16_xclass.c    pcre16_xclass.c
281    
282    libpcre16_la_CFLAGS = \
283      $(VISIBILITY_CFLAGS) \
284      $(AM_CFLAGS)
285    
286    libpcre16_la_LIBADD =
287    
288  ## 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.
289  nodist_libpcre16_la_SOURCES = \  nodist_libpcre16_la_SOURCES = \
290    pcre_chartables.c    pcre_chartables.c
291    
292  endif # WITH_PCRE16  endif # WITH_PCRE16
293    
294    # Build the 32 bit library if it is enabled.
295    if WITH_PCRE32
296    lib_LTLIBRARIES += libpcre32.la
297    libpcre32_la_SOURCES = \
298      pcre32_byte_order.c \
299      pcre32_chartables.c \
300      pcre32_compile.c \
301      pcre32_config.c \
302      pcre32_dfa_exec.c \
303      pcre32_exec.c \
304      pcre32_fullinfo.c \
305      pcre32_get.c \
306      pcre32_globals.c \
307      pcre32_jit_compile.c \
308      pcre32_maketables.c \
309      pcre32_newline.c \
310      pcre32_ord2utf32.c \
311      pcre32_refcount.c \
312      pcre32_string_utils.c \
313      pcre32_study.c \
314      pcre32_tables.c \
315      pcre32_ucd.c \
316      pcre32_utf32_utils.c \
317      pcre32_valid_utf32.c \
318      pcre32_version.c \
319      pcre32_xclass.c
320    
321    libpcre32_la_CFLAGS = \
322      $(VISIBILITY_CFLAGS) \
323      $(AM_CFLAGS)
324    
325    libpcre32_la_LIBADD =
326    
327    ## This file is generated as part of the building process, so don't distribute.
328    nodist_libpcre32_la_SOURCES = \
329      pcre_chartables.c
330    
331    endif # WITH_PCRE32
332    
333  # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,  # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,
334  # used unless --enable-rebuild-chartables is specified.  # used unless --enable-rebuild-chartables is specified.
335  EXTRA_DIST += pcre_chartables.c.dist  EXTRA_DIST += pcre_chartables.c.dist
# Line 265  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 276  endif # WITH_PCRE8 Line 362  endif # WITH_PCRE8
362  if WITH_PCRE16  if WITH_PCRE16
363  libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)  libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)
364  endif # WITH_PCRE16  endif # WITH_PCRE16
365    if WITH_PCRE32
366    libpcre32_la_LDFLAGS = $(EXTRA_LIBPCRE32_LDFLAGS)
367    endif # WITH_PCRE32
368    
369    if WITH_VALGRIND
370    if WITH_PCRE8
371    libpcre_la_CFLAGS += $(VALGRIND_CFLAGS)
372    endif # WITH_PCRE8
373    if WITH_PCRE16
374    libpcre16_la_CFLAGS += $(VALGRIND_CFLAGS)
375    endif # WITH_PCRE16
376    if WITH_PCRE32
377    libpcre32_la_CFLAGS += $(VALGRIND_CFLAGS)
378    endif # WITH_PCRE32
379    endif # WITH_VALGRIND
380    
381    if WITH_GCOV
382    if WITH_PCRE8
383    libpcre_la_CFLAGS += $(GCOV_CFLAGS)
384    endif # WITH_PCRE8
385    if WITH_PCRE16
386    libpcre16_la_CFLAGS += $(GCOV_CFLAGS)
387    endif # WITH_PCRE16
388    if WITH_PCRE32
389    libpcre32_la_CFLAGS += $(GCOV_CFLAGS)
390    endif # WITH_PCRE32
391    endif # WITH_GCOV
392    
393  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
394    
# Line 284  if WITH_JIT Line 397  if WITH_JIT
397  TESTS += pcre_jit_test  TESTS += pcre_jit_test
398  noinst_PROGRAMS += pcre_jit_test  noinst_PROGRAMS += pcre_jit_test
399  pcre_jit_test_SOURCES = pcre_jit_test.c  pcre_jit_test_SOURCES = pcre_jit_test.c
400    pcre_jit_test_CFLAGS = $(AM_CFLAGS)
401  pcre_jit_test_LDADD =  pcre_jit_test_LDADD =
402  if WITH_PCRE8  if WITH_PCRE8
403  pcre_jit_test_LDADD += libpcre.la  pcre_jit_test_LDADD += libpcre.la
# Line 291  endif # WITH_PCRE8 Line 405  endif # WITH_PCRE8
405  if WITH_PCRE16  if WITH_PCRE16
406  pcre_jit_test_LDADD += libpcre16.la  pcre_jit_test_LDADD += libpcre16.la
407  endif # WITH_PCRE16  endif # WITH_PCRE16
408    if WITH_PCRE32
409    pcre_jit_test_LDADD += libpcre32.la
410    endif # WITH_PCRE32
411    if WITH_GCOV
412    pcre_jit_test_CFLAGS += $(GCOV_CFLAGS)
413    pcre_jit_test_LDADD += $(GCOV_LIBS)
414    endif # WITH_GCOV
415  endif # WITH_JIT  endif # WITH_JIT
416    
417  ## A version of the main pcre library that has a posix re API.  ## A version of the main pcre library that has a posix re API.
418  if WITH_PCRE8  if WITH_PCRE8
419    
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 = $(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    
427    if WITH_GCOV
428    libpcreposix_la_CFLAGS += $(GCOV_CFLAGS)
429    endif # WITH_GCOV
430    
431  endif # WITH_PCRE8  endif # WITH_PCRE8
432    
433  ## There's a C++ library as well.  ## There's a C++ library as well.
# Line 311  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 = $(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    
446  TESTS += pcrecpp_unittest  TESTS += pcrecpp_unittest
447  noinst_PROGRAMS += pcrecpp_unittest  noinst_PROGRAMS += pcrecpp_unittest
448  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
449    pcrecpp_unittest_CXXFLAGS = $(AM_CXXFLAGS)
450  pcrecpp_unittest_LDADD = libpcrecpp.la  pcrecpp_unittest_LDADD = libpcrecpp.la
451    
452  TESTS += pcre_scanner_unittest  TESTS += pcre_scanner_unittest
453  noinst_PROGRAMS += pcre_scanner_unittest  noinst_PROGRAMS += pcre_scanner_unittest
454  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
455    pcre_scanner_unittest_CXXFLAGS = $(AM_CXXFLAGS)
456  pcre_scanner_unittest_LDADD = libpcrecpp.la  pcre_scanner_unittest_LDADD = libpcrecpp.la
457    
458  TESTS += pcre_stringpiece_unittest  TESTS += pcre_stringpiece_unittest
459  noinst_PROGRAMS += pcre_stringpiece_unittest  noinst_PROGRAMS += pcre_stringpiece_unittest
460  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
461    pcre_stringpiece_unittest_CXXFLAGS = $(AM_CXXFLAGS)
462  pcre_stringpiece_unittest_LDADD = libpcrecpp.la  pcre_stringpiece_unittest_LDADD = libpcrecpp.la
463    
464    if WITH_GCOV
465    libpcrecpp_la_CXXFLAGS += $(GCOV_CXXFLAGS)
466    pcrecpp_unittest_LDADD += $(GCOV_LIBS)
467    pcre_scanner_unittest_LDADD += $(GCOV_LIBS)
468    pcre_stringpiece_unittest_LDADD += $(GCOV_LIBS)
469    endif # WITH_GCOV
470    
471  endif # WITH_PCRE_CPP  endif # WITH_PCRE_CPP
472    
473  ## The main unit tests  ## The main unit tests
# Line 341  dist_noinst_SCRIPTS += RunTest Line 480  dist_noinst_SCRIPTS += RunTest
480  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
481  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
482  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
483    pcretest_CFLAGS = $(AM_CFLAGS)
484  pcretest_LDADD = $(LIBREADLINE)  pcretest_LDADD = $(LIBREADLINE)
485  if WITH_PCRE8  if WITH_PCRE8
486  pcretest_SOURCES += pcre_printint.c  pcretest_SOURCES += pcre_printint.c
# Line 350  if WITH_PCRE16 Line 490  if WITH_PCRE16
490  pcretest_SOURCES += pcre16_printint.c  pcretest_SOURCES += pcre16_printint.c
491  pcretest_LDADD += libpcre16.la  pcretest_LDADD += libpcre16.la
492  endif # WITH_PCRE16  endif # WITH_PCRE16
493    if WITH_PCRE32
494    pcretest_SOURCES += pcre32_printint.c
495    pcretest_LDADD += libpcre32.la
496    endif # WITH_PCRE32
497    if WITH_VALGRIND
498    pcretest_CFLAGS += $(VALGRIND_CFLAGS)
499    endif # WITH_VALGRIND
500    if WITH_GCOV
501    pcretest_CFLAGS += $(GCOV_CFLAGS)
502    pcretest_LDADD += $(GCOV_LIBS)
503    endif # WITH_GCOV
504    
505  if WITH_PCRE8  if WITH_PCRE8
506  TESTS += RunGrepTest  TESTS += RunGrepTest
507  dist_noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
508  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
509  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
510    pcregrep_CFLAGS = $(AM_CFLAGS)
511  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
512  pcregrep_LDADD += libpcre.la libpcreposix.la  pcregrep_LDADD += libpcre.la libpcreposix.la
513    if WITH_GCOV
514    pcregrep_CFLAGS += $(GCOV_CFLAGS)
515    pcregrep_LDADD += $(GCOV_LIBS)
516    endif # WITH_GCOV
517  endif # WITH_PCRE8  endif # WITH_PCRE8
518    
519  EXTRA_DIST += \  EXTRA_DIST += \
# Line 378  EXTRA_DIST += \ Line 534  EXTRA_DIST += \
534    testdata/saved16BE-2 \    testdata/saved16BE-2 \
535    testdata/saved16LE-1 \    testdata/saved16LE-1 \
536    testdata/saved16LE-2 \    testdata/saved16LE-2 \
537      testdata/saved32 \
538      testdata/saved32BE-1 \
539      testdata/saved32BE-2 \
540      testdata/saved32LE-1 \
541      testdata/saved32LE-2 \
542    testdata/saved8 \    testdata/saved8 \
543    testdata/testinput1 \    testdata/testinput1 \
544    testdata/testinput2 \    testdata/testinput2 \
# Line 401  EXTRA_DIST += \ Line 562  EXTRA_DIST += \
562    testdata/testinput20 \    testdata/testinput20 \
563    testdata/testinput21 \    testdata/testinput21 \
564    testdata/testinput22 \    testdata/testinput22 \
565      testdata/testinput23 \
566      testdata/testinput24 \
567      testdata/testinput25 \
568      testdata/testinput26 \
569      testdata/testinputEBC \
570    testdata/testoutput1 \    testdata/testoutput1 \
571    testdata/testoutput2 \    testdata/testoutput2 \
572    testdata/testoutput3 \    testdata/testoutput3 \
# Line 411  EXTRA_DIST += \ Line 577  EXTRA_DIST += \
577    testdata/testoutput8 \    testdata/testoutput8 \
578    testdata/testoutput9 \    testdata/testoutput9 \
579    testdata/testoutput10 \    testdata/testoutput10 \
   testdata/testoutput11-16 \  
580    testdata/testoutput11-8 \    testdata/testoutput11-8 \
581      testdata/testoutput11-16 \
582      testdata/testoutput11-32 \
583    testdata/testoutput12 \    testdata/testoutput12 \
584    testdata/testoutput13 \    testdata/testoutput13 \
585    testdata/testoutput14 \    testdata/testoutput14 \
586    testdata/testoutput15 \    testdata/testoutput15 \
587    testdata/testoutput16 \    testdata/testoutput16 \
588    testdata/testoutput17 \    testdata/testoutput17 \
589    testdata/testoutput18 \    testdata/testoutput18-16 \
590      testdata/testoutput18-32 \
591    testdata/testoutput19 \    testdata/testoutput19 \
592    testdata/testoutput20 \    testdata/testoutput20 \
593    testdata/testoutput21 \    testdata/testoutput21-16 \
594    testdata/testoutput22 \    testdata/testoutput21-32 \
595      testdata/testoutput22-16 \
596      testdata/testoutput22-32 \
597      testdata/testoutput23 \
598      testdata/testoutput24 \
599      testdata/testoutput25 \
600      testdata/testoutput26 \
601      testdata/testoutputEBC \
602    testdata/wintestinput3 \    testdata/wintestinput3 \
603    testdata/wintestoutput3 \    testdata/wintestoutput3 \
604    perltest.pl    perltest.pl
# Line 431  EXTRA_DIST += \ Line 606  EXTRA_DIST += \
606  CLEANFILES += \  CLEANFILES += \
607          testsavedregex \          testsavedregex \
608          teststderr \          teststderr \
609            testtemp* \
610          testtry \          testtry \
611          testNinput          testNinput
612    
# Line 474  pkgconfig_DATA = libpcre.pc libpcreposix Line 650  pkgconfig_DATA = libpcre.pc libpcreposix
650  if WITH_PCRE16  if WITH_PCRE16
651  pkgconfig_DATA += libpcre16.pc  pkgconfig_DATA += libpcre16.pc
652  endif  endif
653    if WITH_PCRE32
654    pkgconfig_DATA += libpcre32.pc
655    endif
656  if WITH_PCRE_CPP  if WITH_PCRE_CPP
657  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
658  endif  endif
# Line 481  endif Line 660  endif
660  dist_man_MANS = \  dist_man_MANS = \
661    doc/pcre.3 \    doc/pcre.3 \
662    doc/pcre16.3 \    doc/pcre16.3 \
663      doc/pcre32.3 \
664    doc/pcre-config.1 \    doc/pcre-config.1 \
665    doc/pcre_assign_jit_stack.3 \    doc/pcre_assign_jit_stack.3 \
666    doc/pcre_compile.3 \    doc/pcre_compile.3 \
# Line 499  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 506  dist_man_MANS = \ Line 687  dist_man_MANS = \
687    doc/pcre_refcount.3 \    doc/pcre_refcount.3 \
688    doc/pcre_study.3 \    doc/pcre_study.3 \
689    doc/pcre_utf16_to_host_byte_order.3 \    doc/pcre_utf16_to_host_byte_order.3 \
690      doc/pcre_utf32_to_host_byte_order.3 \
691    doc/pcre_version.3 \    doc/pcre_version.3 \
692    doc/pcreapi.3 \    doc/pcreapi.3 \
693    doc/pcrebuild.3 \    doc/pcrebuild.3 \
# Line 526  dist_man_MANS = \ Line 708  dist_man_MANS = \
708    doc/pcretest.1 \    doc/pcretest.1 \
709    doc/pcreunicode.3    doc/pcreunicode.3
710    
711  # Arrange for the per-function man pages to have 16-bit names as well.  # Arrange for the per-function man pages to have 16- and 32-bit names as well.
712  install-data-hook:  install-data-hook:
713          ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre16_assign_jit_stack.3          ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre16_assign_jit_stack.3
714          ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre16_compile.3          ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre16_compile.3
# Line 545  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 553  install-data-hook: Line 736  install-data-hook:
736          ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre16_study.3          ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre16_study.3
737          ln -sf pcre_utf16_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre16_utf16_to_host_byte_order.3          ln -sf pcre_utf16_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre16_utf16_to_host_byte_order.3
738          ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre16_version.3          ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre16_version.3
739            ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre32_assign_jit_stack.3
740            ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre32_compile.3
741            ln -sf pcre_compile2.3                   $(DESTDIR)$(man3dir)/pcre32_compile2.3
742            ln -sf pcre_config.3                     $(DESTDIR)$(man3dir)/pcre32_config.3
743            ln -sf pcre_copy_named_substring.3       $(DESTDIR)$(man3dir)/pcre32_copy_named_substring.3
744            ln -sf pcre_copy_substring.3             $(DESTDIR)$(man3dir)/pcre32_copy_substring.3
745            ln -sf pcre_dfa_exec.3                   $(DESTDIR)$(man3dir)/pcre32_dfa_exec.3
746            ln -sf pcre_exec.3                       $(DESTDIR)$(man3dir)/pcre32_exec.3
747            ln -sf pcre_free_study.3                 $(DESTDIR)$(man3dir)/pcre32_free_study.3
748            ln -sf pcre_free_substring.3             $(DESTDIR)$(man3dir)/pcre32_free_substring.3
749            ln -sf pcre_free_substring_list.3        $(DESTDIR)$(man3dir)/pcre32_free_substring_list.3
750            ln -sf pcre_fullinfo.3                   $(DESTDIR)$(man3dir)/pcre32_fullinfo.3
751            ln -sf pcre_get_named_substring.3        $(DESTDIR)$(man3dir)/pcre32_get_named_substring.3
752            ln -sf pcre_get_stringnumber.3           $(DESTDIR)$(man3dir)/pcre32_get_stringnumber.3
753            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
755            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
758            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
760            ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_pattern_to_host_byte_order.3
761            ln -sf pcre_refcount.3                   $(DESTDIR)$(man3dir)/pcre32_refcount.3
762            ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre32_study.3
763            ln -sf pcre_utf32_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre32_utf32_to_host_byte_order.3
764            ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre32_version.3
765    
766  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
767  EXTRA_DIST += $(pcrecpp_man)  EXTRA_DIST += $(pcrecpp_man)
# Line 561  if WITH_PCRE_CPP Line 770  if WITH_PCRE_CPP
770  man_MANS = $(pcrecpp_man)  man_MANS = $(pcrecpp_man)
771  endif  endif
772    
773    # gcov/lcov code coverage reporting
774    
775    if WITH_GCOV
776    
777    # Coverage reporting targets:
778    #
779    # coverage: Create a coverage report from 'make check'
780    # coverage-baseline: Capture baseline coverage information
781    # coverage-reset: This zeros the coverage counters only
782    # coverage-report: This creates the coverage report only
783    # coverage-clean-report: This removes the generated coverage report
784    #   without cleaning the coverage data itself
785    # 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
802            -$(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:
812            $(LCOV) $(coverage_quiet) \
813                    --directory $(top_builddir) \
814                    --capture \
815                    --output-file "$(COVERAGE_OUTPUT_FILE).tmp" \
816                    --test-name "$(COVERAGE_TEST_NAME)" \
817                    --no-checksum \
818                    --compat-libtool \
819                    $(COVERAGE_LCOV_EXTRA_FLAGS)
820            $(LCOV) $(coverage_quiet) \
821                    --directory $(top_builddir) \
822                    --output-file "$(COVERAGE_OUTPUT_FILE)" \
823                    --remove "$(COVERAGE_OUTPUT_FILE).tmp" \
824                    "/tmp/*" \
825                    "/usr/include/*" \
826                    "$(includedir)/*"
827            -@rm -f "$(COVERAGE_OUTPUT_FILE).tmp"
828            LANG=C $(GENHTML) $(coverage_quiet) \
829                    --prefix $(top_builddir) \
830                    --output-directory "$(COVERAGE_OUTPUT_DIR)" \
831                    --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
832                    --show-details "$(COVERAGE_OUTPUT_FILE)" \
833                    --legend \
834                    $(COVERAGE_GENHTML_EXTRA_FLAGS)
835            @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-data:
845            -find $(top_builddir) -name "*.gcda" -delete
846    
847    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
854    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
859    
860    coverage:
861            @echo "Configuring with --enable-coverage required to generate code coverage report."
862    
863    endif # WITH_GCOV
864    
865  ## CMake support  ## CMake support
866    
867  EXTRA_DIST += \  EXTRA_DIST += \

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

  ViewVC Help
Powered by ViewVC 1.1.5