/[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 466 by ph10, Mon Oct 19 11:42:08 2009 UTC revision 1172 by ph10, Wed Oct 24 16:41:07 2012 UTC
# Line 1  Line 1 
1  ## Process this file with automake to produce Makefile.in.  ## Process this file with automake to produce Makefile.in.
2    
3    ACLOCAL_AMFLAGS = -I m4
4    
5  dist_doc_DATA = \  dist_doc_DATA = \
6    doc/pcre.txt \    doc/pcre.txt \
7    doc/pcre-config.txt \    doc/pcre-config.txt \
# Line 15  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 \
23    doc/html/pcre_compile.html \    doc/html/pcre_compile.html \
24    doc/html/pcre_compile2.html \    doc/html/pcre_compile2.html \
25    doc/html/pcre_config.html \    doc/html/pcre_config.html \
# Line 23  dist_html_DATA = \ Line 27  dist_html_DATA = \
27    doc/html/pcre_copy_substring.html \    doc/html/pcre_copy_substring.html \
28    doc/html/pcre_dfa_exec.html \    doc/html/pcre_dfa_exec.html \
29    doc/html/pcre_exec.html \    doc/html/pcre_exec.html \
30      doc/html/pcre_free_study.html \
31    doc/html/pcre_free_substring.html \    doc/html/pcre_free_substring.html \
32    doc/html/pcre_free_substring_list.html \    doc/html/pcre_free_substring_list.html \
33    doc/html/pcre_fullinfo.html \    doc/html/pcre_fullinfo.html \
# Line 31  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_stack_alloc.html \
40      doc/html/pcre_jit_stack_free.html \
41    doc/html/pcre_maketables.html \    doc/html/pcre_maketables.html \
42      doc/html/pcre_pattern_to_host_byte_order.html \
43    doc/html/pcre_refcount.html \    doc/html/pcre_refcount.html \
44    doc/html/pcre_study.html \    doc/html/pcre_study.html \
45      doc/html/pcre_utf16_to_host_byte_order.html \
46    doc/html/pcre_version.html \    doc/html/pcre_version.html \
47    doc/html/pcreapi.html \    doc/html/pcreapi.html \
48    doc/html/pcrebuild.html \    doc/html/pcrebuild.html \
# Line 42  dist_html_DATA = \ Line 50  dist_html_DATA = \
50    doc/html/pcrecompat.html \    doc/html/pcrecompat.html \
51    doc/html/pcredemo.html \    doc/html/pcredemo.html \
52    doc/html/pcregrep.html \    doc/html/pcregrep.html \
53      doc/html/pcrejit.html \
54      doc/html/pcrelimits.html \
55    doc/html/pcrematching.html \    doc/html/pcrematching.html \
56    doc/html/pcrepartial.html \    doc/html/pcrepartial.html \
57    doc/html/pcrepattern.html \    doc/html/pcrepattern.html \
# Line 51  dist_html_DATA = \ Line 61  dist_html_DATA = \
61    doc/html/pcresample.html \    doc/html/pcresample.html \
62    doc/html/pcrestack.html \    doc/html/pcrestack.html \
63    doc/html/pcresyntax.html \    doc/html/pcresyntax.html \
64    doc/html/pcretest.html    doc/html/pcretest.html \
65      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)
# Line 70  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.  # (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 82  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
113  EXTRA_DIST += \  EXTRA_DIST += \
114    PrepareRelease \    PrepareRelease \
115      CheckMan \
116    CleanTxt \    CleanTxt \
117    Detrail \    Detrail \
118    132html \    132html \
# Line 110  EXTRA_DIST += \ Line 132  EXTRA_DIST += \
132    pcre.h.generic \    pcre.h.generic \
133    config.h.generic    config.h.generic
134    
135  pcre.h.generic: configure.ac  # The only difference between pcre.h.in and pcre.h is the setting of the PCRE
136    # version number. Therefore, we can create the generic version just by copying.
137    pcre.h.generic: pcre.h.in configure.ac
138          rm -f $@          rm -f $@
139          cp -p pcre.h $@          cp -p pcre.h $@
140    
141  MAINTAINERCLEANFILES += pcre.h.generic  # It is more complicated for config.h.generic. We need the version that results
142    # from a default configuration. We can get this by doing a configure in a
143    # temporary directory. It has to be entirely done using files in that
144    # directory, because the source directory may already be configured. If you
145    # just try running configure in a new directory, it complains that the source
146    # directory is already configured.
147    config.h.generic: configure.ac
148            rm -rf $@ _generic
149            mkdir _generic
150            cp configure *.in _generic
151            (cd _generic; ./configure srcdir=.)
152            perl -pe 'if(/^#define\s(?!PACKAGE)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$_="";}' _generic/config.h >$@
153            rm -rf _generic
154    
155    MAINTAINERCLEANFILES += pcre.h.generic config.h.generic
156    
157  # 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
158  # it is generated from pcre.h.in.  # it is generated from pcre.h.in.
# Line 159  pcre_chartables.c: $(srcdir)/pcre_charta Line 197  pcre_chartables.c: $(srcdir)/pcre_charta
197    
198  endif # WITH_REBUILD_CHARTABLES  endif # WITH_REBUILD_CHARTABLES
199    
200    BUILT_SOURCES = pcre_chartables.c
201    
202  ## The main pcre library  ## The main pcre library
203    
204    # Build the 8 bit library if it is enabled.
205    if WITH_PCRE8
206  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
207  libpcre_la_SOURCES = \  libpcre_la_SOURCES = \
208      pcre_byte_order.c \
209    pcre_compile.c \    pcre_compile.c \
210    pcre_config.c \    pcre_config.c \
211    pcre_dfa_exec.c \    pcre_dfa_exec.c \
# Line 170  libpcre_la_SOURCES = \ Line 213  libpcre_la_SOURCES = \
213    pcre_fullinfo.c \    pcre_fullinfo.c \
214    pcre_get.c \    pcre_get.c \
215    pcre_globals.c \    pcre_globals.c \
   pcre_info.c \  
