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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 957 - (show annotations) (download)
Wed Apr 4 16:18:29 2012 UTC (2 years, 7 months ago) by ph10
File size: 16004 byte(s)
Change man page link creation from -s to -sf. 

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12