/[pcre]/code/trunk/Makefile.am
ViewVC logotype

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1230 - (show annotations)
Fri Dec 7 10:22:16 2012 UTC (6 years, 9 months ago) by ph10
File size: 26389 byte(s)
Fix missing html files and remove link to removed file.
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/pcre32.html \
22 doc/html/pcre-config.html \
23 doc/html/pcre_assign_jit_stack.html \
24 doc/html/pcre_compile.html \
25 doc/html/pcre_compile2.html \
26 doc/html/pcre_config.html \
27 doc/html/pcre_copy_named_substring.html \
28 doc/html/pcre_copy_substring.html \
29 doc/html/pcre_dfa_exec.html \
30 doc/html/pcre_exec.html \
31 doc/html/pcre_free_study.html \
32 doc/html/pcre_free_substring.html \
33 doc/html/pcre_free_substring_list.html \
34 doc/html/pcre_fullinfo.html \
35 doc/html/pcre_get_named_substring.html \
36 doc/html/pcre_get_stringnumber.html \
37 doc/html/pcre_get_stringtable_entries.html \
38 doc/html/pcre_get_substring.html \
39 doc/html/pcre_get_substring_list.html \
40 doc/html/pcre_jit_exec.html \
41 doc/html/pcre_jit_stack_alloc.html \
42 doc/html/pcre_jit_stack_free.html \
43 doc/html/pcre_maketables.html \
44 doc/html/pcre_pattern_to_host_byte_order.html \
45 doc/html/pcre_refcount.html \
46 doc/html/pcre_study.html \
47 doc/html/pcre_utf16_to_host_byte_order.html \
48 doc/html/pcre_utf32_to_host_byte_order.html \
49 doc/html/pcre_version.html \
50 doc/html/pcreapi.html \
51 doc/html/pcrebuild.html \
52 doc/html/pcrecallout.html \
53 doc/html/pcrecompat.html \
54 doc/html/pcredemo.html \
55 doc/html/pcregrep.html \
56 doc/html/pcrejit.html \
57 doc/html/pcrelimits.html \
58 doc/html/pcrematching.html \
59 doc/html/pcrepartial.html \
60 doc/html/pcrepattern.html \
61 doc/html/pcreperform.html \
62 doc/html/pcreposix.html \
63 doc/html/pcreprecompile.html \
64 doc/html/pcresample.html \
65 doc/html/pcrestack.html \
66 doc/html/pcresyntax.html \
67 doc/html/pcretest.html \
68 doc/html/pcreunicode.html
69
70 pcrecpp_html = doc/html/pcrecpp.html
71 dist_noinst_DATA = $(pcrecpp_html)
72
73 if WITH_PCRE_CPP
74 html_DATA = $(pcrecpp_html)
75 endif
76
77 # The Libtool libraries to install. We'll add to this later.
78 lib_LTLIBRARIES =
79
80 # Unit tests you want to run when people type 'make check'.
81 # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
82 TESTS =
83 check_SCRIPTS =
84 dist_noinst_SCRIPTS =
85
86 # Some of the binaries we make are to be installed, and others are
87 # (non-user-visible) helper programs needed to build libpcre, libpcre16
88 # or libpcre32.
89 bin_PROGRAMS =
90 noinst_PROGRAMS =
91
92 # Additional files to delete on 'make clean' and 'make maintainer-clean'.
93 CLEANFILES =
94 MAINTAINERCLEANFILES =
95
96 # Additional files to bundle with the distribution, over and above what
97 # the Autotools include by default.
98 EXTRA_DIST =
99
100 # These files contain additional m4 macros that are used by autoconf.
101 EXTRA_DIST += \
102 m4/ax_pthread.m4 m4/pcre_visibility.m4
103
104 # These files contain maintenance information
105 EXTRA_DIST += \
106 doc/perltest.txt \
107 NON-UNIX-USE \
108 NON-AUTOTOOLS-BUILD \
109 HACKING
110
111 # These files are used in the preparation of a release
112 EXTRA_DIST += \
113 PrepareRelease \
114 CheckMan \
115 CleanTxt \
116 Detrail \
117 132html \
118 doc/index.html.src
119
120 # These files are to do with building for Virtual Pascal
121 EXTRA_DIST += \
122 makevp.bat \
123 makevp_c.txt \
124 makevp_l.txt \
125 pcregexp.pas
126
127 # These files are usable versions of pcre.h and config.h that are distributed
128 # for the benefit of people who are building PCRE manually, without the
129 # Autotools support.
130 EXTRA_DIST += \
131 pcre.h.generic \
132 config.h.generic
133
134 # The only difference between pcre.h.in and pcre.h is the setting of the PCRE
135 # version number. Therefore, we can create the generic version just by copying.
136 pcre.h.generic: pcre.h.in configure.ac
137 rm -f $@
138 cp -p pcre.h $@
139
140 # It is more complicated for config.h.generic. We need the version that results
141 # from a default configuration. We can get this by doing a configure in a
142 # temporary directory. However, some trickery is needed,
143 # because the source directory may already be configured. If you
144 # just try running configure in a new directory, it complains. For this reason,
145 # we move config.status out of the way while doing the default configuration.
146 # The resulting config.h is munged by perl to put #ifdefs round any #defines
147 # and to get rid of any gcc-specific visibility settings. Make sure that
148 # PCRE_EXP_DEFN is unset (in case it has visibility settings).
149 config.h.generic: configure.ac
150 rm -rf $@ _generic
151 mkdir _generic
152 cs=$(srcdir)/config.status; test ! -f $$cs || mv -f $$cs $$cs.aside
153 cd _generic && $(abs_top_srcdir)/configure || :
154 cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs
155 test -f _generic/config.h
156 perl -n \
157 -e 'BEGIN{$$blank=0;}' \
158 -e 'if(/PCRE_EXP_DEFN/){print"/* #undef PCRE_EXP_DEFN */\n";$$blank=0;next;}' \
159 -e 'if(/to make a symbol visible/){next;}' \
160 -e 'if(/__attribute__ \(\(visibility/){next;}' \
161 -e 'if(/^#define\s(?!PACKAGE)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$blank=0;}' \
162 -e 'else {if(/^\s*$$/){print unless $$blank; $$blank=1;} else{print;$$blank=0;}}' \
163 _generic/config.h >$@
164 rm -rf _generic
165
166 MAINTAINERCLEANFILES += pcre.h.generic config.h.generic
167
168 # These are the header files we'll install. We do not distribute pcre.h because
169 # it is generated from pcre.h.in.
170 nodist_include_HEADERS = \
171 pcre.h
172 include_HEADERS = \
173 pcreposix.h
174
175 # These additional headers will be be installed if C++ support is enabled. We
176 # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
177 # from corresponding .h.in files (which we do distribute).
178 if WITH_PCRE_CPP
179 nodist_include_HEADERS += \
180 pcrecpparg.h \
181 pcre_stringpiece.h
182 include_HEADERS += \
183 pcrecpp.h \
184 pcre_scanner.h
185 endif # WITH_PCRE_CPP
186
187 bin_SCRIPTS = pcre-config
188
189 ## ---------------------------------------------------------------
190 ## The dftables program is used to rebuild character tables before compiling
191 ## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
192 ## program. The default (when --enable-rebuild-chartables is not specified) is
193 ## to copy a distributed set of tables that are defined for ASCII code. In this
194 ## case, dftables is not needed.
195
196 if WITH_REBUILD_CHARTABLES
197
198 noinst_PROGRAMS += dftables
199 dftables_SOURCES = dftables.c
200
201 pcre_chartables.c: dftables$(EXEEXT)
202 ./dftables$(EXEEXT) $@
203 else
204
205 pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
206 rm -f $@
207 $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
208
209 endif # WITH_REBUILD_CHARTABLES
210
211 BUILT_SOURCES = pcre_chartables.c
212
213 ## The main pcre library
214
215 # Build the 8 bit library if it is enabled.
216 if WITH_PCRE8
217 lib_LTLIBRARIES += libpcre.la
218
219 libpcre_la_SOURCES = \
220 pcre_byte_order.c \
221 pcre_compile.c \
222 pcre_config.c \
223 pcre_dfa_exec.c \
224 pcre_exec.c \
225 pcre_fullinfo.c \
226 pcre_get.c \
227 pcre_globals.c \
228 pcre_internal.h \
229 pcre_jit_compile.c \
230 pcre_maketables.c \
231 pcre_newline.c \
232 pcre_ord2utf8.c \
233 pcre_refcount.c \
234 pcre_string_utils.c \
235 pcre_study.c \
236 pcre_tables.c \
237 pcre_ucd.c \
238 pcre_valid_utf8.c \
239 pcre_version.c \
240 pcre_xclass.c \
241 ucp.h
242
243 libpcre_la_CFLAGS = \
244 $(VISIBILITY_CFLAGS) \
245 $(AM_CFLAGS)
246
247 libpcre_la_LIBADD =
248
249 ## This file is generated as part of the building process, so don't distribute.
250 nodist_libpcre_la_SOURCES = \
251 pcre_chartables.c
252
253 endif # WITH_PCRE8
254
255 # Build the 16 bit library if it is enabled.
256 if WITH_PCRE16
257 lib_LTLIBRARIES += libpcre16.la
258 libpcre16_la_SOURCES = \
259 pcre16_byte_order.c \
260 pcre16_chartables.c \
261 pcre16_compile.c \
262 pcre16_config.c \
263 pcre16_dfa_exec.c \
264 pcre16_exec.c \
265 pcre16_fullinfo.c \
266 pcre16_get.c \
267 pcre16_globals.c \
268 pcre16_jit_compile.c \
269 pcre16_maketables.c \
270 pcre16_newline.c \
271 pcre16_ord2utf16.c \
272 pcre16_refcount.c \
273 pcre16_string_utils.c \
274 pcre16_study.c \
275 pcre16_tables.c \
276 pcre16_ucd.c \
277 pcre16_utf16_utils.c \
278 pcre16_valid_utf16.c \
279 pcre16_version.c \
280 pcre16_xclass.c
281
282 libpcre16_la_CFLAGS = \
283 $(VISIBILITY_CFLAGS) \
284 $(AM_CFLAGS)
285
286 libpcre16_la_LIBADD =
287
288 ## This file is generated as part of the building process, so don't distribute.
289 nodist_libpcre16_la_SOURCES = \
290 pcre_chartables.c
291
292 endif # WITH_PCRE16
293
294 # Build the 32 bit library if it is enabled.
295 if WITH_PCRE32
296 lib_LTLIBRARIES += libpcre32.la
297 libpcre32_la_SOURCES = \
298 pcre32_byte_order.c \
299 pcre32_chartables.c \
300 pcre32_compile.c \
301 pcre32_config.c \
302 pcre32_dfa_exec.c \
303 pcre32_exec.c \
304 pcre32_fullinfo.c \
305 pcre32_get.c \
306 pcre32_globals.c \
307 pcre32_jit_compile.c \
308 pcre32_maketables.c \
309 pcre32_newline.c \
310 pcre32_ord2utf32.c \
311 pcre32_refcount.c \
312 pcre32_string_utils.c \
313 pcre32_study.c \
314 pcre32_tables.c \
315 pcre32_ucd.c \
316 pcre32_utf32_utils.c \
317 pcre32_valid_utf32.c \
318 pcre32_version.c \
319 pcre32_xclass.c
320
321 libpcre32_la_CFLAGS = \
322 $(VISIBILITY_CFLAGS) \
323 $(AM_CFLAGS)
324
325 libpcre32_la_LIBADD =
326
327 ## This file is generated as part of the building process, so don't distribute.
328 nodist_libpcre32_la_SOURCES = \
329 pcre_chartables.c
330
331 endif # WITH_PCRE32
332
333 # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,
334 # used unless --enable-rebuild-chartables is specified.
335 EXTRA_DIST += pcre_chartables.c.dist
336
337 # The JIT compiler lives in a separate directory, but its files are #included
338 # when pcre_jit_compile.c is processed, so they must be distributed.
339 EXTRA_DIST += \
340 sljit/sljitConfig.h \
341 sljit/sljitConfigInternal.h \
342 sljit/sljitExecAllocator.c \
343 sljit/sljitLir.c \
344 sljit/sljitLir.h \
345 sljit/sljitNativeARM_Thumb2.c \
346 sljit/sljitNativeARM_v5.c \
347 sljit/sljitNativeMIPS_32.c \
348 sljit/sljitNativeMIPS_common.c \
349 sljit/sljitNativePPC_32.c \
350 sljit/sljitNativePPC_64.c \
351 sljit/sljitNativePPC_common.c \
352 sljit/sljitNativeSPARC_32.c \
353 sljit/sljitNativeSPARC_common.c \
354 sljit/sljitNativeX86_32.c \
355 sljit/sljitNativeX86_64.c \
356 sljit/sljitNativeX86_common.c \
357 sljit/sljitUtils.c
358
359 if WITH_PCRE8
360 libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
361 endif # WITH_PCRE8
362 if WITH_PCRE16
363 libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)
364 endif # WITH_PCRE16
365 if WITH_PCRE32
366 libpcre32_la_LDFLAGS = $(EXTRA_LIBPCRE32_LDFLAGS)
367 endif # WITH_PCRE32
368
369 if WITH_VALGRIND
370 if WITH_PCRE8
371 libpcre_la_CFLAGS += $(VALGRIND_CFLAGS)
372 endif # WITH_PCRE8
373 if WITH_PCRE16
374 libpcre16_la_CFLAGS += $(VALGRIND_CFLAGS)
375 endif # WITH_PCRE16
376 if WITH_PCRE32
377 libpcre32_la_CFLAGS += $(VALGRIND_CFLAGS)
378 endif # WITH_PCRE32
379 endif # WITH_VALGRIND
380
381 if WITH_GCOV
382 if WITH_PCRE8
383 libpcre_la_CFLAGS += $(GCOV_CFLAGS)
384 endif # WITH_PCRE8
385 if WITH_PCRE16
386 libpcre16_la_CFLAGS += $(GCOV_CFLAGS)
387 endif # WITH_PCRE16
388 if WITH_PCRE32
389 libpcre32_la_CFLAGS += $(GCOV_CFLAGS)
390 endif # WITH_PCRE32
391 endif # WITH_GCOV
392
393 CLEANFILES += pcre_chartables.c
394
395 ## If JIT support is enabled, arrange for the JIT test program to run.
396 if WITH_JIT
397 TESTS += pcre_jit_test
398 noinst_PROGRAMS += pcre_jit_test
399 pcre_jit_test_SOURCES = pcre_jit_test.c
400 pcre_jit_test_CFLAGS = $(AM_CFLAGS)
401 pcre_jit_test_LDADD =
402 if WITH_PCRE8
403 pcre_jit_test_LDADD += libpcre.la
404 endif # WITH_PCRE8
405 if WITH_PCRE16
406 pcre_jit_test_LDADD += libpcre16.la
407 endif # WITH_PCRE16
408 if WITH_PCRE32
409 pcre_jit_test_LDADD += libpcre32.la
410 endif # WITH_PCRE32
411 if WITH_GCOV
412 pcre_jit_test_CFLAGS += $(GCOV_CFLAGS)
413 pcre_jit_test_LDADD += $(GCOV_LIBS)
414 endif # WITH_GCOV
415 endif # WITH_JIT
416
417 ## A version of the main pcre library that has a posix re API.
418 if WITH_PCRE8
419
420 lib_LTLIBRARIES += libpcreposix.la
421 libpcreposix_la_SOURCES = \
422 pcreposix.c
423 libpcreposix_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS)
424 libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
425 libpcreposix_la_LIBADD = libpcre.la
426
427 if WITH_GCOV
428 libpcreposix_la_CFLAGS += $(GCOV_CFLAGS)
429 endif # WITH_GCOV
430
431 endif # WITH_PCRE8
432
433 ## There's a C++ library as well.
434 if WITH_PCRE_CPP
435
436 lib_LTLIBRARIES += libpcrecpp.la
437 libpcrecpp_la_SOURCES = \
438 pcrecpp_internal.h \
439 pcrecpp.cc \
440 pcre_scanner.cc \
441 pcre_stringpiece.cc
442 libpcrecpp_la_CXXFLAGS = $(VISIBILITY_CXXFLAGS) $(AM_CXXFLAGS)
443 libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
444 libpcrecpp_la_LIBADD = libpcre.la
445
446 TESTS += pcrecpp_unittest
447 noinst_PROGRAMS += pcrecpp_unittest
448 pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
449 pcrecpp_unittest_CXXFLAGS = $(AM_CXXFLAGS)
450 pcrecpp_unittest_LDADD = libpcrecpp.la
451
452 TESTS += pcre_scanner_unittest
453 noinst_PROGRAMS += pcre_scanner_unittest
454 pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
455 pcre_scanner_unittest_CXXFLAGS = $(AM_CXXFLAGS)
456 pcre_scanner_unittest_LDADD = libpcrecpp.la
457
458 TESTS += pcre_stringpiece_unittest
459 noinst_PROGRAMS += pcre_stringpiece_unittest
460 pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
461 pcre_stringpiece_unittest_CXXFLAGS = $(AM_CXXFLAGS)
462 pcre_stringpiece_unittest_LDADD = libpcrecpp.la
463
464 if WITH_GCOV
465 libpcrecpp_la_CXXFLAGS += $(GCOV_CXXFLAGS)
466 pcrecpp_unittest_LDADD += $(GCOV_LIBS)
467 pcre_scanner_unittest_LDADD += $(GCOV_LIBS)
468 pcre_stringpiece_unittest_LDADD += $(GCOV_LIBS)
469 endif # WITH_GCOV
470
471 endif # WITH_PCRE_CPP
472
473 ## The main unit tests
474
475 # Each unit test is a binary plus a script that runs that binary in various
476 # ways. We install these test binaries in case folks find it helpful.
477
478 TESTS += RunTest
479 dist_noinst_SCRIPTS += RunTest
480 EXTRA_DIST += RunTest.bat
481 bin_PROGRAMS += pcretest
482 pcretest_SOURCES = pcretest.c
483 pcretest_CFLAGS = $(AM_CFLAGS)
484 pcretest_LDADD = $(LIBREADLINE)
485 if WITH_PCRE8
486 pcretest_SOURCES += pcre_printint.c
487 pcretest_LDADD += libpcre.la libpcreposix.la
488 endif # WITH_PCRE8
489 if WITH_PCRE16
490 pcretest_SOURCES += pcre16_printint.c
491 pcretest_LDADD += libpcre16.la
492 endif # WITH_PCRE16
493 if WITH_PCRE32
494 pcretest_SOURCES += pcre32_printint.c
495 pcretest_LDADD += libpcre32.la
496 endif # WITH_PCRE32
497 if WITH_VALGRIND
498 pcretest_CFLAGS += $(VALGRIND_CFLAGS)
499 endif # WITH_VALGRIND
500 if WITH_GCOV
501 pcretest_CFLAGS += $(GCOV_CFLAGS)
502 pcretest_LDADD += $(GCOV_LIBS)
503 endif # WITH_GCOV
504
505 if WITH_PCRE8
506 TESTS += RunGrepTest
507 dist_noinst_SCRIPTS += RunGrepTest
508 bin_PROGRAMS += pcregrep
509 pcregrep_SOURCES = pcregrep.c
510 pcregrep_CFLAGS = $(AM_CFLAGS)
511 pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
512 pcregrep_LDADD += libpcre.la libpcreposix.la
513 if WITH_GCOV
514 pcregrep_CFLAGS += $(GCOV_CFLAGS)
515 pcregrep_LDADD += $(GCOV_LIBS)
516 endif # WITH_GCOV
517 endif # WITH_PCRE8
518
519 EXTRA_DIST += \
520 testdata/grepbinary \
521 testdata/grepfilelist \
522 testdata/grepinput \
523 testdata/grepinput3 \
524 testdata/grepinput8 \
525 testdata/grepinputv \
526 testdata/grepinputx \
527 testdata/greplist \
528 testdata/grepoutput \
529 testdata/grepoutput8 \
530 testdata/grepoutputN \
531 testdata/greppatN4 \
532 testdata/saved16 \
533 testdata/saved16BE-1 \
534 testdata/saved16BE-2 \
535 testdata/saved16LE-1 \
536 testdata/saved16LE-2 \
537 testdata/saved32 \
538 testdata/saved32BE-1 \
539 testdata/saved32BE-2 \
540 testdata/saved32LE-1 \
541 testdata/saved32LE-2 \
542 testdata/saved8 \
543 testdata/testinput1 \
544 testdata/testinput2 \
545 testdata/testinput3 \
546 testdata/testinput4 \
547 testdata/testinput5 \
548 testdata/testinput6 \
549 testdata/testinput7 \
550 testdata/testinput8 \
551 testdata/testinput9 \
552 testdata/testinput10 \
553 testdata/testinput11 \
554 testdata/testinput12 \
555 testdata/testinput13 \
556 testdata/testinput14 \
557 testdata/testinput15 \
558 testdata/testinput16 \
559 testdata/testinput17 \
560 testdata/testinput18 \
561 testdata/testinput19 \
562 testdata/testinput20 \
563 testdata/testinput21 \
564 testdata/testinput22 \
565 testdata/testinput23 \
566 testdata/testinput24 \
567 testdata/testinput25 \
568 testdata/testinput26 \
569 testdata/testinputEBC \
570 testdata/testoutput1 \
571 testdata/testoutput2 \
572 testdata/testoutput3 \
573 testdata/testoutput4 \
574 testdata/testoutput5 \
575 testdata/testoutput6 \
576 testdata/testoutput7 \
577 testdata/testoutput8 \
578 testdata/testoutput9 \
579 testdata/testoutput10 \
580 testdata/testoutput11-8 \
581 testdata/testoutput11-16 \
582 testdata/testoutput11-32 \
583 testdata/testoutput12 \
584 testdata/testoutput13 \
585 testdata/testoutput14 \
586 testdata/testoutput15 \
587 testdata/testoutput16 \
588 testdata/testoutput17 \
589 testdata/testoutput18-16 \
590 testdata/testoutput18-32 \
591 testdata/testoutput19 \
592 testdata/testoutput20 \
593 testdata/testoutput21-16 \
594 testdata/testoutput21-32 \
595 testdata/testoutput22-16 \
596 testdata/testoutput22-32 \
597 testdata/testoutput23 \
598 testdata/testoutput24 \
599 testdata/testoutput25 \
600 testdata/testoutput26 \
601 testdata/testoutputEBC \
602 testdata/wintestinput3 \
603 testdata/wintestoutput3 \
604 perltest.pl
605
606 CLEANFILES += \
607 testsavedregex \
608 teststderr \
609 testtemp* \
610 testtry \
611 testNinput
612
613
614 # PCRE demonstration program. No longer built automatcally. The point is that
615 # the users should build it themselves. So just distribute the source.
616 # noinst_PROGRAMS += pcredemo
617 # pcredemo_SOURCES = pcredemo.c
618 # pcredemo_LDADD = libpcre.la
619
620 EXTRA_DIST += pcredemo.c
621
622
623 ## Utility rules, documentation, etc.
624
625 # A compatibility line, the old build system worked with 'make test'
626 test: check ;
627
628
629 # A PCRE user submitted the following addition, saying that it "will allow
630 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
631 # nice DLL for Windows use". (It is used by the pcre.dll target.)
632 DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
633 pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
634 pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
635 pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
636 pcre_study.o pcre_tables.o pcre_ucd.o \
637 pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
638 pcre_xclass.o
639
640 # A PCRE user submitted the following addition, saying that it "will allow
641 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
642 # nice DLL for Windows use".
643 pcre.dll: $(DLL_OBJS)
644 $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
645
646
647 # We have .pc files for pkg-config users.
648 pkgconfigdir = $(libdir)/pkgconfig
649 pkgconfig_DATA = libpcre.pc libpcreposix.pc
650 if WITH_PCRE16
651 pkgconfig_DATA += libpcre16.pc
652 endif
653 if WITH_PCRE32
654 pkgconfig_DATA += libpcre32.pc
655 endif
656 if WITH_PCRE_CPP
657 pkgconfig_DATA += libpcrecpp.pc
658 endif
659
660 dist_man_MANS = \
661 doc/pcre.3 \
662 doc/pcre16.3 \
663 doc/pcre32.3 \
664 doc/pcre-config.1 \
665 doc/pcre_assign_jit_stack.3 \
666 doc/pcre_compile.3 \
667 doc/pcre_compile2.3 \
668 doc/pcre_config.3 \
669 doc/pcre_copy_named_substring.3 \
670 doc/pcre_copy_substring.3 \
671 doc/pcre_dfa_exec.3 \
672 doc/pcre_exec.3 \
673 doc/pcre_free_study.3 \
674 doc/pcre_free_substring.3 \
675 doc/pcre_free_substring_list.3 \
676 doc/pcre_fullinfo.3 \
677 doc/pcre_get_named_substring.3 \
678 doc/pcre_get_stringnumber.3 \
679 doc/pcre_get_stringtable_entries.3 \
680 doc/pcre_get_substring.3 \
681 doc/pcre_get_substring_list.3 \
682 doc/pcre_jit_exec.3 \
683 doc/pcre_jit_stack_alloc.3 \
684 doc/pcre_jit_stack_free.3 \
685 doc/pcre_maketables.3 \
686 doc/pcre_pattern_to_host_byte_order.3 \
687 doc/pcre_refcount.3 \
688 doc/pcre_study.3 \
689 doc/pcre_utf16_to_host_byte_order.3 \
690 doc/pcre_utf32_to_host_byte_order.3 \
691 doc/pcre_version.3 \
692 doc/pcreapi.3 \
693 doc/pcrebuild.3 \
694 doc/pcrecallout.3 \
695 doc/pcrecompat.3 \
696 doc/pcregrep.1 \
697 doc/pcrejit.3 \
698 doc/pcrelimits.3 \
699 doc/pcrematching.3 \
700 doc/pcrepartial.3 \
701 doc/pcrepattern.3 \
702 doc/pcreperform.3 \
703 doc/pcreposix.3 \
704 doc/pcreprecompile.3 \
705 doc/pcresample.3 \
706 doc/pcrestack.3 \
707 doc/pcresyntax.3 \
708 doc/pcretest.1 \
709 doc/pcreunicode.3
710
711 # Arrange for the per-function man pages to have 16- and 32-bit names as well.
712 install-data-hook:
713 ln -sf pcre_assign_jit_stack.3 $(DESTDIR)$(man3dir)/pcre16_assign_jit_stack.3
714 ln -sf pcre_compile.3 $(DESTDIR)$(man3dir)/pcre16_compile.3
715 ln -sf pcre_compile2.3 $(DESTDIR)$(man3dir)/pcre16_compile2.3
716 ln -sf pcre_config.3 $(DESTDIR)$(man3dir)/pcre16_config.3
717 ln -sf pcre_copy_named_substring.3 $(DESTDIR)$(man3dir)/pcre16_copy_named_substring.3
718 ln -sf pcre_copy_substring.3 $(DESTDIR)$(man3dir)/pcre16_copy_substring.3
719 ln -sf pcre_dfa_exec.3 $(DESTDIR)$(man3dir)/pcre16_dfa_exec.3
720 ln -sf pcre_exec.3 $(DESTDIR)$(man3dir)/pcre16_exec.3
721 ln -sf pcre_free_study.3 $(DESTDIR)$(man3dir)/pcre16_free_study.3
722 ln -sf pcre_free_substring.3 $(DESTDIR)$(man3dir)/pcre16_free_substring.3
723 ln -sf pcre_free_substring_list.3 $(DESTDIR)$(man3dir)/pcre16_free_substring_list.3
724 ln -sf pcre_fullinfo.3 $(DESTDIR)$(man3dir)/pcre16_fullinfo.3
725 ln -sf pcre_get_named_substring.3 $(DESTDIR)$(man3dir)/pcre16_get_named_substring.3
726 ln -sf pcre_get_stringnumber.3 $(DESTDIR)$(man3dir)/pcre16_get_stringnumber.3
727 ln -sf pcre_get_stringtable_entries.3 $(DESTDIR)$(man3dir)/pcre16_get_stringtable_entries.3
728 ln -sf pcre_get_substring.3 $(DESTDIR)$(man3dir)/pcre16_get_substring.3
729 ln -sf pcre_get_substring_list.3 $(DESTDIR)$(man3dir)/pcre16_get_substring_list.3
730 ln -sf pcre_jit_exec.3 $(DESTDIR)$(man3dir)/pcre16_jit_exec.3
731 ln -sf pcre_jit_stack_alloc.3 $(DESTDIR)$(man3dir)/pcre16_jit_stack_alloc.3
732 ln -sf pcre_jit_stack_free.3 $(DESTDIR)$(man3dir)/pcre16_jit_stack_free.3
733 ln -sf pcre_maketables.3 $(DESTDIR)$(man3dir)/pcre16_maketables.3
734 ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_pattern_to_host_byte_order.3
735 ln -sf pcre_refcount.3 $(DESTDIR)$(man3dir)/pcre16_refcount.3
736 ln -sf pcre_study.3 $(DESTDIR)$(man3dir)/pcre16_study.3
737 ln -sf pcre_utf16_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_utf16_to_host_byte_order.3
738 ln -sf pcre_version.3 $(DESTDIR)$(man3dir)/pcre16_version.3
739 ln -sf pcre_assign_jit_stack.3 $(DESTDIR)$(man3dir)/pcre32_assign_jit_stack.3
740 ln -sf pcre_compile.3 $(DESTDIR)$(man3dir)/pcre32_compile.3
741 ln -sf pcre_compile2.3 $(DESTDIR)$(man3dir)/pcre32_compile2.3
742 ln -sf pcre_config.3 $(DESTDIR)$(man3dir)/pcre32_config.3
743 ln -sf pcre_copy_named_substring.3 $(DESTDIR)$(man3dir)/pcre32_copy_named_substring.3
744 ln -sf pcre_copy_substring.3 $(DESTDIR)$(man3dir)/pcre32_copy_substring.3
745 ln -sf pcre_dfa_exec.3 $(DESTDIR)$(man3dir)/pcre32_dfa_exec.3
746 ln -sf pcre_exec.3 $(DESTDIR)$(man3dir)/pcre32_exec.3
747 ln -sf pcre_free_study.3 $(DESTDIR)$(man3dir)/pcre32_free_study.3
748 ln -sf pcre_free_substring.3 $(DESTDIR)$(man3dir)/pcre32_free_substring.3
749 ln -sf pcre_free_substring_list.3 $(DESTDIR)$(man3dir)/pcre32_free_substring_list.3
750 ln -sf pcre_fullinfo.3 $(DESTDIR)$(man3dir)/pcre32_fullinfo.3
751 ln -sf pcre_get_named_substring.3 $(DESTDIR)$(man3dir)/pcre32_get_named_substring.3
752 ln -sf pcre_get_stringnumber.3 $(DESTDIR)$(man3dir)/pcre32_get_stringnumber.3
753 ln -sf pcre_get_stringtable_entries.3 $(DESTDIR)$(man3dir)/pcre32_get_stringtable_entries.3
754 ln -sf pcre_get_substring.3 $(DESTDIR)$(man3dir)/pcre32_get_substring.3
755 ln -sf pcre_get_substring_list.3 $(DESTDIR)$(man3dir)/pcre32_get_substring_list.3
756 ln -sf pcre_jit_exec.3 $(DESTDIR)$(man3dir)/pcre32_jit_exec.3
757 ln -sf pcre_jit_stack_alloc.3 $(DESTDIR)$(man3dir)/pcre32_jit_stack_alloc.3
758 ln -sf pcre_jit_stack_free.3 $(DESTDIR)$(man3dir)/pcre32_jit_stack_free.3
759 ln -sf pcre_maketables.3 $(DESTDIR)$(man3dir)/pcre32_maketables.3
760 ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_pattern_to_host_byte_order.3
761 ln -sf pcre_refcount.3 $(DESTDIR)$(man3dir)/pcre32_refcount.3
762 ln -sf pcre_study.3 $(DESTDIR)$(man3dir)/pcre32_study.3
763 ln -sf pcre_utf32_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_utf32_to_host_byte_order.3
764 ln -sf pcre_version.3 $(DESTDIR)$(man3dir)/pcre32_version.3
765
766 pcrecpp_man = doc/pcrecpp.3
767 EXTRA_DIST += $(pcrecpp_man)
768
769 if WITH_PCRE_CPP
770 man_MANS = $(pcrecpp_man)
771 endif
772
773 # gcov/lcov code coverage reporting
774
775 if WITH_GCOV
776
777 # Coverage reporting targets:
778 #
779 # coverage: Create a coverage report from 'make check'
780 # coverage-baseline: Capture baseline coverage information
781 # coverage-reset: This zeros the coverage counters only
782 # coverage-report: This creates the coverage report only
783 # coverage-clean-report: This removes the generated coverage report
784 # without cleaning the coverage data itself
785 # coverage-clean-data: This removes the captured coverage data without
786 # removing the coverage files created at compile time (*.gcno)
787 # coverage-clean: This cleans all coverage data including the generated
788 # coverage report.
789
790 COVERAGE_TEST_NAME = $(PACKAGE)
791 COVERAGE_NAME = $(PACKAGE)-$(VERSION)
792 COVERAGE_OUTPUT_FILE = $(COVERAGE_NAME)-coverage.info
793 COVERAGE_OUTPUT_DIR = $(COVERAGE_NAME)-coverage
794 COVERAGE_LCOV_EXTRA_FLAGS =
795 COVERAGE_GENHTML_EXTRA_FLAGS =
796
797 coverage_quiet = $(coverage_quiet_$(V))
798 coverage_quiet_ = $(coverage_quiet_$(AM_DEFAULT_VERBOSITY))
799 coverage_quiet_0 = --quiet
800
801 coverage-check: all
802 -$(MAKE) $(AM_MAKEFLAGS) -k check
803
804 coverage-baseline:
805 $(LCOV) $(coverage_quiet) \
806 --directory $(top_builddir) \
807 --output-file "$(COVERAGE_OUTPUT_FILE)" \
808 --capture \
809 --initial
810
811 coverage-report:
812 $(LCOV) $(coverage_quiet) \
813 --directory $(top_builddir) \
814 --capture \
815 --output-file "$(COVERAGE_OUTPUT_FILE).tmp" \
816 --test-name "$(COVERAGE_TEST_NAME)" \
817 --no-checksum \
818 --compat-libtool \
819 $(COVERAGE_LCOV_EXTRA_FLAGS)
820 $(LCOV) $(coverage_quiet) \
821 --directory $(top_builddir) \
822 --output-file "$(COVERAGE_OUTPUT_FILE)" \
823 --remove "$(COVERAGE_OUTPUT_FILE).tmp" \
824 "/tmp/*" \
825 "/usr/include/*" \
826 "$(includedir)/*"
827 -@rm -f "$(COVERAGE_OUTPUT_FILE).tmp"
828 LANG=C $(GENHTML) $(coverage_quiet) \
829 --prefix $(top_builddir) \
830 --output-directory "$(COVERAGE_OUTPUT_DIR)" \
831 --title "$(PACKAGE) $(VERSION) Code Coverage Report" \
832 --show-details "$(COVERAGE_OUTPUT_FILE)" \
833 --legend \
834 $(COVERAGE_GENHTML_EXTRA_FLAGS)
835 @echo "Code coverage report written to file://$(abs_builddir)/$(COVERAGE_OUTPUT_DIR)/index.html"
836
837 coverage-reset:
838 -$(LCOV) $(coverage_quiet) --zerocounters --directory $(top_builddir)
839
840 coverage-clean-report:
841 -rm -f "$(COVERAGE_OUTPUT_FILE)" "$(COVERAGE_OUTPUT_FILE).tmp"
842 -rm -rf "$(COVERAGE_OUTPUT_DIR)"
843
844 coverage-clean-data:
845 -find $(top_builddir) -name "*.gcda" -delete
846
847 coverage-clean: coverage-reset coverage-clean-report coverage-clean-data
848 -find $(top_builddir) -name "*.gcno" -delete
849
850 coverage-distclean: coverage-clean
851
852 coverage: coverage-reset coverage-baseline coverage-check coverage-report
853 clean-local: coverage-clean
854 distclean-local: coverage-distclean
855
856 .PHONY: coverage coverage-baseline coverage-check coverage-report coverage-reset coverage-clean-report coverage-clean-data coverage-clean coverage-distclean
857
858 else
859
860 coverage:
861 @echo "Configuring with --enable-coverage required to generate code coverage report."
862
863 endif # WITH_GCOV
864
865 ## CMake support
866
867 EXTRA_DIST += \
868 cmake/COPYING-CMAKE-SCRIPTS \
869 cmake/FindPackageHandleStandardArgs.cmake \
870 cmake/FindReadline.cmake \
871 cmake/FindEditline.cmake \
872 CMakeLists.txt \
873 config-cmake.h.in
874
875 ## end Makefile.am

  ViewVC Help
Powered by ViewVC 1.1.5