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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 836 - (hide annotations) (download)
Wed Dec 28 17:16:11 2011 UTC (2 years, 7 months ago) by ph10
File size: 13453 byte(s)
Merging all the changes from the pcre16 branch into the trunk.

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 ph10 678 doc/html/pcre_jit_stack_alloc.html \
39     doc/html/pcre_jit_stack_free.html \
40 ph10 97 doc/html/pcre_maketables.html \
41     doc/html/pcre_refcount.html \
42     doc/html/pcre_study.html \
43     doc/html/pcre_version.html \
44     doc/html/pcreapi.html \
45     doc/html/pcrebuild.html \
46     doc/html/pcrecallout.html \
47     doc/html/pcrecompat.html \
48 ph10 466 doc/html/pcredemo.html \
49 ph10 97 doc/html/pcregrep.html \
50 ph10 678 doc/html/pcrejit.html \
51     doc/html/pcrelimits.html \
52 ph10 97 doc/html/pcrematching.html \
53     doc/html/pcrepartial.html \
54     doc/html/pcrepattern.html \
55     doc/html/pcreperform.html \
56     doc/html/pcreposix.html \
57     doc/html/pcreprecompile.html \
58     doc/html/pcresample.html \
59     doc/html/pcrestack.html \
60 ph10 232 doc/html/pcresyntax.html \
61 ph10 678 doc/html/pcretest.html \
62     doc/html/pcreunicode.html
63 ph10 97
64     pcrecpp_html = doc/html/pcrecpp.html
65     dist_noinst_DATA = $(pcrecpp_html)
66    
67     if WITH_PCRE_CPP
68     html_DATA = $(pcrecpp_html)
69     endif
70    
71     # The Libtool libraries to install. We'll add to this later.
72     lib_LTLIBRARIES =
73    
74     # Unit tests you want to run when people type 'make check'.
75     # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
76     TESTS =
77     check_SCRIPTS =
78 ph10 144 dist_noinst_SCRIPTS =
79 ph10 97
80     # Some of the binaries we make are to be installed, and others are
81 ph10 836 # (non-user-visible) helper programs needed to build libpcre or libpcre16.
82 ph10 97 bin_PROGRAMS =
83     noinst_PROGRAMS =
84    
85     # Additional files to delete on 'make clean' and 'make maintainer-clean'.
86     CLEANFILES =
87     MAINTAINERCLEANFILES =
88    
89 ph10 128 # Additional files to bundle with the distribution, over and above what
90 ph10 127 # the Autotools include by default.
91 ph10 97 EXTRA_DIST =
92    
93 ph10 111 # These files contain maintenance information
94     EXTRA_DIST += \
95     doc/perltest.txt \
96     NON-UNIX-USE \
97 ph10 128 HACKING
98 ph10 111
99     # These files are used in the preparation of a release
100     EXTRA_DIST += \
101     PrepareRelease \
102 ph10 836 CheckMan \
103 ph10 111 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 ph10 836 BUILT_SOURCES = pcre_chartables.c
172 ph10 128
173 ph10 97 ## The main pcre library
174 ph10 836
175     # Build the 8 bit library if it is enabled.
176     if WITH_PCRE8
177 ph10 97 lib_LTLIBRARIES += libpcre.la
178     libpcre_la_SOURCES = \
179 ph10 836 pcre_byte_order.c \
180 ph10 97 pcre_compile.c \
181     pcre_config.c \
182     pcre_dfa_exec.c \
183     pcre_exec.c \
184     pcre_fullinfo.c \
185     pcre_get.c \
186     pcre_globals.c \
187     pcre_internal.h \
188 ph10 667 pcre_jit_compile.c \
189 ph10 97 pcre_maketables.c \
190     pcre_newline.c \
191     pcre_ord2utf8.c \
192     pcre_refcount.c \
193 ph10 836 pcre_string_utils.c \
194 ph10 97 pcre_study.c \
195     pcre_tables.c \
196 ph10 349 pcre_ucd.c \
197 ph10 97 pcre_valid_utf8.c \
198     pcre_version.c \
199     pcre_xclass.c \
200 ph10 349 ucp.h
201 ph10 111
202 ph10 100 ## This file is generated as part of the building process, so don't distribute.
203 ph10 97 nodist_libpcre_la_SOURCES = \
204     pcre_chartables.c
205 ph10 111
206 ph10 836 endif # WITH_PCRE8
207 ph10 100
208 ph10 836 # Build the 16 bit library if it is enabled.
209     if WITH_PCRE16
210     lib_LTLIBRARIES += libpcre16.la
211     libpcre16_la_SOURCES = \
212     pcre16_byte_order.c \
213     pcre16_chartables.c \
214     pcre16_compile.c \
215     pcre16_config.c \
216     pcre16_dfa_exec.c \
217     pcre16_exec.c \
218     pcre16_fullinfo.c \
219     pcre16_get.c \
220     pcre16_globals.c \
221     pcre16_jit_compile.c \
222     pcre16_maketables.c \
223     pcre16_newline.c \
224     pcre16_ord2utf16.c \
225     pcre16_refcount.c \
226     pcre16_string_utils.c \
227     pcre16_study.c \
228     pcre16_tables.c \
229     pcre16_ucd.c \
230     pcre16_utf16_utils.c \
231     pcre16_valid_utf16.c \
232     pcre16_version.c \
233     pcre16_xclass.c
234    
235     ## This file is generated as part of the building process, so don't distribute.
236     nodist_libpcre16_la_SOURCES = \
237     pcre_chartables.c
238    
239     endif # WITH_PCRE16
240    
241     # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,
242     # used unless --enable-rebuild-chartables is specified.
243     EXTRA_DIST += pcre_chartables.c.dist
244    
245 ph10 667 # The JIT compiler lives in a separate directory, but its files are #included
246     # when pcre_jit_compile.c is processed, so they must be distributed.
247     EXTRA_DIST += \
248     sljit/sljitConfig.h \
249     sljit/sljitConfigInternal.h \
250     sljit/sljitExecAllocator.c \
251     sljit/sljitLir.c \
252     sljit/sljitLir.h \
253     sljit/sljitNativeARM_Thumb2.c \
254     sljit/sljitNativeARM_v5.c \
255     sljit/sljitNativeMIPS_32.c \
256     sljit/sljitNativeMIPS_common.c \
257     sljit/sljitNativePPC_32.c \
258     sljit/sljitNativePPC_64.c \
259     sljit/sljitNativePPC_common.c \
260     sljit/sljitNativeX86_32.c \
261     sljit/sljitNativeX86_64.c \
262     sljit/sljitNativeX86_common.c \
263     sljit/sljitUtils.c
264    
265 ph10 836 if WITH_PCRE8
266 ph10 97 libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
267 ph10 836 endif # WITH_PCRE8
268     if WITH_PCRE16
269     libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
270     endif # WITH_PCRE16
271 ph10 97
272     CLEANFILES += pcre_chartables.c
273    
274 ph10 698 ## If JIT support is enabled, arrange for the JIT test program to run.
275 ph10 667 if WITH_JIT
276     TESTS += pcre_jit_test
277     noinst_PROGRAMS += pcre_jit_test
278     pcre_jit_test_SOURCES = pcre_jit_test.c
279 ph10 836 pcre_jit_test_LDADD =
280     if WITH_PCRE8
281     pcre_jit_test_LDADD += libpcre.la
282     endif # WITH_PCRE8
283     if WITH_PCRE16
284     pcre_jit_test_LDADD += libpcre16.la
285     endif # WITH_PCRE16
286 ph10 667 endif # WITH_JIT
287    
288 ph10 97 ## A version of the main pcre library that has a posix re API.
289 ph10 836 if WITH_PCRE8
290 ph10 97 lib_LTLIBRARIES += libpcreposix.la
291     libpcreposix_la_SOURCES = \
292     pcreposix.c
293     libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
294     libpcreposix_la_LIBADD = libpcre.la
295 ph10 836 endif # WITH_PCRE8
296 ph10 97
297     ## There's a C++ library as well.
298     if WITH_PCRE_CPP
299    
300     lib_LTLIBRARIES += libpcrecpp.la
301     libpcrecpp_la_SOURCES = \
302 ph10 199 pcrecpp_internal.h \
303 ph10 97 pcrecpp.cc \
304     pcre_scanner.cc \
305     pcre_stringpiece.cc
306     libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
307     libpcrecpp_la_LIBADD = libpcre.la
308    
309     TESTS += pcrecpp_unittest
310     noinst_PROGRAMS += pcrecpp_unittest
311     pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
312     pcrecpp_unittest_LDADD = libpcrecpp.la
313    
314     TESTS += pcre_scanner_unittest
315     noinst_PROGRAMS += pcre_scanner_unittest
316     pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
317     pcre_scanner_unittest_LDADD = libpcrecpp.la
318    
319     TESTS += pcre_stringpiece_unittest
320     noinst_PROGRAMS += pcre_stringpiece_unittest
321     pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
322     pcre_stringpiece_unittest_LDADD = libpcrecpp.la
323    
324     endif # WITH_PCRE_CPP
325    
326     ## The main unit tests
327    
328     # Each unit test is a binary plus a script that runs that binary in various
329     # ways. We install these test binaries in case folks find it helpful.
330    
331     TESTS += RunTest
332 ph10 144 dist_noinst_SCRIPTS += RunTest
333 ph10 97 EXTRA_DIST += RunTest.bat
334     bin_PROGRAMS += pcretest
335     pcretest_SOURCES = pcretest.c
336 ph10 836 pcretest_LDADD = $(LIBREADLINE)
337     if WITH_PCRE8
338     pcretest_SOURCES += pcre_printint.c
339     pcretest_LDADD += libpcreposix.la
340     endif # WITH_PCRE8
341     if WITH_PCRE16
342     pcretest_SOURCES += pcre16_printint.c
343     pcretest_LDADD += libpcre16.la
344     endif # WITH_PCRE16
345 ph10 97
346 ph10 836 if WITH_PCRE8
347 ph10 97 TESTS += RunGrepTest
348 ph10 144 dist_noinst_SCRIPTS += RunGrepTest
349 ph10 97 bin_PROGRAMS += pcregrep
350     pcregrep_SOURCES = pcregrep.c
351 ph10 836 pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
352     pcregrep_LDADD += libpcreposix.la
353     endif # WITH_PCRE8
354 ph10 97
355     EXTRA_DIST += \
356     testdata/grepinput \
357 ph10 589 testdata/grepinput3 \
358 ph10 97 testdata/grepinput8 \
359 ph10 222 testdata/grepinputv \
360 ph10 97 testdata/grepinputx \
361     testdata/greplist \
362     testdata/grepoutput \
363     testdata/grepoutput8 \
364 ph10 131 testdata/grepoutputN \
365 ph10 97 testdata/testinput1 \
366     testdata/testinput2 \
367     testdata/testinput3 \
368     testdata/testinput4 \
369     testdata/testinput5 \
370     testdata/testinput6 \
371     testdata/testinput7 \
372     testdata/testinput8 \
373     testdata/testinput9 \
374 ph10 165 testdata/testinput10 \
375 ph10 448 testdata/testinput11 \
376     testdata/testinput12 \
377 ph10 652 testdata/testinput13 \
378 ph10 671 testdata/testinput14 \
379     testdata/testinput15 \
380 ph10 836 testdata/testinput16 \
381     testdata/testinput17 \
382     testdata/testinput18 \
383     testdata/testinput19 \
384 ph10 97 testdata/testoutput1 \
385     testdata/testoutput2 \
386     testdata/testoutput3 \
387     testdata/testoutput4 \
388     testdata/testoutput5 \
389     testdata/testoutput6 \
390     testdata/testoutput7 \
391     testdata/testoutput8 \
392     testdata/testoutput9 \
393 ph10 165 testdata/testoutput10 \
394 ph10 836 testdata/testoutput11-8 \
395     testdata/testoutput11-16 \
396 ph10 448 testdata/testoutput12 \
397 ph10 652 testdata/testoutput13 \
398 ph10 671 testdata/testoutput14 \
399     testdata/testoutput15 \
400 ph10 836 testdata/testoutput16 \
401     testdata/testoutput17 \
402     testdata/testoutput18 \
403     testdata/testoutput19 \
404 ph10 250 testdata/wintestinput3 \
405     testdata/wintestoutput3 \
406 ph10 97 perltest.pl
407    
408     CLEANFILES += \
409     testsavedregex \
410     teststderr \
411 ph10 160 testtry \
412     testNinput
413 ph10 97
414    
415 ph10 312 # PCRE demonstration program. No longer built automatcally. The point is that
416     # the users should build it themselves. So just distribute the source.
417     # noinst_PROGRAMS += pcredemo
418     # pcredemo_SOURCES = pcredemo.c
419     # pcredemo_LDADD = libpcre.la
420    
421     EXTRA_DIST += pcredemo.c
422    
423    
424 ph10 97 ## Utility rules, documentation, etc.
425    
426     # A compatibility line, the old build system worked with 'make test'
427     test: check ;
428    
429 ph10 307
430     # A PCRE user submitted the following addition, saying that it "will allow
431     # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
432     # nice DLL for Windows use". (It is used by the pcre.dll target.)
433 ph10 836 DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
434 ph10 307 pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
435 ph10 836 pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
436 ph10 307 pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
437 ph10 836 pcre_study.o pcre_tables.o pcre_ucd.o \
438     pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
439 ph10 307 pcre_xclass.o
440    
441     # A PCRE user submitted the following addition, saying that it "will allow
442     # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
443     # nice DLL for Windows use".
444     pcre.dll: $(DLL_OBJS)
445     $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
446    
447    
448 ph10 97 # We have .pc files for pkg-config users.
449     pkgconfigdir = $(libdir)/pkgconfig
450 ph10 423 pkgconfig_DATA = libpcre.pc libpcreposix.pc
451 ph10 836 if WITH_PCRE16
452     pkgconfig_DATA += libpcre16.pc
453     endif
454 ph10 97 if WITH_PCRE_CPP
455     pkgconfig_DATA += libpcrecpp.pc
456     endif
457    
458     dist_man_MANS = \
459     doc/pcre.3 \
460 ph10 153 doc/pcre-config.1 \
461 ph10 678 doc/pcre_assign_jit_stack.3 \
462 ph10 97 doc/pcre_compile.3 \
463     doc/pcre_compile2.3 \
464     doc/pcre_config.3 \
465     doc/pcre_copy_named_substring.3 \
466     doc/pcre_copy_substring.3 \
467     doc/pcre_dfa_exec.3 \
468     doc/pcre_exec.3 \
469 ph10 678 doc/pcre_free_study.3 \
470 ph10 97 doc/pcre_free_substring.3 \
471     doc/pcre_free_substring_list.3 \
472     doc/pcre_fullinfo.3 \
473     doc/pcre_get_named_substring.3 \
474     doc/pcre_get_stringnumber.3 \
475     doc/pcre_get_stringtable_entries.3 \
476     doc/pcre_get_substring.3 \
477     doc/pcre_get_substring_list.3 \
478 ph10 678 doc/pcre_jit_stack_alloc.3 \
479     doc/pcre_jit_stack_free.3 \
480 ph10 97 doc/pcre_maketables.3 \
481     doc/pcre_refcount.3 \
482     doc/pcre_study.3 \
483     doc/pcre_version.3 \
484     doc/pcreapi.3 \
485     doc/pcrebuild.3 \
486     doc/pcrecallout.3 \
487     doc/pcrecompat.3 \
488     doc/pcregrep.1 \
489 ph10 678 doc/pcrejit.3 \
490     doc/pcrelimits.3 \
491 ph10 97 doc/pcrematching.3 \
492     doc/pcrepartial.3 \
493     doc/pcrepattern.3 \
494     doc/pcreperform.3 \
495     doc/pcreposix.3 \
496     doc/pcreprecompile.3 \
497     doc/pcresample.3 \
498     doc/pcrestack.3 \
499 ph10 238 doc/pcresyntax.3 \
500 ph10 678 doc/pcretest.1 \
501     doc/pcreunicode.3
502 ph10 97
503     pcrecpp_man = doc/pcrecpp.3
504     EXTRA_DIST += $(pcrecpp_man)
505    
506     if WITH_PCRE_CPP
507     man_MANS = $(pcrecpp_man)
508     endif
509    
510     ## CMake support
511    
512     EXTRA_DIST += \
513 ph10 310 cmake/COPYING-CMAKE-SCRIPTS \
514     cmake/FindPackageHandleStandardArgs.cmake \
515     cmake/FindReadline.cmake \
516 ph10 97 CMakeLists.txt \
517     config-cmake.h.in
518    
519     ## end Makefile.am

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12