/[pcre]/code/branches/pcre16/Makefile.am
ViewVC logotype

Contents of /code/branches/pcre16/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 804 - (show annotations)
Wed Dec 14 11:18:01 2011 UTC (7 years, 10 months ago) by zherczeg
File size: 13253 byte(s)
Error occurred while calculating annotation data.
PUBL macro added, single char optimization is fixed, MAX_255 checks are added, pcre_jit_test now copy the default tables to help valgrind
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/pcre-config.html \
21 doc/html/pcre_assign_jit_stack.html \
22 doc/html/pcre_compile.html \
23 doc/html/pcre_compile2.html \
24 doc/html/pcre_config.html \
25 doc/html/pcre_copy_named_substring.html \
26 doc/html/pcre_copy_substring.html \
27 doc/html/pcre_dfa_exec.html \
28 doc/html/pcre_exec.html \
29 doc/html/pcre_free_study.html \
30 doc/html/pcre_free_substring.html \
31 doc/html/pcre_free_substring_list.html \
32 doc/html/pcre_fullinfo.html \
33 doc/html/pcre_get_named_substring.html \
34 doc/html/pcre_get_stringnumber.html \
35 doc/html/pcre_get_stringtable_entries.html \
36 doc/html/pcre_get_substring.html \
37 doc/html/pcre_get_substring_list.html \
38 doc/html/pcre_info.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
173 ## The main pcre library
174
175 # Build the 8 bit library if it is enabled.
176 if WITH_PCRE8
177 lib_LTLIBRARIES += libpcre.la
178 libpcre_la_SOURCES = \
179 pcre_compile.c \
180 pcre_config.c \
181 pcre_dfa_exec.c \
182 pcre_exec.c \
183 pcre_fullinfo.c \
184 pcre_get.c \
185 pcre_globals.c \
186 pcre_info.c \
187 pcre_internal.h \
188 pcre_jit_compile.c \
189 pcre_maketables.c \
190 pcre_newline.c \
191 pcre_ord2utf8.c \
192 pcre_refcount.c \
193 pcre_string_utils.c \
194 pcre_study.c \
195 pcre_tables.c \
196 pcre_try_flipped.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_chartables.c \
214 pcre16_compile.c \
215 pcre16_config.c \
216 pcre16_dfa_exec.c \
217 pcre16_exec.c \
218 pcre16_fullinfo.c \
219 pcre16_get.c \
220 pcre16_globals.c \
221 pcre16_info.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_try_flipped.c \
231 pcre16_ucd.c \
232 pcre16_utf16_utils.c \
233 pcre16_valid_utf16.c \
234 pcre16_version.c \
235 pcre16_xclass.c
236
237 ## This file is generated as part of the building process, so don't distribute.
238 nodist_libpcre16_la_SOURCES = \
239 pcre_chartables.c
240
241 endif # WITH_PCRE16
242
243 # The pcre_printint.src file is #included by some source files, so it must be
244 # distributed. The pcre_chartables.c.dist file is the default version of
245 # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.
246 EXTRA_DIST += pcre_printint.src 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_LIBPCRE_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_LDADD += libpcreposix.la
342 endif # WITH_PCRE8
343
344 TESTS += RunGrepTest
345 dist_noinst_SCRIPTS += RunGrepTest
346 bin_PROGRAMS += pcregrep
347 pcregrep_SOURCES = pcregrep.c
348 pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
349 if WITH_PCRE8
350 pcregrep_LDADD += libpcreposix.la
351 endif # WITH_PCRE8
352
353 EXTRA_DIST += \
354 testdata/grepinput \
355 testdata/grepinput3 \
356 testdata/grepinput8 \
357 testdata/grepinputv \
358 testdata/grepinputx \
359 testdata/greplist \
360 testdata/grepoutput \
361 testdata/grepoutput8 \
362 testdata/grepoutputN \
363 testdata/testinput1 \
364 testdata/testinput2 \
365 testdata/testinput3 \
366 testdata/testinput4 \
367 testdata/testinput5 \
368 testdata/testinput6 \
369 testdata/testinput7 \
370 testdata/testinput8 \
371 testdata/testinput9 \
372 testdata/testinput10 \
373 testdata/testinput11 \
374 testdata/testinput12 \
375 testdata/testinput13 \
376 testdata/testinput14 \
377 testdata/testinput15 \
378 testdata/testoutput1 \
379 testdata/testoutput2 \
380 testdata/testoutput3 \
381 testdata/testoutput4 \
382 testdata/testoutput5 \
383 testdata/testoutput6 \
384 testdata/testoutput7 \
385 testdata/testoutput8 \
386 testdata/testoutput9 \
387 testdata/testoutput10 \
388 testdata/testoutput11 \
389 testdata/testoutput12 \
390 testdata/testoutput13 \
391 testdata/testoutput14 \
392 testdata/testoutput15 \
393 testdata/wintestinput3 \
394 testdata/wintestoutput3 \
395 perltest.pl
396
397 CLEANFILES += \
398 testsavedregex \
399 teststderr \
400 testtry \
401 testNinput
402
403
404 # PCRE demonstration program. No longer built automatcally. The point is that
405 # the users should build it themselves. So just distribute the source.
406 # noinst_PROGRAMS += pcredemo
407 # pcredemo_SOURCES = pcredemo.c
408 # pcredemo_LDADD = libpcre.la
409
410 EXTRA_DIST += pcredemo.c
411
412
413 ## Utility rules, documentation, etc.
414
415 # A compatibility line, the old build system worked with 'make test'
416 test: check ;
417
418
419 # A PCRE user submitted the following addition, saying that it "will allow
420 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
421 # nice DLL for Windows use". (It is used by the pcre.dll target.)
422 DLL_OBJS= pcre_compile.o pcre_config.o \
423 pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
424 pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \
425 pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
426 pcre_study.o pcre_tables.o pcre_try_flipped.o \
427 pcre_ucd.o pcre_valid_utf8.o pcre_version.o \
428 pcre_chartables.o \
429 pcre_xclass.o
430
431 # A PCRE user submitted the following addition, saying that it "will allow
432 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
433 # nice DLL for Windows use".
434 pcre.dll: $(DLL_OBJS)
435 $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
436
437
438 # We have .pc files for pkg-config users.
439 pkgconfigdir = $(libdir)/pkgconfig
440 pkgconfig_DATA = libpcre.pc libpcreposix.pc
441 if WITH_PCRE16
442 pkgconfig_DATA += libpcre16.pc
443 endif
444 if WITH_PCRE_CPP
445 pkgconfig_DATA += libpcrecpp.pc
446 endif
447
448 dist_man_MANS = \
449 doc/pcre.3 \
450 doc/pcre-config.1 \
451 doc/pcre_assign_jit_stack.3 \
452 doc/pcre_compile.3 \
453 doc/pcre_compile2.3 \
454 doc/pcre_config.3 \
455 doc/pcre_copy_named_substring.3 \
456 doc/pcre_copy_substring.3 \
457 doc/pcre_dfa_exec.3 \
458 doc/pcre_exec.3 \
459 doc/pcre_free_study.3 \
460 doc/pcre_free_substring.3 \
461 doc/pcre_free_substring_list.3 \
462 doc/pcre_fullinfo.3 \
463 doc/pcre_get_named_substring.3 \
464 doc/pcre_get_stringnumber.3 \
465 doc/pcre_get_stringtable_entries.3 \
466 doc/pcre_get_substring.3 \
467 doc/pcre_get_substring_list.3 \
468 doc/pcre_info.3 \
469 doc/pcre_jit_stack_alloc.3 \
470 doc/pcre_jit_stack_free.3 \
471 doc/pcre_maketables.3 \
472 doc/pcre_refcount.3 \
473 doc/pcre_study.3 \
474 doc/pcre_version.3 \
475 doc/pcreapi.3 \
476 doc/pcrebuild.3 \
477 doc/pcrecallout.3 \
478 doc/pcrecompat.3 \
479 doc/pcregrep.1 \
480 doc/pcrejit.3 \
481 doc/pcrelimits.3 \
482 doc/pcrematching.3 \
483 doc/pcrepartial.3 \
484 doc/pcrepattern.3 \
485 doc/pcreperform.3 \
486 doc/pcreposix.3 \
487 doc/pcreprecompile.3 \
488 doc/pcresample.3 \
489 doc/pcrestack.3 \
490 doc/pcresyntax.3 \
491 doc/pcretest.1 \
492 doc/pcreunicode.3
493
494 pcrecpp_man = doc/pcrecpp.3
495 EXTRA_DIST += $(pcrecpp_man)
496
497 if WITH_PCRE_CPP
498 man_MANS = $(pcrecpp_man)
499 endif
500
501 ## CMake support
502
503 EXTRA_DIST += \
504 cmake/COPYING-CMAKE-SCRIPTS \
505 cmake/FindPackageHandleStandardArgs.cmake \
506 cmake/FindReadline.cmake \
507 CMakeLists.txt \
508 config-cmake.h.in
509
510 ## end Makefile.am

  ViewVC Help
Powered by ViewVC 1.1.5