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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 128 - (hide annotations) (download)
Tue Mar 20 11:46:50 2007 UTC (7 years, 4 months ago) by ph10
File size: 8847 byte(s)
Make the use of dftables optional, and not the default. Further tidies to 
documentation.

1 ph10 97 ## Process this file with automake to produce Makefile.in.
2    
3     dist_doc_DATA = \
4     doc/pcre.txt \
5     doc/pcregrep.txt \
6     doc/pcretest.txt \
7     AUTHORS \
8     COPYING \
9     ChangeLog \
10     LICENCE \
11     NEWS \
12     README
13    
14     dist_html_DATA = \
15     doc/html/index.html \
16     doc/html/pcre.html \
17     doc/html/pcre_compile.html \
18     doc/html/pcre_compile2.html \
19     doc/html/pcre_config.html \
20     doc/html/pcre_copy_named_substring.html \
21     doc/html/pcre_copy_substring.html \
22     doc/html/pcre_dfa_exec.html \
23     doc/html/pcre_exec.html \
24     doc/html/pcre_free_substring.html \
25     doc/html/pcre_free_substring_list.html \
26     doc/html/pcre_fullinfo.html \
27     doc/html/pcre_get_named_substring.html \
28     doc/html/pcre_get_stringnumber.html \
29     doc/html/pcre_get_stringtable_entries.html \
30     doc/html/pcre_get_substring.html \
31     doc/html/pcre_get_substring_list.html \
32     doc/html/pcre_info.html \
33     doc/html/pcre_maketables.html \
34     doc/html/pcre_refcount.html \
35     doc/html/pcre_study.html \
36     doc/html/pcre_version.html \
37     doc/html/pcreapi.html \
38     doc/html/pcrebuild.html \
39     doc/html/pcrecallout.html \
40     doc/html/pcrecompat.html \
41     doc/html/pcregrep.html \
42     doc/html/pcrematching.html \
43     doc/html/pcrepartial.html \
44     doc/html/pcrepattern.html \
45     doc/html/pcreperform.html \
46     doc/html/pcreposix.html \
47     doc/html/pcreprecompile.html \
48     doc/html/pcresample.html \
49     doc/html/pcrestack.html \
50     doc/html/pcretest.html
51    
52     pcrecpp_html = doc/html/pcrecpp.html
53     dist_noinst_DATA = $(pcrecpp_html)
54    
55     if WITH_PCRE_CPP
56     html_DATA = $(pcrecpp_html)
57     endif
58    
59     # The Libtool libraries to install. We'll add to this later.
60     lib_LTLIBRARIES =
61    
62     # Unit tests you want to run when people type 'make check'.
63     # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
64     TESTS =
65     check_SCRIPTS =
66     noinst_SCRIPTS =
67    
68     # Some of the binaries we make are to be installed, and others are
69     # (non-user-visible) helper programs needed to build libpcre.
70     bin_PROGRAMS =
71     noinst_PROGRAMS =
72    
73     # Additional files to delete on 'make clean' and 'make maintainer-clean'.
74     CLEANFILES =
75     MAINTAINERCLEANFILES =
76    
77 ph10 128 # Additional files to bundle with the distribution, over and above what
78 ph10 127 # the Autotools include by default.
79 ph10 97 EXTRA_DIST =
80    
81 ph10 111 # These files contain maintenance information
82     EXTRA_DIST += \
83     doc/perltest.txt \
84     NON-UNIX-USE \
85 ph10 128 HACKING
86 ph10 111
87     # These files are used in the preparation of a release
88     EXTRA_DIST += \
89     PrepareRelease \
90     CleanTxt \
91     Detrail \
92     132html \
93 ph10 127 doc/index.html.src
94 ph10 111
95 ph10 103 # These files are to do with building for Virtual Pascal
96     EXTRA_DIST += \
97     makevp.bat \
98 ph10 127 makevp-compile.txt \
99     makevp-linklib.txt \
100 ph10 111 pcregexp.pas
101 ph10 103
102 ph10 111 # These files are usable versions of pcre.h and config.h that are distributed
103     # for the benefit of people who are building PCRE manually, without the
104     # Autotools support.
105     EXTRA_DIST += \
106     pcre.h.generic \
107     config.h.generic
108    
109     # These are the header files we'll install. We do not distribute pcre.h because
110     # it is generated from pcre.h.in.
111     nodist_include_HEADERS = \
112     pcre.h
113 ph10 97 include_HEADERS = \
114     pcreposix.h
115    
116 ph10 111 # These additional headers will be be installed if C++ support is enabled. We
117     # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
118 ph10 97 # from corresponding .h.in files (which we do distribute).
119     if WITH_PCRE_CPP
120 ph10 111 nodist_include_HEADERS += \
121 ph10 97 pcrecpparg.h \
122     pcre_stringpiece.h
123     include_HEADERS += \
124     pcrecpp.h \
125     pcre_scanner.h
126     endif # WITH_PCRE_CPP
127    
128     bin_SCRIPTS = pcre-config
129    
130     ## ---------------------------------------------------------------
131 ph10 128 ## The dftables program is used to rebuild character tables before compiling
132     ## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
133     ## program. The default (when --enable-rebuild-chartables is not specified) is
134     ## to copy a distributed set of tables that are defined for ASCII code. In this
135     ## case, dftables is not needed.
136    
137     if WITH_REBUILD_CHARTABLES
138    
139 ph10 97 noinst_PROGRAMS += dftables
140     dftables_SOURCES = dftables.c
141    
142     pcre_chartables.c: dftables$(EXEEXT)
143     ./dftables$(EXEEXT) $@
144 ph10 128 else
145 ph10 97
146 ph10 128 pcre_chartables.c: pcre_chartables.c.dist
147     cp pcre_chartables.c.dist pcre_chartables.c
148    
149     endif # WITH_REBUILD_CHARTABLES
150    
151    
152 ph10 97 ## The main pcre library
153     lib_LTLIBRARIES += libpcre.la
154     libpcre_la_SOURCES = \
155     pcre_compile.c \
156     pcre_config.c \
157     pcre_dfa_exec.c \
158     pcre_exec.c \
159     pcre_fullinfo.c \
160     pcre_get.c \
161     pcre_globals.c \
162     pcre_info.c \
163     pcre_internal.h \
164     pcre_maketables.c \
165     pcre_newline.c \
166     pcre_ord2utf8.c \
167     pcre_refcount.c \
168     pcre_study.c \
169     pcre_tables.c \
170     pcre_try_flipped.c \
171     pcre_ucp_searchfuncs.c \
172     pcre_valid_utf8.c \
173     pcre_version.c \
174     pcre_xclass.c \
175     ucp.h \
176     ucpinternal.h \
177     ucptable.h
178 ph10 111
179 ph10 100 ## This file is generated as part of the building process, so don't distribute.
180 ph10 97 nodist_libpcre_la_SOURCES = \
181     pcre_chartables.c
182 ph10 111
183 ph10 100 # The pcre_printint.src file is #included by some source files, so it must be
184 ph10 128 # distributed. The pcre_chartables.c.dist file is the default version of
185     # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.
186     EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist
187 ph10 100
188 ph10 97 libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
189    
190     CLEANFILES += pcre_chartables.c
191    
192     ## A version of the main pcre library that has a posix re API.
193     lib_LTLIBRARIES += libpcreposix.la
194     libpcreposix_la_SOURCES = \
195     pcreposix.c
196     libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
197     libpcreposix_la_LIBADD = libpcre.la
198    
199     ## There's a C++ library as well.
200     if WITH_PCRE_CPP
201    
202     lib_LTLIBRARIES += libpcrecpp.la
203     libpcrecpp_la_SOURCES = \
204     pcrecpp.cc \
205     pcre_scanner.cc \
206     pcre_stringpiece.cc
207     libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
208     libpcrecpp_la_LIBADD = libpcre.la
209    
210     TESTS += pcrecpp_unittest
211     noinst_PROGRAMS += pcrecpp_unittest
212     pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
213     pcrecpp_unittest_LDADD = libpcrecpp.la
214    
215     TESTS += pcre_scanner_unittest
216     noinst_PROGRAMS += pcre_scanner_unittest
217     pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
218     pcre_scanner_unittest_LDADD = libpcrecpp.la
219    
220     TESTS += pcre_stringpiece_unittest
221     noinst_PROGRAMS += pcre_stringpiece_unittest
222     pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
223     pcre_stringpiece_unittest_LDADD = libpcrecpp.la
224    
225     endif # WITH_PCRE_CPP
226    
227     ## The main unit tests
228    
229     # Each unit test is a binary plus a script that runs that binary in various
230     # ways. We install these test binaries in case folks find it helpful.
231    
232     TESTS += RunTest
233     noinst_SCRIPTS += RunTest
234     EXTRA_DIST += RunTest.bat
235     bin_PROGRAMS += pcretest
236     pcretest_SOURCES = pcretest.c
237     pcretest_LDADD = libpcreposix.la
238    
239     TESTS += RunGrepTest
240     noinst_SCRIPTS += RunGrepTest
241     bin_PROGRAMS += pcregrep
242     pcregrep_SOURCES = pcregrep.c
243     pcregrep_LDADD = libpcreposix.la
244    
245     EXTRA_DIST += \
246     testdata/grepinput \
247     testdata/grepinput8 \
248     testdata/grepinputx \
249     testdata/greplist \
250     testdata/grepoutput \
251     testdata/grepoutput8 \
252     testdata/testinput1 \
253     testdata/testinput2 \
254     testdata/testinput3 \
255     testdata/testinput4 \
256     testdata/testinput5 \
257     testdata/testinput6 \
258     testdata/testinput7 \
259     testdata/testinput8 \
260     testdata/testinput9 \
261     testdata/testoutput1 \
262     testdata/testoutput2 \
263     testdata/testoutput3 \
264     testdata/testoutput4 \
265     testdata/testoutput5 \
266     testdata/testoutput6 \
267     testdata/testoutput7 \
268     testdata/testoutput8 \
269     testdata/testoutput9 \
270     perltest.pl
271    
272     CLEANFILES += \
273     testsavedregex \
274     teststderr \
275     testtry
276    
277     # PCRE demonstration program
278     noinst_PROGRAMS += pcredemo
279     pcredemo_SOURCES = pcredemo.c
280     pcredemo_LDADD = libpcre.la
281    
282     ## Utility rules, documentation, etc.
283    
284     # A compatibility line, the old build system worked with 'make test'
285     test: check ;
286    
287     # We have .pc files for pkg-config users.
288     pkgconfigdir = $(libdir)/pkgconfig
289     pkgconfig_DATA = libpcre.pc
290     if WITH_PCRE_CPP
291     pkgconfig_DATA += libpcrecpp.pc
292     endif
293    
294     dist_man_MANS = \
295     doc/pcre.3 \
296     doc/pcre_compile.3 \
297     doc/pcre_compile2.3 \
298     doc/pcre_config.3 \
299     doc/pcre_copy_named_substring.3 \
300     doc/pcre_copy_substring.3 \
301     doc/pcre_dfa_exec.3 \
302     doc/pcre_exec.3 \
303     doc/pcre_free_substring.3 \
304     doc/pcre_free_substring_list.3 \
305     doc/pcre_fullinfo.3 \
306     doc/pcre_get_named_substring.3 \
307     doc/pcre_get_stringnumber.3 \
308     doc/pcre_get_stringtable_entries.3 \
309     doc/pcre_get_substring.3 \
310     doc/pcre_get_substring_list.3 \
311     doc/pcre_info.3 \
312     doc/pcre_maketables.3 \
313     doc/pcre_refcount.3 \
314     doc/pcre_study.3 \
315     doc/pcre_version.3 \
316     doc/pcreapi.3 \
317     doc/pcrebuild.3 \
318     doc/pcrecallout.3 \
319     doc/pcrecompat.3 \
320     doc/pcregrep.1 \
321     doc/pcrematching.3 \
322     doc/pcrepartial.3 \
323     doc/pcrepattern.3 \
324     doc/pcreperform.3 \
325     doc/pcreposix.3 \
326     doc/pcreprecompile.3 \
327     doc/pcresample.3 \
328     doc/pcrestack.3 \
329     doc/pcretest.1
330    
331     pcrecpp_man = doc/pcrecpp.3
332     EXTRA_DIST += $(pcrecpp_man)
333    
334     if WITH_PCRE_CPP
335     man_MANS = $(pcrecpp_man)
336     endif
337    
338     ## CMake support
339    
340     EXTRA_DIST += \
341     CMakeLists.txt \
342     config-cmake.h.in
343    
344     config-cmake.h.in: config.h.in
345     sed 's/#undef/#cmakedefine/g' config.h.in >$@
346    
347     MAINTAINERCLEANFILES += config-cmake.h.in
348    
349     ## end Makefile.am

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12