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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (show annotations) (download)
Mon Apr 2 13:32:07 2007 UTC (7 years, 4 months ago) by ph10
File size: 8870 byte(s)
Daniel's patches to add to the CMake support.

1 ## 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 dist_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 # Additional files to bundle with the distribution, over and above what
78 # the Autotools include by default.
79 EXTRA_DIST =
80
81 # These files contain maintenance information
82 EXTRA_DIST += \
83 doc/perltest.txt \
84 NON-UNIX-USE \
85 HACKING
86
87 # These files are used in the preparation of a release
88 EXTRA_DIST += \
89 PrepareRelease \
90 CleanTxt \
91 Detrail \
92 132html \
93 doc/index.html.src
94
95 # These files are to do with building for Virtual Pascal
96 EXTRA_DIST += \
97 makevp.bat \
98 makevp_c.txt \
99 makevp_l.txt \
100 pcregexp.pas
101
102 # 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 pcre.h.generic: configure.ac
110 rm -f $@
111 cp -p pcre.h $@
112
113 MAINTAINERCLEANFILES += pcre.h.generic
114
115 # These are the header files we'll install. We do not distribute pcre.h because
116 # it is generated from pcre.h.in.
117 nodist_include_HEADERS = \
118 pcre.h
119 include_HEADERS = \
120 pcreposix.h
121
122 # These additional headers will be be installed if C++ support is enabled. We
123 # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
124 # from corresponding .h.in files (which we do distribute).
125 if WITH_PCRE_CPP
126 nodist_include_HEADERS += \
127 pcrecpparg.h \
128 pcre_stringpiece.h
129 include_HEADERS += \
130 pcrecpp.h \
131 pcre_scanner.h
132 endif # WITH_PCRE_CPP
133
134 bin_SCRIPTS = pcre-config
135
136 ## ---------------------------------------------------------------
137 ## The dftables program is used to rebuild character tables before compiling
138 ## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
139 ## program. The default (when --enable-rebuild-chartables is not specified) is
140 ## to copy a distributed set of tables that are defined for ASCII code. In this
141 ## case, dftables is not needed.
142
143 if WITH_REBUILD_CHARTABLES
144
145 noinst_PROGRAMS += dftables
146 dftables_SOURCES = dftables.c
147
148 pcre_chartables.c: dftables$(EXEEXT)
149 ./dftables$(EXEEXT) $@
150 else
151
152 pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
153 rm -f $@
154 $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
155
156 endif # WITH_REBUILD_CHARTABLES
157
158
159 ## The main pcre library
160 lib_LTLIBRARIES += libpcre.la
161 libpcre_la_SOURCES = \
162 pcre_compile.c \
163 pcre_config.c \
164 pcre_dfa_exec.c \
165 pcre_exec.c \
166 pcre_fullinfo.c \
167 pcre_get.c \
168 pcre_globals.c \
169 pcre_info.c \
170 pcre_internal.h \
171 pcre_maketables.c \
172 pcre_newline.c \
173 pcre_ord2utf8.c \
174 pcre_refcount.c \
175 pcre_study.c \
176 pcre_tables.c \
177 pcre_try_flipped.c \
178 pcre_ucp_searchfuncs.c \
179 pcre_valid_utf8.c \
180 pcre_version.c \
181 pcre_xclass.c \
182 ucp.h \
183 ucpinternal.h \
184 ucptable.h
185
186 ## This file is generated as part of the building process, so don't distribute.
187 nodist_libpcre_la_SOURCES = \
188 pcre_chartables.c
189
190 # The pcre_printint.src file is #included by some source files, so it must be
191 # distributed. The pcre_chartables.c.dist file is the default version of
192 # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.
193 EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist
194
195 libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
196
197 CLEANFILES += pcre_chartables.c
198
199 ## A version of the main pcre library that has a posix re API.
200 lib_LTLIBRARIES += libpcreposix.la
201 libpcreposix_la_SOURCES = \
202 pcreposix.c
203 libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
204 libpcreposix_la_LIBADD = libpcre.la
205
206 ## There's a C++ library as well.
207 if WITH_PCRE_CPP
208
209 lib_LTLIBRARIES += libpcrecpp.la
210 libpcrecpp_la_SOURCES = \
211 pcrecpp.cc \
212 pcre_scanner.cc \
213 pcre_stringpiece.cc
214 libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
215 libpcrecpp_la_LIBADD = libpcre.la
216
217 TESTS += pcrecpp_unittest
218 noinst_PROGRAMS += pcrecpp_unittest
219 pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
220 pcrecpp_unittest_LDADD = libpcrecpp.la
221
222 TESTS += pcre_scanner_unittest
223 noinst_PROGRAMS += pcre_scanner_unittest
224 pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
225 pcre_scanner_unittest_LDADD = libpcrecpp.la
226
227 TESTS += pcre_stringpiece_unittest
228 noinst_PROGRAMS += pcre_stringpiece_unittest
229 pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
230 pcre_stringpiece_unittest_LDADD = libpcrecpp.la
231
232 endif # WITH_PCRE_CPP
233
234 ## The main unit tests
235
236 # Each unit test is a binary plus a script that runs that binary in various
237 # ways. We install these test binaries in case folks find it helpful.
238
239 TESTS += RunTest
240 dist_noinst_SCRIPTS += RunTest
241 EXTRA_DIST += RunTest.bat
242 bin_PROGRAMS += pcretest
243 pcretest_SOURCES = pcretest.c
244 pcretest_LDADD = libpcreposix.la
245
246 TESTS += RunGrepTest
247 dist_noinst_SCRIPTS += RunGrepTest
248 bin_PROGRAMS += pcregrep
249 pcregrep_SOURCES = pcregrep.c
250 pcregrep_LDADD = libpcreposix.la
251
252 EXTRA_DIST += \
253 testdata/grepinput \
254 testdata/grepinput8 \
255 testdata/grepinputx \
256 testdata/greplist \
257 testdata/grepoutput \
258 testdata/grepoutput8 \
259 testdata/grepoutputN \
260 testdata/testinput1 \
261 testdata/testinput2 \
262 testdata/testinput3 \
263 testdata/testinput4 \
264 testdata/testinput5 \
265 testdata/testinput6 \
266 testdata/testinput7 \
267 testdata/testinput8 \
268 testdata/testinput9 \
269 testdata/testoutput1 \
270 testdata/testoutput2 \
271 testdata/testoutput3 \
272 testdata/testoutput4 \
273 testdata/testoutput5 \
274 testdata/testoutput6 \
275 testdata/testoutput7 \
276 testdata/testoutput8 \
277 testdata/testoutput9 \
278 perltest.pl
279
280 CLEANFILES += \
281 testsavedregex \
282 teststderr \
283 testtry
284
285 # PCRE demonstration program
286 noinst_PROGRAMS += pcredemo
287 pcredemo_SOURCES = pcredemo.c
288 pcredemo_LDADD = libpcre.la
289
290 ## Utility rules, documentation, etc.
291
292 # A compatibility line, the old build system worked with 'make test'
293 test: check ;
294
295 # We have .pc files for pkg-config users.
296 pkgconfigdir = $(libdir)/pkgconfig
297 pkgconfig_DATA = libpcre.pc
298 if WITH_PCRE_CPP
299 pkgconfig_DATA += libpcrecpp.pc
300 endif
301
302 dist_man_MANS = \
303 doc/pcre.3 \
304 doc/pcre_compile.3 \
305 doc/pcre_compile2.3 \
306 doc/pcre_config.3 \
307 doc/pcre_copy_named_substring.3 \
308 doc/pcre_copy_substring.3 \
309 doc/pcre_dfa_exec.3 \
310 doc/pcre_exec.3 \
311 doc/pcre_free_substring.3 \
312 doc/pcre_free_substring_list.3 \
313 doc/pcre_fullinfo.3 \
314 doc/pcre_get_named_substring.3 \
315 doc/pcre_get_stringnumber.3 \
316 doc/pcre_get_stringtable_entries.3 \
317 doc/pcre_get_substring.3 \
318 doc/pcre_get_substring_list.3 \
319 doc/pcre_info.3 \
320 doc/pcre_maketables.3 \
321 doc/pcre_refcount.3 \
322 doc/pcre_study.3 \
323 doc/pcre_version.3 \
324 doc/pcreapi.3 \
325 doc/pcrebuild.3 \
326 doc/pcrecallout.3 \
327 doc/pcrecompat.3 \
328 doc/pcregrep.1 \
329 doc/pcrematching.3 \
330 doc/pcrepartial.3 \
331 doc/pcrepattern.3 \
332 doc/pcreperform.3 \
333 doc/pcreposix.3 \
334 doc/pcreprecompile.3 \
335 doc/pcresample.3 \
336 doc/pcrestack.3 \
337 doc/pcretest.1
338
339 pcrecpp_man = doc/pcrecpp.3
340 EXTRA_DIST += $(pcrecpp_man)
341
342 if WITH_PCRE_CPP
343 man_MANS = $(pcrecpp_man)
344 endif
345
346 ## CMake support
347
348 EXTRA_DIST += \
349 CMakeLists.txt \
350 config-cmake.h.in
351
352 ## end Makefile.am

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12