/[pcre]/code/branches/pcre16/Makefile.am
ViewVC logotype

Contents of /code/branches/pcre16/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 770 - (hide annotations) (download)
Mon Nov 28 20:39:30 2011 UTC (2 years, 7 months ago) by zherczeg
File size: 13013 byte(s)
Make character ranges 16 bit friendly
1 ph10 97 ## Process this file with automake to produce Makefile.in.
2    
3 ph10 479 ACLOCAL_AMFLAGS = -I m4
4    
5 ph10 97 dist_doc_DATA = \
6     doc/pcre.txt \
7 ph10 153 doc/pcre-config.txt \
8 ph10 97 doc/pcregrep.txt \
9     doc/pcretest.txt \
10     AUTHORS \
11     COPYING \
12     ChangeLog \
13     LICENCE \
14     NEWS \
15     README
16    
17     dist_html_DATA = \
18     doc/html/index.html \
19     doc/html/pcre.html \
20 ph10 153 doc/html/pcre-config.html \
21 ph10 678 doc/html/pcre_assign_jit_stack.html \
22 ph10 97 doc/html/pcre_compile.html \
23     doc/html/pcre_compile2.html \
24     doc/html/pcre_config.html \
25     doc/html/pcre_copy_named_substring.html \
26     doc/html/pcre_copy_substring.html \
27     doc/html/pcre_dfa_exec.html \
28     doc/html/pcre_exec.html \
29 ph10 678 doc/html/pcre_free_study.html \
30 ph10 97 doc/html/pcre_free_substring.html \
31     doc/html/pcre_free_substring_list.html \
32     doc/html/pcre_fullinfo.html \
33     doc/html/pcre_get_named_substring.html \
34     doc/html/pcre_get_stringnumber.html \
35     doc/html/pcre_get_stringtable_entries.html \
36     doc/html/pcre_get_substring.html \
37     doc/html/pcre_get_substring_list.html \
38     doc/html/pcre_info.html \
39 ph10 678 doc/html/pcre_jit_stack_alloc.html \
40     doc/html/pcre_jit_stack_free.html \
41 ph10 97 doc/html/pcre_maketables.html \
42     doc/html/pcre_refcount.html \
43     doc/html/pcre_study.html \
44     doc/html/pcre_version.html \
45     doc/html/pcreapi.html \
46     doc/html/pcrebuild.html \
47     doc/html/pcrecallout.html \
48     doc/html/pcrecompat.html \
49 ph10 466 doc/html/pcredemo.html \
50 ph10 97 doc/html/pcregrep.html \
51 ph10 678 doc/html/pcrejit.html \
52     doc/html/pcrelimits.html \
53 ph10 97 doc/html/pcrematching.html \
54     doc/html/pcrepartial.html \
55     doc/html/pcrepattern.html \
56     doc/html/pcreperform.html \
57     doc/html/pcreposix.html \
58     doc/html/pcreprecompile.html \
59     doc/html/pcresample.html \
60     doc/html/pcrestack.html \
61 ph10 232 doc/html/pcresyntax.html \
62 ph10 678 doc/html/pcretest.html \
63     doc/html/pcreunicode.html
64 ph10 97
65     pcrecpp_html = doc/html/pcrecpp.html
66     dist_noinst_DATA = $(pcrecpp_html)
67    
68     if WITH_PCRE_CPP
69     html_DATA = $(pcrecpp_html)
70     endif
71    
72     # The Libtool libraries to install. We'll add to this later.
73     lib_LTLIBRARIES =
74    
75     # Unit tests you want to run when people type 'make check'.
76     # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
77     TESTS =
78     check_SCRIPTS =
79 ph10 144 dist_noinst_SCRIPTS =
80 ph10 97
81     # Some of the binaries we make are to be installed, and others are
82 ph10 757 # (non-user-visible) helper programs needed to build libpcre or libpcre16.
83 ph10 97 bin_PROGRAMS =
84     noinst_PROGRAMS =
85    
86     # Additional files to delete on 'make clean' and 'make maintainer-clean'.
87     CLEANFILES =
88     MAINTAINERCLEANFILES =
89    
90 ph10 128 # Additional files to bundle with the distribution, over and above what
91 ph10 127 # the Autotools include by default.
92 ph10 97 EXTRA_DIST =
93    
94 ph10 111 # These files contain maintenance information
95     EXTRA_DIST += \
96     doc/perltest.txt \
97     NON-UNIX-USE \
98 ph10 128 HACKING
99 ph10 111
100     # These files are used in the preparation of a release
101     EXTRA_DIST += \
102     PrepareRelease \
103     CleanTxt \
104     Detrail \
105     132html \
106 ph10 127 doc/index.html.src
107 ph10 111
108 ph10 103 # These files are to do with building for Virtual Pascal
109     EXTRA_DIST += \
110     makevp.bat \
111 ph10 135 makevp_c.txt \
112     makevp_l.txt \
113 ph10 111 pcregexp.pas
114 ph10 103
115 ph10 111 # These files are usable versions of pcre.h and config.h that are distributed
116     # for the benefit of people who are building PCRE manually, without the
117     # Autotools support.
118     EXTRA_DIST += \
119     pcre.h.generic \
120     config.h.generic
121    
122 ph10 144 pcre.h.generic: configure.ac
123     rm -f $@
124     cp -p pcre.h $@
125    
126     MAINTAINERCLEANFILES += pcre.h.generic
127    
128 ph10 111 # These are the header files we'll install. We do not distribute pcre.h because
129     # it is generated from pcre.h.in.
130     nodist_include_HEADERS = \
131     pcre.h
132 ph10 97 include_HEADERS = \
133     pcreposix.h
134    
135 ph10 111 # These additional headers will be be installed if C++ support is enabled. We
136     # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
137 ph10 97 # from corresponding .h.in files (which we do distribute).
138     if WITH_PCRE_CPP
139 ph10 111 nodist_include_HEADERS += \
140 ph10 97 pcrecpparg.h \
141     pcre_stringpiece.h
142     include_HEADERS += \
143     pcrecpp.h \
144     pcre_scanner.h
145     endif # WITH_PCRE_CPP
146    
147     bin_SCRIPTS = pcre-config
148    
149     ## ---------------------------------------------------------------
150 ph10 128 ## The dftables program is used to rebuild character tables before compiling
151     ## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
152     ## program. The default (when --enable-rebuild-chartables is not specified) is
153     ## to copy a distributed set of tables that are defined for ASCII code. In this
154     ## case, dftables is not needed.
155    
156     if WITH_REBUILD_CHARTABLES
157    
158 ph10 97 noinst_PROGRAMS += dftables
159     dftables_SOURCES = dftables.c
160    
161     pcre_chartables.c: dftables$(EXEEXT)
162     ./dftables$(EXEEXT) $@
163 ph10 128 else
164 ph10 97
165 ph10 131 pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
166 ph10 137 rm -f $@
167     $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
168 ph10 128
169     endif # WITH_REBUILD_CHARTABLES
170    
171    
172 ph10 97 ## The main pcre library
173 ph10 757
174     # Build the 8 bit library if it is enabled.
175     if WITH_PCRE8
176 ph10 97 lib_LTLIBRARIES += libpcre.la
177     libpcre_la_SOURCES = \
178     pcre_compile.c \
179     pcre_config.c \
180     pcre_dfa_exec.c \
181     pcre_exec.c \
182     pcre_fullinfo.c \
183     pcre_get.c \
184     pcre_globals.c \
185     pcre_info.c \
186     pcre_internal.h \
187 ph10 667 pcre_jit_compile.c \
188 ph10 97 pcre_maketables.c \
189     pcre_newline.c \
190     pcre_ord2utf8.c \
191     pcre_refcount.c \
192 zherczeg 764 pcre_string_utils.c \
193 ph10 97 pcre_study.c \
194     pcre_tables.c \
195     pcre_try_flipped.c \
196 ph10 349 pcre_ucd.c \
197 ph10 97 pcre_valid_utf8.c \
198     pcre_version.c \
199     pcre_xclass.c \
200 ph10 349 ucp.h
201 ph10 111
202 ph10 100 ## This file is generated as part of the building process, so don't distribute.
203 ph10 97 nodist_libpcre_la_SOURCES = \
204     pcre_chartables.c
205 ph10 111
206 ph10 757 endif # WITH_PCRE8
207    
208     # Build the 16 bit library if it is enabled.
209     if WITH_PCRE16
210     lib_LTLIBRARIES += libpcre16.la
211     libpcre16_la_SOURCES = \
212 zherczeg 764 pcre16_chartables.c \
213 ph10 757 pcre16_compile.c \
214 zherczeg 764 pcre16_exec.c \
215     pcre16_jit_compile.c \
216     pcre16_newline.c \
217     pcre16_string_utils.c \
218     pcre16_study.c \
219     pcre16_tables.c \
220     pcre16_try_flipped.c \
221     pcre16_utf16_utils.c \
222 zherczeg 770 pcre16_valid_utf16.c \
223     pcre16_xclass.c
224 ph10 757
225     ## This file is generated as part of the building process, so don't distribute.
226     nodist_libpcre16_la_SOURCES = \
227     pcre_chartables.c
228    
229     endif # WITH_PCRE16
230    
231 ph10 100 # The pcre_printint.src file is #included by some source files, so it must be
232 ph10 128 # distributed. The pcre_chartables.c.dist file is the default version of
233     # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.
234     EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist
235 ph10 100
236 ph10 667 # The JIT compiler lives in a separate directory, but its files are #included
237     # when pcre_jit_compile.c is processed, so they must be distributed.
238     EXTRA_DIST += \
239     sljit/sljitConfig.h \
240     sljit/sljitConfigInternal.h \
241     sljit/sljitExecAllocator.c \
242     sljit/sljitLir.c \
243     sljit/sljitLir.h \
244     sljit/sljitNativeARM_Thumb2.c \
245     sljit/sljitNativeARM_v5.c \
246     sljit/sljitNativeMIPS_32.c \
247     sljit/sljitNativeMIPS_common.c \
248     sljit/sljitNativePPC_32.c \
249     sljit/sljitNativePPC_64.c \
250     sljit/sljitNativePPC_common.c \
251     sljit/sljitNativeX86_32.c \
252     sljit/sljitNativeX86_64.c \
253     sljit/sljitNativeX86_common.c \
254     sljit/sljitUtils.c
255    
256 ph10 757 if WITH_PCRE8
257 ph10 97 libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
258 ph10 757 endif # WITH_PCRE8
259     if WITH_PCRE16
260     libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
261     endif # WITH_PCRE16
262 ph10 97
263     CLEANFILES += pcre_chartables.c
264    
265 ph10 698 ## If JIT support is enabled, arrange for the JIT test program to run.
266 ph10 667 if WITH_JIT
267     TESTS += pcre_jit_test
268     noinst_PROGRAMS += pcre_jit_test
269     pcre_jit_test_SOURCES = pcre_jit_test.c
270 ph10 757 pcre_jit_test_LDADD =
271     if WITH_PCRE8
272     pcre_jit_test_LDADD += libpcre.la
273     endif # WITH_PCRE8
274     if WITH_PCRE16
275     pcre_jit_test_LDADD += libpcre16.la
276     endif # WITH_PCRE16
277 ph10 667 endif # WITH_JIT
278    
279 ph10 97 ## A version of the main pcre library that has a posix re API.
280 ph10 757 if WITH_PCRE8
281 ph10 97 lib_LTLIBRARIES += libpcreposix.la
282     libpcreposix_la_SOURCES = \
283     pcreposix.c
284     libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
285     libpcreposix_la_LIBADD = libpcre.la
286 ph10 757 endif # WITH_PCRE8
287 ph10 97
288     ## There's a C++ library as well.
289     if WITH_PCRE_CPP
290    
291     lib_LTLIBRARIES += libpcrecpp.la
292     libpcrecpp_la_SOURCES = \
293 ph10 199 pcrecpp_internal.h \
294 ph10 97 pcrecpp.cc \
295     pcre_scanner.cc \
296     pcre_stringpiece.cc
297     libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
298     libpcrecpp_la_LIBADD = libpcre.la
299    
300     TESTS += pcrecpp_unittest
301     noinst_PROGRAMS += pcrecpp_unittest
302     pcrecpp_unittest_SOURCES = pcrecpp_unittest.cc
303     pcrecpp_unittest_LDADD = libpcrecpp.la
304    
305     TESTS += pcre_scanner_unittest
306     noinst_PROGRAMS += pcre_scanner_unittest
307     pcre_scanner_unittest_SOURCES = pcre_scanner_unittest.cc
308     pcre_scanner_unittest_LDADD = libpcrecpp.la
309    
310     TESTS += pcre_stringpiece_unittest
311     noinst_PROGRAMS += pcre_stringpiece_unittest
312     pcre_stringpiece_unittest_SOURCES = pcre_stringpiece_unittest.cc
313     pcre_stringpiece_unittest_LDADD = libpcrecpp.la
314    
315     endif # WITH_PCRE_CPP
316    
317     ## The main unit tests
318    
319     # Each unit test is a binary plus a script that runs that binary in various
320     # ways. We install these test binaries in case folks find it helpful.
321    
322     TESTS += RunTest
323 ph10 144 dist_noinst_SCRIPTS += RunTest
324 ph10 97 EXTRA_DIST += RunTest.bat
325     bin_PROGRAMS += pcretest
326     pcretest_SOURCES = pcretest.c
327 ph10 757 pcretest_LDADD = $(LIBREADLINE)
328     if WITH_PCRE8
329     pcretest_LDADD += libpcreposix.la
330     endif # WITH_PCRE8
331 ph10 97
332     TESTS += RunGrepTest
333 ph10 144 dist_noinst_SCRIPTS += RunGrepTest
334 ph10 97 bin_PROGRAMS += pcregrep
335     pcregrep_SOURCES = pcregrep.c
336 ph10 757 pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
337     if WITH_PCRE8
338     pcregrep_LDADD += libpcreposix.la
339     endif # WITH_PCRE8
340 ph10 97
341     EXTRA_DIST += \
342     testdata/grepinput \
343 ph10 589 testdata/grepinput3 \
344 ph10 97 testdata/grepinput8 \
345 ph10 222 testdata/grepinputv \
346 ph10 97 testdata/grepinputx \
347     testdata/greplist \
348     testdata/grepoutput \
349     testdata/grepoutput8 \
350 ph10 131 testdata/grepoutputN \
351 ph10 97 testdata/testinput1 \
352     testdata/testinput2 \
353     testdata/testinput3 \
354     testdata/testinput4 \
355     testdata/testinput5 \
356     testdata/testinput6 \
357     testdata/testinput7 \
358     testdata/testinput8 \
359     testdata/testinput9 \
360 ph10 165 testdata/testinput10 \
361 ph10 448 testdata/testinput11 \
362     testdata/testinput12 \
363 ph10 652 testdata/testinput13 \
364 ph10 671 testdata/testinput14 \
365     testdata/testinput15 \
366 ph10 97 testdata/testoutput1 \
367     testdata/testoutput2 \
368     testdata/testoutput3 \
369     testdata/testoutput4 \
370     testdata/testoutput5 \
371     testdata/testoutput6 \
372     testdata/testoutput7 \
373     testdata/testoutput8 \
374     testdata/testoutput9 \
375 ph10 165 testdata/testoutput10 \
376 ph10 448 testdata/testoutput11 \
377     testdata/testoutput12 \
378 ph10 652 testdata/testoutput13 \
379 ph10 671 testdata/testoutput14 \
380     testdata/testoutput15 \
381 ph10 250 testdata/wintestinput3 \
382     testdata/wintestoutput3 \
383 ph10 97 perltest.pl
384    
385     CLEANFILES += \
386     testsavedregex \
387     teststderr \
388 ph10 160 testtry \
389     testNinput
390 ph10 97
391    
392 ph10 312 # PCRE demonstration program. No longer built automatcally. The point is that
393     # the users should build it themselves. So just distribute the source.
394     # noinst_PROGRAMS += pcredemo
395     # pcredemo_SOURCES = pcredemo.c
396     # pcredemo_LDADD = libpcre.la
397    
398     EXTRA_DIST += pcredemo.c
399    
400    
401 ph10 97 ## Utility rules, documentation, etc.
402    
403     # A compatibility line, the old build system worked with 'make test'
404     test: check ;
405    
406 ph10 307
407     # A PCRE user submitted the following addition, saying that it "will allow
408     # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
409     # nice DLL for Windows use". (It is used by the pcre.dll target.)
410     DLL_OBJS= pcre_compile.o pcre_config.o \
411     pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
412 ph10 667 pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \
413 ph10 307 pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
414     pcre_study.o pcre_tables.o pcre_try_flipped.o \
415 ph10 349 pcre_ucd.o pcre_valid_utf8.o pcre_version.o \
416 ph10 307 pcre_chartables.o \
417     pcre_xclass.o
418    
419     # A PCRE user submitted the following addition, saying that it "will allow
420     # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
421     # nice DLL for Windows use".
422     pcre.dll: $(DLL_OBJS)
423     $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
424    
425    
426 ph10 97 # We have .pc files for pkg-config users.
427     pkgconfigdir = $(libdir)/pkgconfig
428 ph10 423 pkgconfig_DATA = libpcre.pc libpcreposix.pc
429 ph10 757 if WITH_PCRE16
430     pkgconfig_DATA += libpcre16.pc
431     endif
432 ph10 97 if WITH_PCRE_CPP
433     pkgconfig_DATA += libpcrecpp.pc
434     endif
435    
436     dist_man_MANS = \
437     doc/pcre.3 \
438 ph10 153 doc/pcre-config.1 \
439 ph10 678 doc/pcre_assign_jit_stack.3 \
440 ph10 97 doc/pcre_compile.3 \
441     doc/pcre_compile2.3 \
442     doc/pcre_config.3 \
443     doc/pcre_copy_named_substring.3 \
444     doc/pcre_copy_substring.3 \
445     doc/pcre_dfa_exec.3 \
446     doc/pcre_exec.3 \
447 ph10 678 doc/pcre_free_study.3 \
448 ph10 97 doc/pcre_free_substring.3 \
449     doc/pcre_free_substring_list.3 \
450     doc/pcre_fullinfo.3 \
451     doc/pcre_get_named_substring.3 \
452     doc/pcre_get_stringnumber.3 \
453     doc/pcre_get_stringtable_entries.3 \
454     doc/pcre_get_substring.3 \
455     doc/pcre_get_substring_list.3 \
456     doc/pcre_info.3 \
457 ph10 678 doc/pcre_jit_stack_alloc.3 \
458     doc/pcre_jit_stack_free.3 \
459 ph10 97 doc/pcre_maketables.3 \
460     doc/pcre_refcount.3 \
461     doc/pcre_study.3 \
462     doc/pcre_version.3 \
463     doc/pcreapi.3 \
464     doc/pcrebuild.3 \
465     doc/pcrecallout.3 \
466     doc/pcrecompat.3 \
467     doc/pcregrep.1 \
468 ph10 678 doc/pcrejit.3 \
469     doc/pcrelimits.3 \
470 ph10 97 doc/pcrematching.3 \
471     doc/pcrepartial.3 \
472     doc/pcrepattern.3 \
473     doc/pcreperform.3 \
474     doc/pcreposix.3 \
475     doc/pcreprecompile.3 \
476     doc/pcresample.3 \
477     doc/pcrestack.3 \
478 ph10 238 doc/pcresyntax.3 \
479 ph10 678 doc/pcretest.1 \
480     doc/pcreunicode.3
481 ph10 97
482     pcrecpp_man = doc/pcrecpp.3
483     EXTRA_DIST += $(pcrecpp_man)
484    
485     if WITH_PCRE_CPP
486     man_MANS = $(pcrecpp_man)
487     endif
488    
489     ## CMake support
490    
491     EXTRA_DIST += \
492 ph10 310 cmake/COPYING-CMAKE-SCRIPTS \
493     cmake/FindPackageHandleStandardArgs.cmake \
494     cmake/FindReadline.cmake \
495 ph10 97 CMakeLists.txt \
496     config-cmake.h.in
497    
498     ## end Makefile.am

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12