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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 103 - (show annotations) (download)
Tue Mar 6 15:58:33 2007 UTC (7 years, 7 months ago) by ph10
File size: 8041 byte(s)
Ensure the VP-related files are distributed.

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12