/[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 690 by ph10, Sat Sep 10 16:19:31 2011 UTC revision 1196 by ph10, Thu Nov 1 17:41:36 2012 UTC
# Line 17  dist_doc_DATA = \ Line 17  dist_doc_DATA = \
17  dist_html_DATA = \  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 \
21    doc/html/pcre-config.html \    doc/html/pcre-config.html \
22    doc/html/pcre_assign_jit_stack.html \    doc/html/pcre_assign_jit_stack.html \
23    doc/html/pcre_compile.html \    doc/html/pcre_compile.html \
# Line 35  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_info.html \    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 \
43      doc/html/pcre_pattern_to_host_byte_order.html \
44    doc/html/pcre_refcount.html \    doc/html/pcre_refcount.html \
45    doc/html/pcre_study.html \    doc/html/pcre_study.html \
46      doc/html/pcre_utf16_to_host_byte_order.html \
47    doc/html/pcre_version.html \    doc/html/pcre_version.html \
48    doc/html/pcreapi.html \    doc/html/pcreapi.html \
49    doc/html/pcrebuild.html \    doc/html/pcrebuild.html \
# Line 62  dist_html_DATA = \ Line 65  dist_html_DATA = \
65    doc/html/pcretest.html \    doc/html/pcretest.html \
66    doc/html/pcreunicode.html    doc/html/pcreunicode.html
67    
68    #   doc/html/pcre32.html \
69    #   doc/html/pcre_utf32_to_host_byte_order.html \
70    #
71    
72  pcrecpp_html = doc/html/pcrecpp.html  pcrecpp_html = doc/html/pcrecpp.html
73  dist_noinst_DATA = $(pcrecpp_html)  dist_noinst_DATA = $(pcrecpp_html)
74    
# Line 79  check_SCRIPTS = Line 86  check_SCRIPTS =
86  dist_noinst_SCRIPTS =  dist_noinst_SCRIPTS =
87    
88  # 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
89  # (non-user-visible) helper programs needed to build libpcre.  # (non-user-visible) helper programs needed to build libpcre, libpcre16
90    # or libpcre32.
91  bin_PROGRAMS =  bin_PROGRAMS =
92  noinst_PROGRAMS =  noinst_PROGRAMS =
93    
# Line 91  MAINTAINERCLEANFILES = Line 99  MAINTAINERCLEANFILES =
99  # the Autotools include by default.  # the Autotools include by default.
100  EXTRA_DIST =  EXTRA_DIST =
101    
102    # These files contain additional m4 macros that are used by autoconf.
103    EXTRA_DIST += \
104      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 += \
108    doc/perltest.txt \    doc/perltest.txt \
109    NON-UNIX-USE \    NON-UNIX-USE \
110      NON-AUTOTOOLS-BUILD \
111    HACKING    HACKING
112    
113  # These files are used in the preparation of a release  # These files are used in the preparation of a release
114  EXTRA_DIST += \  EXTRA_DIST += \
115    PrepareRelease \    PrepareRelease \
116      CheckMan \
117    CleanTxt \    CleanTxt \
118    Detrail \    Detrail \
119    132html \    132html \
# Line 119  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. It has to be entirely done using files in that
145    # directory, because the source directory may already be configured. If you
146    # just try running configure in a new directory, it complains that the source
147    # directory is already configured.
148    config.h.generic: configure.ac
149            rm -rf $@ _generic
150            mkdir _generic
151            cs=$(srcdir)/config.status; test ! -f $$cs || mv -f $$cs $$cs.aside
152            cd _generic && $(abs_top_srcdir)/configure || :
153            cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs
154            test -f _generic/config.h
155            perl -pe 'if(/^#define\s(?!PACKAGE)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$_="";}' _generic/config.h >$@
156            rm -rf _generic
157    
158    MAINTAINERCLEANFILES += pcre.h.generic config.h.generic
159    
160  # 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
161  # it is generated from pcre.h.in.  # it is generated from pcre.h.in.
# Line 168  pcre_chartables.c: $(srcdir)/pcre_charta Line 200  pcre_chartables.c: $(srcdir)/pcre_charta
200    
201  endif # WITH_REBUILD_CHARTABLES  endif # WITH_REBUILD_CHARTABLES
202    
203    BUILT_SOURCES = pcre_chartables.c
204    
205  ## The main pcre library  ## The main pcre library
206    
207    # Build the 8 bit library if it is enabled.
208    if WITH_PCRE8
209  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
210    
211  libpcre_la_SOURCES = \  libpcre_la_SOURCES = \
212      pcre_byte_order.c \
213    pcre_compile.c \    pcre_compile.c \
214    pcre_config.c \    pcre_config.c \
215    pcre_dfa_exec.c \    pcre_dfa_exec.c \
# Line 179  libpcre_la_SOURCES = \ Line 217  libpcre_la_SOURCES = \
217    pcre_fullinfo.c \    pcre_fullinfo.c \
218    pcre_get.c \    pcre_get.c \
219    pcre_globals.c \    pcre_globals.c \
   pcre_info.c \  
220    pcre_internal.h \    pcre_internal.h \
221    pcre_jit_compile.c \    pcre_jit_compile.c \
222    pcre_maketables.c \    pcre_maketables.c \
223    pcre_newline.c \    pcre_newline.c \
224    pcre_ord2utf8.c \    pcre_ord2utf8.c \
225    pcre_refcount.c \    pcre_refcount.c \
226      pcre_string_utils.c \
227    pcre_study.c \    pcre_study.c \
228    pcre_tables.c \    pcre_tables.c \
   pcre_try_flipped.c \  
229    pcre_ucd.c \    pcre_ucd.c \
230    pcre_valid_utf8.c \    pcre_valid_utf8.c \
231    pcre_version.c \    pcre_version.c \
232    pcre_xclass.c \    pcre_xclass.c \
233    ucp.h    ucp.h
234    
235    libpcre_la_CFLAGS = \
236      $(VISIBILITY_CFLAGS) \
237      $(AM_CFLAGS)
238    
239    libpcre_la_LIBADD =
240    
241  ## 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.
242  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
243    pcre_chartables.c    pcre_chartables.c
244    
245  # The pcre_printint.src file is #included by some source files, so it must be  endif # WITH_PCRE8
246  # distributed. The pcre_chartables.c.dist file is the default version of  
247  # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.  # Build the 16 bit library if it is enabled.
248  EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist  if WITH_PCRE16
249    lib_LTLIBRARIES += libpcre16.la
250    libpcre16_la_SOURCES = \
251      pcre16_byte_order.c \
252      pcre16_chartables.c \
253      pcre16_compile.c \
254      pcre16_config.c \
255      pcre16_dfa_exec.c \
256      pcre16_exec.c \
257      pcre16_fullinfo.c \
258      pcre16_get.c \
259      pcre16_globals.c \
260      pcre16_jit_compile.c \
261      pcre16_maketables.c \
262      pcre16_newline.c \
263      pcre16_ord2utf16.c \
264      pcre16_refcount.c \
265      pcre16_string_utils.c \
266      pcre16_study.c \
267      pcre16_tables.c \
268      pcre16_ucd.c \
269      pcre16_utf16_utils.c \
270      pcre16_valid_utf16.c \
271      pcre16_version.c \
272      pcre16_xclass.c
273    
274    libpcre16_la_CFLAGS = \
275      $(VISIBILITY_CFLAGS) \
276      $(AM_CFLAGS)
277    
278    libpcre16_la_LIBADD =
279    
280    ## This file is generated as part of the building process, so don't distribute.
281    nodist_libpcre16_la_SOURCES = \
282      pcre_chartables.c
283    
284    endif # WITH_PCRE16
285    
286    # Build the 32 bit library if it is enabled.
287    if WITH_PCRE32
288    lib_LTLIBRARIES += libpcre32.la
289    libpcre32_la_SOURCES = \
290      pcre32_byte_order.c \
291      pcre32_chartables.c \
292      pcre32_compile.c \
293      pcre32_config.c \
294      pcre32_dfa_exec.c \
295      pcre32_exec.c \
296      pcre32_fullinfo.c \
297      pcre32_get.c \
298      pcre32_globals.c \
299      pcre32_jit_compile.c \
300      pcre32_maketables.c \
301      pcre32_newline.c \
302      pcre32_ord2utf32.c \
303      pcre32_refcount.c \
304      pcre32_string_utils.c \
305      pcre32_study.c \
306      pcre32_tables.c \
307      pcre32_ucd.c \
308      pcre32_utf32_utils.c \
309      pcre32_valid_utf32.c \
310      pcre32_version.c \
311      pcre32_xclass.c
312    
313    libpcre32_la_CFLAGS = \
314      $(VISIBILITY_CFLAGS) \
315      $(AM_CFLAGS)
316    
317    libpcre32_la_LIBADD =
318    
319    ## This file is generated as part of the building process, so don't distribute.
320    nodist_libpcre32_la_SOURCES = \
321      pcre_chartables.c
322    
323    endif # WITH_PCRE32
324    
325    # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,
326    # used unless --enable-rebuild-chartables is specified.
327    EXTRA_DIST += pcre_chartables.c.dist
328    
329  # The JIT compiler lives in a separate directory, but its files are #included  # The JIT compiler lives in a separate directory, but its files are #included
330  # when pcre_jit_compile.c is processed, so they must be distributed.  # when pcre_jit_compile.c is processed, so they must be distributed.
# Line 219  EXTRA_DIST += \ Line 341  EXTRA_DIST += \
341    sljit/sljitNativePPC_32.c \    sljit/sljitNativePPC_32.c \
342    sljit/sljitNativePPC_64.c \    sljit/sljitNativePPC_64.c \
343    sljit/sljitNativePPC_common.c \    sljit/sljitNativePPC_common.c \
344      sljit/sljitNativeSPARC_32.c \
345      sljit/sljitNativeSPARC_common.c \
346    sljit/sljitNativeX86_32.c \    sljit/sljitNativeX86_32.c \
347    sljit/sljitNativeX86_64.c \    sljit/sljitNativeX86_64.c \
348    sljit/sljitNativeX86_common.c \    sljit/sljitNativeX86_common.c \
349    sljit/sljitUtils.c    sljit/sljitUtils.c
350    
351    if WITH_PCRE8
352  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
353    endif # WITH_PCRE8
354    if WITH_PCRE16
355    libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)
356    endif # WITH_PCRE16
357    if WITH_PCRE32
358    libpcre32_la_LDFLAGS = $(EXTRA_LIBPCRE32_LDFLAGS)
359    endif # WITH_PCRE32
360    
361    if WITH_VALGRIND
362    if WITH_PCRE8
363    libpcre_la_CFLAGS += $(VALGRIND_CFLAGS)
364    endif # WITH_PCRE8
365    if WITH_PCRE16
366    libpcre16_la_CFLAGS += $(VALGRIND_CFLAGS)
367    endif # WITH_PCRE16
368    if WITH_PCRE32
369    libpcre32_la_CFLAGS += $(VALGRIND_CFLAGS)
370    endif # WITH_PCRE32
371    endif # WITH_VALGRIND
372    
373    if WITH_GCOV
374    if WITH_PCRE8
375    libpcre_la_CFLAGS += $(GCOV_CFLAGS)
376    endif # WITH_PCRE8
377    if WITH_PCRE16
378    libpcre16_la_CFLAGS += $(GCOV_CFLAGS)
379    endif # WITH_PCRE16
380    if WITH_PCRE32
381    libpcre32_la_CFLAGS += $(GCOV_CFLAGS)
382    endif # WITH_PCRE32
383    endif # WITH_GCOV
384    
385  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
386    
387  ## If JIT support and UTF-8 is enabled, arrange for the JIT test program to run.  ## If JIT support is enabled, arrange for the JIT test program to run.
388  if WITH_JIT  if WITH_JIT
 if WITH_UTF8  
