1 ## Process this file with automake to produce Makefile.in.
3 ACLOCAL_AMFLAGS = -I m4
20 doc/html/pcre-config.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/pcredemo.html \
46 doc/html/pcregrep.html \
47 doc/html/pcrematching.html \
48 doc/html/pcrepartial.html \
49 doc/html/pcrepattern.html \
50 doc/html/pcreperform.html \
51 doc/html/pcreposix.html \
52 doc/html/pcreprecompile.html \
53 doc/html/pcresample.html \
54 doc/html/pcrestack.html \
55 doc/html/pcresyntax.html \
56 doc/html/pcretest.html
58 pcrecpp_html = doc/html/pcrecpp.html
59 dist_noinst_DATA = $(pcrecpp_html)
62 html_DATA = $(pcrecpp_html)
65 # The Libtool libraries to install. We'll add to this later.
68 # Unit tests you want to run when people type 'make check'.
69 # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
74 # Some of the binaries we make are to be installed, and others are
75 # (non-user-visible) helper programs needed to build libpcre.
79 # Additional files to delete on 'make clean' and 'make maintainer-clean'.
81 MAINTAINERCLEANFILES =
83 # Additional files to bundle with the distribution, over and above what
84 # the Autotools include by default.
87 # These files contain maintenance information
93 # These files are used in the preparation of a release
101 # These files are to do with building for Virtual Pascal
108 # These files are usable versions of pcre.h and config.h that are distributed
109 # for the benefit of people who are building PCRE manually, without the
115 pcre.h.generic: configure.ac
119 MAINTAINERCLEANFILES += pcre.h.generic
121 # These are the header files we'll install. We do not distribute pcre.h because
122 # it is generated from pcre.h.in.
123 nodist_include_HEADERS = \
128 # These additional headers will be be installed if C++ support is enabled. We
129 # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
130 # from corresponding .h.in files (which we do distribute).
132 nodist_include_HEADERS += \
138 endif # WITH_PCRE_CPP
140 bin_SCRIPTS = pcre-config
142 ## ---------------------------------------------------------------
143 ## The dftables program is used to rebuild character tables before compiling
144 ## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
145 ## program. The default (when --enable-rebuild-chartables is not specified) is
146 ## to copy a distributed set of tables that are defined for ASCII code. In this
147 ## case, dftables is not needed.
149 if WITH_REBUILD_CHARTABLES
151 noinst_PROGRAMS += dftables
152 dftables_SOURCES = dftables.c
154 pcre_chartables.c: dftables$(EXEEXT)
155 ./dftables$(EXEEXT) $@
158 pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
160 $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
162 endif # WITH_REBUILD_CHARTABLES
165 ## The main pcre library
166 lib_LTLIBRARIES += libpcre.la
167 libpcre_la_SOURCES = \
190 ## This file is generated as part of the building process, so don't distribute.
191 nodist_libpcre_la_SOURCES = \
194 # The pcre_printint.src file is #included by some source files, so it must be
195 # distributed. The pcre_chartables.c.dist file is the default version of
196 # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.
197 EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist
199 libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
201 CLEANFILES += pcre_chartables.c
203 ## A version of the main pcre library that has a posix re API.
204 lib_LTLIBRARIES += libpcreposix.la
205 libpcreposix_la_SOURCES = \
207 libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
208 libpcreposix_la_LIBADD = libpcre.la
210 ## There's a C++ library as well.
213 lib_LTLIBRARIES += libpcrecpp.la
214 libpcrecpp_la_SOURCES = \
219 libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
220 libpcrecpp_la_LIBADD = libpcre.la
222 TESTS += pcrecpp_unittest
223 noinst_PROGRAMS += pcrecpp_unittest
224 pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
225 pcrecpp_unittest_LDADD = libpcrecpp.la
227 TESTS += pcre_scanner_unittest
228 noinst_PROGRAMS += pcre_scanner_unittest
229 pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
230 pcre_scanner_unittest_LDADD = libpcrecpp.la
232 TESTS += pcre_stringpiece_unittest
233 noinst_PROGRAMS += pcre_stringpiece_unittest
234 pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
235 pcre_stringpiece_unittest_LDADD = libpcrecpp.la
237 endif # WITH_PCRE_CPP
239 ## The main unit tests
241 # Each unit test is a binary plus a script that runs that binary in various
242 # ways. We install these test binaries in case folks find it helpful.
245 dist_noinst_SCRIPTS += RunTest
246 EXTRA_DIST += RunTest.bat
247 bin_PROGRAMS += pcretest
248 pcretest_SOURCES = pcretest.c
249 pcretest_LDADD = libpcreposix.la $(LIBREADLINE)
252 dist_noinst_SCRIPTS += RunGrepTest
253 bin_PROGRAMS += pcregrep
254 pcregrep_SOURCES = pcregrep.c
255 pcregrep_LDADD = libpcreposix.la $(LIBZ) $(LIBBZ2)
259 testdata/grepinput8 \
260 testdata/grepinputv \
261 testdata/grepinputx \
263 testdata/grepoutput \
264 testdata/grepoutput8 \
265 testdata/grepoutputN \
266 testdata/testinput1 \
267 testdata/testinput2 \
268 testdata/testinput3 \
269 testdata/testinput4 \
270 testdata/testinput5 \
271 testdata/testinput6 \
272 testdata/testinput7 \
273 testdata/testinput8 \
274 testdata/testinput9 \
275 testdata/testinput10 \
276 testdata/testinput11 \
277 testdata/testinput12 \
278 testdata/testoutput1 \
279 testdata/testoutput2 \
280 testdata/testoutput3 \
281 testdata/testoutput4 \
282 testdata/testoutput5 \
283 testdata/testoutput6 \
284 testdata/testoutput7 \
285 testdata/testoutput8 \
286 testdata/testoutput9 \
287 testdata/testoutput10 \
288 testdata/testoutput11 \
289 testdata/testoutput12 \
290 testdata/wintestinput3 \
291 testdata/wintestoutput3 \
301 # PCRE demonstration program. No longer built automatcally. The point is that
302 # the users should build it themselves. So just distribute the source.
303 # noinst_PROGRAMS += pcredemo
304 # pcredemo_SOURCES = pcredemo.c
305 # pcredemo_LDADD = libpcre.la
307 EXTRA_DIST += pcredemo.c
310 ## Utility rules, documentation, etc.
312 # A compatibility line, the old build system worked with 'make test'
316 # A PCRE user submitted the following addition, saying that it "will allow
317 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
318 # nice DLL for Windows use". (It is used by the pcre.dll target.)
319 DLL_OBJS= pcre_compile.o pcre_config.o \
320 pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
321 pcre_globals.o pcre_info.o pcre_maketables.o \
322 pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
323 pcre_study.o pcre_tables.o pcre_try_flipped.o \
324 pcre_ucd.o pcre_valid_utf8.o pcre_version.o \
328 # A PCRE user submitted the following addition, saying that it "will allow
329 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
330 # nice DLL for Windows use".
331 pcre.dll: $(DLL_OBJS)
332 $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
335 # We have .pc files for pkg-config users.
336 pkgconfigdir = $(libdir)/pkgconfig
337 pkgconfig_DATA = libpcre.pc libpcreposix.pc
339 pkgconfig_DATA += libpcrecpp.pc
346 doc/pcre_compile2.3 \
348 doc/pcre_copy_named_substring.3 \
349 doc/pcre_copy_substring.3 \
350 doc/pcre_dfa_exec.3 \
352 doc/pcre_free_substring.3 \
353 doc/pcre_free_substring_list.3 \
354 doc/pcre_fullinfo.3 \
355 doc/pcre_get_named_substring.3 \
356 doc/pcre_get_stringnumber.3 \
357 doc/pcre_get_stringtable_entries.3 \
358 doc/pcre_get_substring.3 \
359 doc/pcre_get_substring_list.3 \
361 doc/pcre_maketables.3 \
362 doc/pcre_refcount.3 \
375 doc/pcreprecompile.3 \
381 pcrecpp_man = doc/pcrecpp.3
382 EXTRA_DIST += $(pcrecpp_man)
385 man_MANS = $(pcrecpp_man)
391 cmake/COPYING-CMAKE-SCRIPTS \
392 cmake/FindPackageHandleStandardArgs.cmake \
393 cmake/FindReadline.cmake \