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