389  TESTS += pcre_jit_test  TESTS += pcre_jit_test
390  noinst_PROGRAMS += pcre_jit_test  noinst_PROGRAMS += pcre_jit_test
391  pcre_jit_test_SOURCES = pcre_jit_test.c  pcre_jit_test_SOURCES = pcre_jit_test.c
392  pcre_jit_test_LDADD = libpcre.la  pcre_jit_test_CFLAGS = $(AM_CFLAGS)
393  endif # WITH_UTF8  pcre_jit_test_LDADD =
394    if WITH_PCRE8
395    pcre_jit_test_LDADD += libpcre.la
396    endif # WITH_PCRE8
397    if WITH_PCRE16
398    pcre_jit_test_LDADD += libpcre16.la
399    endif # WITH_PCRE16
400    if WITH_PCRE32
401    pcre_jit_test_LDADD += libpcre32.la
402    endif # WITH_PCRE32
403    if WITH_GCOV
404    pcre_jit_test_CFLAGS += $(GCOV_CFLAGS)
405    pcre_jit_test_LDADD += $(GCOV_LIBS)
406    endif # WITH_GCOV
407  endif # WITH_JIT  endif # WITH_JIT
408    
409  ## 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.
410    if WITH_PCRE8
411    
412  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
413  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
414    pcreposix.c    pcreposix.c
415    libpcreposix_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS)
416  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
417  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
418    
419    if WITH_GCOV
420    libpcreposix_la_CFLAGS += $(GCOV_CFLAGS)
421    endif # WITH_GCOV
422    
423    endif # WITH_PCRE8
424    
425  ## There's a C++ library as well.  ## There's a C++ library as well.
426  if WITH_PCRE_CPP  if WITH_PCRE_CPP
427    
# Line 254  libpcrecpp_la_SOURCES = \ Line 431  libpcrecpp_la_SOURCES = \
431    pcrecpp.cc \    pcrecpp.cc \
432    pcre_scanner.cc \    pcre_scanner.cc \
433    pcre_stringpiece.cc    pcre_stringpiece.cc
434    libpcrecpp_la_CXXFLAGS = $(VISIBILITY_CXXFLAGS) $(AM_CXXFLAGS)
435  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
436  libpcrecpp_la_LIBADD = libpcre.la  libpcrecpp_la_LIBADD = libpcre.la
437    
438  TESTS += pcrecpp_unittest  TESTS += pcrecpp_unittest
439  noinst_PROGRAMS += pcrecpp_unittest  noinst_PROGRAMS += pcrecpp_unittest
440  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
441    pcrecpp_unittest_CXXFLAGS = $(AM_CXXFLAGS)
442  pcrecpp_unittest_LDADD = libpcrecpp.la  pcrecpp_unittest_LDADD = libpcrecpp.la
443    
444  TESTS += pcre_scanner_unittest  TESTS += pcre_scanner_unittest
445  noinst_PROGRAMS += pcre_scanner_unittest  noinst_PROGRAMS += pcre_scanner_unittest
446  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
447    pcre_scanner_unittest_CXXFLAGS = $(AM_CXXFLAGS)
448  pcre_scanner_unittest_LDADD = libpcrecpp.la  pcre_scanner_unittest_LDADD = libpcrecpp.la
449    
450  TESTS += pcre_stringpiece_unittest  TESTS += pcre_stringpiece_unittest
451  noinst_PROGRAMS += pcre_stringpiece_unittest  noinst_PROGRAMS += pcre_stringpiece_unittest
452  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
453    pcre_stringpiece_unittest_CXXFLAGS = $(AM_CXXFLAGS)
454  pcre_stringpiece_unittest_LDADD = libpcrecpp.la  pcre_stringpiece_unittest_LDADD = libpcrecpp.la
455    
456    if WITH_GCOV
457    libpcrecpp_la_CXXFLAGS += $(GCOV_CXXFLAGS)
458    pcrecpp_unittest_LDADD += $(GCOV_LIBS)
459    pcre_scanner_unittest_LDADD += $(GCOV_LIBS)
460    pcre_stringpiece_unittest_LDADD += $(GCOV_LIBS)
461    endif # WITH_GCOV
462    
463  endif # WITH_PCRE_CPP  endif # WITH_PCRE_CPP
464    
465  ## The main unit tests  ## The main unit tests
# Line 284  dist_noinst_SCRIPTS += RunTest Line 472  dist_noinst_SCRIPTS += RunTest
472  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
473  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
474  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
475  pcretest_LDADD = libpcreposix.la $(LIBREADLINE)  pcretest_CFLAGS = $(AM_CFLAGS)
476    pcretest_LDADD = $(LIBREADLINE)
477    if WITH_PCRE8
478    pcretest_SOURCES += pcre_printint.c
479    pcretest_LDADD += libpcre.la libpcreposix.la
480    endif # WITH_PCRE8
481    if WITH_PCRE16
482    pcretest_SOURCES += pcre16_printint.c
483    pcretest_LDADD += libpcre16.la
484    endif # WITH_PCRE16
485    if WITH_PCRE32
486    pcretest_SOURCES += pcre32_printint.c
487    pcretest_LDADD += libpcre32.la
488    endif # WITH_PCRE32
489    if WITH_VALGRIND
490    pcretest_CFLAGS += $(VALGRIND_CFLAGS)
491    endif # WITH_VALGRIND
492    if WITH_GCOV
493    pcretest_CFLAGS += $(GCOV_CFLAGS)
494    pcretest_LDADD += $(GCOV_LIBS)
495    endif # WITH_GCOV
496    
497    if WITH_PCRE8
498  TESTS += RunGrepTest  TESTS += RunGrepTest
499  dist_noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
500  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
501  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
502  pcregrep_LDADD = libpcreposix.la $(LIBZ) $(LIBBZ2)  pcregrep_CFLAGS = $(AM_CFLAGS)
503    pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
504    pcregrep_LDADD += libpcre.la libpcreposix.la
505    if WITH_GCOV
506    pcregrep_CFLAGS += $(GCOV_CFLAGS)
507    pcregrep_LDADD += $(GCOV_LIBS)
508    endif # WITH_GCOV
509    endif # WITH_PCRE8
510    
511  EXTRA_DIST += \  EXTRA_DIST += \
512      testdata/grepbinary \
513      testdata/grepfilelist \
514    testdata/grepinput \    testdata/grepinput \
515    testdata/grepinput3 \    testdata/grepinput3 \
516    testdata/grepinput8 \    testdata/grepinput8 \
# Line 302  EXTRA_DIST += \ Line 520  EXTRA_DIST += \
520    testdata/grepoutput \    testdata/grepoutput \
521    testdata/grepoutput8 \    testdata/grepoutput8 \
522    testdata/grepoutputN \    testdata/grepoutputN \
523      testdata/greppatN4 \
524      testdata/saved16 \
525      testdata/saved16BE-1 \
526      testdata/saved16BE-2 \
527      testdata/saved16LE-1 \
528      testdata/saved16LE-2 \
529      testdata/saved32 \
530      testdata/saved32BE-1 \
531      testdata/saved32BE-2 \
532      testdata/saved32LE-1 \
533      testdata/saved32LE-2 \
534      testdata/saved8 \
535    testdata/testinput1 \    testdata/testinput1 \
536    testdata/testinput2 \    testdata/testinput2 \
537    testdata/testinput3 \    testdata/testinput3 \
# Line 317  EXTRA_DIST += \ Line 547  EXTRA_DIST += \
547    testdata/testinput13 \    testdata/testinput13 \
548    testdata/testinput14 \    testdata/testinput14 \
549    testdata/testinput15 \    testdata/testinput15 \
550      testdata/testinput16 \
551      testdata/testinput17 \
552      testdata/testinput18 \
553      testdata/testinput19 \
554      testdata/testinput20 \
555      testdata/testinput21 \
556      testdata/testinput22 \
557      testdata/testinput23 \
558      testdata/testinput24 \
559      testdata/testinput25 \
560      testdata/testinput26 \
561      testdata/testinputEBC \
562    testdata/testoutput1 \    testdata/testoutput1 \
563    testdata/testoutput2 \    testdata/testoutput2 \
564    testdata/testoutput3 \    testdata/testoutput3 \
# Line 327  EXTRA_DIST += \ Line 569  EXTRA_DIST += \
569    testdata/testoutput8 \    testdata/testoutput8 \
570    testdata/testoutput9 \    testdata/testoutput9 \
571    testdata/testoutput10 \    testdata/testoutput10 \
572    testdata/testoutput11 \    testdata/testoutput11-8 \
573      testdata/testoutput11-16 \
574      testdata/testoutput11-32 \
575    testdata/testoutput12 \    testdata/testoutput12 \
576    testdata/testoutput13 \    testdata/testoutput13 \
577    testdata/testoutput14 \    testdata/testoutput14 \
578    testdata/testoutput15 \    testdata/testoutput15 \
579      testdata/testoutput16 \
580      testdata/testoutput17 \
581      testdata/testoutput18-16 \
582      testdata/testoutput18-32 \
583      testdata/testoutput19 \
584      testdata/testoutput20 \
585      testdata/testoutput21-16 \
586      testdata/testoutput21-32 \
587      testdata/testoutput22-16 \
588      testdata/testoutput22-32 \
589      testdata/testoutput23 \
590      testdata/testoutput24 \
591      testdata/testoutput25 \
592      testdata/testoutput26 \
593      testdata/testoutputEBC \
594    testdata/wintestinput3 \    testdata/wintestinput3 \
595    testdata/wintestoutput3 \    testdata/wintestoutput3 \
596    perltest.pl    perltest.pl
# Line 339  EXTRA_DIST += \ Line 598  EXTRA_DIST += \
598  CLEANFILES += \  CLEANFILES += \
599          testsavedregex \          testsavedregex \
600          teststderr \          teststderr \
601            testtemp* \
602          testtry \          testtry \
603          testNinput          testNinput
604    
# Line 361  test: check ; Line 621  test: check ;
621  # A PCRE user submitted the following addition, saying that it "will allow  # A PCRE user submitted the following addition, saying that it "will allow
622  # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a  # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
623  # nice DLL for Windows use". (It is used by the pcre.dll target.)  # nice DLL for Windows use". (It is used by the pcre.dll target.)
624  DLL_OBJS= pcre_compile.o pcre_config.o \  DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
625          pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \          pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
626          pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \          pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
627          pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \          pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
628          pcre_study.o pcre_tables.o pcre_try_flipped.o \          pcre_study.o pcre_tables.o pcre_ucd.o \
629          pcre_ucd.o pcre_valid_utf8.o pcre_version.o \          pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
         pcre_chartables.o \  
