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_byte_order.c \
|
180 |
pcre_compile.c \
|
181 |
pcre_config.c \
|
182 |
pcre_dfa_exec.c \
|
183 |
pcre_exec.c \
|
184 |
pcre_fullinfo.c \
|
185 |
pcre_get.c \
|
186 |
pcre_globals.c \
|
187 |
pcre_info.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_info.c \
|
223 |
pcre16_jit_compile.c \
|
224 |
pcre16_maketables.c \
|
225 |
pcre16_newline.c \
|
226 |
pcre16_ord2utf16.c \
|
227 |
pcre16_refcount.c \
|
228 |
pcre16_string_utils.c \
|
229 |
pcre16_study.c \
|
230 |
pcre16_tables.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_chartables.c.dist file is the default version of pcre_chartables.c,
|
244 |
# used unless --enable-rebuild-chartables is specified.
|
245 |
EXTRA_DIST += pcre_chartables.c.dist
|
246 |
|
247 |
# The JIT compiler lives in a separate directory, but its files are #included
|
248 |
# when pcre_jit_compile.c is processed, so they must be distributed.
|
249 |
EXTRA_DIST += \
|
250 |
sljit/sljitConfig.h \
|
251 |
sljit/sljitConfigInternal.h \
|
252 |
sljit/sljitExecAllocator.c \
|
253 |
sljit/sljitLir.c \
|
254 |
sljit/sljitLir.h \
|
255 |
sljit/sljitNativeARM_Thumb2.c \
|
256 |
sljit/sljitNativeARM_v5.c \
|
257 |
sljit/sljitNativeMIPS_32.c \
|
258 |
sljit/sljitNativeMIPS_common.c \
|
259 |
sljit/sljitNativePPC_32.c \
|
260 |
sljit/sljitNativePPC_64.c \
|
261 |
sljit/sljitNativePPC_common.c \
|
262 |
sljit/sljitNativeX86_32.c \
|
263 |
sljit/sljitNativeX86_64.c \
|
264 |
sljit/sljitNativeX86_common.c \
|
265 |
sljit/sljitUtils.c
|
266 |
|
267 |
if WITH_PCRE8
|
268 |
libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
|
269 |
endif # WITH_PCRE8
|
270 |
if WITH_PCRE16
|
271 |
libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
|
272 |
endif # WITH_PCRE16
|
273 |
|
274 |
CLEANFILES += pcre_chartables.c
|
275 |
|
276 |
## If JIT support is enabled, arrange for the JIT test program to run.
|
277 |
if WITH_JIT
|
278 |
TESTS += pcre_jit_test
|
279 |
noinst_PROGRAMS += pcre_jit_test
|
280 |
pcre_jit_test_SOURCES = pcre_jit_test.c
|
281 |
pcre_jit_test_LDADD =
|
282 |
if WITH_PCRE8
|
283 |
pcre_jit_test_LDADD += libpcre.la
|
284 |
endif # WITH_PCRE8
|
285 |
if WITH_PCRE16
|
286 |
pcre_jit_test_LDADD += libpcre16.la
|
287 |
endif # WITH_PCRE16
|
288 |
endif # WITH_JIT
|
289 |
|
290 |
## A version of the main pcre library that has a posix re API.
|
291 |
if WITH_PCRE8
|
292 |
lib_LTLIBRARIES += libpcreposix.la
|
293 |
libpcreposix_la_SOURCES = \
|
294 |
pcreposix.c
|
295 |
libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
|
296 |
libpcreposix_la_LIBADD = libpcre.la
|
297 |
endif # WITH_PCRE8
|
298 |
|
299 |
## There's a C++ library as well.
|
300 |
if WITH_PCRE_CPP
|
301 |
|
302 |
lib_LTLIBRARIES += libpcrecpp.la
|
303 |
libpcrecpp_la_SOURCES = \
|
304 |
pcrecpp_internal.h \
|
305 |
pcrecpp.cc \
|
306 |
pcre_scanner.cc \
|
307 |
pcre_stringpiece.cc
|
308 |
libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
|
309 |
libpcrecpp_la_LIBADD = libpcre.la
|
310 |
|
311 |
TESTS += pcrecpp_unittest
|
312 |
noinst_PROGRAMS += pcrecpp_unittest
|
313 |
pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
|
314 |
pcrecpp_unittest_LDADD = libpcrecpp.la
|
315 |
|
316 |
TESTS += pcre_scanner_unittest
|
317 |
noinst_PROGRAMS += pcre_scanner_unittest
|
318 |
pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
|
319 |
pcre_scanner_unittest_LDADD = libpcrecpp.la
|
320 |
|
321 |
TESTS += pcre_stringpiece_unittest
|
322 |
noinst_PROGRAMS += pcre_stringpiece_unittest
|
323 |
pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
|
324 |
pcre_stringpiece_unittest_LDADD = libpcrecpp.la
|
325 |
|
326 |
endif # WITH_PCRE_CPP
|
327 |
|
328 |
## The main unit tests
|
329 |
|
330 |
# Each unit test is a binary plus a script that runs that binary in various
|
331 |
# ways. We install these test binaries in case folks find it helpful.
|
332 |
|
333 |
TESTS += RunTest
|
334 |
dist_noinst_SCRIPTS += RunTest
|
335 |
EXTRA_DIST += RunTest.bat
|
336 |
bin_PROGRAMS += pcretest
|
337 |
pcretest_SOURCES = pcretest.c
|
338 |
pcretest_LDADD = $(LIBREADLINE)
|
339 |
if WITH_PCRE8
|
340 |
pcretest_SOURCES += pcre_printint.c
|
341 |
pcretest_LDADD += libpcreposix.la
|
342 |
endif # WITH_PCRE8
|
343 |
if WITH_PCRE16
|
344 |
pcretest_SOURCES += pcre16_printint.c
|
345 |
pcretest_LDADD += libpcre16.la
|
346 |
endif # WITH_PCRE16
|
347 |
|
348 |
TESTS += RunGrepTest
|
349 |
dist_noinst_SCRIPTS += RunGrepTest
|
350 |
bin_PROGRAMS += pcregrep
|
351 |
pcregrep_SOURCES = pcregrep.c
|
352 |
pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
|
353 |
if WITH_PCRE8
|
354 |
pcregrep_LDADD += libpcreposix.la
|
355 |
endif # WITH_PCRE8
|
356 |
|
357 |
EXTRA_DIST += \
|
358 |
testdata/grepinput \
|
359 |
testdata/grepinput3 \
|
360 |
testdata/grepinput8 \
|
361 |
testdata/grepinputv \
|
362 |
testdata/grepinputx \
|
363 |
testdata/greplist \
|
364 |
testdata/grepoutput \
|
365 |
testdata/grepoutput8 \
|
366 |
testdata/grepoutputN \
|
367 |
testdata/testinput1 \
|
368 |
testdata/testinput2 \
|
369 |
testdata/testinput3 \
|
370 |
testdata/testinput4 \
|
371 |
testdata/testinput5 \
|
372 |
testdata/testinput6 \
|
373 |
testdata/testinput7 \
|
374 |
testdata/testinput8 \
|
375 |
testdata/testinput9 \
|
376 |
testdata/testinput10 \
|
377 |
testdata/testinput11 \
|
378 |
testdata/testinput12 \
|
379 |
testdata/testinput13 \
|
380 |
testdata/testinput14 \
|
381 |
testdata/testinput15 \
|
382 |
testdata/testoutput1 \
|
383 |
testdata/testoutput2 \
|
384 |
testdata/testoutput3 \
|
385 |
testdata/testoutput4 \
|
386 |
testdata/testoutput5 \
|
387 |
testdata/testoutput6 \
|
388 |
testdata/testoutput7 \
|
389 |
testdata/testoutput8 \
|
390 |
testdata/testoutput9 \
|
391 |
testdata/testoutput10 \
|
392 |
testdata/testoutput11 \
|
393 |
testdata/testoutput12 \
|
394 |
testdata/testoutput13 \
|
395 |
testdata/testoutput14 \
|
396 |
testdata/testoutput15 \
|
397 |
testdata/wintestinput3 \
|
398 |
testdata/wintestoutput3 \
|
399 |
perltest.pl
|
400 |
|
401 |
CLEANFILES += \
|
402 |
testsavedregex \
|
403 |
teststderr \
|
404 |
testtry \
|
405 |
testNinput
|
406 |
|
407 |
|
408 |
# PCRE demonstration program. No longer built automatcally. The point is that
|
409 |
# the users should build it themselves. So just distribute the source.
|
410 |
# noinst_PROGRAMS += pcredemo
|
411 |
# pcredemo_SOURCES = pcredemo.c
|
412 |
# pcredemo_LDADD = libpcre.la
|
413 |
|
414 |
EXTRA_DIST += pcredemo.c
|
415 |
|
416 |
|
417 |
## Utility rules, documentation, etc.
|
418 |
|
419 |
# A compatibility line, the old build system worked with 'make test'
|
420 |
test: check ;
|
421 |
|
422 |
|
423 |
# A PCRE user submitted the following addition, saying that it "will allow
|
424 |
# anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
|
425 |
# nice DLL for Windows use". (It is used by the pcre.dll target.)
|
426 |
DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
|
427 |
pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
|
428 |
pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \
|
429 |
pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
|
430 |
pcre_study.o pcre_tables.o pcre_ucd.o \
|
431 |
pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
|
432 |
pcre_xclass.o
|
433 |
|
434 |
# A PCRE user submitted the following addition, saying that it "will allow
|
435 |
# anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
|
436 |
# nice DLL for Windows use".
|
437 |
pcre.dll: $(DLL_OBJS)
|
438 |
$(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
|
439 |
|
440 |
|
441 |
# We have .pc files for pkg-config users.
|
442 |
pkgconfigdir = $(libdir)/pkgconfig
|
443 |
pkgconfig_DATA = libpcre.pc libpcreposix.pc
|
444 |
if WITH_PCRE16
|
445 |
pkgconfig_DATA += libpcre16.pc
|
446 |
endif
|
447 |
if WITH_PCRE_CPP
|
448 |
pkgconfig_DATA += libpcrecpp.pc
|
449 |
endif
|
450 |
|
451 |
dist_man_MANS = \
|
452 |
doc/pcre.3 \
|
453 |
doc/pcre-config.1 \
|
454 |
doc/pcre_assign_jit_stack.3 \
|
455 |
doc/pcre_compile.3 \
|
456 |
doc/pcre_compile2.3 \
|
457 |
doc/pcre_config.3 \
|
458 |
doc/pcre_copy_named_substring.3 \
|
459 |
doc/pcre_copy_substring.3 \
|
460 |
doc/pcre_dfa_exec.3 \
|
461 |
doc/pcre_exec.3 \
|
462 |
doc/pcre_free_study.3 \
|
463 |
doc/pcre_free_substring.3 \
|
464 |
doc/pcre_free_substring_list.3 \
|
465 |
doc/pcre_fullinfo.3 \
|
466 |
doc/pcre_get_named_substring.3 \
|
467 |
doc/pcre_get_stringnumber.3 \
|
468 |
doc/pcre_get_stringtable_entries.3 \
|
469 |
doc/pcre_get_substring.3 \
|
470 |
doc/pcre_get_substring_list.3 \
|
471 |
doc/pcre_info.3 \
|
472 |
doc/pcre_jit_stack_alloc.3 \
|
473 |
doc/pcre_jit_stack_free.3 \
|
474 |
doc/pcre_maketables.3 \
|
475 |
doc/pcre_refcount.3 \
|
476 |
doc/pcre_study.3 \
|
477 |
doc/pcre_version.3 \
|
478 |
doc/pcreapi.3 \
|
479 |
doc/pcrebuild.3 \
|
480 |
doc/pcrecallout.3 \
|
481 |
doc/pcrecompat.3 \
|
482 |
doc/pcregrep.1 \
|
483 |
doc/pcrejit.3 \
|
484 |
doc/pcrelimits.3 \
|
485 |
doc/pcrematching.3 \
|
486 |
doc/pcrepartial.3 \
|
487 |
doc/pcrepattern.3 \
|
488 |
doc/pcreperform.3 \
|
489 |
doc/pcreposix.3 \
|
490 |
doc/pcreprecompile.3 \
|
491 |
doc/pcresample.3 \
|
492 |
doc/pcrestack.3 \
|
493 |
doc/pcresyntax.3 \
|
494 |
doc/pcretest.1 \
|
495 |
doc/pcreunicode.3
|
496 |
|
497 |
pcrecpp_man = doc/pcrecpp.3
|
498 |
EXTRA_DIST += $(pcrecpp_man)
|
499 |
|
500 |
if WITH_PCRE_CPP
|
501 |
man_MANS = $(pcrecpp_man)
|
502 |
endif
|
503 |
|
504 |
## CMake support
|
505 |
|
506 |
EXTRA_DIST += \
|
507 |
cmake/COPYING-CMAKE-SCRIPTS \
|
508 |
cmake/FindPackageHandleStandardArgs.cmake \
|
509 |
cmake/FindReadline.cmake \
|
510 |
CMakeLists.txt \
|
511 |
config-cmake.h.in
|
512 |
|
513 |
## end Makefile.am
|