/[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 877 by ph10, Sun Jan 15 12:20:28 2012 UTC revision 1165 by chpe, Tue Oct 23 11:17:28 2012 UTC
# Line 64  dist_html_DATA = \ Line 64  dist_html_DATA = \
64    doc/html/pcretest.html \    doc/html/pcretest.html \
65    doc/html/pcreunicode.html    doc/html/pcreunicode.html
66    
67    #   doc/html/pcre32.html \
68    #   doc/html/pcre_utf32_to_host_byte_order.html \
69    #
70    
71  pcrecpp_html = doc/html/pcrecpp.html  pcrecpp_html = doc/html/pcrecpp.html
72  dist_noinst_DATA = $(pcrecpp_html)  dist_noinst_DATA = $(pcrecpp_html)
73    
# Line 81  check_SCRIPTS = Line 85  check_SCRIPTS =
85  dist_noinst_SCRIPTS =  dist_noinst_SCRIPTS =
86    
87  # 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
88  # (non-user-visible) helper programs needed to build libpcre or libpcre16.  # (non-user-visible) helper programs needed to build libpcre, libpcre16
89    # or libpcre32.
90  bin_PROGRAMS =  bin_PROGRAMS =
91  noinst_PROGRAMS =  noinst_PROGRAMS =
92    
# Line 93  MAINTAINERCLEANFILES = Line 98  MAINTAINERCLEANFILES =
98  # the Autotools include by default.  # the Autotools include by default.
99  EXTRA_DIST =  EXTRA_DIST =
100    
101    # These files contain additional m4 macros that are used by autoconf.
102    EXTRA_DIST += \
103      m4/ax_pthread.m4
104    
105  # These files contain maintenance information  # These files contain maintenance information
106  EXTRA_DIST += \  EXTRA_DIST += \
107    doc/perltest.txt \    doc/perltest.txt \
108    NON-UNIX-USE \    NON-UNIX-USE \
109      NON-AUTOTOOLS-BUILD \
110    HACKING    HACKING
111    
112  # These files are used in the preparation of a release  # These files are used in the preparation of a release
# Line 202  libpcre_la_SOURCES = \ Line 212  libpcre_la_SOURCES = \
212    pcre_xclass.c \    pcre_xclass.c \
213    ucp.h    ucp.h
214    
215    libpcre_la_CFLAGS = \
216      $(AM_CFLAGS)
217    
218    libpcre_la_LIBADD =
219    
220  ## 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.
221  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
222    pcre_chartables.c    pcre_chartables.c
# Line 235  libpcre16_la_SOURCES = \ Line 250  libpcre16_la_SOURCES = \
250    pcre16_version.c \    pcre16_version.c \
251    pcre16_xclass.c    pcre16_xclass.c
252    
253    libpcre16_la_CFLAGS = \
254      $(AM_CFLAGS)
255    
256    libpcre16_la_LIBADD =
257    
258  ## 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.
259  nodist_libpcre16_la_SOURCES = \  nodist_libpcre16_la_SOURCES = \
260    pcre_chartables.c    pcre_chartables.c
261    
262  endif # WITH_PCRE16  endif # WITH_PCRE16
263    
264    # Build the 32 bit library if it is enabled.
265    if WITH_PCRE32
266    lib_LTLIBRARIES += libpcre32.la
267    libpcre32_la_SOURCES = \
268      pcre32_byte_order.c \
269      pcre32_chartables.c \
270      pcre32_compile.c \
271      pcre32_config.c \
272      pcre32_dfa_exec.c \
273      pcre32_exec.c \
274      pcre32_fullinfo.c \
275      pcre32_get.c \
276      pcre32_globals.c \
277      pcre32_jit_compile.c \
278      pcre32_maketables.c \
279      pcre32_newline.c \
280      pcre32_ord2utf32.c \
281      pcre32_refcount.c \
282      pcre32_string_utils.c \
283      pcre32_study.c \
284      pcre32_tables.c \
285      pcre32_ucd.c \
286      pcre32_utf32_utils.c \
287      pcre32_valid_utf32.c \
288      pcre32_version.c \
289      pcre32_xclass.c
290    
291    libpcre32_la_CFLAGS = \
292      $(AM_CFLAGS)
293    libpcre32_la_LIBADD =
294    
295    ## This file is generated as part of the building process, so don't distribute.
296    nodist_libpcre32_la_SOURCES = \
297      pcre_chartables.c
298    
299    endif # WITH_PCRE32
300    
301  # 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,
302  # used unless --enable-rebuild-chartables is specified.  # used unless --enable-rebuild-chartables is specified.
303  EXTRA_DIST += pcre_chartables.c.dist  EXTRA_DIST += pcre_chartables.c.dist
# Line 271  endif # WITH_PCRE8 Line 328  endif # WITH_PCRE8
328  if WITH_PCRE16  if WITH_PCRE16
329  libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)  libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)
330  endif # WITH_PCRE16  endif # WITH_PCRE16
331    if WITH_PCRE32
332    libpcre32_la_LDFLAGS = $(EXTRA_LIBPCRE32_LDFLAGS)
333    endif # WITH_PCRE32
334    
335    if WITH_VALGRIND
336    if WITH_PCRE8
337    libpcre_la_CFLAGS += $(VALGRIND_CFLAGS)
338    endif # WITH_PCRE8
339    if WITH_PCRE16
340    libpcre16_la_CFLAGS += $(VALGRIND_CFLAGS)
341    endif # WITH_PCRE16
342    if WITH_PCRE32
343    libpcre32_la_CFLAGS += $(VALGRIND_CFLAGS)
344    endif # WITH_PCRE32
345    endif # WITH_VALGRIND
346    
347    if WITH_GCOV
348    if WITH_PCRE8
349    libpcre_la_CFLAGS += $(GCOV_CFLAGS)
350    endif # WITH_PCRE8
351    if WITH_PCRE16
352    libpcre16_la_CFLAGS += $(GCOV_CFLAGS)
353    endif # WITH_PCRE16
354    if WITH_PCRE32
355    libpcre32_la_CFLAGS += $(GCOV_CFLAGS)
356    endif # WITH_PCRE32
357    endif # WITH_GCOV
358    
359  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
360    
# Line 279  if WITH_JIT Line 363  if WITH_JIT
363  TESTS += pcre_jit_test  TESTS += pcre_jit_test
364  noinst_PROGRAMS += pcre_jit_test  noinst_PROGRAMS += pcre_jit_test
365  pcre_jit_test_SOURCES = pcre_jit_test.c  pcre_jit_test_SOURCES = pcre_jit_test.c
366    pcre_jit_test_CFLAGS = $(AM_CFLAGS)
367  pcre_jit_test_LDADD =  pcre_jit_test_LDADD =
368  if WITH_PCRE8  if WITH_PCRE8
369  pcre_jit_test_LDADD += libpcre.la  pcre_jit_test_LDADD += libpcre.la
# Line 286  endif # WITH_PCRE8 Line 371  endif # WITH_PCRE8
371  if WITH_PCRE16  if WITH_PCRE16
372  pcre_jit_test_LDADD += libpcre16.la  pcre_jit_test_LDADD += libpcre16.la
373  endif # WITH_PCRE16  endif # WITH_PCRE16
374    if WITH_PCRE32
375    pcre_jit_test_LDADD += libpcre32.la
376    endif # WITH_PCRE32
377    if WITH_GCOV
378    pcre_jit_test_CFLAGS += $(GCOV_CFLAGS)
379    pcre_jit_test_LDADD += $(GCOV_LIBS)
380    endif # WITH_GCOV
381  endif # WITH_JIT  endif # WITH_JIT
382    
383  ## 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.
384  if WITH_PCRE8  if WITH_PCRE8
385    
386  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
387  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
388    pcreposix.c    pcreposix.c
389    libpcreposix_la_CFLAGS = $(AM_CFLAGS)
390  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
391  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
392    
393    if WITH_GCOV
394    libpcreposix_la_CFLAGS += $(GCOV_CFLAGS)
395    endif # WITH_GCOV
396    
397  endif # WITH_PCRE8  endif # WITH_PCRE8
398    
399  ## There's a C++ library as well.  ## There's a C++ library as well.
# Line 306  libpcrecpp_la_SOURCES = \ Line 405  libpcrecpp_la_SOURCES = \
405    pcrecpp.cc \    pcrecpp.cc \
406    pcre_scanner.cc \    pcre_scanner.cc \
407    pcre_stringpiece.cc    pcre_stringpiece.cc
408    libpcrecpp_la_CXXFLAGS = $(AM_CXXFLAGS)
409  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
410  libpcrecpp_la_LIBADD = libpcre.la  libpcrecpp_la_LIBADD = libpcre.la
411    
412  TESTS += pcrecpp_unittest  TESTS += pcrecpp_unittest
413  noinst_PROGRAMS += pcrecpp_unittest  noinst_PROGRAMS += pcrecpp_unittest
414  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
415    pcrecpp_unittest_CXXFLAGS = $(AM_CXXFLAGS)
416  pcrecpp_unittest_LDADD = libpcrecpp.la  pcrecpp_unittest_LDADD = libpcrecpp.la
417    
418  TESTS += pcre_scanner_unittest  TESTS += pcre_scanner_unittest
419  noinst_PROGRAMS += pcre_scanner_unittest  noinst_PROGRAMS += pcre_scanner_unittest
420  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
421    pcre_scanner_unittest_CXXFLAGS = $(AM_CXXFLAGS)
422  pcre_scanner_unittest_LDADD = libpcrecpp.la  pcre_scanner_unittest_LDADD = libpcrecpp.la
423    
424  TESTS += pcre_stringpiece_unittest  TESTS += pcre_stringpiece_unittest
425  noinst_PROGRAMS += pcre_stringpiece_unittest  noinst_PROGRAMS += pcre_stringpiece_unittest
426  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
427    pcre_stringpiece_unittest_CXXFLAGS = $(AM_CXXFLAGS)
428  pcre_stringpiece_unittest_LDADD = libpcrecpp.la  pcre_stringpiece_unittest_LDADD = libpcrecpp.la
429    
430    if WITH_GCOV
431    libpcrecpp_la_CXXFLAGS += $(GCOV_CXXFLAGS)
432    pcrecpp_unittest_LDADD += $(GCOV_LIBS)
433    pcre_scanner_unittest_LDADD += $(GCOV_LIBS)
434    pcre_stringpiece_unittest_LDADD += $(GCOV_LIBS)
435    endif # WITH_GCOV
436    
437  endif # WITH_PCRE_CPP  endif # WITH_PCRE_CPP
438    
439  ## The main unit tests  ## The main unit tests
# Line 336  dist_noinst_SCRIPTS += RunTest Line 446  dist_noinst_SCRIPTS += RunTest
446  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
447  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
448  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
449    pcretest_CFLAGS = $(AM_CFLAGS)
450  pcretest_LDADD = $(LIBREADLINE)  pcretest_LDADD = $(LIBREADLINE)
451  if WITH_PCRE8  if WITH_PCRE8
452  pcretest_SOURCES += pcre_printint.c  pcretest_SOURCES += pcre_printint.c
453  pcretest_LDADD += libpcreposix.la  pcretest_LDADD += libpcre.la libpcreposix.la
454  endif # WITH_PCRE8  endif # WITH_PCRE8
455  if WITH_PCRE16  if WITH_PCRE16
456  pcretest_SOURCES += pcre16_printint.c  pcretest_SOURCES += pcre16_printint.c
457  pcretest_LDADD += libpcre16.la  pcretest_LDADD += libpcre16.la
458  endif # WITH_PCRE16  endif # WITH_PCRE16
459    if WITH_PCRE32
460    pcretest_SOURCES += pcre32_printint.c
461    pcretest_LDADD += libpcre32.la
462    endif # WITH_PCRE32
463    if WITH_VALGRIND
464    pcretest_CFLAGS += $(VALGRIND_CFLAGS)
465    endif # WITH_VALGRIND
466    if WITH_GCOV
467    pcretest_CFLAGS += $(GCOV_CFLAGS)
468    pcretest_LDADD += $(GCOV_LIBS)
469    endif # WITH_GCOV
470    
471  if WITH_PCRE8  if WITH_PCRE8
472  TESTS += RunGrepTest  TESTS += RunGrepTest
473  dist_noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
474  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
475  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
476    pcregrep_CFLAGS = $(AM_CFLAGS)
477  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
478  pcregrep_LDADD += libpcreposix.la  pcregrep_LDADD += libpcre.la libpcreposix.la
479    if WITH_GCOV
480    pcregrep_CFLAGS += $(GCOV_CFLAGS)
481    pcregrep_LDADD += $(GCOV_LIBS)
482    endif # WITH_GCOV
483  endif # WITH_PCRE8  endif # WITH_PCRE8
484    
485  EXTRA_DIST += \  EXTRA_DIST += \
486      testdata/grepbinary \
487      testdata/grepfilelist \
488    testdata/grepinput \    testdata/grepinput \
489    testdata/grepinput3 \    testdata/grepinput3 \
490    testdata/grepinput8 \    testdata/grepinput8 \
# Line 371  EXTRA_DIST += \ Line 500  EXTRA_DIST += \
500    testdata/saved16BE-2 \    testdata/saved16BE-2 \
501    testdata/saved16LE-1 \    testdata/saved16LE-1 \
502    testdata/saved16LE-2 \    testdata/saved16LE-2 \
503      testdata/saved32 \
504      testdata/saved32BE-1 \
505      testdata/saved32BE-2 \
506      testdata/saved32LE-1 \
507      testdata/saved32LE-2 \
508    testdata/saved8 \    testdata/saved8 \
509    testdata/testinput1 \    testdata/testinput1 \
510    testdata/testinput2 \    testdata/testinput2 \
# Line 392  EXTRA_DIST += \ Line 526  EXTRA_DIST += \
526    testdata/testinput18 \    testdata/testinput18 \
527    testdata/testinput19 \    testdata/testinput19 \
528    testdata/testinput20 \    testdata/testinput20 \
529      testdata/testinput21 \
530      testdata/testinput22 \
531      testdata/testinput23 \
532      testdata/testinput24 \
533      testdata/testinput25 \
534      testdata/testinput26 \
535      testdata/testinputEBC \
536    testdata/testoutput1 \    testdata/testoutput1 \
537    testdata/testoutput2 \    testdata/testoutput2 \
538    testdata/testoutput3 \    testdata/testoutput3 \
# Line 402  EXTRA_DIST += \ Line 543  EXTRA_DIST += \
543    testdata/testoutput8 \    testdata/testoutput8 \
544    testdata/testoutput9 \    testdata/testoutput9 \
545    testdata/testoutput10 \    testdata/testoutput10 \
   testdata/testoutput11-16 \  
