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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 466 - (hide annotations) (download)
Mon Oct 19 11:42:08 2009 UTC (4 years, 9 months ago) by ph10
File size: 10406 byte(s)
Include pcredemo.html in the distribution.

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12