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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.5