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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 698 - (hide annotations) (download)
Mon Sep 19 15:43:02 2011 UTC (3 years, 2 months ago) by ph10
File size: 11928 byte(s)
Revised pcre_jit_test that runs OK with or without UTF-8 and/or UCP.

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12