630          pcre_xclass.o          pcre_xclass.o
631    
632  # A PCRE user submitted the following addition, saying that it "will allow  # A PCRE user submitted the following addition, saying that it "will allow
# Line 380  pcre.dll: $(DLL_OBJS) Line 639  pcre.dll: $(DLL_OBJS)
639  # We have .pc files for pkg-config users.  # We have .pc files for pkg-config users.
640  pkgconfigdir = $(libdir)/pkgconfig  pkgconfigdir = $(libdir)/pkgconfig
641  pkgconfig_DATA = libpcre.pc libpcreposix.pc  pkgconfig_DATA = libpcre.pc libpcreposix.pc
642    if WITH_PCRE16
643    pkgconfig_DATA += libpcre16.pc
644    endif
645    if WITH_PCRE32
646    pkgconfig_DATA += libpcre32.pc
647    endif
648  if WITH_PCRE_CPP  if WITH_PCRE_CPP
649  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
650  endif  endif
651    
652  dist_man_MANS = \  dist_man_MANS = \
653    doc/pcre.3 \    doc/pcre.3 \
654      doc/pcre16.3 \
655      doc/pcre32.3 \
656    doc/pcre-config.1 \    doc/pcre-config.1 \
657    doc/pcre_assign_jit_stack.3 \    doc/pcre_assign_jit_stack.3 \
658    doc/pcre_compile.3 \    doc/pcre_compile.3 \
# Line 404  dist_man_MANS = \ Line 671  dist_man_MANS = \
671    doc/pcre_get_stringtable_entries.3 \    doc/pcre_get_stringtable_entries.3 \
672    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
673    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
674    doc/pcre_info.3 \    doc/pcre_jit_exec.3 \
675    doc/pcre_jit_stack_alloc.3 \    doc/pcre_jit_stack_alloc.3 \
676    doc/pcre_jit_stack_free.3 \    doc/pcre_jit_stack_free.3 \
677    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
678      doc/pcre_pattern_to_host_byte_order.3 \
679    doc/pcre_refcount.3 \    doc/pcre_refcount.3 \
680    doc/pcre_study.3 \    doc/pcre_study.3 \
681      doc/pcre_utf16_to_host_byte_order.3 \
682      doc/pcre_utf32_to_host_byte_order.3 \
683    doc/pcre_version.3 \    doc/pcre_version.3 \
684    doc/pcreapi.3 \    doc/pcreapi.3 \
685    doc/pcrebuild.3 \    doc/pcrebuild.3 \
# Line 430  dist_man_MANS = \ Line 700  dist_man_MANS = \
700    doc/pcretest.1 \    doc/pcretest.1 \
701    doc/pcreunicode.3    doc/pcreunicode.3
702    
703    # Arrange for the per-function man pages to have 16- and 32-bit names as well.
704    install-data-hook:
705            ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre16_assign_jit_stack.3
706            ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre16_compile.3
707            ln -sf pcre_compile2.3                   $(DESTDIR)$(man3dir)/pcre16_compile2.3
708            ln -sf pcre_config.3                     $(DESTDIR)$(man3dir)/pcre16_config.3
709            ln -sf pcre_copy_named_substring.3       $(DESTDIR)$(man3dir)/pcre16_copy_named_substring.3
710            ln -sf pcre_copy_substring.3             $(DESTDIR)$(man3dir)/pcre16_copy_substring.3
711            ln -sf pcre_dfa_exec.3                   $(DESTDIR)$(man3dir)/pcre16_dfa_exec.3
712            ln -sf pcre_exec.3                       $(DESTDIR)$(man3dir)/pcre16_exec.3
713            ln -sf pcre_free_study.3                 $(DESTDIR)$(man3dir)/pcre16_free_study.3
714            ln -sf pcre_free_substring.3             $(DESTDIR)$(man3dir)/pcre16_free_substring.3
715            ln -sf pcre_free_substring_list.3        $(DESTDIR)$(man3dir)/pcre16_free_substring_list.3
716            ln -sf pcre_fullinfo.3                   $(DESTDIR)$(man3dir)/pcre16_fullinfo.3
717            ln -sf pcre_get_named_substring.3        $(DESTDIR)$(man3dir)/pcre16_get_named_substring.3
718            ln -sf pcre_get_stringnumber.3           $(DESTDIR)$(man3dir)/pcre16_get_stringnumber.3
719            ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre16_get_stringtable_entries.3
720            ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3
721            ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre16_get_substring_list.3
722            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre16_jit_exec.3
723            ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre16_jit_stack_alloc.3
724            ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre16_jit_stack_free.3
725            ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre16_maketables.3
726            ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_pattern_to_host_byte_order.3
727            ln -sf pcre_refcount.3                   $(DESTDIR)$(man3dir)/pcre16_refcount.3
728            ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre16_study.3
729            ln -sf pcre_utf16_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre16_utf16_to_host_byte_order.3
730            ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre16_version.3
731            ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre32_assign_jit_stack.3
732            ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre32_compile.3
733            ln -sf pcre_compile2.3                   $(DESTDIR)$(man3dir)/pcre32_compile2.3
734            ln -sf pcre_config.3                     $(DESTDIR)$(man3dir)/pcre32_config.3
735            ln -sf pcre_copy_named_substring.3       $(DESTDIR)$(man3dir)/pcre32_copy_named_substring.3
736            ln -sf pcre_copy_substring.3             $(DESTDIR)$(man3dir)/pcre32_copy_substring.3
737            ln -sf pcre_dfa_exec.3                   $(DESTDIR)$(man3dir)/pcre32_dfa_exec.3
738            ln -sf pcre_exec.3                       $(DESTDIR)$(man3dir)/pcre32_exec.3
739            ln -sf pcre_free_study.3                 $(DESTDIR)$(man3dir)/pcre32_free_study.3
740            ln -sf pcre_free_substring.3             $(DESTDIR)$(man3dir)/pcre32_free_substring.3
741            ln -sf pcre_free_substring_list.3        $(DESTDIR)$(man3dir)/pcre32_free_substring_list.3
742            ln -sf pcre_fullinfo.3                   $(DESTDIR)$(man3dir)/pcre32_fullinfo.3
743            ln -sf pcre_get_named_substring.3        $(DESTDIR)$(man3dir)/pcre32_get_named_substring.3
744            ln -sf pcre_get_stringnumber.3           $(DESTDIR)$(man3dir)/pcre32_get_stringnumber.3
745            ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre32_get_stringtable_entries.3
746            ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3
747            ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre32_get_substring_list.3
748            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre32_jit_exec.3
749            ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre32_jit_stack_alloc.3
750            ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre32_jit_stack_free.3
751            ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3
752            ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_pattern_to_host_byte_order.3
753            ln -sf pcre_refcount.3                   $(DESTDIR)$(man3dir)/pcre32_refcount.3
754            ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre32_study.3
755            ln -sf pcre_utf32_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre32_utf32_to_host_byte_order.3
756            ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre32_version.3
757    
758  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
759  EXTRA_DIST += $(pcrecpp_man)  EXTRA_DIST += $(pcrecpp_man)
760    
# Line 437  if WITH_PCRE_CPP Line 762  if WITH_PCRE_CPP
762  man_MANS = $(pcrecpp_man)  man_MANS = $(pcrecpp_man)
763  endif  endif
764    
765    # gcov/lcov code coverage reporting
766    
767    if WITH_GCOV
768    
769    # Coverage reporting targets:
770    #
771    # coverage: Create a coverage report from 'make check'
772    # coverage-baseline: Capture baseline coverage information
773    # coverage-reset: This zeros the coverage counters only
774    # coverage-report: This creates the coverage report only
775    # coverage-clean-report: This removes the generated coverage report
776    #   without cleaning the coverage data itself
777    # coverage-clean-data: This removes the captured coverage data without
778    #   removing the coverage files created at compile time (*.gcno)
779    # coverage-clean: This cleans all coverage data including the generated
780    #   coverage report.
781    
782    COVERAGE_TEST_NAME = $(PACKAGE)
783    COVERAGE_NAME = $(PACKAGE)-$(VERSION)
784    COVERAGE_OUTPUT_FILE = $(COVERAGE_NAME)-coverage.info
785    COVERAGE_OUTPUT_DIR = $(COVERAGE_NAME)-coverage
786    COVERAGE_LCOV_EXTRA_FLAGS =
787    COVERAGE_GENHTML_EXTRA_FLAGS =
788    
789    coverage_quiet = $(coverage_quiet_$(V))
790    coverage_quiet_ = $(coverage_quiet_$(AM_DEFAULT_VERBOSITY))
791    coverage_quiet_0 = --quiet
792    
793    coverage-check: all
794            -$(MAKE) $(AM_MAKEFLAGS) -k check
795    
796    coverage-baseline:
797            $(LCOV) $(coverage_quiet) \
798                    --directory $(top_builddir) \
799                    --output-file "$(COVERAGE_OUTPUT_FILE)" \
800                    --capture \
801                    --initial
802    
803    coverage-report:
804            $(LCOV) $(coverage_quiet) \
805                    --directory $(top_builddir) \
806                    --capture \
807                    --output-file "$(COVERAGE_OUTPUT_FILE).tmp" \
808                    --test-name "$(COVERAGE_TEST_NAME)" \
809                    --no-checksum \
810                    --compat-libtool \
811                    $(COVERAGE_LCOV_EXTRA_FLAGS)
812            $(LCOV) $(coverage_quiet) \
813                    --directory $(top_builddir) \
814                    --output-file "$(COVERAGE_OUTPUT_FILE)" \
815                    --remove "$(COVERAGE_OUTPUT_FILE).tmp" \
816                    "/tmp/*" \
817                    "/usr/include/*" \
818                    "$(includedir)/*"
819            -@rm -f "$(COVERAGE_OUTPUT_FILE).tmp"
820            LANG=C $(GENHTML) $(coverage_quiet) \
821                    --prefix $(top_builddir) \
822                    --output-directory "$(COVERAGE_OUTPUT_DIR)" \
823                    --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
824                    --show-details "$(COVERAGE_OUTPUT_FILE)" \
825                    --legend \
826                    $(COVERAGE_GENHTML_EXTRA_FLAGS)
827            @echo "Code coverage report written to file://$(abs_builddir)/$(COVERAGE_OUTPUT_DIR)/index.html"
828    
829    coverage-reset:
830            -$(LCOV) $(coverage_quiet) --zerocounters --directory $(top_builddir)
831    
832    coverage-clean-report:
833            -rm -f "$(COVERAGE_OUTPUT_FILE)" "$(COVERAGE_OUTPUT_FILE).tmp"
834            -rm -rf "$(COVERAGE_OUTPUT_DIR)"
835    
836    coverage-clean-data:
837            -find $(top_builddir) -name "*.gcda" -delete
838    
839    coverage-clean: coverage-reset coverage-clean-report coverage-clean-data
840            -find $(top_builddir) -name "*.gcno" -delete
841    
842    coverage-distclean: coverage-clean
843    
844    coverage: coverage-reset coverage-baseline coverage-check coverage-report
845    clean-local: coverage-clean
846    distclean-local: coverage-distclean
847    
848    .PHONY: coverage coverage-baseline coverage-check coverage-report coverage-reset coverage-clean-report coverage-clean-data coverage-clean coverage-distclean
849    
850    else
851    
852    coverage:
853            @echo "Configuring with --enable-coverage required to generate code coverage report."
854    
855    endif # WITH_GCOV
856    
857  ## CMake support  ## CMake support
858    
859  EXTRA_DIST += \  EXTRA_DIST += \
860    cmake/COPYING-CMAKE-SCRIPTS \    cmake/COPYING-CMAKE-SCRIPTS \
861    cmake/FindPackageHandleStandardArgs.cmake \    cmake/FindPackageHandleStandardArgs.cmake \
862    cmake/FindReadline.cmake \    cmake/FindReadline.cmake \
863      cmake/FindEditline.cmake \
864    CMakeLists.txt \    CMakeLists.txt \
865    config-cmake.h.in    config-cmake.h.in
866    

Legend:
Removed from v.690  
changed lines
  Added in v.1196

  ViewVC Help
Powered by ViewVC 1.1.5