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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 448 - (show annotations) (download)
Tue Sep 15 19:11:48 2009 UTC (5 years ago) by ph10
File size: 10379 byte(s)
Re-organize tests to make is possible to test 5.10 features against Perl.

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/pcresyntax.html \
53 doc/html/pcretest.html
54
55 pcrecpp_html = doc/html/pcrecpp.html
56 dist_noinst_DATA = $(pcrecpp_html)
57
58 if WITH_PCRE_CPP
59 html_DATA = $(pcrecpp_html)
60 endif
61
62 # The Libtool libraries to install. We'll add to this later.
63 lib_LTLIBRARIES =
64
65 # Unit tests you want to run when people type 'make check'.
66 # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
67 TESTS =
68 check_SCRIPTS =
69 dist_noinst_SCRIPTS =
70
71 # Some of the binaries we make are to be installed, and others are
72 # (non-user-visible) helper programs needed to build libpcre.
73 bin_PROGRAMS =
74 noinst_PROGRAMS =
75
76 # Additional files to delete on 'make clean' and 'make maintainer-clean'.
77 CLEANFILES =
78 MAINTAINERCLEANFILES =
79
80 # Additional files to bundle with the distribution, over and above what
81 # the Autotools include by default.
82 EXTRA_DIST =
83
84 # These files contain maintenance information
85 EXTRA_DIST += \
86 doc/perltest.txt \
87 NON-UNIX-USE \
88 HACKING
89
90 # These files are used in the preparation of a release
91 EXTRA_DIST += \
92 PrepareRelease \
93 CleanTxt \
94 Detrail \
95 132html \
96 doc/index.html.src
97
98 # These files are to do with building for Virtual Pascal
99 EXTRA_DIST += \
100 makevp.bat \
101 makevp_c.txt \
102 makevp_l.txt \
103 pcregexp.pas
104
105 # These files are usable versions of pcre.h and config.h that are distributed
106 # for the benefit of people who are building PCRE manually, without the
107 # Autotools support.
108 EXTRA_DIST += \
109 pcre.h.generic \
110 config.h.generic
111
112 pcre.h.generic: configure.ac
113 rm -f $@
114 cp -p pcre.h $@
115
116 MAINTAINERCLEANFILES += pcre.h.generic
117
118 # These are the header files we'll install. We do not distribute pcre.h because
119 # it is generated from pcre.h.in.
120 nodist_include_HEADERS = \
121 pcre.h
122 include_HEADERS = \
123 pcreposix.h
124
125 # These additional headers will be be installed if C++ support is enabled. We
126 # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
127 # from corresponding .h.in files (which we do distribute).
128 if WITH_PCRE_CPP
129 nodist_include_HEADERS += \
130 pcrecpparg.h \
131 pcre_stringpiece.h
132 include_HEADERS += \
133 pcrecpp.h \
134 pcre_scanner.h
135 endif # WITH_PCRE_CPP
136
137 bin_SCRIPTS = pcre-config
138
139 ## ---------------------------------------------------------------
140 ## The dftables program is used to rebuild character tables before compiling
141 ## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
142 ## program. The default (when --enable-rebuild-chartables is not specified) is
143 ## to copy a distributed set of tables that are defined for ASCII code. In this
144 ## case, dftables is not needed.
145
146 if WITH_REBUILD_CHARTABLES
147
148 noinst_PROGRAMS += dftables
149 dftables_SOURCES = dftables.c
150
151 pcre_chartables.c: dftables$(EXEEXT)
152 ./dftables$(EXEEXT) $@
153 else
154
155 pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
156 rm -f $@
157 $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
158
159 endif # WITH_REBUILD_CHARTABLES
160
161
162 ## The main pcre library
163 lib_LTLIBRARIES += libpcre.la
164 libpcre_la_SOURCES = \
165 pcre_compile.c \
166 pcre_config.c \
167 pcre_dfa_exec.c \
168 pcre_exec.c \
169 pcre_fullinfo.c \
170 pcre_get.c \
171 pcre_globals.c \
172 pcre_info.c \
173 pcre_internal.h \
174 pcre_maketables.c \
175 pcre_newline.c \
176 pcre_ord2utf8.c \
177 pcre_refcount.c \
178 pcre_study.c \
179 pcre_tables.c \
180 pcre_try_flipped.c \
181 pcre_ucd.c \
182 pcre_valid_utf8.c \
183 pcre_version.c \
184 pcre_xclass.c \
185 ucp.h
186
187 ## This file is generated as part of the building process, so don't distribute.
188 nodist_libpcre_la_SOURCES = \
189 pcre_chartables.c
190
191 # The pcre_printint.src file is #included by some source files, so it must be
192 # distributed. The pcre_chartables.c.dist file is the default version of
193 # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.
194 EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist
195
196 libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
197
198 CLEANFILES += pcre_chartables.c
199
200 ## A version of the main pcre library that has a posix re API.
201 lib_LTLIBRARIES += libpcreposix.la
202 libpcreposix_la_SOURCES = \
203 pcreposix.c
204 libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
205 libpcreposix_la_LIBADD = libpcre.la
206
207 ## There's a C++ library as well.
208 if WITH_PCRE_CPP
209
210 lib_LTLIBRARIES += libpcrecpp.la
211 libpcrecpp_la_SOURCES = \
212 pcrecpp_internal.h \
213 pcrecpp.cc \
214 pcre_scanner.cc \
215 pcre_stringpiece.cc
216 libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
217 libpcrecpp_la_LIBADD = libpcre.la
218
219 TESTS += pcrecpp_unittest
220 noinst_PROGRAMS += pcrecpp_unittest
221 pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
222 pcrecpp_unittest_LDADD = libpcrecpp.la
223
224 TESTS += pcre_scanner_unittest
225 noinst_PROGRAMS += pcre_scanner_unittest
226 pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
227 pcre_scanner_unittest_LDADD = libpcrecpp.la
228
229 TESTS += pcre_stringpiece_unittest
230 noinst_PROGRAMS += pcre_stringpiece_unittest
231 pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
232 pcre_stringpiece_unittest_LDADD = libpcrecpp.la
233
234 endif # WITH_PCRE_CPP
235
236 ## The main unit tests
237
238 # Each unit test is a binary plus a script that runs that binary in various
239 # ways. We install these test binaries in case folks find it helpful.
240
241 TESTS += RunTest
242 dist_noinst_SCRIPTS += RunTest
243 EXTRA_DIST += RunTest.bat
244 bin_PROGRAMS += pcretest
245 pcretest_SOURCES = pcretest.c
246 pcretest_LDADD = libpcreposix.la $(LIBREADLINE)
247
248 TESTS += RunGrepTest
249 dist_noinst_SCRIPTS += RunGrepTest
250 bin_PROGRAMS += pcregrep
251 pcregrep_SOURCES = pcregrep.c
252 pcregrep_LDADD = libpcreposix.la $(LIBZ) $(LIBBZ2)
253
254 EXTRA_DIST += \
255 testdata/grepinput \
256 testdata/grepinput8 \
257 testdata/grepinputv \
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/testinput11 \
274 testdata/testinput12 \
275 testdata/testoutput1 \
276 testdata/testoutput2 \
277 testdata/testoutput3 \
278 testdata/testoutput4 \
279 testdata/testoutput5 \
280 testdata/testoutput6 \
281 testdata/testoutput7 \
282 testdata/testoutput8 \
283 testdata/testoutput9 \
284 testdata/testoutput10 \
285 testdata/testoutput11 \
286 testdata/testoutput12 \
287 testdata/wintestinput3 \
288 testdata/wintestoutput3 \
289 perltest.pl
290
291 CLEANFILES += \
292 testsavedregex \
293 teststderr \
294 testtry \
295 testNinput
296
297
298 # PCRE demonstration program. No longer built automatcally. The point is that
299 # the users should build it themselves. So just distribute the source.
300 # noinst_PROGRAMS += pcredemo
301 # pcredemo_SOURCES = pcredemo.c
302 # pcredemo_LDADD = libpcre.la
303
304 EXTRA_DIST += pcredemo.c
305
306
307 ## Utility rules, documentation, etc.
308
309 # A compatibility line, the old build system worked with 'make test'
310 test: check ;
311
312
313 # A PCRE user submitted the following addition, saying that it "will allow
314 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
315 # nice DLL for Windows use". (It is used by the pcre.dll target.)
316 DLL_OBJS= pcre_compile.o pcre_config.o \
317 pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
318 pcre_globals.o pcre_info.o pcre_maketables.o \
319 pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
320 pcre_study.o pcre_tables.o pcre_try_flipped.o \
321 pcre_ucd.o pcre_valid_utf8.o pcre_version.o \
322 pcre_chartables.o \
323 pcre_xclass.o
324
325 # A PCRE user submitted the following addition, saying that it "will allow
326 # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
327 # nice DLL for Windows use".
328 pcre.dll: $(DLL_OBJS)
329 $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
330
331
332 # We have .pc files for pkg-config users.
333 pkgconfigdir = $(libdir)/pkgconfig
334 pkgconfig_DATA = libpcre.pc libpcreposix.pc
335 if WITH_PCRE_CPP
336 pkgconfig_DATA += libpcrecpp.pc
337 endif
338
339 dist_man_MANS = \
340 doc/pcre.3 \
341 doc/pcre-config.1 \
342 doc/pcre_compile.3 \
343 doc/pcre_compile2.3 \
344 doc/pcre_config.3 \
345 doc/pcre_copy_named_substring.3 \
346 doc/pcre_copy_substring.3 \
347 doc/pcre_dfa_exec.3 \
348 doc/pcre_exec.3 \
349 doc/pcre_free_substring.3 \
350 doc/pcre_free_substring_list.3 \
351 doc/pcre_fullinfo.3 \
352 doc/pcre_get_named_substring.3 \
353 doc/pcre_get_stringnumber.3 \
354 doc/pcre_get_stringtable_entries.3 \
355 doc/pcre_get_substring.3 \
356 doc/pcre_get_substring_list.3 \
357 doc/pcre_info.3 \
358 doc/pcre_maketables.3 \
359 doc/pcre_refcount.3 \
360 doc/pcre_study.3 \
361 doc/pcre_version.3 \
362 doc/pcreapi.3 \
363 doc/pcrebuild.3 \
364 doc/pcrecallout.3 \
365 doc/pcrecompat.3 \
366 doc/pcregrep.1 \
367 doc/pcrematching.3 \
368 doc/pcrepartial.3 \
369 doc/pcrepattern.3 \
370 doc/pcreperform.3 \
371 doc/pcreposix.3 \
372 doc/pcreprecompile.3 \
373 doc/pcresample.3 \
374 doc/pcrestack.3 \
375 doc/pcresyntax.3 \
376 doc/pcretest.1
377
378 pcrecpp_man = doc/pcrecpp.3
379 EXTRA_DIST += $(pcrecpp_man)
380
381 if WITH_PCRE_CPP
382 man_MANS = $(pcrecpp_man)
383 endif
384
385 ## CMake support
386
387 EXTRA_DIST += \
388 cmake/COPYING-CMAKE-SCRIPTS \
389 cmake/FindPackageHandleStandardArgs.cmake \
390 cmake/FindReadline.cmake \
391 CMakeLists.txt \
392 config-cmake.h.in
393
394 ## end Makefile.am

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12