216    pcre_internal.h \    pcre_internal.h \
217      pcre_jit_compile.c \
218    pcre_maketables.c \    pcre_maketables.c \
219    pcre_newline.c \    pcre_newline.c \
220    pcre_ord2utf8.c \    pcre_ord2utf8.c \
221    pcre_refcount.c \    pcre_refcount.c \
222      pcre_string_utils.c \
223    pcre_study.c \    pcre_study.c \
224    pcre_tables.c \    pcre_tables.c \
   pcre_try_flipped.c \  
225    pcre_ucd.c \    pcre_ucd.c \
226    pcre_valid_utf8.c \    pcre_valid_utf8.c \
227    pcre_version.c \    pcre_version.c \
228    pcre_xclass.c \    pcre_xclass.c \
229    ucp.h    ucp.h
230    
231    libpcre_la_CFLAGS = \
232      $(AM_CFLAGS)
233    
234    libpcre_la_LIBADD =
235    
236  ## 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.
237  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
238    pcre_chartables.c    pcre_chartables.c
239    
240  # The pcre_printint.src file is #included by some source files, so it must be  endif # WITH_PCRE8
241  # distributed. The pcre_chartables.c.dist file is the default version of  
242  # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.  # Build the 16 bit library if it is enabled.
243  EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist  if WITH_PCRE16
244    lib_LTLIBRARIES += libpcre16.la
245    libpcre16_la_SOURCES = \
246      pcre16_byte_order.c \
247      pcre16_chartables.c \
248      pcre16_compile.c \
249      pcre16_config.c \
250      pcre16_dfa_exec.c \
251      pcre16_exec.c \
252      pcre16_fullinfo.c \
253      pcre16_get.c \
254      pcre16_globals.c \
255      pcre16_jit_compile.c \
256      pcre16_maketables.c \
257      pcre16_newline.c \
258      pcre16_ord2utf16.c \
259      pcre16_refcount.c \
260      pcre16_string_utils.c \
261      pcre16_study.c \
262      pcre16_tables.c \
263      pcre16_ucd.c \
264      pcre16_utf16_utils.c \
265      pcre16_valid_utf16.c \
266      pcre16_version.c \
267      pcre16_xclass.c
268    
269    libpcre16_la_CFLAGS = \
270      $(AM_CFLAGS)
271    
272    libpcre16_la_LIBADD =
273    
274    ## This file is generated as part of the building process, so don't distribute.
275    nodist_libpcre16_la_SOURCES = \
276      pcre_chartables.c
277    
278    endif # WITH_PCRE16
279    
280    # Build the 32 bit library if it is enabled.
281    if WITH_PCRE32
282    lib_LTLIBRARIES += libpcre32.la
283    libpcre32_la_SOURCES = \
284      pcre32_byte_order.c \
285      pcre32_chartables.c \
286      pcre32_compile.c \
287      pcre32_config.c \
288      pcre32_dfa_exec.c \
289      pcre32_exec.c \
290      pcre32_fullinfo.c \
291      pcre32_get.c \
292      pcre32_globals.c \
293      pcre32_jit_compile.c \
294      pcre32_maketables.c \
295      pcre32_newline.c \
296      pcre32_ord2utf32.c \
297      pcre32_refcount.c \
298      pcre32_string_utils.c \
299      pcre32_study.c \
300      pcre32_tables.c \
301      pcre32_ucd.c \
302      pcre32_utf32_utils.c \
303      pcre32_valid_utf32.c \
304      pcre32_version.c \
305      pcre32_xclass.c
306    
307    libpcre32_la_CFLAGS = \
308      $(AM_CFLAGS)
309    libpcre32_la_LIBADD =
310    
311    ## This file is generated as part of the building process, so don't distribute.
312    nodist_libpcre32_la_SOURCES = \
313      pcre_chartables.c
314    
315    endif # WITH_PCRE32
316    
317    # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,
318    # used unless --enable-rebuild-chartables is specified.
319    EXTRA_DIST += pcre_chartables.c.dist
320    
321    # The JIT compiler lives in a separate directory, but its files are #included
322    # when pcre_jit_compile.c is processed, so they must be distributed.
323    EXTRA_DIST += \
324      sljit/sljitConfig.h \
325      sljit/sljitConfigInternal.h \
326      sljit/sljitExecAllocator.c \
327      sljit/sljitLir.c \
328      sljit/sljitLir.h \
329      sljit/sljitNativeARM_Thumb2.c \
330      sljit/sljitNativeARM_v5.c \
331      sljit/sljitNativeMIPS_32.c \
332      sljit/sljitNativeMIPS_common.c \
333      sljit/sljitNativePPC_32.c \
334      sljit/sljitNativePPC_64.c \
335      sljit/sljitNativePPC_common.c \
336      sljit/sljitNativeX86_32.c \
337      sljit/sljitNativeX86_64.c \
338      sljit/sljitNativeX86_common.c \
339      sljit/sljitUtils.c
340    
341    if WITH_PCRE8
342  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
343    endif # WITH_PCRE8
344    if WITH_PCRE16
345    libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)
346    endif # WITH_PCRE16
347    if WITH_PCRE32
348    libpcre32_la_LDFLAGS = $(EXTRA_LIBPCRE32_LDFLAGS)
349    endif # WITH_PCRE32
350    
351    if WITH_VALGRIND
352    if WITH_PCRE8
353    libpcre_la_CFLAGS += $(VALGRIND_CFLAGS)
354    endif # WITH_PCRE8
355    if WITH_PCRE16
356    libpcre16_la_CFLAGS += $(VALGRIND_CFLAGS)
357    endif # WITH_PCRE16
358    if WITH_PCRE32
359    libpcre32_la_CFLAGS += $(VALGRIND_CFLAGS)
360    endif # WITH_PCRE32
361    endif # WITH_VALGRIND
362    
363    if WITH_GCOV
364    if WITH_PCRE8
365    libpcre_la_CFLAGS += $(GCOV_CFLAGS)
366    endif # WITH_PCRE8
367    if WITH_PCRE16
368    libpcre16_la_CFLAGS += $(GCOV_CFLAGS)
369    endif # WITH_PCRE16
370    if WITH_PCRE32
371    libpcre32_la_CFLAGS += $(GCOV_CFLAGS)
372    endif # WITH_PCRE32
373    endif # WITH_GCOV
374    
375  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
376    
377    ## If JIT support is enabled, arrange for the JIT test program to run.
378    if WITH_JIT
379    TESTS += pcre_jit_test
380    noinst_PROGRAMS += pcre_jit_test
381    pcre_jit_test_SOURCES = pcre_jit_test.c
382    pcre_jit_test_CFLAGS = $(AM_CFLAGS)
383    pcre_jit_test_LDADD =
384    if WITH_PCRE8
385    pcre_jit_test_LDADD += libpcre.la
386    endif # WITH_PCRE8
387    if WITH_PCRE16
388    pcre_jit_test_LDADD += libpcre16.la
389    endif # WITH_PCRE16
390    if WITH_PCRE32
391    pcre_jit_test_LDADD += libpcre32.la
392    endif # WITH_PCRE32
393    if WITH_GCOV
394    pcre_jit_test_CFLAGS += $(GCOV_CFLAGS)
395    pcre_jit_test_LDADD += $(GCOV_LIBS)
396    endif # WITH_GCOV
397    endif # WITH_JIT
398    
399  ## 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.
400    if WITH_PCRE8
401    
402  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
403  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
404    pcreposix.c    pcreposix.c
405    libpcreposix_la_CFLAGS = $(AM_CFLAGS)
406  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
407  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
408    
409    if WITH_GCOV
410    libpcreposix_la_CFLAGS += $(GCOV_CFLAGS)
411    endif # WITH_GCOV
412    
413    endif # WITH_PCRE8
414    
415  ## There's a C++ library as well.  ## There's a C++ library as well.
416  if WITH_PCRE_CPP  if WITH_PCRE_CPP
417    
# Line 214  libpcrecpp_la_SOURCES = \ Line 421  libpcrecpp_la_SOURCES = \
421    pcrecpp.cc \    pcrecpp.cc \
422    pcre_scanner.cc \    pcre_scanner.cc \
423    pcre_stringpiece.cc    pcre_stringpiece.cc
424    libpcrecpp_la_CXXFLAGS = $(AM_CXXFLAGS)
425  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
426  libpcrecpp_la_LIBADD = libpcre.la  libpcrecpp_la_LIBADD = libpcre.la
427    
428  TESTS += pcrecpp_unittest  TESTS += pcrecpp_unittest
429  noinst_PROGRAMS += pcrecpp_unittest  noinst_PROGRAMS += pcrecpp_unittest
430  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
431    pcrecpp_unittest_CXXFLAGS = $(AM_CXXFLAGS)
432  pcrecpp_unittest_LDADD = libpcrecpp.la  pcrecpp_unittest_LDADD = libpcrecpp.la
433    
434  TESTS += pcre_scanner_unittest  TESTS += pcre_scanner_unittest
435  noinst_PROGRAMS += pcre_scanner_unittest  noinst_PROGRAMS += pcre_scanner_unittest
436  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
437    pcre_scanner_unittest_CXXFLAGS = $(AM_CXXFLAGS)
438  pcre_scanner_unittest_LDADD = libpcrecpp.la  pcre_scanner_unittest_LDADD = libpcrecpp.la
439    
440  TESTS += pcre_stringpiece_unittest  TESTS += pcre_stringpiece_unittest
441  noinst_PROGRAMS += pcre_stringpiece_unittest  noinst_PROGRAMS += pcre_stringpiece_unittest
442  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
443    pcre_stringpiece_unittest_CXXFLAGS = $(AM_CXXFLAGS)
444  pcre_stringpiece_unittest_LDADD = libpcrecpp.la  pcre_stringpiece_unittest_LDADD = libpcrecpp.la
445    
446    if WITH_GCOV
447    libpcrecpp_la_CXXFLAGS += $(GCOV_CXXFLAGS)
448    pcrecpp_unittest_LDADD += $(GCOV_LIBS)
449    pcre_scanner_unittest_LDADD += $(GCOV_LIBS)
450    pcre_stringpiece_unittest_LDADD += $(GCOV_LIBS)
451    endif # WITH_GCOV
452    
453  endif # WITH_PCRE_CPP  endif # WITH_PCRE_CPP
454    
455  ## The main unit tests  ## The main unit tests
# Line 244  dist_noinst_SCRIPTS += RunTest Line 462  dist_noinst_SCRIPTS += RunTest
462  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
463  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
464  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
465  pcretest_LDADD = libpcreposix.la $(LIBREADLINE)  pcretest_CFLAGS = $(AM_CFLAGS)
466    pcretest_LDADD = $(LIBREADLINE)
467    if WITH_PCRE8
468    pcretest_SOURCES += pcre_printint.c
469    pcretest_LDADD += libpcre.la libpcreposix.la
470    endif # WITH_PCRE8
471    if WITH_PCRE16
472    pcretest_SOURCES += pcre16_printint.c
473    pcretest_LDADD += libpcre16.la
474    endif # WITH_PCRE16
475    if WITH_PCRE32
476    pcretest_SOURCES += pcre32_printint.c
477    pcretest_LDADD += libpcre32.la
478    endif # WITH_PCRE32
479    if WITH_VALGRIND
480    pcretest_CFLAGS += $(VALGRIND_CFLAGS)
481    endif # WITH_VALGRIND
482    if WITH_GCOV
483    pcretest_CFLAGS += $(GCOV_CFLAGS)
484    pcretest_LDADD += $(GCOV_LIBS)
485    endif # WITH_GCOV
486    
487    if WITH_PCRE8
488  TESTS += RunGrepTest  TESTS += RunGrepTest
489  dist_noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
490  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
491  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
492  pcregrep_LDADD = libpcreposix.la $(LIBZ) $(LIBBZ2)  pcregrep_CFLAGS = $(AM_CFLAGS)
493    pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
494    pcregrep_LDADD += libpcre.la libpcreposix.la
495    if WITH_GCOV
496    pcregrep_CFLAGS += $(GCOV_CFLAGS)
497    pcregrep_LDADD += $(GCOV_LIBS)
498    endif # WITH_GCOV
499    endif # WITH_PCRE8
500    
501  EXTRA_DIST += \  EXTRA_DIST += \
502      testdata/grepbinary \
503      testdata/grepfilelist \
504    testdata/grepinput \    testdata/grepinput \
505      testdata/grepinput3 \
506    testdata/grepinput8 \    testdata/grepinput8 \
507    testdata/grepinputv \    testdata/grepinputv \
508    testdata/grepinputx \    testdata/grepinputx \
# Line 261  EXTRA_DIST += \ Line 510  EXTRA_DIST += \
510    testdata/grepoutput \    testdata/grepoutput \
511    testdata/grepoutput8 \    testdata/grepoutput8 \
512    testdata/grepoutputN \    testdata/grepoutputN \
513      testdata/greppatN4 \
514      testdata/saved16 \
515      testdata/saved16BE-1 \
516      testdata/saved16BE-2 \
517      testdata/saved16LE-1 \
518      testdata/saved16LE-2 \
519      testdata/saved32 \
520      testdata/saved32BE-1 \
521      testdata/saved32BE-2 \
522      testdata/saved32LE-1 \
523      testdata/saved32LE-2 \
524      testdata/saved8 \
525    testdata/testinput1 \    testdata/testinput1 \
526    testdata/testinput2 \    testdata/testinput2 \
527    testdata/testinput3 \    testdata/testinput3 \
# Line 273  EXTRA_DIST += \ Line 534  EXTRA_DIST += \
534    testdata/testinput10 \    testdata/testinput10 \
535    testdata/testinput11 \    testdata/testinput11 \
536    testdata/testinput12 \    testdata/testinput12 \
537      testdata/testinput13 \
538      testdata/testinput14 \
539      testdata/testinput15 \
540      testdata/testinput16 \
541      testdata/testinput17 \
542      testdata/testinput18 \
543      testdata/testinput19 \
544      testdata/testinput20 \
545      testdata/testinput21 \
546      testdata/testinput22 \
547      testdata/testinput23 \
548      testdata/testinput24 \
549      testdata/testinput25 \
550      testdata/testinput26 \
551      testdata/testinputEBC \
552    testdata/testoutput1 \    testdata/testoutput1 \
553    testdata/testoutput2 \    testdata/testoutput2 \
554    testdata/testoutput3 \    testdata/testoutput3 \
# Line 283  EXTRA_DIST += \ Line 559  EXTRA_DIST += \
559    testdata/testoutput8 \    testdata/testoutput8 \
560    testdata/testoutput9 \    testdata/testoutput9 \
561    testdata/testoutput10 \    testdata/testoutput10 \
562    testdata/testoutput11 \    testdata/testoutput11-8 \
563      testdata/testoutput11-16 \
564      testdata/testoutput11-32 \
565    testdata/testoutput12 \    testdata/testoutput12 \
566      testdata/testoutput13 \
567      testdata/testoutput14 \
568      testdata/testoutput15 \
569      testdata/testoutput16 \
570      testdata/testoutput17 \
571      testdata/testoutput18-16 \
572      testdata/testoutput18-32 \
573      testdata/testoutput19 \
574      testdata/testoutput20 \
575      testdata/testoutput21-16 \
576      testdata/testoutput21-32 \
577      testdata/testoutput22-16 \
578      testdata/testoutput22-32 \
579      testdata/testoutput23 \
580      testdata/testoutput24 \
581      testdata/testoutput25 \
582      testdata/testoutput26 \
583      testdata/testoutputEBC \
584    testdata/wintestinput3 \    testdata/wintestinput3 \
585    testdata/wintestoutput3 \    testdata/wintestoutput3 \
586    perltest.pl    perltest.pl
# Line 292  EXTRA_DIST += \ Line 588  EXTRA_DIST += \
588  CLEANFILES += \  CLEANFILES += \
589          testsavedregex \          testsavedregex \
590          teststderr \          teststderr \
591            testtemp* \
592          testtry \          testtry \
593          testNinput          testNinput
594    
# Line 314  test: check ; Line 611  test: check ;
611  # A PCRE user submitted the following addition, saying that it "will allow  # A PCRE user submitted the following addition, saying that it "will allow
612  # 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
613  # 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.)
614  DLL_OBJS= pcre_compile.o pcre_config.o \  DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
615          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 \
616          pcre_globals.o pcre_info.o pcre_maketables.o \          pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
617          pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \          pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
618          pcre_study.o pcre_tables.o pcre_try_flipped.o \          pcre_study.o pcre_tables.o pcre_ucd.o \
619          pcre_ucd.o pcre_valid_utf8.o pcre_version.o \          pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
         pcre_chartables.o \  
