1 |
## Process this file with automake to produce Makefile.in.
|
2 |
|
3 |
dist_doc_DATA = \
|
4 |
doc/pcre.txt \
|
5 |
doc/pcre-config.txt \
|
6 |
doc/pcregrep.txt \
|
7 |
doc/pcretest.txt \
|
8 |
AUTHORS \
|
9 |
COPYING \
|
10 |
ChangeLog \
|
11 |
LICENCE \
|
12 |
NEWS \
|
13 |
README
|
14 |
|
15 |
dist_html_DATA = \
|
16 |
doc/html/index.html \
|
17 |
doc/html/pcre.html \
|
18 |
doc/html/pcre-config.html \
|
19 |
doc/html/pcre_compile.html \
|
20 |
doc/html/pcre_compile2.html \
|
21 |
doc/html/pcre_config.html \
|
22 |
doc/html/pcre_copy_named_substring.html \
|
23 |
doc/html/pcre_copy_substring.html \
|
24 |
doc/html/pcre_dfa_exec.html \
|
25 |
doc/html/pcre_exec.html \
|
26 |
doc/html/pcre_free_substring.html \
|
27 |
doc/html/pcre_free_substring_list.html \
|
28 |
doc/html/pcre_fullinfo.html \
|
29 |
doc/html/pcre_get_named_substring.html \
|
30 |
doc/html/pcre_get_stringnumber.html \
|
31 |
doc/html/pcre_get_stringtable_entries.html \
|
32 |
doc/html/pcre_get_substring.html \
|
33 |
doc/html/pcre_get_substring_list.html \
|
34 |
doc/html/pcre_info.html \
|
35 |
doc/html/pcre_maketables.html \
|
36 |
doc/html/pcre_refcount.html \
|
37 |
doc/html/pcre_study.html \
|
38 |
doc/html/pcre_version.html \
|
39 |
doc/html/pcreapi.html \
|
40 |
doc/html/pcrebuild.html \
|
41 |
doc/html/pcrecallout.html \
|
42 |
doc/html/pcrecompat.html \
|
43 |
doc/html/pcregrep.html \
|
44 |
doc/html/pcrematching.html \
|
45 |
doc/html/pcrepartial.html \
|
46 |
doc/html/pcrepattern.html \
|
47 |
doc/html/pcreperform.html \
|
48 |
doc/html/pcreposix.html \
|
49 |
doc/html/pcreprecompile.html \
|
50 |
doc/html/pcresample.html \
|
51 |
doc/html/pcrestack.html \
|
52 |
doc/html/pcretest.html
|
53 |
|
54 |
pcrecpp_html = doc/html/pcrecpp.html
|
55 |
dist_noinst_DATA = $(pcrecpp_html)
|
56 |
|
57 |
if WITH_PCRE_CPP
|
58 |
html_DATA = $(pcrecpp_html)
|
59 |
endif
|
60 |
|
61 |
# The Libtool libraries to install. We'll add to this later.
|
62 |
lib_LTLIBRARIES =
|
63 |
|
64 |
# Unit tests you want to run when people type 'make check'.
|
65 |
# TESTS is for binary unit tests, check_SCRIPTS for script-based tests
|
66 |
TESTS =
|
67 |
check_SCRIPTS =
|
68 |
dist_noinst_SCRIPTS =
|
69 |
|
70 |
# Some of the binaries we make are to be installed, and others are
|
71 |
# (non-user-visible) helper programs needed to build libpcre.
|
72 |
bin_PROGRAMS =
|
73 |
noinst_PROGRAMS =
|
74 |
|
75 |
# Additional files to delete on 'make clean' and 'make maintainer-clean'.
|
76 |
CLEANFILES =
|
77 |
MAINTAINERCLEANFILES =
|
78 |
|
79 |
# Additional files to bundle with the distribution, over and above what
|
80 |
# the Autotools include by default.
|
81 |
EXTRA_DIST =
|
82 |
|
83 |
# These files contain maintenance information
|
84 |
EXTRA_DIST += \
|
85 |
doc/perltest.txt \
|
86 |
NON-UNIX-USE \
|
87 |
HACKING
|
88 |
|
89 |
# These files are used in the preparation of a release
|
90 |
EXTRA_DIST += \
|
91 |
PrepareRelease \
|
92 |
CleanTxt \
|
93 |
Detrail \
|
94 |
132html \
|
95 |
doc/index.html.src
|
96 |
|
97 |
# These files are to do with building for Virtual Pascal
|
98 |
EXTRA_DIST += \
|
99 |
makevp.bat \
|
100 |
makevp_c.txt \
|
101 |
makevp_l.txt \
|
102 |
pcregexp.pas
|
103 |
|
104 |
# These files are usable versions of pcre.h and config.h that are distributed
|
105 |
# for the benefit of people who are building PCRE manually, without the
|
106 |
# Autotools support.
|
107 |
EXTRA_DIST += \
|
108 |
pcre.h.generic \
|
109 |
config.h.generic
|
110 |
|
111 |
pcre.h.generic: configure.ac
|
112 |
rm -f $@
|
113 |
cp -p pcre.h $@
|
114 |
|
115 |
MAINTAINERCLEANFILES += pcre.h.generic
|
116 |
|
117 |
# These are the header files we'll install. We do not distribute pcre.h because
|
118 |
# it is generated from pcre.h.in.
|
119 |
nodist_include_HEADERS = \
|
120 |
pcre.h
|
121 |
include_HEADERS = \
|
122 |
pcreposix.h
|
123 |
|
124 |
# These additional headers will be be installed if C++ support is enabled. We
|
125 |
# do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
|
126 |
# from corresponding .h.in files (which we do distribute).
|
127 |
if WITH_PCRE_CPP
|
128 |
nodist_include_HEADERS += \
|
129 |
pcrecpparg.h \
|
130 |
pcre_stringpiece.h
|
131 |
include_HEADERS += \
|
132 |
pcrecpp.h \
|
133 |
pcre_scanner.h
|
134 |
endif # WITH_PCRE_CPP
|
135 |
|
136 |
bin_SCRIPTS = pcre-config
|
137 |
|
138 |
## ---------------------------------------------------------------
|
139 |
## The dftables program is used to rebuild character tables before compiling
|
140 |
## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
|
141 |
## program. The default (when --enable-rebuild-chartables is not specified) is
|
142 |
## to copy a distributed set of tables that are defined for ASCII code. In this
|
143 |
## case, dftables is not needed.
|
144 |
|
145 |
if WITH_REBUILD_CHARTABLES
|
146 |
|
147 |
noinst_PROGRAMS += dftables
|
148 |
dftables_SOURCES = dftables.c
|
149 |
|
150 |
pcre_chartables.c: dftables$(EXEEXT)
|
151 |
./dftables$(EXEEXT) $@
|
152 |
else
|
153 |
|
154 |
pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
|
155 |
rm -f $@
|
156 |
$(LN_S) $(srcdir)/pcre_chartables.c.dist $@
|
157 |
|
158 |
endif # WITH_REBUILD_CHARTABLES
|
159 |
|
160 |
|
161 |
## The main pcre library
|
162 |
lib_LTLIBRARIES += libpcre.la
|
163 |
libpcre_la_SOURCES = \
|
164 |
pcre_compile.c \
|
165 |
pcre_config.c \
|
166 |
pcre_dfa_exec.c \
|
167 |
pcre_exec.c \
|
168 |
pcre_fullinfo.c \
|
169 |
pcre_get.c \
|
170 |
pcre_globals.c \
|
171 |
pcre_info.c \
|
172 |
pcre_internal.h \
|
173 |
pcre_maketables.c \
|
174 |
pcre_newline.c \
|
175 |
pcre_ord2utf8.c \
|
176 |
pcre_refcount.c \
|
177 |
pcre_study.c \
|
178 |
pcre_tables.c \
|
179 |
pcre_try_flipped.c \
|
180 |
pcre_ucp_searchfuncs.c \
|
181 |
pcre_valid_utf8.c \
|
182 |
pcre_version.c \
|
183 |
pcre_xclass.c \
|
184 |
ucp.h \
|
185 |
ucpinternal.h \
|
186 |
ucptable.h
|
187 |
|
188 |
## This file is generated as part of the building process, so don't distribute.
|
189 |
nodist_libpcre_la_SOURCES = \
|
190 |
pcre_chartables.c
|
191 |
|
192 |
# The pcre_printint.src file is #included by some source files, so it must be
|
193 |
# distributed. The pcre_chartables.c.dist file is the default version of
|
194 |
# pcre_chartables.c, used unless --enable-rebuild-chartables is specified.
|
195 |
EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist
|
196 |
|
197 |
libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
|
198 |
|
199 |
CLEANFILES += pcre_chartables.c
|
200 |
|
201 |
## A version of the main pcre library that has a posix re API.
|
202 |
lib_LTLIBRARIES += libpcreposix.la
|
203 |
libpcreposix_la_SOURCES = \
|
204 |
pcreposix.c
|
205 |
libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
|
206 |
libpcreposix_la_LIBADD = libpcre.la
|
207 |
|
208 |
## There's a C++ library as well.
|
209 |
if WITH_PCRE_CPP
|
210 |
|
211 |
lib_LTLIBRARIES += libpcrecpp.la
|
212 |
libpcrecpp_la_SOURCES = \
|
213 |
pcrecpp_internal.h \
|
214 |
pcrecpp.cc \
|
215 |
pcre_scanner.cc \
|
216 |
pcre_stringpiece.cc
|
217 |
libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
|
218 |
libpcrecpp_la_LIBADD = libpcre.la
|
219 |
|
220 |
TESTS += pcrecpp_unittest
|
221 |
noinst_PROGRAMS += pcrecpp_unittest
|
222 |
pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
|
223 |
pcrecpp_unittest_LDADD = libpcrecpp.la
|
224 |
|
225 |
TESTS += pcre_scanner_unittest
|
226 |
noinst_PROGRAMS += pcre_scanner_unittest
|
227 |
pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
|
228 |
pcre_scanner_unittest_LDADD = libpcrecpp.la
|
229 |
|
230 |
TESTS += pcre_stringpiece_unittest
|
231 |
noinst_PROGRAMS += pcre_stringpiece_unittest
|
232 |
pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
|
233 |
pcre_stringpiece_unittest_LDADD = libpcrecpp.la
|
234 |
|
235 |
endif # WITH_PCRE_CPP
|
236 |
|
237 |
## The main unit tests
|
238 |
|
239 |
# Each unit test is a binary plus a script that runs that binary in various
|
240 |
# ways. We install these test binaries in case folks find it helpful.
|
241 |
|
242 |
TESTS += RunTest
|
243 |
dist_noinst_SCRIPTS += RunTest
|
244 |
EXTRA_DIST += RunTest.bat
|
245 |
bin_PROGRAMS += pcretest
|
246 |
pcretest_SOURCES = pcretest.c
|
247 |
pcretest_LDADD = libpcreposix.la
|
248 |
|
249 |
TESTS += RunGrepTest
|
250 |
dist_noinst_SCRIPTS += RunGrepTest
|
251 |
bin_PROGRAMS += pcregrep
|
252 |
pcregrep_SOURCES = pcregrep.c
|
253 |
pcregrep_LDADD = libpcreposix.la
|
254 |
|
255 |
EXTRA_DIST += \
|
256 |
testdata/grepinput \
|
257 |
testdata/grepinput8 \
|
258 |
testdata/grepinputx \
|
259 |
testdata/greplist \
|
260 |
testdata/grepoutput \
|
261 |
testdata/grepoutput8 \
|
262 |
testdata/grepoutputN \
|
263 |
testdata/testinput1 \
|
264 |
testdata/testinput2 \
|
265 |
testdata/testinput3 \
|
266 |
testdata/testinput4 \
|
267 |
testdata/testinput5 \
|
268 |
testdata/testinput6 \
|
269 |
testdata/testinput7 \
|
270 |
testdata/testinput8 \
|
271 |
testdata/testinput9 \
|
272 |
testdata/testinput10 \
|
273 |
testdata/testoutput1 \
|
274 |
testdata/testoutput2 \
|
275 |
testdata/testoutput3 \
|
276 |
testdata/testoutput4 \
|
277 |
testdata/testoutput5 \
|
278 |
testdata/testoutput6 \
|
279 |
testdata/testoutput7 \
|
280 |
testdata/testoutput8 \
|
281 |
testdata/testoutput9 \
|
282 |
testdata/testoutput10 \
|
283 |
perltest.pl
|
284 |
|
285 |
CLEANFILES += \
|
286 |
testsavedregex \
|
287 |
teststderr \
|
288 |
testtry \
|
289 |
testNinput
|
290 |
|
291 |
# PCRE demonstration program
|
292 |
noinst_PROGRAMS += pcredemo
|
293 |
pcredemo_SOURCES = pcredemo.c
|
294 |
pcredemo_LDADD = libpcre.la
|
295 |
|
296 |
## Utility rules, documentation, etc.
|
297 |
|
298 |
# A compatibility line, the old build system worked with 'make test'
|
299 |
test: check ;
|
300 |
|
301 |
# We have .pc files for pkg-config users.
|
302 |
pkgconfigdir = $(libdir)/pkgconfig
|
303 |
pkgconfig_DATA = libpcre.pc
|
304 |
if WITH_PCRE_CPP
|
305 |
pkgconfig_DATA += libpcrecpp.pc
|
306 |
endif
|
307 |
|
308 |
dist_man_MANS = \
|
309 |
doc/pcre.3 \
|
310 |
doc/pcre-config.1 \
|
311 |
doc/pcre_compile.3 \
|
312 |
doc/pcre_compile2.3 \
|
313 |
doc/pcre_config.3 \
|
314 |
doc/pcre_copy_named_substring.3 \
|
315 |
doc/pcre_copy_substring.3 \
|
316 |
doc/pcre_dfa_exec.3 \
|
317 |
doc/pcre_exec.3 \
|
318 |
doc/pcre_free_substring.3 \
|
319 |
doc/pcre_free_substring_list.3 \
|
320 |
doc/pcre_fullinfo.3 \
|
321 |
doc/pcre_get_named_substring.3 \
|
322 |
doc/pcre_get_stringnumber.3 \
|
323 |
doc/pcre_get_stringtable_entries.3 \
|
324 |
doc/pcre_get_substring.3 \
|
325 |
doc/pcre_get_substring_list.3 \
|
326 |
doc/pcre_info.3 \
|
327 |
doc/pcre_maketables.3 \
|
328 |
doc/pcre_refcount.3 \
|
329 |
doc/pcre_study.3 \
|
330 |
doc/pcre_version.3 \
|
331 |
doc/pcreapi.3 \
|
332 |
doc/pcrebuild.3 \
|
333 |
doc/pcrecallout.3 \
|
334 |
doc/pcrecompat.3 \
|
335 |
doc/pcregrep.1 \
|
336 |
doc/pcrematching.3 \
|
337 |
doc/pcrepartial.3 \
|
338 |
doc/pcrepattern.3 \
|
339 |
doc/pcreperform.3 \
|
340 |
doc/pcreposix.3 \
|
341 |
doc/pcreprecompile.3 \
|
342 |
doc/pcresample.3 \
|
343 |
doc/pcrestack.3 \
|
344 |
doc/pcretest.1
|
345 |
|
346 |
pcrecpp_man = doc/pcrecpp.3
|
347 |
EXTRA_DIST += $(pcrecpp_man)
|
348 |
|
349 |
if WITH_PCRE_CPP
|
350 |
man_MANS = $(pcrecpp_man)
|
351 |
endif
|
352 |
|
353 |
## CMake support
|
354 |
|
355 |
EXTRA_DIST += \
|
356 |
CMakeLists.txt \
|
357 |
config-cmake.h.in
|
358 |
|
359 |
## end Makefile.am
|