/[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 144 by ph10, Mon Apr 2 13:32:07 2007 UTC revision 1194 by ph10, Wed Oct 31 17:42:29 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 \
8    doc/pcregrep.txt \    doc/pcregrep.txt \
9    doc/pcretest.txt \    doc/pcretest.txt \
10    AUTHORS \    AUTHORS \
# Line 14  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 \
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 21  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 29  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 \
41      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 \
50    doc/html/pcrecallout.html \    doc/html/pcrecallout.html \
51    doc/html/pcrecompat.html \    doc/html/pcrecompat.html \
52      doc/html/pcredemo.html \
53    doc/html/pcregrep.html \    doc/html/pcregrep.html \
54      doc/html/pcrejit.html \
55      doc/html/pcrelimits.html \
56    doc/html/pcrematching.html \    doc/html/pcrematching.html \
57    doc/html/pcrepartial.html \    doc/html/pcrepartial.html \
58    doc/html/pcrepattern.html \    doc/html/pcrepattern.html \
# Line 47  dist_html_DATA = \ Line 61  dist_html_DATA = \
61    doc/html/pcreprecompile.html \    doc/html/pcreprecompile.html \
62    doc/html/pcresample.html \    doc/html/pcresample.html \
63    doc/html/pcrestack.html \    doc/html/pcrestack.html \
64    doc/html/pcretest.html    doc/html/pcresyntax.html \
65      doc/html/pcretest.html \
66      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)
# Line 66  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 78  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
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 106  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 155  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  libpcre_la_SOURCES = \  libpcre_la_SOURCES = \
211      pcre_byte_order.c \
212    pcre_compile.c \    pcre_compile.c \
213    pcre_config.c \    pcre_config.c \
214    pcre_dfa_exec.c \    pcre_dfa_exec.c \
# Line 166  libpcre_la_SOURCES = \ Line 216  libpcre_la_SOURCES = \
216    pcre_fullinfo.c \    pcre_fullinfo.c \
217    pcre_get.c \    pcre_get.c \
218    pcre_globals.c \    pcre_globals.c \
   pcre_info.c \  
219    pcre_internal.h \    pcre_internal.h \
220      pcre_jit_compile.c \
221    pcre_maketables.c \    pcre_maketables.c \
222    pcre_newline.c \    pcre_newline.c \
223    pcre_ord2utf8.c \    pcre_ord2utf8.c \
224    pcre_refcount.c \    pcre_refcount.c \
225      pcre_string_utils.c \
226    pcre_study.c \    pcre_study.c \
227    pcre_tables.c \    pcre_tables.c \
228    pcre_try_flipped.c \    pcre_ucd.c \
   pcre_ucp_searchfuncs.c \  
