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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 98 - (show annotations) (download)
Mon Mar 5 15:55:02 2007 UTC (7 years, 7 months ago) by ph10
File size: 7507 byte(s)
This is a second preliminary update, after having done a test build and also a 
check of the maintenance programs. The version is now 7.1-RC1. In autogen.sh, 
autoheader is now before automake, and Tech.Notes (being now in the "maintain" 
directory) are no longer 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 are the header files we'll install. Note that while pcre.h is
84 # generated from pcre.h.in, we want to include it in the distribution so
85 # that users building without Autotools support have an easier time of it.
86 include_HEADERS = \
87 pcre.h \
88 pcreposix.h
89
90 # These will be installed too, if C++ support is enabled. We don't
91 # distribute pcrecpparg.h nor pcre_stringpiece.h, as these are generated
92 # from corresponding .h.in files (which we do distribute).
93 if WITH_PCRE_CPP
94 nodist_include_HEADERS = \
95 pcrecpparg.h \
96 pcre_stringpiece.h
97 include_HEADERS += \
98 pcrecpp.h \
99 pcre_scanner.h
100 endif # WITH_PCRE_CPP
101
102 bin_SCRIPTS = pcre-config
103
104 ## ---------------------------------------------------------------
105 ## Some helper programs used to compile libpcre. They aren't user-visible.
106 noinst_PROGRAMS += dftables
107 dftables_SOURCES = dftables.c
108
109 pcre_chartables.c: dftables$(EXEEXT)
110 ./dftables$(EXEEXT) $@
111
112 ## The main pcre library
113 lib_LTLIBRARIES += libpcre.la
114 libpcre_la_SOURCES = \
115 pcre_compile.c \
116 pcre_config.c \
117 pcre_dfa_exec.c \
118 pcre_exec.c \
119 pcre_fullinfo.c \
120 pcre_get.c \
121 pcre_globals.c \
122 pcre_info.c \
123 pcre_internal.h \
124 pcre_maketables.c \
125 pcre_newline.c \
126 pcre_ord2utf8.c \
127 pcre_refcount.c \
128 pcre_study.c \
129 pcre_tables.c \
130 pcre_try_flipped.c \
131 pcre_ucp_searchfuncs.c \
132 pcre_valid_utf8.c \
133 pcre_version.c \
134 pcre_xclass.c \
135 ucp.h \
136 ucpinternal.h \
137 ucptable.h
138 nodist_libpcre_la_SOURCES = \
139 pcre_chartables.c
140 EXTRA_DIST += pcre_printint.src
141 libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
142
143 CLEANFILES += pcre_chartables.c
144
145 ## A version of the main pcre library that has a posix re API.
146 lib_LTLIBRARIES += libpcreposix.la
147 libpcreposix_la_SOURCES = \
148 pcreposix.c
149 libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
150 libpcreposix_la_LIBADD = libpcre.la
151
152 ## There's a C++ library as well.
153 if WITH_PCRE_CPP
154
155 lib_LTLIBRARIES += libpcrecpp.la
156 libpcrecpp_la_SOURCES = \
157 pcrecpp.cc \
158 pcre_scanner.cc \
159 pcre_stringpiece.cc
160 libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
161 libpcrecpp_la_LIBADD = libpcre.la
162
163 TESTS += pcrecpp_unittest
164 noinst_PROGRAMS += pcrecpp_unittest
165 pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
166 pcrecpp_unittest_LDADD = libpcrecpp.la
167
168 TESTS += pcre_scanner_unittest
169 noinst_PROGRAMS += pcre_scanner_unittest
170 pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
171 pcre_scanner_unittest_LDADD = libpcrecpp.la
172
173 TESTS += pcre_stringpiece_unittest
174 noinst_PROGRAMS += pcre_stringpiece_unittest
175 pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
176 pcre_stringpiece_unittest_LDADD = libpcrecpp.la
177
178 endif # WITH_PCRE_CPP
179
180 ## The main unit tests
181
182 # Each unit test is a binary plus a script that runs that binary in various
183 # ways. We install these test binaries in case folks find it helpful.
184
185 TESTS += RunTest
186 noinst_SCRIPTS += RunTest
187 EXTRA_DIST += RunTest.bat
188 bin_PROGRAMS += pcretest
189 pcretest_SOURCES = pcretest.c
190 pcretest_LDADD = libpcreposix.la
191
192 TESTS += RunGrepTest
193 noinst_SCRIPTS += RunGrepTest
194 bin_PROGRAMS += pcregrep
195 pcregrep_SOURCES = pcregrep.c
196 pcregrep_LDADD = libpcreposix.la
197
198 EXTRA_DIST += \
199 testdata/grepinput \
200 testdata/grepinput8 \
201 testdata/grepinputx \
202 testdata/greplist \
203 testdata/grepoutput \
204 testdata/grepoutput8 \
205 testdata/testinput1 \
206 testdata/testinput2 \
207 testdata/testinput3 \
208 testdata/testinput4 \
209 testdata/testinput5 \
210 testdata/testinput6 \
211 testdata/testinput7 \
212 testdata/testinput8 \
213 testdata/testinput9 \
214 testdata/testoutput1 \
215 testdata/testoutput2 \
216 testdata/testoutput3 \
217 testdata/testoutput4 \
218 testdata/testoutput5 \
219 testdata/testoutput6 \
220 testdata/testoutput7 \
221 testdata/testoutput8 \
222 testdata/testoutput9 \
223 perltest.pl
224
225 CLEANFILES += \
226 testsavedregex \
227 teststderr \
228 testtry
229
230 # PCRE demonstration program
231 noinst_PROGRAMS += pcredemo
232 pcredemo_SOURCES = pcredemo.c
233 pcredemo_LDADD = libpcre.la
234
235 ## Utility rules, documentation, etc.
236
237 # A compatibility line, the old build system worked with 'make test'
238 test: check ;
239
240 # We have .pc files for pkg-config users.
241 pkgconfigdir = $(libdir)/pkgconfig
242 pkgconfig_DATA = libpcre.pc
243 if WITH_PCRE_CPP
244 pkgconfig_DATA += libpcrecpp.pc
245 endif
246
247 dist_man_MANS = \
248 doc/pcre.3 \
249 doc/pcre_compile.3 \
250 doc/pcre_compile2.3 \
251 doc/pcre_config.3 \
252 doc/pcre_copy_named_substring.3 \
253 doc/pcre_copy_substring.3 \
254 doc/pcre_dfa_exec.3 \
255 doc/pcre_exec.3 \
256 doc/pcre_free_substring.3 \
257 doc/pcre_free_substring_list.3 \
258 doc/pcre_fullinfo.3 \
259 doc/pcre_get_named_substring.3 \
260 doc/pcre_get_stringnumber.3 \
261 doc/pcre_get_stringtable_entries.3 \
262 doc/pcre_get_substring.3 \
263 doc/pcre_get_substring_list.3 \
264 doc/pcre_info.3 \
265 doc/pcre_maketables.3 \
266 doc/pcre_refcount.3 \
267 doc/pcre_study.3 \
268 doc/pcre_version.3 \
269 doc/pcreapi.3 \
270 doc/pcrebuild.3 \
271 doc/pcrecallout.3 \
272 doc/pcrecompat.3 \
273 doc/pcregrep.1 \
274 doc/pcrematching.3 \
275 doc/pcrepartial.3 \
276 doc/pcrepattern.3 \
277 doc/pcreperform.3 \
278 doc/pcreposix.3 \
279 doc/pcreprecompile.3 \
280 doc/pcresample.3 \
281 doc/pcrestack.3 \
282 doc/pcretest.1
283
284 pcrecpp_man = doc/pcrecpp.3
285 EXTRA_DIST += $(pcrecpp_man)
286
287 if WITH_PCRE_CPP
288 man_MANS = $(pcrecpp_man)
289 endif
290
291 ## CMake support
292
293 EXTRA_DIST += \
294 CMakeLists.txt \
295 config-cmake.h.in
296
297 config-cmake.h.in: config.h.in
298 sed 's/#undef/#cmakedefine/g' config.h.in >$@
299
300 MAINTAINERCLEANFILES += config-cmake.h.in
301
302 ## end Makefile.am

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12