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

Contents of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 127 - (hide annotations) (download)
Mon Mar 19 11:44:45 2007 UTC (7 years, 9 months ago) by ph10
File size: 8265 byte(s)
A number of tidies, file renames, etc.

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12