/[pcre]/code/tags/pcre-8.20/Makefile.am
ViewVC logotype

Contents of /code/tags/pcre-8.20/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 690 - (hide annotations) (download)
Sat Sep 10 16:19:31 2011 UTC (20 months, 1 week ago) by ph10
Original Path: code/trunk/Makefile.am
File size: 11969 byte(s)
Update full set of tests with many configurations.

1 ph10 97 ## Process this file with automake to produce Makefile.in.
2    
3 ph10 479 ACLOCAL_AMFLAGS = -I m4
4    
5 ph10 97 dist_doc_DATA = \
6     doc/pcre.txt \
7 ph10 153 doc/pcre-config.txt \
8 ph10 97 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 ph10 153 doc/html/pcre-config.html \
21 ph10 678 doc/html/pcre_assign_jit_stack.html \
22 ph10 97 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 ph10 678 doc/html/pcre_free_study.html \
30 ph10 97 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 ph10 678 doc/html/pcre_jit_stack_alloc.html \
40     doc/html/pcre_jit_stack_free.html \
41 ph10 97 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 ph10 466 doc/html/pcredemo.html \
50 ph10 97 doc/html/pcregrep.html \
51 ph10 678 doc/html/pcrejit.html \
52     doc/html/pcrelimits.html \
53 ph10 97 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 ph10 232 doc/html/pcresyntax.html \
62 ph10 678 doc/html/pcretest.html \
63     doc/html/pcreunicode.html
64 ph10 97
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 ph10 144 dist_noinst_SCRIPTS =
80 ph10 97
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 ph10 128 # Additional files to bundle with the distribution, over and above what
91 ph10 127 # the Autotools include by default.
92 ph10 97 EXTRA_DIST =
93    
94 ph10 111 # These files contain maintenance information
95     EXTRA_DIST += \
96     doc/perltest.txt \
97     NON-UNIX-USE \
98 ph10 128 HACKING
99 ph10 111
100     # These files are used in the preparation of a release
101     EXTRA_DIST += \
102     PrepareRelease \
103     CleanTxt \
104     Detrail \
105     132html \
106 ph10 127 doc/index.html.src
107 ph10 111
108 ph10 103 # These files are to do with building for Virtual Pascal
109     EXTRA_DIST += \
110     makevp.bat \
111 ph10 135 makevp_c.txt \
112     makevp_l.txt \
113 ph10 111 pcregexp.pas
114 ph10 103
115 ph10 111 # 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 ph10 144 pcre.h.generic: configure.ac
123     rm -f $@
124     cp -p pcre.h $@
125    
126     MAINTAINERCLEANFILES += pcre.h.generic
127    
128 ph10 111 # 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 ph10 97 include_HEADERS = \
133     pcreposix.h
134    
135 ph10 111 # 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 ph10 97 # from corresponding .h.in files (which we do distribute).
138     if WITH_PCRE_CPP
139 ph10 111 nodist_include_HEADERS += \
140 ph10 97 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 ph10 128 ## 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 ph10 97 noinst_PROGRAMS += dftables
159     dftables_SOURCES = dftables.c
160    
161     pcre_chartables.c: dftables$(EXEEXT)
162     ./dftables$(EXEEXT) $@
163 ph10 128 else
164 ph10 97
165 ph10 131 pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
166 ph10 137 rm -f $@
167     $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
168 ph10 128
169     endif # WITH_REBUILD_CHARTABLES
170    
171    
172 ph10 97 ## 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 ph10 667 pcre_jit_compile.c \
185 ph10 97 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 ph10 349 pcre_ucd.c \
193 ph10 97 pcre_valid_utf8.c \
194     pcre_version.c \
195     pcre_xclass.c \
196 ph10 349 ucp.h
197 ph10 111
198 ph10 100 ## This file is generated as part of the building process, so don't distribute.
199 ph10 97 nodist_libpcre_la_SOURCES = \
200     pcre_chartables.c
201 ph10 111
202 ph10 100 # The pcre_printint.src file is #included by some source files, so it must be
203 ph10 128 # 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 ph10 100
207 ph10 667 # 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 ph10 97 libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
228    
229     CLEANFILES += pcre_chartables.c
230    
231 ph10 690 ## If JIT support and UTF-8 is enabled, arrange for the JIT test program to run.
232 ph10 667 if WITH_JIT
233 ph10 690 if WITH_UTF8
234 ph10 667 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 ph10 690 endif # WITH_UTF8
239 ph10 667 endif # WITH_JIT
240    
241 ph10 97 ## 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 ph10 199 pcrecpp_internal.h \
254 ph10 97 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 ph10 144 dist_noinst_SCRIPTS += RunTest
284 ph10 97 EXTRA_DIST += RunTest.bat
285     bin_PROGRAMS += pcretest
286     pcretest_SOURCES = pcretest.c
287 ph10 376 pcretest_LDADD = libpcreposix.la $(LIBREADLINE)
288 ph10 97
289     TESTS += RunGrepTest
290 ph10 144 dist_noinst_SCRIPTS += RunGrepTest
291 ph10 97 bin_PROGRAMS += pcregrep
292     pcregrep_SOURCES = pcregrep.c
293 ph10 376 pcregrep_LDADD = libpcreposix.la $(LIBZ) $(LIBBZ2)
294 ph10 97
295     EXTRA_DIST += \
296     testdata/grepinput \
297 ph10 589 testdata/grepinput3 \
298 ph10 97 testdata/grepinput8 \
299 ph10 222 testdata/grepinputv \
300 ph10 97 testdata/grepinputx \
301     testdata/greplist \
302     testdata/grepoutput \
303     testdata/grepoutput8 \
304 ph10 131 testdata/grepoutputN \
305 ph10 97 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 ph10 165 testdata/testinput10 \
315 ph10 448 testdata/testinput11 \
316     testdata/testinput12 \
317 ph10 652 testdata/testinput13 \
318 ph10 671 testdata/testinput14 \
319     testdata/testinput15 \
320 ph10 97 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 ph10 165 testdata/testoutput10 \
330 ph10 448 testdata/testoutput11 \
331     testdata/testoutput12 \
332 ph10 652 testdata/testoutput13 \
333 ph10 671 testdata/testoutput14 \
334     testdata/testoutput15 \
335 ph10 250 testdata/wintestinput3 \
336     testdata/wintestoutput3 \
337 ph10 97 perltest.pl
338    
339     CLEANFILES += \
340     testsavedregex \
341     teststderr \
342 ph10 160 testtry \
343     testNinput
344 ph10 97
345    
346 ph10 312 # 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 ph10 97 ## Utility rules, documentation, etc.
356    
357     # A compatibility line, the old build system worked with 'make test'
358     test: check ;
359    
360 ph10 307
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 ph10 667 pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \
367 ph10 307 pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
368     pcre_study.o pcre_tables.o pcre_try_flipped.o \
369 ph10 349 pcre_ucd.o pcre_valid_utf8.o pcre_version.o \
370 ph10 307 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 ph10 97 # We have .pc files for pkg-config users.
381     pkgconfigdir = $(libdir)/pkgconfig
382 ph10 423 pkgconfig_DATA = libpcre.pc libpcreposix.pc
383 ph10 97 if WITH_PCRE_CPP
384     pkgconfig_DATA += libpcrecpp.pc
385     endif
386    
387     dist_man_MANS = \
388     doc/pcre.3 \
389 ph10 153 doc/pcre-config.1 \
390 ph10 678 doc/pcre_assign_jit_stack.3 \
391 ph10 97 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 ph10 678 doc/pcre_free_study.3 \
399 ph10 97 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 ph10 678 doc/pcre_jit_stack_alloc.3 \
409     doc/pcre_jit_stack_free.3 \
410 ph10 97 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 ph10 678 doc/pcrejit.3 \
420     doc/pcrelimits.3 \
421 ph10 97 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 ph10 238 doc/pcresyntax.3 \
430 ph10 678 doc/pcretest.1 \
431     doc/pcreunicode.3
432 ph10 97
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 ph10 310 cmake/COPYING-CMAKE-SCRIPTS \
444     cmake/FindPackageHandleStandardArgs.cmake \
445     cmake/FindReadline.cmake \
446 ph10 97 CMakeLists.txt \
447     config-cmake.h.in
448    
449     ## end Makefile.am

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12