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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.5