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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.5