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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 100 - (show annotations) (download)
Tue Mar 6 14:53:10 2007 UTC (7 years, 1 month ago) by ph10
File size: 7900 byte(s)
Updated comments in configure.ac that end up in config.h.in, and arrange for 
config.h to be distributed (compare pcre.h).

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
139 ## This file is generated as part of the building process, so don't distribute.
140 nodist_libpcre_la_SOURCES = \
141 pcre_chartables.c
142
143 # The pcre_printint.src file is #included by some source files, so it must be
144 # distributed. In an Autotools world, config.h is generated from config.h.in,
145 # but, like pcre.h, we want to include it in the distribution so that users
146 # building without Autotools support have an easier time of it.
147 EXTRA_DIST += pcre_printint.src config.h
148
149 libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
150
151 CLEANFILES += pcre_chartables.c
152
153 ## A version of the main pcre library that has a posix re API.
154 lib_LTLIBRARIES += libpcreposix.la
155 libpcreposix_la_SOURCES = \
156 pcreposix.c
157 libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
158 libpcreposix_la_LIBADD = libpcre.la
159
160 ## There's a C++ library as well.
161 if WITH_PCRE_CPP
162
163 lib_LTLIBRARIES += libpcrecpp.la
164 libpcrecpp_la_SOURCES = \
165 pcrecpp.cc \
166 pcre_scanner.cc \
167 pcre_stringpiece.cc
168 libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
169 libpcrecpp_la_LIBADD = libpcre.la
170
171 TESTS += pcrecpp_unittest
172 noinst_PROGRAMS += pcrecpp_unittest
173 pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
174 pcrecpp_unittest_LDADD = libpcrecpp.la
175
176 TESTS += pcre_scanner_unittest
177 noinst_PROGRAMS += pcre_scanner_unittest
178 pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
179 pcre_scanner_unittest_LDADD = libpcrecpp.la
180
181 TESTS += pcre_stringpiece_unittest
182 noinst_PROGRAMS += pcre_stringpiece_unittest
183 pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
184 pcre_stringpiece_unittest_LDADD = libpcrecpp.la
185
186 endif # WITH_PCRE_CPP
187
188 ## The main unit tests
189
190 # Each unit test is a binary plus a script that runs that binary in various
191 # ways. We install these test binaries in case folks find it helpful.
192
193 TESTS += RunTest
194 noinst_SCRIPTS += RunTest
195 EXTRA_DIST += RunTest.bat
196 bin_PROGRAMS += pcretest
197 pcretest_SOURCES = pcretest.c
198 pcretest_LDADD = libpcreposix.la
199
200 TESTS += RunGrepTest
201 noinst_SCRIPTS += RunGrepTest
202 bin_PROGRAMS += pcregrep
203 pcregrep_SOURCES = pcregrep.c
204 pcregrep_LDADD = libpcreposix.la
205
206 EXTRA_DIST += \
207 testdata/grepinput \
208 testdata/grepinput8 \
209 testdata/grepinputx \
210 testdata/greplist \
211 testdata/grepoutput \
212 testdata/grepoutput8 \
213 testdata/testinput1 \
214 testdata/testinput2 \
215 testdata/testinput3 \
216 testdata/testinput4 \
217 testdata/testinput5 \
218 testdata/testinput6 \
219 testdata/testinput7 \
220 testdata/testinput8 \
221 testdata/testinput9 \
222 testdata/testoutput1 \
223 testdata/testoutput2 \
224 testdata/testoutput3 \
225 testdata/testoutput4 \
226 testdata/testoutput5 \
227 testdata/testoutput6 \
228 testdata/testoutput7 \
229 testdata/testoutput8 \
230 testdata/testoutput9 \
231 perltest.pl
232
233 CLEANFILES += \
234 testsavedregex \
235 teststderr \
236 testtry
237
238 # PCRE demonstration program
239 noinst_PROGRAMS += pcredemo
240 pcredemo_SOURCES = pcredemo.c
241 pcredemo_LDADD = libpcre.la
242
243 ## Utility rules, documentation, etc.
244
245 # A compatibility line, the old build system worked with 'make test'
246 test: check ;
247
248 # We have .pc files for pkg-config users.
249 pkgconfigdir = $(libdir)/pkgconfig
250 pkgconfig_DATA = libpcre.pc
251 if WITH_PCRE_CPP
252 pkgconfig_DATA += libpcrecpp.pc
253 endif
254
255 dist_man_MANS = \
256 doc/pcre.3 \
257 doc/pcre_compile.3 \
258 doc/pcre_compile2.3 \
259 doc/pcre_config.3 \
260 doc/pcre_copy_named_substring.3 \
261 doc/pcre_copy_substring.3 \
262 doc/pcre_dfa_exec.3 \
263 doc/pcre_exec.3 \
264 doc/pcre_free_substring.3 \
265 doc/pcre_free_substring_list.3 \
266 doc/pcre_fullinfo.3 \
267 doc/pcre_get_named_substring.3 \
268 doc/pcre_get_stringnumber.3 \
269 doc/pcre_get_stringtable_entries.3 \
270 doc/pcre_get_substring.3 \
271 doc/pcre_get_substring_list.3 \
272 doc/pcre_info.3 \
273 doc/pcre_maketables.3 \
274 doc/pcre_refcount.3 \
275 doc/pcre_study.3 \
276 doc/pcre_version.3 \
277 doc/pcreapi.3 \
278 doc/pcrebuild.3 \
279 doc/pcrecallout.3 \
280 doc/pcrecompat.3 \
281 doc/pcregrep.1 \
282 doc/pcrematching.3 \
283 doc/pcrepartial.3 \
284 doc/pcrepattern.3 \
285 doc/pcreperform.3 \
286 doc/pcreposix.3 \
287 doc/pcreprecompile.3 \
288 doc/pcresample.3 \
289 doc/pcrestack.3 \
290 doc/pcretest.1
291
292 pcrecpp_man = doc/pcrecpp.3
293 EXTRA_DIST += $(pcrecpp_man)
294
295 if WITH_PCRE_CPP
296 man_MANS = $(pcrecpp_man)
297 endif
298
299 ## CMake support
300
301 EXTRA_DIST += \
302 CMakeLists.txt \
303 config-cmake.h.in
304
305 config-cmake.h.in: config.h.in
306 sed 's/#undef/#cmakedefine/g' config.h.in >$@
307
308 MAINTAINERCLEANFILES += config-cmake.h.in
309
310 ## end Makefile.am

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12