/[pcre]/code/tags/pcre-8.38/Makefile.am
ViewVC logotype

Contents of /code/tags/pcre-8.38/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1165 - (show annotations)
Tue Oct 23 11:17:28 2012 UTC (7 years, 1 month ago) by chpe
Original Path: code/trunk/Makefile.am
File size: 23131 byte(s)
Error occurred while calculating annotation data.
build: Don't use ?= variable assignment in Makefile.am

It's not necessary for these variables, and it's not portable to non-GNU make.
1 ## Process this file with automake to produce Makefile.in.
2
3 ACLOCAL_AMFLAGS = -I m4
4
5 dist_doc_DATA = \
6 doc/pcre.txt \
7 doc/pcre-config.txt \
8 doc/pcregrep.txt \
9 doc/pcretest.txt \
10 AUTHORS \
11 COPYING \
12 ChangeLog \
13 LICENCE \
14 NEWS \
15 README
16
17 dist_html_DATA = \
18 doc/html/index.html \
19 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 \
24 doc/html/pcre_compile2.html \
25 doc/html/pcre_config.html \
26 doc/html/pcre_copy_named_substring.html \
27 doc/html/pcre_copy_substring.html \
28 doc/html/pcre_dfa_exec.html \
29 doc/html/pcre_exec.html \
30 doc/html/pcre_free_study.html \
31 doc/html/pcre_free_substring.html \
32 doc/html/pcre_free_substring_list.html \
33 doc/html/pcre_fullinfo.html \
34 doc/html/pcre_get_named_substring.html \
35 doc/html/pcre_get_stringnumber.html \
36 doc/html/pcre_get_stringtable_entries.html \
37 doc/html/pcre_get_substring.html \
38 doc/html/pcre_get_substring_list.html \
39 doc/html/pcre_jit_stack_alloc.html \
40 doc/html/pcre_jit_stack_free.html \
41 doc/html/pcre_maketables.html \
42 doc/html/pcre_pattern_to_host_byte_order.html \
43 doc/html/pcre_refcount.html \
44 doc/html/pcre_study.html \
45 doc/html/pcre_utf16_to_host_byte_order.html \
46 doc/html/pcre_version.html \
47 doc/html/pcreapi.html \
48 doc/html/pcrebuild.html \
49 doc/html/pcrecallout.html \
50 doc/html/pcrecompat.html \
51 doc/html/pcredemo.html \
52 doc/html/pcregrep.html \
53 doc/html/pcrejit.html \
54 doc/html/pcrelimits.html \
55 doc/html/pcrematching.html \
56 doc/html/pcrepartial.html \
57 doc/html/pcrepattern.html \
58 doc/html/pcreperform.html \
59 doc/html/pcreposix.html \
60 doc/html/pcreprecompile.html \
61 doc/html/pcresample.html \
62 doc/html/pcrestack.html \
63 doc/html/pcresyntax.html \
64 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
72 dist_noinst_DATA = $(pcrecpp_html)
73
74 if WITH_PCRE_CPP
75 html_DATA = $(pcrecpp_html)
76 endif
77
78 # The Libtool libraries to install. We'll add to this later.
79 lib_LTLIBRARIES =
80
81 # Unit tests you want to run when people type 'make check'.
82 # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
83 TESTS =
84 check_SCRIPTS =
85 dist_noinst_SCRIPTS =
86
87 # Some of the binaries we make are to be installed, and others are
88 # (non-user-visible) helper programs needed to build libpcre, libpcre16
89 # or libpcre32.
90 bin_PROGRAMS =
91 noinst_PROGRAMS =
92
93 # Additional files to delete on 'make clean' and 'make maintainer-clean'.
94 CLEANFILES =
95 MAINTAINERCLEANFILES =
96
97 # Additional files to bundle with the distribution, over and above what
98 # the Autotools include by default.
99 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
106 EXTRA_DIST += \
107 doc/perltest.txt \
108 NON-UNIX-USE \
109 NON-AUTOTOOLS-BUILD \
110 HACKING
111
112 # These files are used in the preparation of a release
113 EXTRA_DIST += \
114 PrepareRelease \
115 CheckMan \
116 CleanTxt \
117 Detrail \
118 132html \
119 doc/index.html.src
120
121 # These files are to do with building for Virtual Pascal
122 EXTRA_DIST += \
123 makevp.bat \
124 makevp_c.txt \
125 makevp_l.txt \
126 pcregexp.pas
127
128 # These files are usable versions of pcre.h and config.h that are distributed
129 # for the benefit of people who are building PCRE manually, without the
130 # Autotools support.
131 EXTRA_DIST += \
132 pcre.h.generic \
133 config.h.generic
134
135 pcre.h.generic: configure.ac
136 rm -f $@
137 cp -p pcre.h $@
138
139 MAINTAINERCLEANFILES += pcre.h.generic
140
141 # These are the header files we'll install. We do not distribute pcre.h because
142 # it is generated from pcre.h.in.
143 nodist_include_HEADERS = \
144 pcre.h
145 include_HEADERS = \
146 pcreposix.h
147
148 # These additional headers will be be installed if C++ support is enabled. We
149 # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
150 # from corresponding .h.in files (which we do distribute).
151 if WITH_PCRE_CPP
152 nodist_include_HEADERS += \
153 pcrecpparg.h \
154 pcre_stringpiece.h
155 include_HEADERS += \
156 pcrecpp.h \
157 pcre_scanner.h
158 endif # WITH_PCRE_CPP
159
160 bin_SCRIPTS = pcre-config
161
162 ## ---------------------------------------------------------------
163 ## The dftables program is used to rebuild character tables before compiling
164 ## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
165 ## program. The default (when --enable-rebuild-chartables is not specified) is
166 ## to copy a distributed set of tables that are defined for ASCII code. In this
167 ## case, dftables is not needed.
168
169 if WITH_REBUILD_CHARTABLES
170
171 noinst_PROGRAMS += dftables
172 dftables_SOURCES = dftables.c
173
174 pcre_chartables.c: dftables$(EXEEXT)
175 ./dftables$(EXEEXT) $@
176 else
177
178 pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
179 rm -f $@
180 $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
181
182 endif # WITH_REBUILD_CHARTABLES
183
184 BUILT_SOURCES = pcre_chartables.c
185
186 ## The main pcre library
187
188 # Build the 8 bit library if it is enabled.
189 if WITH_PCRE8
190 lib_LTLIBRARIES += libpcre.la
191 libpcre_la_SOURCES = \
192 pcre_byte_order.c \
193 pcre_compile.c \
194 pcre_config.c \
195 pcre_dfa_exec.c \
196 pcre_exec.c \
197 pcre_fullinfo.c \
198 pcre_get.c \
199 pcre_globals.c \
200 pcre_internal.h \
201 pcre_jit_compile.c \
202 pcre_maketables.c \
203 pcre_newline.c \
204 pcre_ord2utf8.c \
205 pcre_refcount.c \
206 pcre_string_utils.c \
207 pcre_study.c \
208 pcre_tables.c \
209 pcre_ucd.c \
210 pcre_valid_utf8.c \
211 pcre_version.c \
212 pcre_xclass.c \
213 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.
221 nodist_libpcre_la_SOURCES = \
222 pcre_chartables.c
223
224 endif # WITH_PCRE8
225
226 # Build the 16 bit library if it is enabled.
227 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
306 # when pcre_jit_compile.c is processed, so they must be distributed.
307 EXTRA_DIST += \
308 sljit/sljitConfig.h \
309 sljit/sljitConfigInternal.h \
310 sljit/sljitExecAllocator.c \
311 sljit/sljitLir.c \
312 sljit/sljitLir.h \
313 sljit/sljitNativeARM_Thumb2.c \
314 sljit/sljitNativeARM_v5.c \
315 sljit/sljitNativeMIPS_32.c \
316 sljit/sljitNativeMIPS_common.c \
317 sljit/sljitNativePPC_32.c \
318 sljit/sljitNativePPC_64.c \
319 sljit/sljitNativePPC_common.c \
320 sljit/sljitNativeX86_32.c \
321 sljit/sljitNativeX86_64.c \
322 sljit/sljitNativeX86_common.c \
323 sljit/sljitUtils.c
324
325 if WITH_PCRE8
326 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
360
361 ## If JIT support is enabled, arrange for the JIT test program to run.
362 if WITH_JIT
363 TESTS += pcre_jit_test
364 noinst_PROGRAMS += pcre_jit_test
365 pcre_jit_test_SOURCES = pcre_jit_test.c
366 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
382
383 ## A version of the main pcre library that has a posix re API.
384 if WITH_PCRE8
385
386 lib_LTLIBRARIES += libpcreposix.la
387 libpcreposix_la_SOURCES = \
388 pcreposix.c
389 libpcreposix_la_CFLAGS = $(AM_CFLAGS)
390 libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
391 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.
400 if WITH_PCRE_CPP
401
402 lib_LTLIBRARIES += libpcrecpp.la
403 libpcrecpp_la_SOURCES = \
404 pcrecpp_internal.h \
405 pcrecpp.cc \
406 pcre_scanner.cc \
407 pcre_stringpiece.cc
408 libpcrecpp_la_CXXFLAGS = $(AM_CXXFLAGS)
409 libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
410 libpcrecpp_la_LIBADD = libpcre.la
411
412 TESTS += pcrecpp_unittest
413 noinst_PROGRAMS += pcrecpp_unittest
414 pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
415 pcrecpp_unittest_CXXFLAGS = $(AM_CXXFLAGS)
416 pcrecpp_unittest_LDADD = libpcrecpp.la
417
418 TESTS += pcre_scanner_unittest
419 noinst_PROGRAMS += pcre_scanner_unittest
420 pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
421 pcre_scanner_unittest_CXXFLAGS = $(AM_CXXFLAGS)
422 pcre_scanner_unittest_LDADD = libpcrecpp.la
423
424 TESTS += pcre_stringpiece_unittest
425 noinst_PROGRAMS += pcre_stringpiece_unittest
426 pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
427 pcre_stringpiece_unittest_CXXFLAGS = $(AM_CXXFLAGS)
428 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
438
439 ## The main unit tests
440
441 # Each unit test is a binary plus a script that runs that binary in various
442 # ways. We install these test binaries in case folks find it helpful.
443
444 TESTS += RunTest
445 dist_noinst_SCRIPTS += RunTest
446 EXTRA_DIST += RunTest.bat
447 bin_PROGRAMS += pcretest
448 pcretest_SOURCES = pcretest.c
449 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
473 dist_noinst_SCRIPTS += RunGrepTest
474 bin_PROGRAMS += pcregrep
475 pcregrep_SOURCES = pcregrep.c
476 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 += \
486 testdata/grepbinary \
487 testdata/grepfilelist \
488 testdata/grepinput \
489 testdata/grepinput3 \
490 testdata/grepinput8 \
491 testdata/grepinputv \
492 testdata/grepinputx \
493 testdata/greplist \
494 testdata/grepoutput \
495 testdata/grepoutput8 \
496 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 \
510 testdata/testinput2 \
511 testdata/testinput3 \
512 testdata/testinput4 \
513 testdata/testinput5 \
514 testdata/testinput6 \
515 testdata/testinput7 \
516 testdata/testinput8 \
517 testdata/testinput9 \
518 testdata/testinput10 \
519 testdata/testinput11 \
520 testdata/testinput12 \
521 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/testinput23 \
532 testdata/testinput24 \
533 testdata/testinput25 \
534 testdata/testinput26 \
535 testdata/testinputEBC \
536 testdata/testoutput1 \
537 testdata/testoutput2 \
538 testdata/testoutput3 \
539 testdata/testoutput4 \
540 testdata/testoutput5 \
541 testdata/testoutput6 \
542 testdata/testoutput7 \
543 testdata/testoutput8 \
544 testdata/testoutput9 \
545 testdata/testoutput10 \
546 testdata/testoutput11-8 \
547 testdata/testoutput11-16 \
548 testdata/testoutput11-32 \
549 testdata/testoutput12 \
550 testdata/testoutput13 \
551 testdata/testoutput14 \
552 testdata/testoutput15 \
553 testdata/testoutput16 \
554 testdata/testoutput17 \
555 testdata/testoutput18-16 \
556 testdata/testoutput18-32 \
557 testdata/testoutput19 \
558 testdata/testoutput20 \
559 testdata/testoutput21-16 \
560 testdata/testoutput21-32 \
561 testdata/testoutput22-16 \
562 testdata/testoutput22-32 \
563 testdata/testoutput23 \
564 testdata/testoutput24 \
565 testdata/testoutput25 \
566 testdata/testoutput26 \
567 testdata/testoutputEBC \
568 testdata/wintestinput3 \
569 testdata/wintestoutput3 \
570 perltest.pl
571
572 CLEANFILES += \
573 testsavedregex \
574 teststderr \
575 testtemp* \
576 testtry \
577 testNinput
578
579
580 # PCRE demonstration program. No longer built automatcally. The point is that
581 # the users should build it themselves. So just distribute the source.
582 # noinst_PROGRAMS += pcredemo
583 # pcredemo_SOURCES = pcredemo.c
584 # pcredemo_LDADD = libpcre.la
585
586 EXTRA_DIST += pcredemo.c
587
588
589 ## Utility rules, documentation, etc.
590
591 # A compatibility line, the old build system worked with 'make test'
592 test: check ;
593
594
595 # A PCRE user submitted the following addition, saying that it "will allow
596 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
597 # nice DLL for Windows use". (It is used by the pcre.dll target.)
598 DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
599 pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
600 pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
601 pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
602 pcre_study.o pcre_tables.o pcre_ucd.o \
603 pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
604 pcre_xclass.o
605
606 # A PCRE user submitted the following addition, saying that it "will allow
607 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
608 # nice DLL for Windows use".
609 pcre.dll: $(DLL_OBJS)
610 $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
611
612
613 # We have .pc files for pkg-config users.
614 pkgconfigdir = $(libdir)/pkgconfig
615 pkgconfig_DATA = libpcre.pc libpcreposix.pc
616 if WITH_PCRE16
617 pkgconfig_DATA += libpcre16.pc
618 endif
619 if WITH_PCRE32
620 pkgconfig_DATA += libpcre32.pc
621 endif
622 if WITH_PCRE_CPP
623 pkgconfig_DATA += libpcrecpp.pc
624 endif
625
626 dist_man_MANS = \
627 doc/pcre.3 \
628 doc/pcre16.3 \
629 doc/pcre32.3 \
630 doc/pcre-config.1 \
631 doc/pcre_assign_jit_stack.3 \
632 doc/pcre_compile.3 \
633 doc/pcre_compile2.3 \
634 doc/pcre_config.3 \
635 doc/pcre_copy_named_substring.3 \
636 doc/pcre_copy_substring.3 \
637 doc/pcre_dfa_exec.3 \
638 doc/pcre_exec.3 \
639 doc/pcre_free_study.3 \
640 doc/pcre_free_substring.3 \
641 doc/pcre_free_substring_list.3 \
642 doc/pcre_fullinfo.3 \
643 doc/pcre_get_named_substring.3 \
644 doc/pcre_get_stringnumber.3 \
645 doc/pcre_get_stringtable_entries.3 \
646 doc/pcre_get_substring.3 \
647 doc/pcre_get_substring_list.3 \
648 doc/pcre_jit_stack_alloc.3 \
649 doc/pcre_jit_stack_free.3 \
650 doc/pcre_maketables.3 \
651 doc/pcre_pattern_to_host_byte_order.3 \
652 doc/pcre_refcount.3 \
653 doc/pcre_study.3 \
654 doc/pcre_utf16_to_host_byte_order.3 \
655 doc/pcre_utf32_to_host_byte_order.3 \
656 doc/pcre_version.3 \
657 doc/pcreapi.3 \
658 doc/pcrebuild.3 \
659 doc/pcrecallout.3 \
660 doc/pcrecompat.3 \
661 doc/pcregrep.1 \
662 doc/pcrejit.3 \
663 doc/pcrelimits.3 \
664 doc/pcrematching.3 \
665 doc/pcrepartial.3 \
666 doc/pcrepattern.3 \
667 doc/pcreperform.3 \
668 doc/pcreposix.3 \
669 doc/pcreprecompile.3 \
670 doc/pcresample.3 \
671 doc/pcrestack.3 \
672 doc/pcresyntax.3 \
673 doc/pcretest.1 \
674 doc/pcreunicode.3
675
676 # Arrange for the per-function man pages to have 16- and 32-bit names as well.
677 install-data-hook:
678 ln -sf pcre_assign_jit_stack.3 $(DESTDIR)$(man3dir)/pcre16_assign_jit_stack.3
679 ln -sf pcre_compile.3 $(DESTDIR)$(man3dir)/pcre16_compile.3
680 ln -sf pcre_compile2.3 $(DESTDIR)$(man3dir)/pcre16_compile2.3
681 ln -sf pcre_config.3 $(DESTDIR)$(man3dir)/pcre16_config.3
682 ln -sf pcre_copy_named_substring.3 $(DESTDIR)$(man3dir)/pcre16_copy_named_substring.3
683 ln -sf pcre_copy_substring.3 $(DESTDIR)$(man3dir)/pcre16_copy_substring.3
684 ln -sf pcre_dfa_exec.3 $(DESTDIR)$(man3dir)/pcre16_dfa_exec.3
685 ln -sf pcre_exec.3 $(DESTDIR)$(man3dir)/pcre16_exec.3
686 ln -sf pcre_free_study.3 $(DESTDIR)$(man3dir)/pcre16_free_study.3
687 ln -sf pcre_free_substring.3 $(DESTDIR)$(man3dir)/pcre16_free_substring.3
688 ln -sf pcre_free_substring_list.3 $(DESTDIR)$(man3dir)/pcre16_free_substring_list.3
689 ln -sf pcre_fullinfo.3 $(DESTDIR)$(man3dir)/pcre16_fullinfo.3
690 ln -sf pcre_get_named_substring.3 $(DESTDIR)$(man3dir)/pcre16_get_named_substring.3
691 ln -sf pcre_get_stringnumber.3 $(DESTDIR)$(man3dir)/pcre16_get_stringnumber.3
692 ln -sf pcre_get_stringtable_entries.3 $(DESTDIR)$(man3dir)/pcre16_get_stringtable_entries.3
693 ln -sf pcre_get_substring.3 $(DESTDIR)$(man3dir)/pcre16_get_substring.3
694 ln -sf pcre_get_substring_list.3 $(DESTDIR)$(man3dir)/pcre16_get_substring_list.3
695 ln -sf pcre_jit_stack_alloc.3 $(DESTDIR)$(man3dir)/pcre16_jit_stack_alloc.3
696 ln -sf pcre_jit_stack_free.3 $(DESTDIR)$(man3dir)/pcre16_jit_stack_free.3
697 ln -sf pcre_maketables.3 $(DESTDIR)$(man3dir)/pcre16_maketables.3
698 ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_pattern_to_host_byte_order.3
699 ln -sf pcre_refcount.3 $(DESTDIR)$(man3dir)/pcre16_refcount.3
700 ln -sf pcre_study.3 $(DESTDIR)$(man3dir)/pcre16_study.3
701 ln -sf pcre_utf16_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_utf16_to_host_byte_order.3
702 ln -sf pcre_version.3 $(DESTDIR)$(man3dir)/pcre16_version.3
703 ln -sf pcre_assign_jit_stack.3 $(DESTDIR)$(man3dir)/pcre32_assign_jit_stack.3
704 ln -sf pcre_compile.3 $(DESTDIR)$(man3dir)/pcre32_compile.3
705 ln -sf pcre_compile2.3 $(DESTDIR)$(man3dir)/pcre32_compile2.3
706 ln -sf pcre_config.3 $(DESTDIR)$(man3dir)/pcre32_config.3
707 ln -sf pcre_copy_named_substring.3 $(DESTDIR)$(man3dir)/pcre32_copy_named_substring.3
708 ln -sf pcre_copy_substring.3 $(DESTDIR)$(man3dir)/pcre32_copy_substring.3
709 ln -sf pcre_dfa_exec.3 $(DESTDIR)$(man3dir)/pcre32_dfa_exec.3
710 ln -sf pcre_exec.3 $(DESTDIR)$(man3dir)/pcre32_exec.3
711 ln -sf pcre_free_study.3 $(DESTDIR)$(man3dir)/pcre32_free_study.3
712 ln -sf pcre_free_substring.3 $(DESTDIR)$(man3dir)/pcre32_free_substring.3
713 ln -sf pcre_free_substring_list.3 $(DESTDIR)$(man3dir)/pcre32_free_substring_list.3
714 ln -sf pcre_fullinfo.3 $(DESTDIR)$(man3dir)/pcre32_fullinfo.3
715 ln -sf pcre_get_named_substring.3 $(DESTDIR)$(man3dir)/pcre32_get_named_substring.3
716 ln -sf pcre_get_stringnumber.3 $(DESTDIR)$(man3dir)/pcre32_get_stringnumber.3
717 ln -sf pcre_get_stringtable_entries.3 $(DESTDIR)$(man3dir)/pcre32_get_stringtable_entries.3
718 ln -sf pcre_get_substring.3 $(DESTDIR)$(man3dir)/pcre32_get_substring.3
719 ln -sf pcre_get_substring_list.3 $(DESTDIR)$(man3dir)/pcre32_get_substring_list.3
720 ln -sf pcre_jit_stack_alloc.3 $(DESTDIR)$(man3dir)/pcre32_jit_stack_alloc.3
721 ln -sf pcre_jit_stack_free.3 $(DESTDIR)$(man3dir)/pcre32_jit_stack_free.3
722 ln -sf pcre_maketables.3 $(DESTDIR)$(man3dir)/pcre32_maketables.3
723 ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_pattern_to_host_byte_order.3
724 ln -sf pcre_refcount.3 $(DESTDIR)$(man3dir)/pcre32_refcount.3
725 ln -sf pcre_study.3 $(DESTDIR)$(man3dir)/pcre32_study.3
726 ln -sf pcre_utf32_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_utf32_to_host_byte_order.3
727 ln -sf pcre_version.3 $(DESTDIR)$(man3dir)/pcre32_version.3
728
729 pcrecpp_man = doc/pcrecpp.3
730 EXTRA_DIST += $(pcrecpp_man)
731
732 if WITH_PCRE_CPP
733 man_MANS = $(pcrecpp_man)
734 endif
735
736 # gcov/lcov code coverage reporting
737
738 if WITH_GCOV
739
740 GCOV_NAME = $(PACKAGE)-$(VERSION)
741 GCOV_OUTPUT_FILE = $(GCOV_NAME)-coverage.info
742 GCOV_OUTPUT_DIR = $(GCOV_NAME)-coverage
743 GCOV_LCOV_FLAGS =
744 GCOV_GENHTML_FLAGS =
745
746 gcov_quiet = $(gcov_quiet_$(V))
747 gcov_quiet_ = $(gcov_quiet_$(AM_DEFAULT_VERBOSITY))
748 gcov_quiet_0 = --quiet
749
750 coverage-check: all
751 -$(MAKE) $(AM_MAKEFLAGS) -k check
752
753 coverage-report:
754 $(LCOV) $(gcov_quiet) \
755 --directory $(top_builddir) \
756 --capture \
757 --output-file "$(GCOV_OUTPUT_FILE).tmp" \
758 --test-name "$(GCOV_NAME)" \
759 --no-checksum \
760 --compat-libtool \
761 $(GCOV_LCOV_FLAGS)
762 $(LCOV) $(gcov_quiet) \
763 --directory $(top_builddir) \
764 --output-file "$(GCOV_OUTPUT_FILE)" \
765 --remove "$(GCOV_OUTPUT_FILE).tmp" \
766 "/tmp/*" \
767 "/usr/include/*" \
768 "$(includedir)/*"
769 -@rm -f "$(GCOV_OUTPUT_FILE).tmp"
770 LANG=C $(GENHTML) $(gcov_quiet) \
771 --prefix $(top_builddir) \
772 --output-directory "$(GCOV_OUTPUT_DIR)" \
773 --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
774 --show-details "$(GCOV_OUTPUT_FILE)" \
775 --legend \
776 $(GCOV_GENHTML_FLAGS)
777 @echo "Code coverage report written to file://$(abs_builddir)/$(GCOV_OUTPUT_DIR)/index.html"
778
779 coverage-clean:
780 -$(LCOV) $(gcov_quiet) --zerocounters --directory $(top_builddir)
781 -rm -f "$(GCOV_OUTPUT_FILE)"
782 -rm -f "$(GCOV_OUTPUT_FILE).tmp"
783 -rm -rf "$(GCOV_NAME)"
784 -find $(top_builddir) -name '*.gcda' -o -name "*.gcov" -delete
785
786 coverage: coverage-check coverage-report
787 clean-local: coverage-clean
788 distclean-local: coverage-clean
789
790 else
791
792 coverage:
793 @echo "Configuring with --enable-coverage required to generate code coverage report."
794
795 endif # WITH_GCOV
796
797 ## CMake support
798
799 EXTRA_DIST += \
800 cmake/COPYING-CMAKE-SCRIPTS \
801 cmake/FindPackageHandleStandardArgs.cmake \
802 cmake/FindReadline.cmake \
803 cmake/FindEditline.cmake \
804 CMakeLists.txt \
805 config-cmake.h.in
806
807 ## end Makefile.am

  ViewVC Help
Powered by ViewVC 1.1.5