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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 671 - (hide annotations) (download)
Tue Aug 23 11:17:49 2011 UTC (21 months ago) by ph10
File size: 11512 byte(s)
Refactor RunTest and add JIT-specific tests.

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12