620          pcre_xclass.o          pcre_xclass.o
621    
622  # 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 333  pcre.dll: $(DLL_OBJS) Line 629  pcre.dll: $(DLL_OBJS)
629  # We have .pc files for pkg-config users.  # We have .pc files for pkg-config users.
630  pkgconfigdir = $(libdir)/pkgconfig  pkgconfigdir = $(libdir)/pkgconfig
631  pkgconfig_DATA = libpcre.pc libpcreposix.pc  pkgconfig_DATA = libpcre.pc libpcreposix.pc
632    if WITH_PCRE16
633    pkgconfig_DATA += libpcre16.pc
634    endif
635    if WITH_PCRE32
636    pkgconfig_DATA += libpcre32.pc
637    endif
638  if WITH_PCRE_CPP  if WITH_PCRE_CPP
639  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
640  endif  endif
641    
642  dist_man_MANS = \  dist_man_MANS = \
643    doc/pcre.3 \    doc/pcre.3 \
644      doc/pcre16.3 \
645      doc/pcre32.3 \
646    doc/pcre-config.1 \    doc/pcre-config.1 \
647      doc/pcre_assign_jit_stack.3 \
648    doc/pcre_compile.3 \    doc/pcre_compile.3 \
649    doc/pcre_compile2.3 \    doc/pcre_compile2.3 \
650    doc/pcre_config.3 \    doc/pcre_config.3 \
# Line 347  dist_man_MANS = \ Line 652  dist_man_MANS = \
652    doc/pcre_copy_substring.3 \    doc/pcre_copy_substring.3 \
653    doc/pcre_dfa_exec.3 \    doc/pcre_dfa_exec.3 \
654    doc/pcre_exec.3 \    doc/pcre_exec.3 \
655      doc/pcre_free_study.3 \
656    doc/pcre_free_substring.3 \    doc/pcre_free_substring.3 \
657    doc/pcre_free_substring_list.3 \    doc/pcre_free_substring_list.3 \
658    doc/pcre_fullinfo.3 \    doc/pcre_fullinfo.3 \
# Line 355  dist_man_MANS = \ Line 661  dist_man_MANS = \
661    doc/pcre_get_stringtable_entries.3 \    doc/pcre_get_stringtable_entries.3 \
662    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
663    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
664    doc/pcre_info.3 \    doc/pcre_jit_stack_alloc.3 \
665      doc/pcre_jit_stack_free.3 \
666    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
667      doc/pcre_pattern_to_host_byte_order.3 \
668    doc/pcre_refcount.3 \    doc/pcre_refcount.3 \
669    doc/pcre_study.3 \    doc/pcre_study.3 \
670      doc/pcre_utf16_to_host_byte_order.3 \
671      doc/pcre_utf32_to_host_byte_order.3 \
672    doc/pcre_version.3 \    doc/pcre_version.3 \
673    doc/pcreapi.3 \    doc/pcreapi.3 \
674    doc/pcrebuild.3 \    doc/pcrebuild.3 \
675    doc/pcrecallout.3 \    doc/pcrecallout.3 \
676    doc/pcrecompat.3 \    doc/pcrecompat.3 \
677    doc/pcregrep.1 \    doc/pcregrep.1 \
678      doc/pcrejit.3 \
679      doc/pcrelimits.3 \
680    doc/pcrematching.3 \    doc/pcrematching.3 \
681    doc/pcrepartial.3 \    doc/pcrepartial.3 \
682    doc/pcrepattern.3 \    doc/pcrepattern.3 \
# Line 374  dist_man_MANS = \ Line 686  dist_man_MANS = \
686    doc/pcresample.3 \    doc/pcresample.3 \
687    doc/pcrestack.3 \    doc/pcrestack.3 \
688    doc/pcresyntax.3 \    doc/pcresyntax.3 \
689    doc/pcretest.1    doc/pcretest.1 \
690      doc/pcreunicode.3
691    
692    # Arrange for the per-function man pages to have 16- and 32-bit names as well.
693    install-data-hook:
694            ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre16_assign_jit_stack.3
695            ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre16_compile.3
696            ln -sf pcre_compile2.3                   $(DESTDIR)$(man3dir)/pcre16_compile2.3
697            ln -sf pcre_config.3                     $(DESTDIR)$(man3dir)/pcre16_config.3
698            ln -sf pcre_copy_named_substring.3       $(DESTDIR)$(man3dir)/pcre16_copy_named_substring.3
699            ln -sf pcre_copy_substring.3             $(DESTDIR)$(man3dir)/pcre16_copy_substring.3
700            ln -sf pcre_dfa_exec.3                   $(DESTDIR)$(man3dir)/pcre16_dfa_exec.3
701            ln -sf pcre_exec.3                       $(DESTDIR)$(man3dir)/pcre16_exec.3
702            ln -sf pcre_free_study.3                 $(DESTDIR)$(man3dir)/pcre16_free_study.3
703            ln -sf pcre_free_substring.3             $(DESTDIR)$(man3dir)/pcre16_free_substring.3
704            ln -sf pcre_free_substring_list.3        $(DESTDIR)$(man3dir)/pcre16_free_substring_list.3
705            ln -sf pcre_fullinfo.3                   $(DESTDIR)$(man3dir)/pcre16_fullinfo.3
706            ln -sf pcre_get_named_substring.3        $(DESTDIR)$(man3dir)/pcre16_get_named_substring.3
707            ln -sf pcre_get_stringnumber.3           $(DESTDIR)$(man3dir)/pcre16_get_stringnumber.3
708            ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre16_get_stringtable_entries.3
709            ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3
710            ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre16_get_substring_list.3
711            ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre16_jit_stack_alloc.3
712            ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre16_jit_stack_free.3
713            ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre16_maketables.3
714            ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_pattern_to_host_byte_order.3
715            ln -sf pcre_refcount.3                   $(DESTDIR)$(man3dir)/pcre16_refcount.3
716            ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre16_study.3
717            ln -sf pcre_utf16_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre16_utf16_to_host_byte_order.3
718            ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre16_version.3
719            ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre32_assign_jit_stack.3
720            ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre32_compile.3
721            ln -sf pcre_compile2.3                   $(DESTDIR)$(man3dir)/pcre32_compile2.3
722            ln -sf pcre_config.3                     $(DESTDIR)$(man3dir)/pcre32_config.3
723            ln -sf pcre_copy_named_substring.3       $(DESTDIR)$(man3dir)/pcre32_copy_named_substring.3
724            ln -sf pcre_copy_substring.3             $(DESTDIR)$(man3dir)/pcre32_copy_substring.3
725            ln -sf pcre_dfa_exec.3                   $(DESTDIR)$(man3dir)/pcre32_dfa_exec.3
726            ln -sf pcre_exec.3                       $(DESTDIR)$(man3dir)/pcre32_exec.3
727            ln -sf pcre_free_study.3                 $(DESTDIR)$(man3dir)/pcre32_free_study.3
728            ln -sf pcre_free_substring.3             $(DESTDIR)$(man3dir)/pcre32_free_substring.3
729            ln -sf pcre_free_substring_list.3        $(DESTDIR)$(man3dir)/pcre32_free_substring_list.3
730            ln -sf pcre_fullinfo.3                   $(DESTDIR)$(man3dir)/pcre32_fullinfo.3
731            ln -sf pcre_get_named_substring.3        $(DESTDIR)$(man3dir)/pcre32_get_named_substring.3
732            ln -sf pcre_get_stringnumber.3           $(DESTDIR)$(man3dir)/pcre32_get_stringnumber.3
733            ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre32_get_stringtable_entries.3
734            ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3
735            ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre32_get_substring_list.3
736            ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre32_jit_stack_alloc.3
737            ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre32_jit_stack_free.3
738            ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3
739            ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_pattern_to_host_byte_order.3
740            ln -sf pcre_refcount.3                   $(DESTDIR)$(man3dir)/pcre32_refcount.3
741            ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre32_study.3
742            ln -sf pcre_utf32_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre32_utf32_to_host_byte_order.3
743            ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre32_version.3
744    
745  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
746  EXTRA_DIST += $(pcrecpp_man)  EXTRA_DIST += $(pcrecpp_man)
# Line 383  if WITH_PCRE_CPP Line 749  if WITH_PCRE_CPP
749  man_MANS = $(pcrecpp_man)  man_MANS = $(pcrecpp_man)
750  endif  endif
751    
752    # gcov/lcov code coverage reporting
753    
754    if WITH_GCOV
755    
756    GCOV_NAME = $(PACKAGE)-$(VERSION)
757    GCOV_OUTPUT_FILE = $(GCOV_NAME)-coverage.info
758    GCOV_OUTPUT_DIR = $(GCOV_NAME)-coverage
759    GCOV_LCOV_FLAGS =
760    GCOV_GENHTML_FLAGS =
761    
762    gcov_quiet = $(gcov_quiet_$(V))
763    gcov_quiet_ = $(gcov_quiet_$(AM_DEFAULT_VERBOSITY))
764    gcov_quiet_0 = --quiet
765    
766    coverage-check: all
767            -$(MAKE) $(AM_MAKEFLAGS) -k check
768    
769    coverage-report:
770            $(LCOV) $(gcov_quiet) \
771                    --directory $(top_builddir) \
772                    --capture \
773                    --output-file "$(GCOV_OUTPUT_FILE).tmp" \
774                    --test-name "$(GCOV_NAME)" \
775                    --no-checksum \
776                    --compat-libtool \
777                    $(GCOV_LCOV_FLAGS)
778            $(LCOV) $(gcov_quiet) \
779                    --directory $(top_builddir) \
780                    --output-file "$(GCOV_OUTPUT_FILE)" \
781                    --remove "$(GCOV_OUTPUT_FILE).tmp" \
782                    "/tmp/*" \
783                    "/usr/include/*" \
784                    "$(includedir)/*"
785            -@rm -f "$(GCOV_OUTPUT_FILE).tmp"
786            LANG=C $(GENHTML) $(gcov_quiet) \
787                    --prefix $(top_builddir) \
788                    --output-directory "$(GCOV_OUTPUT_DIR)" \
789                    --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
790                    --show-details "$(GCOV_OUTPUT_FILE)" \
791                    --legend \
792                    $(GCOV_GENHTML_FLAGS)
793            @echo "Code coverage report written to file://$(abs_builddir)/$(GCOV_OUTPUT_DIR)/index.html"
794    
795    coverage-clean:
796            -$(LCOV) $(gcov_quiet) --zerocounters --directory $(top_builddir)
797            -rm -f "$(GCOV_OUTPUT_FILE)"
798            -rm -f "$(GCOV_OUTPUT_FILE).tmp"
799            -rm -rf "$(GCOV_NAME)"
800            -find $(top_builddir) -name '*.gcda' -o -name "*.gcov" -delete
801    
802    coverage: coverage-check coverage-report
803    clean-local: coverage-clean
804    distclean-local: coverage-clean
805    
806    else
807    
808    coverage:
809            @echo "Configuring with --enable-coverage required to generate code coverage report."
810    
811    endif # WITH_GCOV
812    
813  ## CMake support  ## CMake support
814    
815  EXTRA_DIST += \  EXTRA_DIST += \
816    cmake/COPYING-CMAKE-SCRIPTS \    cmake/COPYING-CMAKE-SCRIPTS \
817    cmake/FindPackageHandleStandardArgs.cmake \    cmake/FindPackageHandleStandardArgs.cmake \
818    cmake/FindReadline.cmake \    cmake/FindReadline.cmake \
819      cmake/FindEditline.cmake \
820    CMakeLists.txt \    CMakeLists.txt \
821    config-cmake.h.in    config-cmake.h.in
822    

Legend:
Removed from v.466  
changed lines
  Added in v.1172

  ViewVC Help
Powered by ViewVC 1.1.5