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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.5