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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.5