/[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 667 by ph10, Mon Aug 22 14:57:32 2011 UTC revision 1158 by chpe, Mon Oct 22 19:43:50 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 \
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 25  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 33  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 44  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 53  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 72  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 84  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 161  pcre_chartables.c: $(srcdir)/pcre_charta Line 181  pcre_chartables.c: $(srcdir)/pcre_charta
181    
182  endif # WITH_REBUILD_CHARTABLES  endif # WITH_REBUILD_CHARTABLES
183    
184    BUILT_SOURCES = pcre_chartables.c
185    
186  ## The main pcre library  ## The main pcre library
187    
188    # Build the 8 bit library if it is enabled.
189    if WITH_PCRE8
190  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
191  libpcre_la_SOURCES = \  libpcre_la_SOURCES = \
192      pcre_byte_order.c \
193    pcre_compile.c \    pcre_compile.c \
194    pcre_config.c \    pcre_config.c \
195    pcre_dfa_exec.c \    pcre_dfa_exec.c \
# Line 172  libpcre_la_SOURCES = \ Line 197  libpcre_la_SOURCES = \
197    pcre_fullinfo.c \    pcre_fullinfo.c \
198    pcre_get.c \    pcre_get.c \
199    pcre_globals.c \    pcre_globals.c \
   pcre_info.c \  
200    pcre_internal.h \    pcre_internal.h \
201    pcre_jit_compile.c \    pcre_jit_compile.c \
202    pcre_maketables.c \    pcre_maketables.c \
203    pcre_newline.c \    pcre_newline.c \
204    pcre_ord2utf8.c \    pcre_ord2utf8.c \
205    pcre_refcount.c \    pcre_refcount.c \
206      pcre_string_utils.c \
207    pcre_study.c \    pcre_study.c \
208    pcre_tables.c \    pcre_tables.c \
   pcre_try_flipped.c \  
209    pcre_ucd.c \    pcre_ucd.c \
210    pcre_valid_utf8.c \    pcre_valid_utf8.c \
211    pcre_version.c \    pcre_version.c \
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
223    
224  # The pcre_printint.src file is #included by some source files, so it must be  endif # WITH_PCRE8
225  # distributed. The pcre_chartables.c.dist file is the default version of  
226  # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.  # Build the 16 bit library if it is enabled.
227  EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist  if WITH_PCRE16
228    lib_LTLIBRARIES += libpcre16.la
229    libpcre16_la_SOURCES = \
230      pcre16_byte_order.c \
231      pcre16_chartables.c \
232      pcre16_compile.c \
233      pcre16_config.c \
234      pcre16_dfa_exec.c \
235      pcre16_exec.c \
236      pcre16_fullinfo.c \
237      pcre16_get.c \
238      pcre16_globals.c \
239      pcre16_jit_compile.c \
240      pcre16_maketables.c \
241      pcre16_newline.c \
242      pcre16_ord2utf16.c \
243      pcre16_refcount.c \
244      pcre16_string_utils.c \
245      pcre16_study.c \
246      pcre16_tables.c \
247      pcre16_ucd.c \
248      pcre16_utf16_utils.c \
249      pcre16_valid_utf16.c \
250      pcre16_version.c \
251      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.
259    nodist_libpcre16_la_SOURCES = \
260      pcre_chartables.c
261    
262    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,
302    # used unless --enable-rebuild-chartables is specified.
303    EXTRA_DIST += pcre_chartables.c.dist
304    
305  # 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
306  # 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 217  EXTRA_DIST += \ Line 322  EXTRA_DIST += \
322    sljit/sljitNativeX86_common.c \    sljit/sljitNativeX86_common.c \
323    sljit/sljitUtils.c    sljit/sljitUtils.c
324    
325    if WITH_PCRE8
326  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
327    endif # WITH_PCRE8
328    if WITH_PCRE16
329    libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)
330    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 226  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_LDADD = libpcre.la  pcre_jit_test_CFLAGS = $(AM_CFLAGS)
367    pcre_jit_test_LDADD =
368    if WITH_PCRE8
369    pcre_jit_test_LDADD += libpcre.la
370    endif # WITH_PCRE8
371    if WITH_PCRE16
372    pcre_jit_test_LDADD += libpcre16.la
373    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
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
398    
399  ## There's a C++ library as well.  ## There's a C++ library as well.
400  if WITH_PCRE_CPP  if WITH_PCRE_CPP
401    
# Line 245  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 275  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_LDADD = libpcreposix.la $(LIBREADLINE)  pcretest_CFLAGS = $(AM_CFLAGS)
450    pcretest_LDADD = $(LIBREADLINE)
451    if WITH_PCRE8
452    pcretest_SOURCES += pcre_printint.c
453    pcretest_LDADD += libpcre.la libpcreposix.la
454    endif # WITH_PCRE8
455    if WITH_PCRE16
456    pcretest_SOURCES += pcre16_printint.c
457    pcretest_LDADD += libpcre16.la
458    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
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_LDADD = libpcreposix.la $(LIBZ) $(LIBBZ2)  pcregrep_CFLAGS = $(AM_CFLAGS)
477    pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
478    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
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 293  EXTRA_DIST += \ Line 494  EXTRA_DIST += \
494    testdata/grepoutput \    testdata/grepoutput \
495    testdata/grepoutput8 \    testdata/grepoutput8 \
496    testdata/grepoutputN \    testdata/grepoutputN \
497      testdata/greppatN4 \
498      testdata/saved16 \
499      testdata/saved16BE-1 \
500      testdata/saved16BE-2 \
501      testdata/saved16LE-1 \
502      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 \
509    testdata/testinput1 \    testdata/testinput1 \
510    testdata/testinput2 \    testdata/testinput2 \
511    testdata/testinput3 \    testdata/testinput3 \
# Line 306  EXTRA_DIST += \ Line 519  EXTRA_DIST += \
519    testdata/testinput11 \    testdata/testinput11 \
520    testdata/testinput12 \    testdata/testinput12 \
521    testdata/testinput13 \    testdata/testinput13 \
522      testdata/testinput14 \
523      testdata/testinput15 \
524      testdata/testinput16 \
525      testdata/testinput17 \
526      testdata/testinput18 \
527      testdata/testinput19 \
528      testdata/testinput20 \
529      testdata/testinput21 \
530      testdata/testinput22 \
531      testdata/testinputEBC \
532    testdata/testoutput1 \    testdata/testoutput1 \
533    testdata/testoutput2 \    testdata/testoutput2 \
534    testdata/testoutput3 \    testdata/testoutput3 \
# Line 316  EXTRA_DIST += \ Line 539  EXTRA_DIST += \
539    testdata/testoutput8 \    testdata/testoutput8 \
540    testdata/testoutput9 \    testdata/testoutput9 \
541    testdata/testoutput10 \    testdata/testoutput10 \
542    testdata/testoutput11 \    testdata/testoutput11-16 \
543      testdata/testoutput11-8 \
544    testdata/testoutput12 \    testdata/testoutput12 \
545    testdata/testoutput13 \    testdata/testoutput13 \
546      testdata/testoutput14 \
547      testdata/testoutput15 \
548      testdata/testoutput16 \
549      testdata/testoutput17 \
550      testdata/testoutput18 \
551      testdata/testoutput19 \
552      testdata/testoutput20 \
553      testdata/testoutput21 \
554      testdata/testoutput22 \
555      testdata/testoutputEBC \
556    testdata/wintestinput3 \    testdata/wintestinput3 \
557    testdata/wintestoutput3 \    testdata/wintestoutput3 \
558    perltest.pl    perltest.pl
# Line 326  EXTRA_DIST += \ Line 560  EXTRA_DIST += \
560  CLEANFILES += \  CLEANFILES += \
561          testsavedregex \          testsavedregex \
562          teststderr \          teststderr \
563            testtemp* \
564          testtry \          testtry \
565          testNinput          testNinput
566    
# Line 348  test: check ; Line 583  test: check ;
583  # A PCRE user submitted the following addition, saying that it "will allow  # A PCRE user submitted the following addition, saying that it "will allow
584  # 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
585  # 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.)
586  DLL_OBJS= pcre_compile.o pcre_config.o \  DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
587          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 \
588          pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \          pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
589          pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \          pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
590          pcre_study.o pcre_tables.o pcre_try_flipped.o \          pcre_study.o pcre_tables.o pcre_ucd.o \
591          pcre_ucd.o pcre_valid_utf8.o pcre_version.o \          pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
         pcre_chartables.o \  