546    testdata/testoutput11-8 \    testdata/testoutput11-8 \
547      testdata/testoutput11-16 \
548      testdata/testoutput11-32 \
549    testdata/testoutput12 \    testdata/testoutput12 \
550    testdata/testoutput13 \    testdata/testoutput13 \
551    testdata/testoutput14 \    testdata/testoutput14 \
552    testdata/testoutput15 \    testdata/testoutput15 \
553    testdata/testoutput16 \    testdata/testoutput16 \
554    testdata/testoutput17 \    testdata/testoutput17 \
555    testdata/testoutput18 \    testdata/testoutput18-16 \
556      testdata/testoutput18-32 \
557    testdata/testoutput19 \    testdata/testoutput19 \
558    testdata/testoutput20 \    testdata/testoutput20 \
559      testdata/testoutput21-16 \
560      testdata/testoutput21-32 \
561      testdata/testoutput22-16 \
562      testdata/testoutput22-32 \
563      testdata/testoutput23 \
564      testdata/testoutput24 \
565      testdata/testoutput25 \
566      testdata/testoutput26 \
567      testdata/testoutputEBC \
568    testdata/wintestinput3 \    testdata/wintestinput3 \
569    testdata/wintestoutput3 \    testdata/wintestoutput3 \
570    perltest.pl    perltest.pl
# Line 420  EXTRA_DIST += \ Line 572  EXTRA_DIST += \
572  CLEANFILES += \  CLEANFILES += \
573          testsavedregex \          testsavedregex \
574          teststderr \          teststderr \
575            testtemp* \
576          testtry \          testtry \
577          testNinput          testNinput
578    
# Line 463  pkgconfig_DATA = libpcre.pc libpcreposix Line 616  pkgconfig_DATA = libpcre.pc libpcreposix
616  if WITH_PCRE16  if WITH_PCRE16
617  pkgconfig_DATA += libpcre16.pc  pkgconfig_DATA += libpcre16.pc
618  endif  endif
619    if WITH_PCRE32
620    pkgconfig_DATA += libpcre32.pc
621    endif
622  if WITH_PCRE_CPP  if WITH_PCRE_CPP
623  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
624  endif  endif
# Line 470  endif Line 626  endif
626  dist_man_MANS = \  dist_man_MANS = \
627    doc/pcre.3 \    doc/pcre.3 \
628    doc/pcre16.3 \    doc/pcre16.3 \
629      doc/pcre32.3 \
630    doc/pcre-config.1 \    doc/pcre-config.1 \
631    doc/pcre_assign_jit_stack.3 \    doc/pcre_assign_jit_stack.3 \
632    doc/pcre_compile.3 \    doc/pcre_compile.3 \
# Line 495  dist_man_MANS = \ Line 652  dist_man_MANS = \
652    doc/pcre_refcount.3 \    doc/pcre_refcount.3 \
653    doc/pcre_study.3 \    doc/pcre_study.3 \
654    doc/pcre_utf16_to_host_byte_order.3 \    doc/pcre_utf16_to_host_byte_order.3 \
655      doc/pcre_utf32_to_host_byte_order.3 \
656    doc/pcre_version.3 \    doc/pcre_version.3 \
657    doc/pcreapi.3 \    doc/pcreapi.3 \
658    doc/pcrebuild.3 \    doc/pcrebuild.3 \
# Line 515  dist_man_MANS = \ Line 673  dist_man_MANS = \
673    doc/pcretest.1 \    doc/pcretest.1 \
674    doc/pcreunicode.3    doc/pcreunicode.3
675    
676  # 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.
677  install-exec-hook:  install-data-hook:
678          pushd $(DESTDIR)($man3dir)          ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre16_assign_jit_stack.3
679          ln -s pcre_assign_jit_stack.3            pcre16_assign_jit_stack.3          ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre16_compile.3
680          ln -s pcre_compile.3                     pcre16_compile.3          ln -sf pcre_compile2.3                   $(DESTDIR)$(man3dir)/pcre16_compile2.3
681          ln -s pcre_compile2.3                    pcre16_compile2.3          ln -sf pcre_config.3                     $(DESTDIR)$(man3dir)/pcre16_config.3
682          ln -s pcre_config.3                      pcre16_config.3          ln -sf pcre_copy_named_substring.3       $(DESTDIR)$(man3dir)/pcre16_copy_named_substring.3
683          ln -s pcre_copy_named_substring.3        pcre16_copy_named_substring.3          ln -sf pcre_copy_substring.3             $(DESTDIR)$(man3dir)/pcre16_copy_substring.3
684          ln -s pcre_copy_substring.3              pcre16_copy_substring.3          ln -sf pcre_dfa_exec.3                   $(DESTDIR)$(man3dir)/pcre16_dfa_exec.3
685          ln -s pcre_dfa_exec.3                    pcre16_dfa_exec.3          ln -sf pcre_exec.3                       $(DESTDIR)$(man3dir)/pcre16_exec.3
686          ln -s pcre_exec.3                        pcre16_exec.3          ln -sf pcre_free_study.3                 $(DESTDIR)$(man3dir)/pcre16_free_study.3
687          ln -s pcre_free_study.3                  pcre16_free_study.3          ln -sf pcre_free_substring.3             $(DESTDIR)$(man3dir)/pcre16_free_substring.3
688          ln -s pcre_free_substring.3              pcre16_free_substring.3          ln -sf pcre_free_substring_list.3        $(DESTDIR)$(man3dir)/pcre16_free_substring_list.3
689          ln -s pcre_free_substring_list.3         pcre16_free_substring_list.3          ln -sf pcre_fullinfo.3                   $(DESTDIR)$(man3dir)/pcre16_fullinfo.3
690          ln -s pcre_fullinfo.3                    pcre16_fullinfo.3          ln -sf pcre_get_named_substring.3        $(DESTDIR)$(man3dir)/pcre16_get_named_substring.3
691          ln -s pcre_get_named_substring.3         pcre16_get_named_substring.3          ln -sf pcre_get_stringnumber.3           $(DESTDIR)$(man3dir)/pcre16_get_stringnumber.3
692          ln -s pcre_get_stringnumber.3            pcre16_get_stringnumber.3          ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre16_get_stringtable_entries.3
693          ln -s pcre_get_stringtable_entries.3     pcre16_get_stringtable_entries.3          ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3
694          ln -s pcre_get_substring.3               pcre16_get_substring.3          ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre16_get_substring_list.3
695          ln -s pcre_get_substring_list.3          pcre16_get_substring_list.3          ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre16_jit_stack_alloc.3
696          ln -s pcre_jit_stack_alloc.3             pcre16_jit_stack_alloc.3          ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre16_jit_stack_free.3
697          ln -s pcre_jit_stack_free.3              pcre16_jit_stack_free.3          ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre16_maketables.3
698          ln -s pcre_maketables.3                  pcre16_maketables.3          ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_pattern_to_host_byte_order.3
699          ln -s pcre_pattern_to_host_byte_order.3  pcre16_pattern_to_host_byte_order.3          ln -sf pcre_refcount.3                   $(DESTDIR)$(man3dir)/pcre16_refcount.3
700          ln -s pcre_refcount.3                    pcre16_refcount.3          ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre16_study.3
701          ln -s pcre_study.3                       pcre16_study.3          ln -sf pcre_utf16_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre16_utf16_to_host_byte_order.3
702          ln -s pcre_utf16_to_host_byte_order.3    pcre16_utf16_to_host_byte_order.3          ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre16_version.3
703          ln -s pcre_version.3                     pcre16_version.3          ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre32_assign_jit_stack.3
704          popd          ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre32_compile.3
705            ln -sf pcre_compile2.3                   $(DESTDIR)$(man3dir)/pcre32_compile2.3
706            ln -sf pcre_config.3                     $(DESTDIR)$(man3dir)/pcre32_config.3
707            ln -sf pcre_copy_named_substring.3       $(DESTDIR)$(man3dir)/pcre32_copy_named_substring.3
708            ln -sf pcre_copy_substring.3             $(DESTDIR)$(man3dir)/pcre32_copy_substring.3
709            ln -sf pcre_dfa_exec.3                   $(DESTDIR)$(man3dir)/pcre32_dfa_exec.3
710            ln -sf pcre_exec.3                       $(DESTDIR)$(man3dir)/pcre32_exec.3
711            ln -sf pcre_free_study.3                 $(DESTDIR)$(man3dir)/pcre32_free_study.3
712            ln -sf pcre_free_substring.3             $(DESTDIR)$(man3dir)/pcre32_free_substring.3
713            ln -sf pcre_free_substring_list.3        $(DESTDIR)$(man3dir)/pcre32_free_substring_list.3
714            ln -sf pcre_fullinfo.3                   $(DESTDIR)$(man3dir)/pcre32_fullinfo.3
715            ln -sf pcre_get_named_substring.3        $(DESTDIR)$(man3dir)/pcre32_get_named_substring.3
716            ln -sf pcre_get_stringnumber.3           $(DESTDIR)$(man3dir)/pcre32_get_stringnumber.3
717            ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre32_get_stringtable_entries.3
718            ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3
719            ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre32_get_substring_list.3
720            ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre32_jit_stack_alloc.3
721            ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre32_jit_stack_free.3
722            ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3
723            ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_pattern_to_host_byte_order.3
724            ln -sf pcre_refcount.3                   $(DESTDIR)$(man3dir)/pcre32_refcount.3
725            ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre32_study.3
726            ln -sf pcre_utf32_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre32_utf32_to_host_byte_order.3
727            ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre32_version.3
728    
729  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
730  EXTRA_DIST += $(pcrecpp_man)  EXTRA_DIST += $(pcrecpp_man)
# Line 552  if WITH_PCRE_CPP Line 733  if WITH_PCRE_CPP
733  man_MANS = $(pcrecpp_man)  man_MANS = $(pcrecpp_man)
734  endif  endif
735    
736    # gcov/lcov code coverage reporting
737    
738    if WITH_GCOV
739    
740    GCOV_NAME = $(PACKAGE)-$(VERSION)
741    GCOV_OUTPUT_FILE = $(GCOV_NAME)-coverage.info
742    GCOV_OUTPUT_DIR = $(GCOV_NAME)-coverage
743    GCOV_LCOV_FLAGS =
744    GCOV_GENHTML_FLAGS =
745    
746    gcov_quiet = $(gcov_quiet_$(V))
747    gcov_quiet_ = $(gcov_quiet_$(AM_DEFAULT_VERBOSITY))
748    gcov_quiet_0 = --quiet
749    
750    coverage-check: all
751            -$(MAKE) $(AM_MAKEFLAGS) -k check
752    
753    coverage-report:
754            $(LCOV) $(gcov_quiet) \
755                    --directory $(top_builddir) \
756                    --capture \
757                    --output-file "$(GCOV_OUTPUT_FILE).tmp" \
758                    --test-name "$(GCOV_NAME)" \
759                    --no-checksum \
760                    --compat-libtool \
761                    $(GCOV_LCOV_FLAGS)
762            $(LCOV) $(gcov_quiet) \
763                    --directory $(top_builddir) \
764                    --output-file "$(GCOV_OUTPUT_FILE)" \
765                    --remove "$(GCOV_OUTPUT_FILE).tmp" \
766                    "/tmp/*" \
767                    "/usr/include/*" \
768                    "$(includedir)/*"
769            -@rm -f "$(GCOV_OUTPUT_FILE).tmp"
770            LANG=C $(GENHTML) $(gcov_quiet) \
771                    --prefix $(top_builddir) \
772                    --output-directory "$(GCOV_OUTPUT_DIR)" \
773                    --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
774                    --show-details "$(GCOV_OUTPUT_FILE)" \
775                    --legend \
776                    $(GCOV_GENHTML_FLAGS)
777            @echo "Code coverage report written to file://$(abs_builddir)/$(GCOV_OUTPUT_DIR)/index.html"
778    
779    coverage-clean:
780            -$(LCOV) $(gcov_quiet) --zerocounters --directory $(top_builddir)
781            -rm -f "$(GCOV_OUTPUT_FILE)"
782            -rm -f "$(GCOV_OUTPUT_FILE).tmp"
783            -rm -rf "$(GCOV_NAME)"
784            -find $(top_builddir) -name '*.gcda' -o -name "*.gcov" -delete
785    
786    coverage: coverage-check coverage-report
787    clean-local: coverage-clean
788    distclean-local: coverage-clean
789    
790    else
791    
792    coverage:
793            @echo "Configuring with --enable-coverage required to generate code coverage report."
794    
795    endif # WITH_GCOV
796    
797  ## CMake support  ## CMake support
798    
799  EXTRA_DIST += \  EXTRA_DIST += \
800    cmake/COPYING-CMAKE-SCRIPTS \    cmake/COPYING-CMAKE-SCRIPTS \
801    cmake/FindPackageHandleStandardArgs.cmake \    cmake/FindPackageHandleStandardArgs.cmake \
802    cmake/FindReadline.cmake \    cmake/FindReadline.cmake \
803      cmake/FindEditline.cmake \
804    CMakeLists.txt \    CMakeLists.txt \
805    config-cmake.h.in    config-cmake.h.in
806    

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

  ViewVC Help
Powered by ViewVC 1.1.5