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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 250 - (hide annotations) (download)
Mon Sep 17 10:33:36 2007 UTC (7 years, 3 months ago) by ph10
File size: 9170 byte(s)
Distribute version of test 3 for Windows.

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12