592          pcre_xclass.o          pcre_xclass.o
593    
594  # 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 367  pcre.dll: $(DLL_OBJS) Line 601  pcre.dll: $(DLL_OBJS)
601  # We have .pc files for pkg-config users.  # We have .pc files for pkg-config users.
602  pkgconfigdir = $(libdir)/pkgconfig  pkgconfigdir = $(libdir)/pkgconfig
603  pkgconfig_DATA = libpcre.pc libpcreposix.pc  pkgconfig_DATA = libpcre.pc libpcreposix.pc
604    if WITH_PCRE16
605    pkgconfig_DATA += libpcre16.pc
606    endif
607    if WITH_PCRE32
608    pkgconfig_DATA += libpcre32.pc
609    endif
610  if WITH_PCRE_CPP  if WITH_PCRE_CPP
611  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
612  endif  endif
613    
614  dist_man_MANS = \  dist_man_MANS = \
615    doc/pcre.3 \    doc/pcre.3 \
616      doc/pcre16.3 \
617      doc/pcre32.3 \
618    doc/pcre-config.1 \    doc/pcre-config.1 \
619      doc/pcre_assign_jit_stack.3 \
620    doc/pcre_compile.3 \    doc/pcre_compile.3 \
621    doc/pcre_compile2.3 \    doc/pcre_compile2.3 \
622    doc/pcre_config.3 \    doc/pcre_config.3 \
# Line 381  dist_man_MANS = \ Line 624  dist_man_MANS = \
624    doc/pcre_copy_substring.3 \    doc/pcre_copy_substring.3 \
625    doc/pcre_dfa_exec.3 \    doc/pcre_dfa_exec.3 \
626    doc/pcre_exec.3 \    doc/pcre_exec.3 \
627      doc/pcre_free_study.3 \
628    doc/pcre_free_substring.3 \    doc/pcre_free_substring.3 \
629    doc/pcre_free_substring_list.3 \    doc/pcre_free_substring_list.3 \
630    doc/pcre_fullinfo.3 \    doc/pcre_fullinfo.3 \
# Line 389  dist_man_MANS = \ Line 633  dist_man_MANS = \
633    doc/pcre_get_stringtable_entries.3 \    doc/pcre_get_stringtable_entries.3 \
634    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
635    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
636    doc/pcre_info.3 \    doc/pcre_jit_stack_alloc.3 \
637      doc/pcre_jit_stack_free.3 \
638    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
639      doc/pcre_pattern_to_host_byte_order.3 \
640    doc/pcre_refcount.3 \    doc/pcre_refcount.3 \
641    doc/pcre_study.3 \    doc/pcre_study.3 \
642      doc/pcre_utf16_to_host_byte_order.3 \
643      doc/pcre_utf32_to_host_byte_order.3 \
644    doc/pcre_version.3 \    doc/pcre_version.3 \
645    doc/pcreapi.3 \    doc/pcreapi.3 \
646    doc/pcrebuild.3 \    doc/pcrebuild.3 \
647    doc/pcrecallout.3 \    doc/pcrecallout.3 \
648    doc/pcrecompat.3 \    doc/pcrecompat.3 \
649    doc/pcregrep.1 \    doc/pcregrep.1 \
650      doc/pcrejit.3 \
651      doc/pcrelimits.3 \
652    doc/pcrematching.3 \    doc/pcrematching.3 \
653    doc/pcrepartial.3 \    doc/pcrepartial.3 \
654    doc/pcrepattern.3 \    doc/pcrepattern.3 \
# Line 408  dist_man_MANS = \ Line 658  dist_man_MANS = \
658    doc/pcresample.3 \    doc/pcresample.3 \
659    doc/pcrestack.3 \    doc/pcrestack.3 \
660    doc/pcresyntax.3 \    doc/pcresyntax.3 \
661    doc/pcretest.1    doc/pcretest.1 \
662      doc/pcreunicode.3
663    
664    # Arrange for the per-function man pages to have 16- and 32-bit names as well.
665    install-data-hook:
666            ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre16_assign_jit_stack.3
667            ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre16_compile.3
668            ln -sf pcre_compile2.3                   $(DESTDIR)$(man3dir)/pcre16_compile2.3
669            ln -sf pcre_config.3                     $(DESTDIR)$(man3dir)/pcre16_config.3
670            ln -sf pcre_copy_named_substring.3       $(DESTDIR)$(man3dir)/pcre16_copy_named_substring.3
671            ln -sf pcre_copy_substring.3             $(DESTDIR)$(man3dir)/pcre16_copy_substring.3
672            ln -sf pcre_dfa_exec.3                   $(DESTDIR)$(man3dir)/pcre16_dfa_exec.3
673            ln -sf pcre_exec.3                       $(DESTDIR)$(man3dir)/pcre16_exec.3
674            ln -sf pcre_free_study.3                 $(DESTDIR)$(man3dir)/pcre16_free_study.3
675            ln -sf pcre_free_substring.3             $(DESTDIR)$(man3dir)/pcre16_free_substring.3
676            ln -sf pcre_free_substring_list.3        $(DESTDIR)$(man3dir)/pcre16_free_substring_list.3
677            ln -sf pcre_fullinfo.3                   $(DESTDIR)$(man3dir)/pcre16_fullinfo.3
678            ln -sf pcre_get_named_substring.3        $(DESTDIR)$(man3dir)/pcre16_get_named_substring.3
679            ln -sf pcre_get_stringnumber.3           $(DESTDIR)$(man3dir)/pcre16_get_stringnumber.3
680            ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre16_get_stringtable_entries.3
681            ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3
682            ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre16_get_substring_list.3
683            ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre16_jit_stack_alloc.3
684            ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre16_jit_stack_free.3
685            ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre16_maketables.3
686            ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_pattern_to_host_byte_order.3
687            ln -sf pcre_refcount.3                   $(DESTDIR)$(man3dir)/pcre16_refcount.3
688            ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre16_study.3
689            ln -sf pcre_utf16_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre16_utf16_to_host_byte_order.3
690            ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre16_version.3
691            ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre32_assign_jit_stack.3
692            ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre32_compile.3
693            ln -sf pcre_compile2.3                   $(DESTDIR)$(man3dir)/pcre32_compile2.3
694            ln -sf pcre_config.3                     $(DESTDIR)$(man3dir)/pcre32_config.3
695            ln -sf pcre_copy_named_substring.3       $(DESTDIR)$(man3dir)/pcre32_copy_named_substring.3
696            ln -sf pcre_copy_substring.3             $(DESTDIR)$(man3dir)/pcre32_copy_substring.3
697            ln -sf pcre_dfa_exec.3                   $(DESTDIR)$(man3dir)/pcre32_dfa_exec.3
698            ln -sf pcre_exec.3                       $(DESTDIR)$(man3dir)/pcre32_exec.3
699            ln -sf pcre_free_study.3                 $(DESTDIR)$(man3dir)/pcre32_free_study.3
700            ln -sf pcre_free_substring.3             $(DESTDIR)$(man3dir)/pcre32_free_substring.3
701            ln -sf pcre_free_substring_list.3        $(DESTDIR)$(man3dir)/pcre32_free_substring_list.3
702            ln -sf pcre_fullinfo.3                   $(DESTDIR)$(man3dir)/pcre32_fullinfo.3
703            ln -sf pcre_get_named_substring.3        $(DESTDIR)$(man3dir)/pcre32_get_named_substring.3
704            ln -sf pcre_get_stringnumber.3           $(DESTDIR)$(man3dir)/pcre32_get_stringnumber.3
705            ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre32_get_stringtable_entries.3
706            ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3
707            ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre32_get_substring_list.3
708            ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre32_jit_stack_alloc.3
709            ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre32_jit_stack_free.3
710            ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3
711            ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_pattern_to_host_byte_order.3
712            ln -sf pcre_refcount.3                   $(DESTDIR)$(man3dir)/pcre32_refcount.3
713            ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre32_study.3
714            ln -sf pcre_utf32_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre32_utf32_to_host_byte_order.3
715            ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre32_version.3
716    
717  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
718  EXTRA_DIST += $(pcrecpp_man)  EXTRA_DIST += $(pcrecpp_man)
# Line 417  if WITH_PCRE_CPP Line 721  if WITH_PCRE_CPP
721  man_MANS = $(pcrecpp_man)  man_MANS = $(pcrecpp_man)
722  endif  endif
723    
724    # gcov/lcov code coverage reporting
725    
726    GCOV_NAME ?= $(PACKAGE)-$(VERSION)
727    GCOV_OUTPUT_FILE ?= $(GCOV_NAME)-coverage.info
728    GCOV_OUTPUT_DIR ?= $(GCOV_NAME)-coverage
729    GCOV_LCOV_FLAGS ?=
730    GCOV_GENHTML_FLAGS ?=
731    
732    gcov_quiet = $(gcov_quiet_$(V))
733    gcov_quiet_ = $(gcov_quiet_$(AM_DEFAULT_VERBOSITY))
734    gcov_quiet_0 = --quiet
735    
736    coverage-check: all
737            -$(MAKE) $(AM_MAKEFLAGS) -k check
738    
739    coverage-report:
740            $(LCOV) $(gcov_quiet) \
741                    --directory $(top_builddir) \
742                    --capture \
743                    --output-file "$(GCOV_OUTPUT_FILE).tmp" \
744                    --test-name "$(GCOV_NAME)" \
745                    --no-checksum \
746                    --compat-libtool \
747                    $(GCOV_LCOV_FLAGS)
748            $(LCOV) $(gcov_quiet) \
749                    --directory $(top_builddir) \
750                    --output-file "$(GCOV_OUTPUT_FILE)" \
751                    --remove "$(GCOV_OUTPUT_FILE).tmp" \
752                    "/tmp/*" \
753                    "/usr/include/*" \
754                    "$(includedir)/*"
755            -@rm -f "$(GCOV_OUTPUT_FILE).tmp"
756            LANG=C $(GENHTML) $(gcov_quiet) \
757                    --prefix $(top_builddir) \
758                    --output-directory "$(GCOV_OUTPUT_DIR)" \
759                    --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
760                    --show-details "$(GCOV_OUTPUT_FILE)" \
761                    --legend \
762                    $(GCOV_GENHTML_FLAGS)
763            @echo "Code coverage report written to file://$(abs_builddir)/$(GCOV_OUTPUT_DIR)/index.html"
764    
765    coverage-clean:
766            -$(LCOV) $(gcov_quiet) --zerocounters --directory $(top_builddir)
767            -rm -f "$(GCOV_OUTPUT_FILE)"
768            -rm -f "$(GCOV_OUTPUT_FILE).tmp"
769            -rm -rf "$(GCOV_NAME)"
770            -find $(top_builddir) -name '*.gcda' -o -name "*.gcov" -delete
771    
772    coverage: coverage-check coverage-report
773    clean-local: coverage-clean
774    distclean-local: coverage-clean
775    
776  ## CMake support  ## CMake support
777    
778  EXTRA_DIST += \  EXTRA_DIST += \
779    cmake/COPYING-CMAKE-SCRIPTS \    cmake/COPYING-CMAKE-SCRIPTS \
780    cmake/FindPackageHandleStandardArgs.cmake \    cmake/FindPackageHandleStandardArgs.cmake \
781    cmake/FindReadline.cmake \    cmake/FindReadline.cmake \
782      cmake/FindEditline.cmake \
783    CMakeLists.txt \    CMakeLists.txt \
784    config-cmake.h.in    config-cmake.h.in
785    

Legend:
Removed from v.667  
changed lines
  Added in v.1158

  ViewVC Help
Powered by ViewVC 1.1.5