229    pcre_valid_utf8.c \    pcre_valid_utf8.c \
230    pcre_version.c \    pcre_version.c \
231    pcre_xclass.c \    pcre_xclass.c \
232    ucp.h \    ucp.h
233    ucpinternal.h \  
234    ucptable.h  libpcre_la_CFLAGS = \
235      $(AM_CFLAGS)
236    
237    libpcre_la_LIBADD =
238    
239  ## 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.
240  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
241    pcre_chartables.c    pcre_chartables.c
242    
243  # The pcre_printint.src file is #included by some source files, so it must be  endif # WITH_PCRE8
244  # distributed. The pcre_chartables.c.dist file is the default version of  
245  # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.  # Build the 16 bit library if it is enabled.
246  EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist  if WITH_PCRE16
247    lib_LTLIBRARIES += libpcre16.la
248    libpcre16_la_SOURCES = \
249      pcre16_byte_order.c \
250      pcre16_chartables.c \
251      pcre16_compile.c \
252      pcre16_config.c \
253      pcre16_dfa_exec.c \
254      pcre16_exec.c \
255      pcre16_fullinfo.c \
256      pcre16_get.c \
257      pcre16_globals.c \
258      pcre16_jit_compile.c \
259      pcre16_maketables.c \
260      pcre16_newline.c \
261      pcre16_ord2utf16.c \
262      pcre16_refcount.c \
263      pcre16_string_utils.c \
264      pcre16_study.c \
265      pcre16_tables.c \
266      pcre16_ucd.c \
267      pcre16_utf16_utils.c \
268      pcre16_valid_utf16.c \
269      pcre16_version.c \
270      pcre16_xclass.c
271    
272    libpcre16_la_CFLAGS = \
273      $(AM_CFLAGS)
274    
275    libpcre16_la_LIBADD =
276    
277    ## This file is generated as part of the building process, so don't distribute.
278    nodist_libpcre16_la_SOURCES = \
279      pcre_chartables.c
280    
281    endif # WITH_PCRE16
282    
283    # Build the 32 bit library if it is enabled.
284    if WITH_PCRE32
285    lib_LTLIBRARIES += libpcre32.la
286    libpcre32_la_SOURCES = \
287      pcre32_byte_order.c \
288      pcre32_chartables.c \
289      pcre32_compile.c \
290      pcre32_config.c \
291      pcre32_dfa_exec.c \
292      pcre32_exec.c \
293      pcre32_fullinfo.c \
294      pcre32_get.c \
295      pcre32_globals.c \
296      pcre32_jit_compile.c \
297      pcre32_maketables.c \
298      pcre32_newline.c \
299      pcre32_ord2utf32.c \
300      pcre32_refcount.c \
301      pcre32_string_utils.c \
302      pcre32_study.c \
303      pcre32_tables.c \
304      pcre32_ucd.c \
305      pcre32_utf32_utils.c \
306      pcre32_valid_utf32.c \
307      pcre32_version.c \
308      pcre32_xclass.c
309    
310    libpcre32_la_CFLAGS = \
311      $(AM_CFLAGS)
312    libpcre32_la_LIBADD =
313    
314    ## This file is generated as part of the building process, so don't distribute.
315    nodist_libpcre32_la_SOURCES = \
316      pcre_chartables.c
317    
318    endif # WITH_PCRE32
319    
320    # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,
321    # used unless --enable-rebuild-chartables is specified.
322    EXTRA_DIST += pcre_chartables.c.dist
323    
324    # The JIT compiler lives in a separate directory, but its files are #included
325    # when pcre_jit_compile.c is processed, so they must be distributed.
326    EXTRA_DIST += \
327      sljit/sljitConfig.h \
328      sljit/sljitConfigInternal.h \
329      sljit/sljitExecAllocator.c \
330      sljit/sljitLir.c \
331      sljit/sljitLir.h \
332      sljit/sljitNativeARM_Thumb2.c \
333      sljit/sljitNativeARM_v5.c \
334      sljit/sljitNativeMIPS_32.c \
335      sljit/sljitNativeMIPS_common.c \
336      sljit/sljitNativePPC_32.c \
337      sljit/sljitNativePPC_64.c \
338      sljit/sljitNativePPC_common.c \
339      sljit/sljitNativeX86_32.c \
340      sljit/sljitNativeX86_64.c \
341      sljit/sljitNativeX86_common.c \
342      sljit/sljitUtils.c
343    
344    if WITH_PCRE8
345  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
346    endif # WITH_PCRE8
347    if WITH_PCRE16
348    libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)
349    endif # WITH_PCRE16
350    if WITH_PCRE32
351    libpcre32_la_LDFLAGS = $(EXTRA_LIBPCRE32_LDFLAGS)
352    endif # WITH_PCRE32
353    
354    if WITH_VALGRIND
355    if WITH_PCRE8
356    libpcre_la_CFLAGS += $(VALGRIND_CFLAGS)
357    endif # WITH_PCRE8
358    if WITH_PCRE16
359    libpcre16_la_CFLAGS += $(VALGRIND_CFLAGS)
360    endif # WITH_PCRE16
361    if WITH_PCRE32
362    libpcre32_la_CFLAGS += $(VALGRIND_CFLAGS)
363    endif # WITH_PCRE32
364    endif # WITH_VALGRIND
365    
366    if WITH_GCOV
367    if WITH_PCRE8
368    libpcre_la_CFLAGS += $(GCOV_CFLAGS)
369    endif # WITH_PCRE8
370    if WITH_PCRE16
371    libpcre16_la_CFLAGS += $(GCOV_CFLAGS)
372    endif # WITH_PCRE16
373    if WITH_PCRE32
374    libpcre32_la_CFLAGS += $(GCOV_CFLAGS)
375    endif # WITH_PCRE32
376    endif # WITH_GCOV
377    
378  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
379    
380    ## If JIT support is enabled, arrange for the JIT test program to run.
381    if WITH_JIT
382    TESTS += pcre_jit_test
383    noinst_PROGRAMS += pcre_jit_test
384    pcre_jit_test_SOURCES = pcre_jit_test.c
385    pcre_jit_test_CFLAGS = $(AM_CFLAGS)
386    pcre_jit_test_LDADD =
387    if WITH_PCRE8
388    pcre_jit_test_LDADD += libpcre.la
389    endif # WITH_PCRE8
390    if WITH_PCRE16
391    pcre_jit_test_LDADD += libpcre16.la
392    endif # WITH_PCRE16
393    if WITH_PCRE32
394    pcre_jit_test_LDADD += libpcre32.la
395    endif # WITH_PCRE32
396    if WITH_GCOV
397    pcre_jit_test_CFLAGS += $(GCOV_CFLAGS)
398    pcre_jit_test_LDADD += $(GCOV_LIBS)
399    endif # WITH_GCOV
400    endif # WITH_JIT
401    
402  ## 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.
403    if WITH_PCRE8
404    
405  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
406  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
407    pcreposix.c    pcreposix.c
408    libpcreposix_la_CFLAGS = $(AM_CFLAGS)
409  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
410  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
411    
412    if WITH_GCOV
413    libpcreposix_la_CFLAGS += $(GCOV_CFLAGS)
414    endif # WITH_GCOV
415    
416    endif # WITH_PCRE8
417    
418  ## There's a C++ library as well.  ## There's a C++ library as well.
419  if WITH_PCRE_CPP  if WITH_PCRE_CPP
420    
421  lib_LTLIBRARIES += libpcrecpp.la  lib_LTLIBRARIES += libpcrecpp.la
422  libpcrecpp_la_SOURCES = \  libpcrecpp_la_SOURCES = \
423      pcrecpp_internal.h \
424    pcrecpp.cc \    pcrecpp.cc \
425    pcre_scanner.cc \    pcre_scanner.cc \
426    pcre_stringpiece.cc    pcre_stringpiece.cc
427    libpcrecpp_la_CXXFLAGS = $(AM_CXXFLAGS)
428  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
429  libpcrecpp_la_LIBADD = libpcre.la  libpcrecpp_la_LIBADD = libpcre.la
430    
431  TESTS += pcrecpp_unittest  TESTS += pcrecpp_unittest
432  noinst_PROGRAMS += pcrecpp_unittest  noinst_PROGRAMS += pcrecpp_unittest
433  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc  pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
434    pcrecpp_unittest_CXXFLAGS = $(AM_CXXFLAGS)
435  pcrecpp_unittest_LDADD = libpcrecpp.la  pcrecpp_unittest_LDADD = libpcrecpp.la
436    
437  TESTS += pcre_scanner_unittest  TESTS += pcre_scanner_unittest
438  noinst_PROGRAMS += pcre_scanner_unittest  noinst_PROGRAMS += pcre_scanner_unittest
439  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc  pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
440    pcre_scanner_unittest_CXXFLAGS = $(AM_CXXFLAGS)
441  pcre_scanner_unittest_LDADD = libpcrecpp.la  pcre_scanner_unittest_LDADD = libpcrecpp.la
442    
443  TESTS += pcre_stringpiece_unittest  TESTS += pcre_stringpiece_unittest
444  noinst_PROGRAMS += pcre_stringpiece_unittest  noinst_PROGRAMS += pcre_stringpiece_unittest
445  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc  pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
446    pcre_stringpiece_unittest_CXXFLAGS = $(AM_CXXFLAGS)
447  pcre_stringpiece_unittest_LDADD = libpcrecpp.la  pcre_stringpiece_unittest_LDADD = libpcrecpp.la
448    
449    if WITH_GCOV
450    libpcrecpp_la_CXXFLAGS += $(GCOV_CXXFLAGS)
451    pcrecpp_unittest_LDADD += $(GCOV_LIBS)
452    pcre_scanner_unittest_LDADD += $(GCOV_LIBS)
453    pcre_stringpiece_unittest_LDADD += $(GCOV_LIBS)
454    endif # WITH_GCOV
455    
456  endif # WITH_PCRE_CPP  endif # WITH_PCRE_CPP
457    
458  ## The main unit tests  ## The main unit tests
# Line 241  dist_noinst_SCRIPTS += RunTest Line 465  dist_noinst_SCRIPTS += RunTest
465  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
466  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
467  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
468  pcretest_LDADD = libpcreposix.la  pcretest_CFLAGS = $(AM_CFLAGS)
469    pcretest_LDADD = $(LIBREADLINE)
470    if WITH_PCRE8
471    pcretest_SOURCES += pcre_printint.c
472    pcretest_LDADD += libpcre.la libpcreposix.la
473    endif # WITH_PCRE8
474    if WITH_PCRE16
475    pcretest_SOURCES += pcre16_printint.c
476    pcretest_LDADD += libpcre16.la
477    endif # WITH_PCRE16
478    if WITH_PCRE32
479    pcretest_SOURCES += pcre32_printint.c
480    pcretest_LDADD += libpcre32.la
481    endif # WITH_PCRE32
482    if WITH_VALGRIND
483    pcretest_CFLAGS += $(VALGRIND_CFLAGS)
484    endif # WITH_VALGRIND
485    if WITH_GCOV
486    pcretest_CFLAGS += $(GCOV_CFLAGS)
487    pcretest_LDADD += $(GCOV_LIBS)
488    endif # WITH_GCOV
489    
490    if WITH_PCRE8
491  TESTS += RunGrepTest  TESTS += RunGrepTest
492  dist_noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
493  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
494  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
495  pcregrep_LDADD = libpcreposix.la  pcregrep_CFLAGS = $(AM_CFLAGS)
496    pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
497    pcregrep_LDADD += libpcre.la libpcreposix.la
498    if WITH_GCOV
499    pcregrep_CFLAGS += $(GCOV_CFLAGS)
500    pcregrep_LDADD += $(GCOV_LIBS)
501    endif # WITH_GCOV
502    endif # WITH_PCRE8
503    
504  EXTRA_DIST += \  EXTRA_DIST += \
505      testdata/grepbinary \
506      testdata/grepfilelist \
507    testdata/grepinput \    testdata/grepinput \
508      testdata/grepinput3 \
509    testdata/grepinput8 \    testdata/grepinput8 \
510      testdata/grepinputv \
511    testdata/grepinputx \    testdata/grepinputx \
512    testdata/greplist \    testdata/greplist \
513    testdata/grepoutput \    testdata/grepoutput \
514    testdata/grepoutput8 \    testdata/grepoutput8 \
515    testdata/grepoutputN \    testdata/grepoutputN \
516      testdata/greppatN4 \
517      testdata/saved16 \
518      testdata/saved16BE-1 \
519      testdata/saved16BE-2 \
520      testdata/saved16LE-1 \
521      testdata/saved16LE-2 \
522      testdata/saved32 \
523      testdata/saved32BE-1 \
524      testdata/saved32BE-2 \
525      testdata/saved32LE-1 \
526      testdata/saved32LE-2 \
527      testdata/saved8 \
528    testdata/testinput1 \    testdata/testinput1 \
529    testdata/testinput2 \    testdata/testinput2 \
530    testdata/testinput3 \    testdata/testinput3 \
# Line 266  EXTRA_DIST += \ Line 534  EXTRA_DIST += \
534    testdata/testinput7 \    testdata/testinput7 \
535    testdata/testinput8 \    testdata/testinput8 \
536    testdata/testinput9 \    testdata/testinput9 \
537      testdata/testinput10 \
538      testdata/testinput11 \
539      testdata/testinput12 \
540      testdata/testinput13 \
541      testdata/testinput14 \
542      testdata/testinput15 \
543      testdata/testinput16 \
544      testdata/testinput17 \
545      testdata/testinput18 \
546      testdata/testinput19 \
547      testdata/testinput20 \
548      testdata/testinput21 \
549      testdata/testinput22 \
550      testdata/testinput23 \
551      testdata/testinput24 \
552      testdata/testinput25 \
553      testdata/testinput26 \
554      testdata/testinputEBC \
555    testdata/testoutput1 \    testdata/testoutput1 \
556    testdata/testoutput2 \    testdata/testoutput2 \
557    testdata/testoutput3 \    testdata/testoutput3 \
# Line 275  EXTRA_DIST += \ Line 561  EXTRA_DIST += \
561    testdata/testoutput7 \    testdata/testoutput7 \
562    testdata/testoutput8 \    testdata/testoutput8 \
563    testdata/testoutput9 \    testdata/testoutput9 \
564      testdata/testoutput10 \
565      testdata/testoutput11-8 \
566      testdata/testoutput11-16 \
567      testdata/testoutput11-32 \
568      testdata/testoutput12 \
569      testdata/testoutput13 \
570      testdata/testoutput14 \
571      testdata/testoutput15 \
572      testdata/testoutput16 \
573      testdata/testoutput17 \
574      testdata/testoutput18-16 \
575      testdata/testoutput18-32 \
576      testdata/testoutput19 \
577      testdata/testoutput20 \
578      testdata/testoutput21-16 \
579      testdata/testoutput21-32 \
580      testdata/testoutput22-16 \
581      testdata/testoutput22-32 \
582      testdata/testoutput23 \
583      testdata/testoutput24 \
584      testdata/testoutput25 \
585      testdata/testoutput26 \
586      testdata/testoutputEBC \
587      testdata/wintestinput3 \
588      testdata/wintestoutput3 \
589    perltest.pl    perltest.pl
590    
591  CLEANFILES += \  CLEANFILES += \
592          testsavedregex \          testsavedregex \
593          teststderr \          teststderr \
594          testtry          testtemp* \
595            testtry \
596            testNinput
597    
598    
599    # PCRE demonstration program. No longer built automatcally. The point is that
600    # the users should build it themselves. So just distribute the source.
601    # noinst_PROGRAMS += pcredemo
602    # pcredemo_SOURCES = pcredemo.c
603    # pcredemo_LDADD = libpcre.la
604    
605    EXTRA_DIST += pcredemo.c
606    
 # PCRE demonstration program  
 noinst_PROGRAMS += pcredemo  
 pcredemo_SOURCES = pcredemo.c  
 pcredemo_LDADD = libpcre.la  
