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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.5