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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 137 - (hide annotations) (download)
Thu Mar 29 13:56:00 2007 UTC (7 years, 7 months ago) by ph10
File size: 8758 byte(s)
Daniel's patches.

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12