607    
608  ## Utility rules, documentation, etc.  ## Utility rules, documentation, etc.
609    
610  # A compatibility line, the old build system worked with 'make test'  # A compatibility line, the old build system worked with 'make test'
611  test: check ;  test: check ;
612    
613    
614    # A PCRE user submitted the following addition, saying that it "will allow
615    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
616    # nice DLL for Windows use". (It is used by the pcre.dll target.)
617    DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
618            pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
619            pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
620            pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
621            pcre_study.o pcre_tables.o pcre_ucd.o \
622            pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
623            pcre_xclass.o
624    
625    # A PCRE user submitted the following addition, saying that it "will allow
626    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
627    # nice DLL for Windows use".
628    pcre.dll: $(DLL_OBJS)
629            $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
630    
631    
632  # We have .pc files for pkg-config users.  # We have .pc files for pkg-config users.
633  pkgconfigdir = $(libdir)/pkgconfig  pkgconfigdir = $(libdir)/pkgconfig
634  pkgconfig_DATA = libpcre.pc  pkgconfig_DATA = libpcre.pc libpcreposix.pc
635    if WITH_PCRE16
636    pkgconfig_DATA += libpcre16.pc
637    endif
638    if WITH_PCRE32
639    pkgconfig_DATA += libpcre32.pc
640    endif
641  if WITH_PCRE_CPP  if WITH_PCRE_CPP
642  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
643  endif  endif
644    
645  dist_man_MANS = \  dist_man_MANS = \
646    doc/pcre.3 \    doc/pcre.3 \
647      doc/pcre16.3 \
648      doc/pcre32.3 \
649      doc/pcre-config.1 \
650      doc/pcre_assign_jit_stack.3 \
651    doc/pcre_compile.3 \    doc/pcre_compile.3 \
652    doc/pcre_compile2.3 \    doc/pcre_compile2.3 \
653    doc/pcre_config.3 \    doc/pcre_config.3 \
# Line 308  dist_man_MANS = \ Line 655  dist_man_MANS = \
655    doc/pcre_copy_substring.3 \    doc/pcre_copy_substring.3 \
656    doc/pcre_dfa_exec.3 \    doc/pcre_dfa_exec.3 \
657    doc/pcre_exec.3 \    doc/pcre_exec.3 \
658      doc/pcre_free_study.3 \
659    doc/pcre_free_substring.3 \    doc/pcre_free_substring.3 \
660    doc/pcre_free_substring_list.3 \    doc/pcre_free_substring_list.3 \
661    doc/pcre_fullinfo.3 \    doc/pcre_fullinfo.3 \
# Line 316  dist_man_MANS = \ Line 664  dist_man_MANS = \
664    doc/pcre_get_stringtable_entries.3 \    doc/pcre_get_stringtable_entries.3 \
665    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
666    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
667    doc/pcre_info.3 \    doc/pcre_jit_exec.3 \
668      doc/pcre_jit_stack_alloc.3 \
669      doc/pcre_jit_stack_free.3 \
670    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
671      doc/pcre_pattern_to_host_byte_order.3 \
672    doc/pcre_refcount.3 \    doc/pcre_refcount.3 \
673    doc/pcre_study.3 \    doc/pcre_study.3 \
674      doc/pcre_utf16_to_host_byte_order.3 \
675      doc/pcre_utf32_to_host_byte_order.3 \
676    doc/pcre_version.3 \    doc/pcre_version.3 \
677    doc/pcreapi.3 \    doc/pcreapi.3 \
678    doc/pcrebuild.3 \    doc/pcrebuild.3 \
679    doc/pcrecallout.3 \    doc/pcrecallout.3 \
680    doc/pcrecompat.3 \    doc/pcrecompat.3 \
681    doc/pcregrep.1 \    doc/pcregrep.1 \
682      doc/pcrejit.3 \
683      doc/pcrelimits.3 \
684    doc/pcrematching.3 \    doc/pcrematching.3 \
685    doc/pcrepartial.3 \    doc/pcrepartial.3 \
686    doc/pcrepattern.3 \    doc/pcrepattern.3 \
# Line 334  dist_man_MANS = \ Line 689  dist_man_MANS = \
689    doc/pcreprecompile.3 \    doc/pcreprecompile.3 \
690    doc/pcresample.3 \    doc/pcresample.3 \
691    doc/pcrestack.3 \    doc/pcrestack.3 \
692    doc/pcretest.1    doc/pcresyntax.3 \
693      doc/pcretest.1 \
694      doc/pcreunicode.3
695    
696    # Arrange for the per-function man pages to have 16- and 32-bit names as well.
697    install-data-hook:
698            ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre16_assign_jit_stack.3
699            ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre16_compile.3
700            ln -sf pcre_compile2.3                   $(DESTDIR)$(man3dir)/pcre16_compile2.3
701            ln -sf pcre_config.3                     $(DESTDIR)$(man3dir)/pcre16_config.3
702            ln -sf pcre_copy_named_substring.3       $(DESTDIR)$(man3dir)/pcre16_copy_named_substring.3
703            ln -sf pcre_copy_substring.3             $(DESTDIR)$(man3dir)/pcre16_copy_substring.3
704            ln -sf pcre_dfa_exec.3                   $(DESTDIR)$(man3dir)/pcre16_dfa_exec.3
705            ln -sf pcre_exec.3                       $(DESTDIR)$(man3dir)/pcre16_exec.3
706            ln -sf pcre_free_study.3                 $(DESTDIR)$(man3dir)/pcre16_free_study.3
707            ln -sf pcre_free_substring.3             $(DESTDIR)$(man3dir)/pcre16_free_substring.3
708            ln -sf pcre_free_substring_list.3        $(DESTDIR)$(man3dir)/pcre16_free_substring_list.3
709            ln -sf pcre_fullinfo.3                   $(DESTDIR)$(man3dir)/pcre16_fullinfo.3
710            ln -sf pcre_get_named_substring.3        $(DESTDIR)$(man3dir)/pcre16_get_named_substring.3
711            ln -sf pcre_get_stringnumber.3           $(DESTDIR)$(man3dir)/pcre16_get_stringnumber.3
712            ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre16_get_stringtable_entries.3
713            ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3
714            ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre16_get_substring_list.3
715            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre16_jit_exec.3
716            ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre16_jit_stack_alloc.3
717            ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre16_jit_stack_free.3
718            ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre16_maketables.3
719            ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_pattern_to_host_byte_order.3
720            ln -sf pcre_refcount.3                   $(DESTDIR)$(man3dir)/pcre16_refcount.3
721            ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre16_study.3
722            ln -sf pcre_utf16_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre16_utf16_to_host_byte_order.3
723            ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre16_version.3
724            ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre32_assign_jit_stack.3
725            ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre32_compile.3
726            ln -sf pcre_compile2.3                   $(DESTDIR)$(man3dir)/pcre32_compile2.3
727            ln -sf pcre_config.3                     $(DESTDIR)$(man3dir)/pcre32_config.3
728            ln -sf pcre_copy_named_substring.3       $(DESTDIR)$(man3dir)/pcre32_copy_named_substring.3
729            ln -sf pcre_copy_substring.3             $(DESTDIR)$(man3dir)/pcre32_copy_substring.3
730            ln -sf pcre_dfa_exec.3                   $(DESTDIR)$(man3dir)/pcre32_dfa_exec.3
731            ln -sf pcre_exec.3                       $(DESTDIR)$(man3dir)/pcre32_exec.3
732            ln -sf pcre_free_study.3                 $(DESTDIR)$(man3dir)/pcre32_free_study.3
733            ln -sf pcre_free_substring.3             $(DESTDIR)$(man3dir)/pcre32_free_substring.3
734            ln -sf pcre_free_substring_list.3        $(DESTDIR)$(man3dir)/pcre32_free_substring_list.3
735            ln -sf pcre_fullinfo.3                   $(DESTDIR)$(man3dir)/pcre32_fullinfo.3
736            ln -sf pcre_get_named_substring.3        $(DESTDIR)$(man3dir)/pcre32_get_named_substring.3
737            ln -sf pcre_get_stringnumber.3           $(DESTDIR)$(man3dir)/pcre32_get_stringnumber.3
738            ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre32_get_stringtable_entries.3
739            ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3
740            ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre32_get_substring_list.3
741            ln -sf pcre_jit_exec.3                   $(DESTDIR)$(man3dir)/pcre32_jit_exec.3
742            ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre32_jit_stack_alloc.3
743            ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre32_jit_stack_free.3
744            ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3
745            ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_pattern_to_host_byte_order.3
746            ln -sf pcre_refcount.3                   $(DESTDIR)$(man3dir)/pcre32_refcount.3
747            ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre32_study.3
748            ln -sf pcre_utf32_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre32_utf32_to_host_byte_order.3
749            ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre32_version.3
750    
751  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
752  EXTRA_DIST += $(pcrecpp_man)  EXTRA_DIST += $(pcrecpp_man)
# Line 343  if WITH_PCRE_CPP Line 755  if WITH_PCRE_CPP
755  man_MANS = $(pcrecpp_man)  man_MANS = $(pcrecpp_man)
756  endif  endif
757    
758    # gcov/lcov code coverage reporting
759    
760    if WITH_GCOV
761    
762    # Coverage reporting targets:
763    #
764    # coverage: Create a coverage report from 'make check'
765    # coverage-baseline: Capture baseline coverage information
766    # coverage-reset: This zeros the coverage counters only
767    # coverage-report: This creates the coverage report only
768    # coverage-clean-report: This removes the generated coverage report
769    #   without cleaning the coverage data itself
770    # coverage-clean-data: This removes the captured coverage data without
771    #   removing the coverage files created at compile time (*.gcno)
772    # coverage-clean: This cleans all coverage data including the generated
773    #   coverage report.
774    
775    COVERAGE_TEST_NAME = $(PACKAGE)
776    COVERAGE_NAME = $(PACKAGE)-$(VERSION)
777    COVERAGE_OUTPUT_FILE = $(COVERAGE_NAME)-coverage.info
778    COVERAGE_OUTPUT_DIR = $(COVERAGE_NAME)-coverage
779    COVERAGE_LCOV_EXTRA_FLAGS =
780    COVERAGE_GENHTML_EXTRA_FLAGS =
781    
782    coverage_quiet = $(coverage_quiet_$(V))
783    coverage_quiet_ = $(coverage_quiet_$(AM_DEFAULT_VERBOSITY))
784    coverage_quiet_0 = --quiet
785    
786    coverage-check: all
787            -$(MAKE) $(AM_MAKEFLAGS) -k check
788    
789    coverage-baseline:
790            $(LCOV) $(coverage_quiet) \
791                    --directory $(top_builddir) \
792                    --output-file "$(COVERAGE_OUTPUT_FILE)" \
793                    --capture \
794                    --initial
795    
796    coverage-report:
797            $(LCOV) $(coverage_quiet) \
798                    --directory $(top_builddir) \
799                    --capture \
800                    --output-file "$(COVERAGE_OUTPUT_FILE).tmp" \
801                    --test-name "$(COVERAGE_TEST_NAME)" \
802                    --no-checksum \
803                    --compat-libtool \
804                    $(COVERAGE_LCOV_EXTRA_FLAGS)
805            $(LCOV) $(coverage_quiet) \
806                    --directory $(top_builddir) \
807                    --output-file "$(COVERAGE_OUTPUT_FILE)" \
808                    --remove "$(COVERAGE_OUTPUT_FILE).tmp" \
809                    "/tmp/*" \
810                    "/usr/include/*" \
811                    "$(includedir)/*"
812            -@rm -f "$(COVERAGE_OUTPUT_FILE).tmp"
813            LANG=C $(GENHTML) $(coverage_quiet) \
814                    --prefix $(top_builddir) \
815                    --output-directory "$(COVERAGE_OUTPUT_DIR)" \
816                    --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
817                    --show-details "$(COVERAGE_OUTPUT_FILE)" \
818                    --legend \
819                    $(COVERAGE_GENHTML_EXTRA_FLAGS)
820            @echo "Code coverage report written to file://$(abs_builddir)/$(COVERAGE_OUTPUT_DIR)/index.html"
821    
822    coverage-reset:
823            -$(LCOV) $(coverage_quiet) --zerocounters --directory $(top_builddir)
824    
825    coverage-clean-report:
826            -rm -f "$(COVERAGE_OUTPUT_FILE)" "$(COVERAGE_OUTPUT_FILE).tmp"
827            -rm -rf "$(COVERAGE_OUTPUT_DIR)"
828    
829    coverage-clean-data:
830            -find $(top_builddir) -name "*.gcda" -delete
831    
832    coverage-clean: coverage-reset coverage-clean-report coverage-clean-data
833            -find $(top_builddir) -name "*.gcno" -delete
834    
835    coverage-distclean: coverage-clean
836    
837    coverage: coverage-reset coverage-baseline coverage-check coverage-report
838    clean-local: coverage-clean
839    distclean-local: coverage-distclean
840    
841    .PHONY: coverage coverage-baseline coverage-check coverage-report coverage-reset coverage-clean-report coverage-clean-data coverage-clean coverage-distclean
842    
843    else
844    
845    coverage:
846            @echo "Configuring with --enable-coverage required to generate code coverage report."
847    
848    endif # WITH_GCOV
849    
850  ## CMake support  ## CMake support
851    
852  EXTRA_DIST += \  EXTRA_DIST += \
853      cmake/COPYING-CMAKE-SCRIPTS \
854      cmake/FindPackageHandleStandardArgs.cmake \
855      cmake/FindReadline.cmake \
856      cmake/FindEditline.cmake \
857    CMakeLists.txt \    CMakeLists.txt \
858    config-cmake.h.in    config-cmake.h.in
859    

Legend:
Removed from v.144  
changed lines
  Added in v.1194

  ViewVC Help
Powered by ViewVC 1.1.5