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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1019 - (show annotations)
Mon Aug 27 13:15:02 2012 UTC (7 years, 1 month ago) by ph10
File size: 16206 byte(s)
Error occurred while calculating annotation data.
Daniel Richard G's patch for checking POSIX threads when JIT is configure.
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 pcrecpp_html = doc/html/pcrecpp.html
68 dist_noinst_DATA = $(pcrecpp_html)
69
70 if WITH_PCRE_CPP
71 html_DATA = $(pcrecpp_html)
72 endif
73
74 # The Libtool libraries to install. We'll add to this later.
75 lib_LTLIBRARIES =
76
77 # Unit tests you want to run when people type 'make check'.
78 # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
79 TESTS =
80 check_SCRIPTS =
81 dist_noinst_SCRIPTS =
82
83 # Some of the binaries we make are to be installed, and others are
84 # (non-user-visible) helper programs needed to build libpcre or libpcre16.
85 bin_PROGRAMS =
86 noinst_PROGRAMS =
87
88 # Additional files to delete on 'make clean' and 'make maintainer-clean'.
89 CLEANFILES =
90 MAINTAINERCLEANFILES =
91
92 # Additional files to bundle with the distribution, over and above what
93 # the Autotools include by default.
94 EXTRA_DIST =
95
96 # These files contain additional m4 macros that are used by autoconf.
97 EXTRA_DIST += \
98 m4/ax_pthread.m4
99
100 # These files contain maintenance information
101 EXTRA_DIST += \
102 doc/perltest.txt \
103 NON-UNIX-USE \
104 NON-AUTOTOOLS-BUILD \
105 HACKING
106
107 # These files are used in the preparation of a release
108 EXTRA_DIST += \
109 PrepareRelease \
110 CheckMan \
111 CleanTxt \
112 Detrail \
113 132html \
114 doc/index.html.src
115
116 # These files are to do with building for Virtual Pascal
117 EXTRA_DIST += \
118 makevp.bat \
119 makevp_c.txt \
120 makevp_l.txt \
121 pcregexp.pas
122
123 # These files are usable versions of pcre.h and config.h that are distributed
124 # for the benefit of people who are building PCRE manually, without the
125 # Autotools support.
126 EXTRA_DIST += \
127 pcre.h.generic \
128 config.h.generic
129
130 pcre.h.generic: configure.ac
131 rm -f $@
132 cp -p pcre.h $@
133
134 MAINTAINERCLEANFILES += pcre.h.generic
135
136 # These are the header files we'll install. We do not distribute pcre.h because
137 # it is generated from pcre.h.in.
138 nodist_include_HEADERS = \
139 pcre.h
140 include_HEADERS = \
141 pcreposix.h
142
143 # These additional headers will be be installed if C++ support is enabled. We
144 # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
145 # from corresponding .h.in files (which we do distribute).
146 if WITH_PCRE_CPP
147 nodist_include_HEADERS += \
148 pcrecpparg.h \
149 pcre_stringpiece.h
150 include_HEADERS += \
151 pcrecpp.h \
152 pcre_scanner.h
153 endif # WITH_PCRE_CPP
154
155 bin_SCRIPTS = pcre-config
156
157 ## ---------------------------------------------------------------
158 ## The dftables program is used to rebuild character tables before compiling
159 ## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
160 ## program. The default (when --enable-rebuild-chartables is not specified) is
161 ## to copy a distributed set of tables that are defined for ASCII code. In this
162 ## case, dftables is not needed.
163
164 if WITH_REBUILD_CHARTABLES
165
166 noinst_PROGRAMS += dftables
167 dftables_SOURCES = dftables.c
168
169 pcre_chartables.c: dftables$(EXEEXT)
170 ./dftables$(EXEEXT) $@
171 else
172
173 pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
174 rm -f $@
175 $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
176
177 endif # WITH_REBUILD_CHARTABLES
178
179 BUILT_SOURCES = pcre_chartables.c
180
181 ## The main pcre library
182
183 # Build the 8 bit library if it is enabled.
184 if WITH_PCRE8
185 lib_LTLIBRARIES += libpcre.la
186 libpcre_la_SOURCES = \
187 pcre_byte_order.c \
188 pcre_compile.c \
189 pcre_config.c \
190 pcre_dfa_exec.c \
191 pcre_exec.c \
192 pcre_fullinfo.c \
193 pcre_get.c \
194 pcre_globals.c \
195 pcre_internal.h \
196 pcre_jit_compile.c \
197 pcre_maketables.c \
198 pcre_newline.c \
199 pcre_ord2utf8.c \
200 pcre_refcount.c \
201 pcre_string_utils.c \
202 pcre_study.c \
203 pcre_tables.c \
204 pcre_ucd.c \
205 pcre_valid_utf8.c \
206 pcre_version.c \
207 pcre_xclass.c \
208 ucp.h
209
210 ## This file is generated as part of the building process, so don't distribute.
211 nodist_libpcre_la_SOURCES = \
212 pcre_chartables.c
213
214 endif # WITH_PCRE8
215
216 # Build the 16 bit library if it is enabled.
217 if WITH_PCRE16
218 lib_LTLIBRARIES += libpcre16.la
219 libpcre16_la_SOURCES = \
220 pcre16_byte_order.c \
221 pcre16_chartables.c \
222 pcre16_compile.c \
223 pcre16_config.c \
224 pcre16_dfa_exec.c \
225 pcre16_exec.c \
226 pcre16_fullinfo.c \
227 pcre16_get.c \
228 pcre16_globals.c \
229 pcre16_jit_compile.c \
230 pcre16_maketables.c \
231 pcre16_newline.c \
232 pcre16_ord2utf16.c \
233 pcre16_refcount.c \
234 pcre16_string_utils.c \
235 pcre16_study.c \
236 pcre16_tables.c \
237 pcre16_ucd.c \
238 pcre16_utf16_utils.c \
239 pcre16_valid_utf16.c \
240 pcre16_version.c \
241 pcre16_xclass.c
242
243 ## This file is generated as part of the building process, so don't distribute.
244 nodist_libpcre16_la_SOURCES = \
245 pcre_chartables.c
246
247 endif # WITH_PCRE16
248
249 # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,
250 # used unless --enable-rebuild-chartables is specified.
251 EXTRA_DIST += pcre_chartables.c.dist
252
253 # The JIT compiler lives in a separate directory, but its files are #included
254 # when pcre_jit_compile.c is processed, so they must be distributed.
255 EXTRA_DIST += \
256 sljit/sljitConfig.h \
257 sljit/sljitConfigInternal.h \
258 sljit/sljitExecAllocator.c \
259 sljit/sljitLir.c \
260 sljit/sljitLir.h \
261 sljit/sljitNativeARM_Thumb2.c \
262 sljit/sljitNativeARM_v5.c \
263 sljit/sljitNativeMIPS_32.c \
264 sljit/sljitNativeMIPS_common.c \
265 sljit/sljitNativePPC_32.c \
266 sljit/sljitNativePPC_64.c \
267 sljit/sljitNativePPC_common.c \
268 sljit/sljitNativeX86_32.c \
269 sljit/sljitNativeX86_64.c \
270 sljit/sljitNativeX86_common.c \
271 sljit/sljitUtils.c
272
273 if WITH_PCRE8
274 libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
275 endif # WITH_PCRE8
276 if WITH_PCRE16
277 libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)
278 endif # WITH_PCRE16
279
280 CLEANFILES += pcre_chartables.c
281
282 ## If JIT support is enabled, arrange for the JIT test program to run.
283 if WITH_JIT
284 TESTS += pcre_jit_test
285 noinst_PROGRAMS += pcre_jit_test
286 pcre_jit_test_SOURCES = pcre_jit_test.c
287 pcre_jit_test_LDADD =
288 if WITH_PCRE8
289 pcre_jit_test_LDADD += libpcre.la
290 endif # WITH_PCRE8
291 if WITH_PCRE16
292 pcre_jit_test_LDADD += libpcre16.la
293 endif # WITH_PCRE16
294 endif # WITH_JIT
295
296 ## A version of the main pcre library that has a posix re API.
297 if WITH_PCRE8
298 lib_LTLIBRARIES += libpcreposix.la
299 libpcreposix_la_SOURCES = \
300 pcreposix.c
301 libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
302 libpcreposix_la_LIBADD = libpcre.la
303 endif # WITH_PCRE8
304
305 ## There's a C++ library as well.
306 if WITH_PCRE_CPP
307
308 lib_LTLIBRARIES += libpcrecpp.la
309 libpcrecpp_la_SOURCES = \
310 pcrecpp_internal.h \
311 pcrecpp.cc \
312 pcre_scanner.cc \
313 pcre_stringpiece.cc
314 libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
315 libpcrecpp_la_LIBADD = libpcre.la
316
317 TESTS += pcrecpp_unittest
318 noinst_PROGRAMS += pcrecpp_unittest
319 pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
320 pcrecpp_unittest_LDADD = libpcrecpp.la
321
322 TESTS += pcre_scanner_unittest
323 noinst_PROGRAMS += pcre_scanner_unittest
324 pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
325 pcre_scanner_unittest_LDADD = libpcrecpp.la
326
327 TESTS += pcre_stringpiece_unittest
328 noinst_PROGRAMS += pcre_stringpiece_unittest
329 pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
330 pcre_stringpiece_unittest_LDADD = libpcrecpp.la
331
332 endif # WITH_PCRE_CPP
333
334 ## The main unit tests
335
336 # Each unit test is a binary plus a script that runs that binary in various
337 # ways. We install these test binaries in case folks find it helpful.
338
339 TESTS += RunTest
340 dist_noinst_SCRIPTS += RunTest
341 EXTRA_DIST += RunTest.bat
342 bin_PROGRAMS += pcretest
343 pcretest_SOURCES = pcretest.c
344 pcretest_LDADD = $(LIBREADLINE)
345 if WITH_PCRE8
346 pcretest_SOURCES += pcre_printint.c
347 pcretest_LDADD += libpcre.la libpcreposix.la
348 endif # WITH_PCRE8
349 if WITH_PCRE16
350 pcretest_SOURCES += pcre16_printint.c
351 pcretest_LDADD += libpcre16.la
352 endif # WITH_PCRE16
353
354 if WITH_PCRE8
355 TESTS += RunGrepTest
356 dist_noinst_SCRIPTS += RunGrepTest
357 bin_PROGRAMS += pcregrep
358 pcregrep_SOURCES = pcregrep.c
359 pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
360 pcregrep_LDADD += libpcre.la libpcreposix.la
361 endif # WITH_PCRE8
362
363 EXTRA_DIST += \
364 testdata/grepbinary \
365 testdata/grepfilelist \
366 testdata/grepinput \
367 testdata/grepinput3 \
368 testdata/grepinput8 \
369 testdata/grepinputv \
370 testdata/grepinputx \
371 testdata/greplist \
372 testdata/grepoutput \
373 testdata/grepoutput8 \
374 testdata/grepoutputN \
375 testdata/greppatN4 \
376 testdata/saved16 \
377 testdata/saved16BE-1 \
378 testdata/saved16BE-2 \
379 testdata/saved16LE-1 \
380 testdata/saved16LE-2 \
381 testdata/saved8 \
382 testdata/testinput1 \
383 testdata/testinput2 \
384 testdata/testinput3 \
385 testdata/testinput4 \
386 testdata/testinput5 \
387 testdata/testinput6 \
388 testdata/testinput7 \
389 testdata/testinput8 \
390 testdata/testinput9 \
391 testdata/testinput10 \
392 testdata/testinput11 \
393 testdata/testinput12 \
394 testdata/testinput13 \
395 testdata/testinput14 \
396 testdata/testinput15 \
397 testdata/testinput16 \
398 testdata/testinput17 \
399 testdata/testinput18 \
400 testdata/testinput19 \
401 testdata/testinput20 \
402 testdata/testinput21 \
403 testdata/testinput22 \
404 testdata/testoutput1 \
405 testdata/testoutput2 \
406 testdata/testoutput3 \
407 testdata/testoutput4 \
408 testdata/testoutput5 \
409 testdata/testoutput6 \
410 testdata/testoutput7 \
411 testdata/testoutput8 \
412 testdata/testoutput9 \
413 testdata/testoutput10 \
414 testdata/testoutput11-16 \
415 testdata/testoutput11-8 \
416 testdata/testoutput12 \
417 testdata/testoutput13 \
418 testdata/testoutput14 \
419 testdata/testoutput15 \
420 testdata/testoutput16 \
421 testdata/testoutput17 \
422 testdata/testoutput18 \
423 testdata/testoutput19 \
424 testdata/testoutput20 \
425 testdata/testoutput21 \
426 testdata/testoutput22 \
427 testdata/wintestinput3 \
428 testdata/wintestoutput3 \
429 perltest.pl
430
431 CLEANFILES += \
432 testsavedregex \
433 teststderr \
434 testtry \
435 testNinput
436
437
438 # PCRE demonstration program. No longer built automatcally. The point is that
439 # the users should build it themselves. So just distribute the source.
440 # noinst_PROGRAMS += pcredemo
441 # pcredemo_SOURCES = pcredemo.c
442 # pcredemo_LDADD = libpcre.la
443
444 EXTRA_DIST += pcredemo.c
445
446
447 ## Utility rules, documentation, etc.
448
449 # A compatibility line, the old build system worked with 'make test'
450 test: check ;
451
452
453 # A PCRE user submitted the following addition, saying that it "will allow
454 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
455 # nice DLL for Windows use". (It is used by the pcre.dll target.)
456 DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
457 pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
458 pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
459 pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
460 pcre_study.o pcre_tables.o pcre_ucd.o \
461 pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
462 pcre_xclass.o
463
464 # A PCRE user submitted the following addition, saying that it "will allow
465 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
466 # nice DLL for Windows use".
467 pcre.dll: $(DLL_OBJS)
468 $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
469
470
471 # We have .pc files for pkg-config users.
472 pkgconfigdir = $(libdir)/pkgconfig
473 pkgconfig_DATA = libpcre.pc libpcreposix.pc
474 if WITH_PCRE16
475 pkgconfig_DATA += libpcre16.pc
476 endif
477 if WITH_PCRE_CPP
478 pkgconfig_DATA += libpcrecpp.pc
479 endif
480
481 dist_man_MANS = \
482 doc/pcre.3 \
483 doc/pcre16.3 \
484 doc/pcre-config.1 \
485 doc/pcre_assign_jit_stack.3 \
486 doc/pcre_compile.3 \
487 doc/pcre_compile2.3 \
488 doc/pcre_config.3 \
489 doc/pcre_copy_named_substring.3 \
490 doc/pcre_copy_substring.3 \
491 doc/pcre_dfa_exec.3 \
492 doc/pcre_exec.3 \
493 doc/pcre_free_study.3 \
494 doc/pcre_free_substring.3 \
495 doc/pcre_free_substring_list.3 \
496 doc/pcre_fullinfo.3 \
497 doc/pcre_get_named_substring.3 \
498 doc/pcre_get_stringnumber.3 \
499 doc/pcre_get_stringtable_entries.3 \
500 doc/pcre_get_substring.3 \
501 doc/pcre_get_substring_list.3 \
502 doc/pcre_jit_stack_alloc.3 \
503 doc/pcre_jit_stack_free.3 \
504 doc/pcre_maketables.3 \
505 doc/pcre_pattern_to_host_byte_order.3 \
506 doc/pcre_refcount.3 \
507 doc/pcre_study.3 \
508 doc/pcre_utf16_to_host_byte_order.3 \
509 doc/pcre_version.3 \
510 doc/pcreapi.3 \
511 doc/pcrebuild.3 \
512 doc/pcrecallout.3 \
513 doc/pcrecompat.3 \
514 doc/pcregrep.1 \
515 doc/pcrejit.3 \
516 doc/pcrelimits.3 \
517 doc/pcrematching.3 \
518 doc/pcrepartial.3 \
519 doc/pcrepattern.3 \
520 doc/pcreperform.3 \
521 doc/pcreposix.3 \
522 doc/pcreprecompile.3 \
523 doc/pcresample.3 \
524 doc/pcrestack.3 \
525 doc/pcresyntax.3 \
526 doc/pcretest.1 \
527 doc/pcreunicode.3
528
529 # Arrange for the per-function man pages to have 16-bit names as well.
530 install-data-hook:
531 ln -sf pcre_assign_jit_stack.3 $(DESTDIR)$(man3dir)/pcre16_assign_jit_stack.3
532 ln -sf pcre_compile.3 $(DESTDIR)$(man3dir)/pcre16_compile.3
533 ln -sf pcre_compile2.3 $(DESTDIR)$(man3dir)/pcre16_compile2.3
534 ln -sf pcre_config.3 $(DESTDIR)$(man3dir)/pcre16_config.3
535 ln -sf pcre_copy_named_substring.3 $(DESTDIR)$(man3dir)/pcre16_copy_named_substring.3
536 ln -sf pcre_copy_substring.3 $(DESTDIR)$(man3dir)/pcre16_copy_substring.3
537 ln -sf pcre_dfa_exec.3 $(DESTDIR)$(man3dir)/pcre16_dfa_exec.3
538 ln -sf pcre_exec.3 $(DESTDIR)$(man3dir)/pcre16_exec.3
539 ln -sf pcre_free_study.3 $(DESTDIR)$(man3dir)/pcre16_free_study.3
540 ln -sf pcre_free_substring.3 $(DESTDIR)$(man3dir)/pcre16_free_substring.3
541 ln -sf pcre_free_substring_list.3 $(DESTDIR)$(man3dir)/pcre16_free_substring_list.3
542 ln -sf pcre_fullinfo.3 $(DESTDIR)$(man3dir)/pcre16_fullinfo.3
543 ln -sf pcre_get_named_substring.3 $(DESTDIR)$(man3dir)/pcre16_get_named_substring.3
544 ln -sf pcre_get_stringnumber.3 $(DESTDIR)$(man3dir)/pcre16_get_stringnumber.3
545 ln -sf pcre_get_stringtable_entries.3 $(DESTDIR)$(man3dir)/pcre16_get_stringtable_entries.3
546 ln -sf pcre_get_substring.3 $(DESTDIR)$(man3dir)/pcre16_get_substring.3
547 ln -sf pcre_get_substring_list.3 $(DESTDIR)$(man3dir)/pcre16_get_substring_list.3
548 ln -sf pcre_jit_stack_alloc.3 $(DESTDIR)$(man3dir)/pcre16_jit_stack_alloc.3
549 ln -sf pcre_jit_stack_free.3 $(DESTDIR)$(man3dir)/pcre16_jit_stack_free.3
550 ln -sf pcre_maketables.3 $(DESTDIR)$(man3dir)/pcre16_maketables.3
551 ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_pattern_to_host_byte_order.3
552 ln -sf pcre_refcount.3 $(DESTDIR)$(man3dir)/pcre16_refcount.3
553 ln -sf pcre_study.3 $(DESTDIR)$(man3dir)/pcre16_study.3
554 ln -sf pcre_utf16_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_utf16_to_host_byte_order.3
555 ln -sf pcre_version.3 $(DESTDIR)$(man3dir)/pcre16_version.3
556
557 pcrecpp_man = doc/pcrecpp.3
558 EXTRA_DIST += $(pcrecpp_man)
559
560 if WITH_PCRE_CPP
561 man_MANS = $(pcrecpp_man)
562 endif
563
564 ## CMake support
565
566 EXTRA_DIST += \
567 cmake/COPYING-CMAKE-SCRIPTS \
568 cmake/FindPackageHandleStandardArgs.cmake \
569 cmake/FindReadline.cmake \
570 cmake/FindEditline.cmake \
571 CMakeLists.txt \
572 config-cmake.h.in
573
574 ## end Makefile.am

  ViewVC Help
Powered by ViewVC 1.1.5