/[pcre]/code/trunk/Makefile.am
ViewVC logotype

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 690 - (show annotations) (download)
Sat Sep 10 16:19:31 2011 UTC (2 years, 11 months ago) by ph10
File size: 11969 byte(s)
Update full set of tests with many configurations.

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.
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 lib_LTLIBRARIES += libpcre.la
174 libpcre_la_SOURCES = \
175 pcre_compile.c \
176 pcre_config.c \
177 pcre_dfa_exec.c \
178 pcre_exec.c \
179 pcre_fullinfo.c \
180 pcre_get.c \
181 pcre_globals.c \
182 pcre_info.c \
183 pcre_internal.h \
184 pcre_jit_compile.c \
185 pcre_maketables.c \
186 pcre_newline.c \
187 pcre_ord2utf8.c \
188 pcre_refcount.c \
189 pcre_study.c \
190 pcre_tables.c \
191 pcre_try_flipped.c \
192 pcre_ucd.c \
193 pcre_valid_utf8.c \
194 pcre_version.c \
195 pcre_xclass.c \
196 ucp.h
197
198 ## This file is generated as part of the building process, so don't distribute.
199 nodist_libpcre_la_SOURCES = \
200 pcre_chartables.c
201
202 # The pcre_printint.src file is #included by some source files, so it must be
203 # distributed. The pcre_chartables.c.dist file is the default version of
204 # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.
205 EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist
206
207 # The JIT compiler lives in a separate directory, but its files are #included
208 # when pcre_jit_compile.c is processed, so they must be distributed.
209 EXTRA_DIST += \
210 sljit/sljitConfig.h \
211 sljit/sljitConfigInternal.h \
212 sljit/sljitExecAllocator.c \
213 sljit/sljitLir.c \
214 sljit/sljitLir.h \
215 sljit/sljitNativeARM_Thumb2.c \
216 sljit/sljitNativeARM_v5.c \
217 sljit/sljitNativeMIPS_32.c \
218 sljit/sljitNativeMIPS_common.c \
219 sljit/sljitNativePPC_32.c \
220 sljit/sljitNativePPC_64.c \
221 sljit/sljitNativePPC_common.c \
222 sljit/sljitNativeX86_32.c \
223 sljit/sljitNativeX86_64.c \
224 sljit/sljitNativeX86_common.c \
225 sljit/sljitUtils.c
226
227 libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
228
229 CLEANFILES += pcre_chartables.c
230
231 ## If JIT support and UTF-8 is enabled, arrange for the JIT test program to run.
232 if WITH_JIT
233 if WITH_UTF8
234 TESTS += pcre_jit_test
235 noinst_PROGRAMS += pcre_jit_test
236 pcre_jit_test_SOURCES = pcre_jit_test.c
237 pcre_jit_test_LDADD = libpcre.la
238 endif # WITH_UTF8
239 endif # WITH_JIT
240
241 ## A version of the main pcre library that has a posix re API.
242 lib_LTLIBRARIES += libpcreposix.la
243 libpcreposix_la_SOURCES = \
244 pcreposix.c
245 libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
246 libpcreposix_la_LIBADD = libpcre.la
247
248 ## There's a C++ library as well.
249 if WITH_PCRE_CPP
250
251 lib_LTLIBRARIES += libpcrecpp.la
252 libpcrecpp_la_SOURCES = \
253 pcrecpp_internal.h \
254 pcrecpp.cc \
255 pcre_scanner.cc \
256 pcre_stringpiece.cc
257 libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
258 libpcrecpp_la_LIBADD = libpcre.la
259
260 TESTS += pcrecpp_unittest
261 noinst_PROGRAMS += pcrecpp_unittest
262 pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
263 pcrecpp_unittest_LDADD = libpcrecpp.la
264
265 TESTS += pcre_scanner_unittest
266 noinst_PROGRAMS += pcre_scanner_unittest
267 pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
268 pcre_scanner_unittest_LDADD = libpcrecpp.la
269
270 TESTS += pcre_stringpiece_unittest
271 noinst_PROGRAMS += pcre_stringpiece_unittest
272 pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
273 pcre_stringpiece_unittest_LDADD = libpcrecpp.la
274
275 endif # WITH_PCRE_CPP
276
277 ## The main unit tests
278
279 # Each unit test is a binary plus a script that runs that binary in various
280 # ways. We install these test binaries in case folks find it helpful.
281
282 TESTS += RunTest
283 dist_noinst_SCRIPTS += RunTest
284 EXTRA_DIST += RunTest.bat
285 bin_PROGRAMS += pcretest
286 pcretest_SOURCES = pcretest.c
287 pcretest_LDADD = libpcreposix.la $(LIBREADLINE)
288
289 TESTS += RunGrepTest
290 dist_noinst_SCRIPTS += RunGrepTest
291 bin_PROGRAMS += pcregrep
292 pcregrep_SOURCES = pcregrep.c
293 pcregrep_LDADD = libpcreposix.la $(LIBZ) $(LIBBZ2)
294
295 EXTRA_DIST += \
296 testdata/grepinput \
297 testdata/grepinput3 \
298 testdata/grepinput8 \
299 testdata/grepinputv \
300 testdata/grepinputx \
301 testdata/greplist \
302 testdata/grepoutput \
303 testdata/grepoutput8 \
304 testdata/grepoutputN \
305 testdata/testinput1 \
306 testdata/testinput2 \
307 testdata/testinput3 \
308 testdata/testinput4 \
309 testdata/testinput5 \
310 testdata/testinput6 \
311 testdata/testinput7 \
312 testdata/testinput8 \
313 testdata/testinput9 \
314 testdata/testinput10 \
315 testdata/testinput11 \
316 testdata/testinput12 \
317 testdata/testinput13 \
318 testdata/testinput14 \
319 testdata/testinput15 \
320 testdata/testoutput1 \
321 testdata/testoutput2 \
322 testdata/testoutput3 \
323 testdata/testoutput4 \
324 testdata/testoutput5 \
325 testdata/testoutput6 \
326 testdata/testoutput7 \
327 testdata/testoutput8 \
328 testdata/testoutput9 \
329 testdata/testoutput10 \
330 testdata/testoutput11 \
331 testdata/testoutput12 \
332 testdata/testoutput13 \
333 testdata/testoutput14 \
334 testdata/testoutput15 \
335 testdata/wintestinput3 \
336 testdata/wintestoutput3 \
337 perltest.pl
338
339 CLEANFILES += \
340 testsavedregex \
341 teststderr \
342 testtry \
343 testNinput
344
345
346 # PCRE demonstration program. No longer built automatcally. The point is that
347 # the users should build it themselves. So just distribute the source.
348 # noinst_PROGRAMS += pcredemo
349 # pcredemo_SOURCES = pcredemo.c
350 # pcredemo_LDADD = libpcre.la
351
352 EXTRA_DIST += pcredemo.c
353
354
355 ## Utility rules, documentation, etc.
356
357 # A compatibility line, the old build system worked with 'make test'
358 test: check ;
359
360
361 # A PCRE user submitted the following addition, saying that it "will allow
362 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
363 # nice DLL for Windows use". (It is used by the pcre.dll target.)
364 DLL_OBJS= pcre_compile.o pcre_config.o \
365 pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
366 pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \
367 pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
368 pcre_study.o pcre_tables.o pcre_try_flipped.o \
369 pcre_ucd.o pcre_valid_utf8.o pcre_version.o \
370 pcre_chartables.o \
371 pcre_xclass.o
372
373 # A PCRE user submitted the following addition, saying that it "will allow
374 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
375 # nice DLL for Windows use".
376 pcre.dll: $(DLL_OBJS)
377 $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
378
379
380 # We have .pc files for pkg-config users.
381 pkgconfigdir = $(libdir)/pkgconfig
382 pkgconfig_DATA = libpcre.pc libpcreposix.pc
383 if WITH_PCRE_CPP
384 pkgconfig_DATA += libpcrecpp.pc
385 endif
386
387 dist_man_MANS = \
388 doc/pcre.3 \
389 doc/pcre-config.1 \
390 doc/pcre_assign_jit_stack.3 \
391 doc/pcre_compile.3 \
392 doc/pcre_compile2.3 \
393 doc/pcre_config.3 \
394 doc/pcre_copy_named_substring.3 \
395 doc/pcre_copy_substring.3 \
396 doc/pcre_dfa_exec.3 \
397 doc/pcre_exec.3 \
398 doc/pcre_free_study.3 \
399 doc/pcre_free_substring.3 \
400 doc/pcre_free_substring_list.3 \
401 doc/pcre_fullinfo.3 \
402 doc/pcre_get_named_substring.3 \
403 doc/pcre_get_stringnumber.3 \
404 doc/pcre_get_stringtable_entries.3 \
405 doc/pcre_get_substring.3 \
406 doc/pcre_get_substring_list.3 \
407 doc/pcre_info.3 \
408 doc/pcre_jit_stack_alloc.3 \
409 doc/pcre_jit_stack_free.3 \
410 doc/pcre_maketables.3 \
411 doc/pcre_refcount.3 \
412 doc/pcre_study.3 \
413 doc/pcre_version.3 \
414 doc/pcreapi.3 \
415 doc/pcrebuild.3 \
416 doc/pcrecallout.3 \
417 doc/pcrecompat.3 \
418 doc/pcregrep.1 \
419 doc/pcrejit.3 \
420 doc/pcrelimits.3 \
421 doc/pcrematching.3 \
422 doc/pcrepartial.3 \
423 doc/pcrepattern.3 \
424 doc/pcreperform.3 \
425 doc/pcreposix.3 \
426 doc/pcreprecompile.3 \
427 doc/pcresample.3 \
428 doc/pcrestack.3 \
429 doc/pcresyntax.3 \
430 doc/pcretest.1 \
431 doc/pcreunicode.3
432
433 pcrecpp_man = doc/pcrecpp.3
434 EXTRA_DIST += $(pcrecpp_man)
435
436 if WITH_PCRE_CPP
437 man_MANS = $(pcrecpp_man)
438 endif
439
440 ## CMake support
441
442 EXTRA_DIST += \
443 cmake/COPYING-CMAKE-SCRIPTS \
444 cmake/FindPackageHandleStandardArgs.cmake \
445 cmake/FindReadline.cmake \
446 CMakeLists.txt \
447 config-cmake.h.in
448
449 ## end Makefile.am

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12