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

Diff of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 103 by ph10, Tue Mar 6 15:58:33 2007 UTC revision 1151 by chpe, Sun Oct 21 16:53:46 2012 UTC
# Line 1  Line 1 
1  ## Process this file with automake to produce Makefile.in.  ## Process this file with automake to produce Makefile.in.
2    
3    ACLOCAL_AMFLAGS = -I m4
4    
5  dist_doc_DATA = \  dist_doc_DATA = \
6    doc/pcre.txt \    doc/pcre.txt \
7      doc/pcre-config.txt \
8    doc/pcregrep.txt \    doc/pcregrep.txt \
9    doc/pcretest.txt \    doc/pcretest.txt \
   doc/perltest.txt \  
10    AUTHORS \    AUTHORS \
11    COPYING \    COPYING \
12    ChangeLog \    ChangeLog \
   INSTALL \  
13    LICENCE \    LICENCE \
14    NEWS \    NEWS \
   NON-UNIX-USE \  
15    README    README
16    
17  dist_html_DATA = \  dist_html_DATA = \
18    doc/html/index.html \    doc/html/index.html \
19    doc/html/pcre.html \    doc/html/pcre.html \
20      doc/html/pcre16.html \
21      doc/html/pcre-config.html \
22      doc/html/pcre_assign_jit_stack.html \
23    doc/html/pcre_compile.html \    doc/html/pcre_compile.html \
24    doc/html/pcre_compile2.html \    doc/html/pcre_compile2.html \
25    doc/html/pcre_config.html \    doc/html/pcre_config.html \
# Line 24  dist_html_DATA = \ Line 27  dist_html_DATA = \
27    doc/html/pcre_copy_substring.html \    doc/html/pcre_copy_substring.html \
28    doc/html/pcre_dfa_exec.html \    doc/html/pcre_dfa_exec.html \
29    doc/html/pcre_exec.html \    doc/html/pcre_exec.html \
30      doc/html/pcre_free_study.html \
31    doc/html/pcre_free_substring.html \    doc/html/pcre_free_substring.html \
32    doc/html/pcre_free_substring_list.html \    doc/html/pcre_free_substring_list.html \
33    doc/html/pcre_fullinfo.html \    doc/html/pcre_fullinfo.html \
# Line 32  dist_html_DATA = \ Line 36  dist_html_DATA = \
36    doc/html/pcre_get_stringtable_entries.html \    doc/html/pcre_get_stringtable_entries.html \
37    doc/html/pcre_get_substring.html \    doc/html/pcre_get_substring.html \
38    doc/html/pcre_get_substring_list.html \    doc/html/pcre_get_substring_list.html \
39    doc/html/pcre_info.html \    doc/html/pcre_jit_stack_alloc.html \
40      doc/html/pcre_jit_stack_free.html \
41    doc/html/pcre_maketables.html \    doc/html/pcre_maketables.html \
42      doc/html/pcre_pattern_to_host_byte_order.html \
43    doc/html/pcre_refcount.html \    doc/html/pcre_refcount.html \
44    doc/html/pcre_study.html \    doc/html/pcre_study.html \
45      doc/html/pcre_utf16_to_host_byte_order.html \
46    doc/html/pcre_version.html \    doc/html/pcre_version.html \
47    doc/html/pcreapi.html \    doc/html/pcreapi.html \
48    doc/html/pcrebuild.html \    doc/html/pcrebuild.html \
49    doc/html/pcrecallout.html \    doc/html/pcrecallout.html \
50    doc/html/pcrecompat.html \    doc/html/pcrecompat.html \
51      doc/html/pcredemo.html \
52    doc/html/pcregrep.html \    doc/html/pcregrep.html \
53      doc/html/pcrejit.html \
54      doc/html/pcrelimits.html \
55    doc/html/pcrematching.html \    doc/html/pcrematching.html \
56    doc/html/pcrepartial.html \    doc/html/pcrepartial.html \
57    doc/html/pcrepattern.html \    doc/html/pcrepattern.html \
# Line 50  dist_html_DATA = \ Line 60  dist_html_DATA = \
60    doc/html/pcreprecompile.html \    doc/html/pcreprecompile.html \
61    doc/html/pcresample.html \    doc/html/pcresample.html \
62    doc/html/pcrestack.html \    doc/html/pcrestack.html \
63    doc/html/pcretest.html    doc/html/pcresyntax.html \
64      doc/html/pcretest.html \
65      doc/html/pcreunicode.html
66    
67    #   doc/html/pcre32.html \
68    #   doc/html/pcre_utf32_to_host_byte_order.html \
69    #
70    
71  pcrecpp_html = doc/html/pcrecpp.html  pcrecpp_html = doc/html/pcrecpp.html
72  dist_noinst_DATA = $(pcrecpp_html)  dist_noinst_DATA = $(pcrecpp_html)
# Line 66  lib_LTLIBRARIES = Line 82  lib_LTLIBRARIES =
82  # TESTS is for binary unit tests, check_SCRIPTS for script-based tests  # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
83  TESTS =  TESTS =
84  check_SCRIPTS =  check_SCRIPTS =
85  noinst_SCRIPTS =  dist_noinst_SCRIPTS =
86    
87  # Some of the binaries we make are to be installed, and others are  # Some of the binaries we make are to be installed, and others are
88  # (non-user-visible) helper programs needed to build libpcre.  # (non-user-visible) helper programs needed to build libpcre, libpcre16
89    # or libpcre32.
90  bin_PROGRAMS =  bin_PROGRAMS =
91  noinst_PROGRAMS =  noinst_PROGRAMS =
92    
# Line 77  noinst_PROGRAMS = Line 94  noinst_PROGRAMS =
94  CLEANFILES =  CLEANFILES =
95  MAINTAINERCLEANFILES =  MAINTAINERCLEANFILES =
96    
97  # Additional files to bundle with the distribution.  # Additional files to bundle with the distribution, over and above what
98    # the Autotools include by default.
99  EXTRA_DIST =  EXTRA_DIST =
100    
101    # These files contain additional m4 macros that are used by autoconf.
102    EXTRA_DIST += \
103      m4/ax_pthread.m4
104    
105    # These files contain maintenance information
106    EXTRA_DIST += \
107      doc/perltest.txt \
108      NON-UNIX-USE \
109      NON-AUTOTOOLS-BUILD \
110      HACKING
111    
112    # These files are used in the preparation of a release
113    EXTRA_DIST += \
114      PrepareRelease \
115      CheckMan \
116      CleanTxt \
117      Detrail \
118      132html \
119      doc/index.html.src
120    
121  # These files are to do with building for Virtual Pascal  # These files are to do with building for Virtual Pascal
122  EXTRA_DIST += \  EXTRA_DIST += \
123    makevp.bat \    makevp.bat \
124    !compile.txt \    makevp_c.txt \
125    !linklib.txt \    makevp_l.txt \
126    pcregexp.pas    pcregexp.pas
127    
128  # These are the header files we'll install.  Note that while pcre.h is  # These files are usable versions of pcre.h and config.h that are distributed
129  # generated from pcre.h.in, we want to include it in the distribution so  # for the benefit of people who are building PCRE manually, without the
130  # that users building without Autotools support have an easier time of it.  # Autotools support.
131    EXTRA_DIST += \
132      pcre.h.generic \
133      config.h.generic
134    
135    pcre.h.generic: configure.ac
136            rm -f $@
137            cp -p pcre.h $@
138    
139    MAINTAINERCLEANFILES += pcre.h.generic
140    
141    # These are the header files we'll install. We do not distribute pcre.h because
142    # it is generated from pcre.h.in.
143    nodist_include_HEADERS = \
144      pcre.h
145  include_HEADERS = \  include_HEADERS = \
   pcre.h \  
146    pcreposix.h    pcreposix.h
147    
148  # These will be installed too, if C++ support is enabled. We don't  # These additional headers will be be installed if C++ support is enabled. We
149  # distribute pcrecpparg.h nor pcre_stringpiece.h, as these are generated  # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
150  # from corresponding .h.in files (which we do distribute).  # from corresponding .h.in files (which we do distribute).
151  if WITH_PCRE_CPP  if WITH_PCRE_CPP
152  nodist_include_HEADERS = \  nodist_include_HEADERS += \
153    pcrecpparg.h \    pcrecpparg.h \
154    pcre_stringpiece.h    pcre_stringpiece.h
155  include_HEADERS += \  include_HEADERS += \
# Line 109  endif # WITH_PCRE_CPP Line 160  endif # WITH_PCRE_CPP
160  bin_SCRIPTS = pcre-config  bin_SCRIPTS = pcre-config
161    
162  ## ---------------------------------------------------------------  ## ---------------------------------------------------------------
163  ## Some helper programs used to compile libpcre.  They aren't user-visible.  ## The dftables program is used to rebuild character tables before compiling
164    ## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
165    ## program. The default (when --enable-rebuild-chartables is not specified) is
166    ## to copy a distributed set of tables that are defined for ASCII code. In this
167    ## case, dftables is not needed.
168    
169    if WITH_REBUILD_CHARTABLES
170    
171  noinst_PROGRAMS += dftables  noinst_PROGRAMS += dftables
172  dftables_SOURCES = dftables.c  dftables_SOURCES = dftables.c
173    
174  pcre_chartables.c: dftables$(EXEEXT)  pcre_chartables.c: dftables$(EXEEXT)
175          ./dftables$(EXEEXT) $@          ./dftables$(EXEEXT) $@
176    else
177    
178    pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
179            rm -f $@
180            $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
181    
182    endif # WITH_REBUILD_CHARTABLES
183    
184    BUILT_SOURCES = pcre_chartables.c
185    
186  ## The main pcre library  ## The main pcre library
187    
188    # Build the 8 bit library if it is enabled.
189    if WITH_PCRE8
190  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
191  libpcre_la_SOURCES = \  libpcre_la_SOURCES = \
192      pcre_byte_order.c \
193    pcre_compile.c \    pcre_compile.c \
194    pcre_config.c \    pcre_config.c \
195    pcre_dfa_exec.c \    pcre_dfa_exec.c \
# Line 126  libpcre_la_SOURCES = \ Line 197  libpcre_la_SOURCES = \
197    pcre_fullinfo.c \    pcre_fullinfo.c \
198    pcre_get.c \    pcre_get.c \
199    pcre_globals.c \    pcre_globals.c \
   pcre_info.c \  
200    pcre_internal.h \    pcre_internal.h \
201      pcre_jit_compile.c \
202    pcre_maketables.c \    pcre_maketables.c \
203    pcre_newline.c \    pcre_newline.c \
204    pcre_ord2utf8.c \    pcre_ord2utf8.c \
205    pcre_refcount.c \    pcre_refcount.c \
206      pcre_string_utils.c \
207    pcre_study.c \    pcre_study.c \
208    pcre_tables.c \    pcre_tables.c \
209    pcre_try_flipped.c \    pcre_ucd.c \
   pcre_ucp_searchfuncs.c \  
210    pcre_valid_utf8.c \    pcre_valid_utf8.c \
211    pcre_version.c \    pcre_version.c \
212    pcre_xclass.c \    pcre_xclass.c \
213    ucp.h \    ucp.h
214    ucpinternal.h \  
215    ucptable.h  libpcre_la_CFLAGS = \
216      $(AM_CFLAGS)
217    
218    libpcre_la_LIBADD =
219    
220  ## This file is generated as part of the building process, so don't distribute.  ## This file is generated as part of the building process, so don't distribute.
221  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
222    pcre_chartables.c    pcre_chartables.c
   
 # The pcre_printint.src file is #included by some source files, so it must be  
 # distributed. In an Autotools world, config.h is generated from config.h.in,  
 # but, like pcre.h, we want to include it in the distribution so that users  
 # building without Autotools support have an easier time of it.  
 EXTRA_DIST += pcre_printint.src config.h  
223    
224    endif # WITH_PCRE8
225    
226    # Build the 16 bit library if it is enabled.
227    if WITH_PCRE16
228    lib_LTLIBRARIES += libpcre16.la
229    libpcre16_la_SOURCES = \
230      pcre16_byte_order.c \
231      pcre16_chartables.c \
232      pcre16_compile.c \
233      pcre16_config.c \
234      pcre16_dfa_exec.c \
235      pcre16_exec.c \
236      pcre16_fullinfo.c \
237      pcre16_get.c \
238      pcre16_globals.c \
239      pcre16_jit_compile.c \
240      pcre16_maketables.c \
241      pcre16_newline.c \
242      pcre16_ord2utf16.c \
243      pcre16_refcount.c \
244      pcre16_string_utils.c \
245      pcre16_study.c \
246      pcre16_tables.c \
247      pcre16_ucd.c \
248      pcre16_utf16_utils.c \
249      pcre16_valid_utf16.c \
250      pcre16_version.c \
251      pcre16_xclass.c
252    
253    libpcre16_la_CFLAGS = \
254      $(AM_CFLAGS)
255    
256    libpcre16_la_LIBADD =
257    
258    ## This file is generated as part of the building process, so don't distribute.
259    nodist_libpcre16_la_SOURCES = \
260      pcre_chartables.c
261    
262    endif # WITH_PCRE16
263    
264    # Build the 32 bit library if it is enabled.
265    if WITH_PCRE32
266    lib_LTLIBRARIES += libpcre32.la
267    libpcre32_la_SOURCES = \
268      pcre32_byte_order.c \
269      pcre32_chartables.c \
270      pcre32_compile.c \
271      pcre32_config.c \
272      pcre32_dfa_exec.c \
273      pcre32_exec.c \
274      pcre32_fullinfo.c \
275      pcre32_get.c \
276      pcre32_globals.c \
277      pcre32_jit_compile.c \
278      pcre32_maketables.c \
279      pcre32_newline.c \
280      pcre32_ord2utf32.c \
281      pcre32_refcount.c \
282      pcre32_string_utils.c \
283      pcre32_study.c \
284      pcre32_tables.c \
285      pcre32_ucd.c \
286      pcre32_utf32_utils.c \
287      pcre32_valid_utf32.c \
288      pcre32_version.c \
289      pcre32_xclass.c
290    
291    libpcre32_la_CFLAGS = \
292      $(AM_CFLAGS)
293    libpcre32_la_LIBADD =
294    
295    ## This file is generated as part of the building process, so don't distribute.
296    nodist_libpcre32_la_SOURCES = \
297      pcre_chartables.c
298    
299    endif # WITH_PCRE32
300    
301    # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,
302    # used unless --enable-rebuild-chartables is specified.
303    EXTRA_DIST += pcre_chartables.c.dist
304    
305    # The JIT compiler lives in a separate directory, but its files are #included
306    # when pcre_jit_compile.c is processed, so they must be distributed.
307    EXTRA_DIST += \
308      sljit/sljitConfig.h \
309      sljit/sljitConfigInternal.h \
310      sljit/sljitExecAllocator.c \
311      sljit/sljitLir.c \
312      sljit/sljitLir.h \
313      sljit/sljitNativeARM_Thumb2.c \
314      sljit/sljitNativeARM_v5.c \
315      sljit/sljitNativeMIPS_32.c \
316      sljit/sljitNativeMIPS_common.c \
317      sljit/sljitNativePPC_32.c \
318      sljit/sljitNativePPC_64.c \
319      sljit/sljitNativePPC_common.c \
320      sljit/sljitNativeX86_32.c \
321      sljit/sljitNativeX86_64.c \
322      sljit/sljitNativeX86_common.c \
323      sljit/sljitUtils.c
324    
325    if WITH_PCRE8
326  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
327    endif # WITH_PCRE8
328    if WITH_PCRE16
329    libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)
330    endif # WITH_PCRE16
331    if WITH_PCRE32
332    libpcre32_la_LDFLAGS = $(EXTRA_LIBPCRE32_LDFLAGS)
333    endif # WITH_PCRE32
334    
335    if WITH_VALGRIND
336    if WITH_PCRE8
337    libpcre_la_CFLAGS += $(VALGRIND_CFLAGS)
338    endif # WITH_PCRE8
339    if WITH_PCRE16
340    libpcre16_la_CFLAGS += $(VALGRIND_CFLAGS)
341    endif # WITH_PCRE16
342    if WITH_PCRE32
343    libpcre32_la_CFLAGS += $(VALGRIND_CFLAGS)
344    endif # WITH_PCRE32
345    endif # WITH_VALGRIND
346    
347  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
348    
349    ## If JIT support is enabled, arrange for the JIT test program to run.
350    if WITH_JIT
351    TESTS += pcre_jit_test
352    noinst_PROGRAMS += pcre_jit_test
353    pcre_jit_test_SOURCES = pcre_jit_test.c
354    pcre_jit_test_LDADD =
355    if WITH_PCRE8
356    pcre_jit_test_LDADD += libpcre.la
357    endif # WITH_PCRE8
358    if WITH_PCRE16
359    pcre_jit_test_LDADD += libpcre16.la
360    endif # WITH_PCRE16
361    if WITH_PCRE32
362    pcre_jit_test_LDADD += libpcre32.la
363    endif # WITH_PCRE32
364    endif # WITH_JIT
365    
366  ## A version of the main pcre library that has a posix re API.  ## A version of the main pcre library that has a posix re API.
367    if WITH_PCRE8
368  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
369  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
370    pcreposix.c    pcreposix.c
371  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
372  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
373    endif # WITH_PCRE8
374    
375  ## There's a C++ library as well.  ## There's a C++ library as well.
376  if WITH_PCRE_CPP  if WITH_PCRE_CPP
377    
378  lib_LTLIBRARIES += libpcrecpp.la  lib_LTLIBRARIES += libpcrecpp.la
379  libpcrecpp_la_SOURCES = \  libpcrecpp_la_SOURCES = \
380      pcrecpp_internal.h \
381    pcrecpp.cc \    pcrecpp.cc \
382    pcre_scanner.cc \    pcre_scanner.cc \
383    pcre_stringpiece.cc    pcre_stringpiece.cc
# Line 198  endif # WITH_PCRE_CPP Line 407  endif # WITH_PCRE_CPP
407  # ways. We install these test binaries in case folks find it helpful.  # ways. We install these test binaries in case folks find it helpful.
408    
409  TESTS += RunTest  TESTS += RunTest
410  noinst_SCRIPTS += RunTest  dist_noinst_SCRIPTS += RunTest
411  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
412  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
413  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
414  pcretest_LDADD = libpcreposix.la  pcretest_CFLAGS = $(AM_CFLAGS)
415    pcretest_LDADD = $(LIBREADLINE)
416    if WITH_PCRE8
417    pcretest_SOURCES += pcre_printint.c
418    pcretest_LDADD += libpcre.la libpcreposix.la
419    endif # WITH_PCRE8
420    if WITH_PCRE16
421    pcretest_SOURCES += pcre16_printint.c
422    pcretest_LDADD += libpcre16.la
423    endif # WITH_PCRE16
424    if WITH_PCRE32
425    pcretest_SOURCES += pcre32_printint.c
426    pcretest_LDADD += libpcre32.la
427    endif # WITH_PCRE32
428    if WITH_VALGRIND
429    pcretest_CFLAGS += $(VALGRIND_CFLAGS)
430    endif # WITH_VALGRIND
431    
432    if WITH_PCRE8
433  TESTS += RunGrepTest  TESTS += RunGrepTest
434  noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
435  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
436  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
437  pcregrep_LDADD = libpcreposix.la  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
438    pcregrep_LDADD += libpcre.la libpcreposix.la
439    endif # WITH_PCRE8
440    
441  EXTRA_DIST += \  EXTRA_DIST += \
442      testdata/grepbinary \
443      testdata/grepfilelist \
444    testdata/grepinput \    testdata/grepinput \
445      testdata/grepinput3 \
446    testdata/grepinput8 \    testdata/grepinput8 \
447      testdata/grepinputv \
448    testdata/grepinputx \    testdata/grepinputx \
449    testdata/greplist \    testdata/greplist \
450    testdata/grepoutput \    testdata/grepoutput \
451    testdata/grepoutput8 \    testdata/grepoutput8 \
452      testdata/grepoutputN \
453      testdata/greppatN4 \
454      testdata/saved16 \
455      testdata/saved16BE-1 \
456      testdata/saved16BE-2 \
457      testdata/saved16LE-1 \
458      testdata/saved16LE-2 \
459      testdata/saved32 \
460      testdata/saved32BE-1 \
461      testdata/saved32BE-2 \
462      testdata/saved32LE-1 \
463      testdata/saved32LE-2 \
464      testdata/saved8 \
465    testdata/testinput1 \    testdata/testinput1 \
466    testdata/testinput2 \    testdata/testinput2 \
467    testdata/testinput3 \    testdata/testinput3 \
# Line 226  EXTRA_DIST += \ Line 471  EXTRA_DIST += \
471    testdata/testinput7 \    testdata/testinput7 \
472    testdata/testinput8 \    testdata/testinput8 \
473    testdata/testinput9 \    testdata/testinput9 \
474      testdata/testinput10 \
475      testdata/testinput11 \
476      testdata/testinput12 \
477      testdata/testinput13 \
478      testdata/testinput14 \
479      testdata/testinput15 \
480      testdata/testinput16 \
481      testdata/testinput17 \
482      testdata/testinput18 \
483      testdata/testinput19 \
484      testdata/testinput20 \
485      testdata/testinput21 \
486      testdata/testinput22 \
487      testdata/testinputEBC \
488    testdata/testoutput1 \    testdata/testoutput1 \
489    testdata/testoutput2 \    testdata/testoutput2 \
490    testdata/testoutput3 \    testdata/testoutput3 \
# Line 235  EXTRA_DIST += \ Line 494  EXTRA_DIST += \
494    testdata/testoutput7 \    testdata/testoutput7 \
495    testdata/testoutput8 \    testdata/testoutput8 \
496    testdata/testoutput9 \    testdata/testoutput9 \
497      testdata/testoutput10 \
498      testdata/testoutput11-16 \
499      testdata/testoutput11-8 \
500      testdata/testoutput12 \
501      testdata/testoutput13 \
502      testdata/testoutput14 \
503      testdata/testoutput15 \
504      testdata/testoutput16 \
505      testdata/testoutput17 \
506      testdata/testoutput18 \
507      testdata/testoutput19 \
508      testdata/testoutput20 \
509      testdata/testoutput21 \
510      testdata/testoutput22 \
511      testdata/testoutputEBC \
512      testdata/wintestinput3 \
513      testdata/wintestoutput3 \
514    perltest.pl    perltest.pl
515    
516  CLEANFILES += \  CLEANFILES += \
517          testsavedregex \          testsavedregex \
518          teststderr \          teststderr \
519          testtry          testtemp* \
520            testtry \
521            testNinput
522    
523    
524    # PCRE demonstration program. No longer built automatcally. The point is that
525    # the users should build it themselves. So just distribute the source.
526    # noinst_PROGRAMS += pcredemo
527    # pcredemo_SOURCES = pcredemo.c
528    # pcredemo_LDADD = libpcre.la
529    
530    EXTRA_DIST += pcredemo.c
531    
 # PCRE demonstration program  
 noinst_PROGRAMS += pcredemo  
 pcredemo_SOURCES = pcredemo.c  
 pcredemo_LDADD = libpcre.la  
532    
533  ## Utility rules, documentation, etc.  ## Utility rules, documentation, etc.
534    
535  # A compatibility line, the old build system worked with 'make test'  # A compatibility line, the old build system worked with 'make test'
536  test: check ;  test: check ;
537    
538    
539    # A PCRE user submitted the following addition, saying that it "will allow
540    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
541    # nice DLL for Windows use". (It is used by the pcre.dll target.)
542    DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
543            pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
544            pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
545            pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
546            pcre_study.o pcre_tables.o pcre_ucd.o \
547            pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
548            pcre_xclass.o
549    
550    # A PCRE user submitted the following addition, saying that it "will allow
551    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
552    # nice DLL for Windows use".
553    pcre.dll: $(DLL_OBJS)
554            $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
555    
556    
557  # We have .pc files for pkg-config users.  # We have .pc files for pkg-config users.
558  pkgconfigdir = $(libdir)/pkgconfig  pkgconfigdir = $(libdir)/pkgconfig
559  pkgconfig_DATA = libpcre.pc  pkgconfig_DATA = libpcre.pc libpcreposix.pc
560    if WITH_PCRE16
561    pkgconfig_DATA += libpcre16.pc
562    endif
563    if WITH_PCRE32
564    pkgconfig_DATA += libpcre32.pc
565    endif
566  if WITH_PCRE_CPP  if WITH_PCRE_CPP
567  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
568  endif  endif
569    
570  dist_man_MANS = \  dist_man_MANS = \
571    doc/pcre.3 \    doc/pcre.3 \
572      doc/pcre16.3 \
573      doc/pcre32.3 \
574      doc/pcre-config.1 \
575      doc/pcre_assign_jit_stack.3 \
576    doc/pcre_compile.3 \    doc/pcre_compile.3 \
577    doc/pcre_compile2.3 \    doc/pcre_compile2.3 \
578    doc/pcre_config.3 \    doc/pcre_config.3 \
# Line 268  dist_man_MANS = \ Line 580  dist_man_MANS = \
580    doc/pcre_copy_substring.3 \    doc/pcre_copy_substring.3 \
581    doc/pcre_dfa_exec.3 \    doc/pcre_dfa_exec.3 \
582    doc/pcre_exec.3 \    doc/pcre_exec.3 \
583      doc/pcre_free_study.3 \
584    doc/pcre_free_substring.3 \    doc/pcre_free_substring.3 \
585    doc/pcre_free_substring_list.3 \    doc/pcre_free_substring_list.3 \
586    doc/pcre_fullinfo.3 \    doc/pcre_fullinfo.3 \
# Line 276  dist_man_MANS = \ Line 589  dist_man_MANS = \
589    doc/pcre_get_stringtable_entries.3 \    doc/pcre_get_stringtable_entries.3 \
590    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
591    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
592    doc/pcre_info.3 \    doc/pcre_jit_stack_alloc.3 \
593      doc/pcre_jit_stack_free.3 \
594    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
595      doc/pcre_pattern_to_host_byte_order.3 \
596    doc/pcre_refcount.3 \    doc/pcre_refcount.3 \
597    doc/pcre_study.3 \    doc/pcre_study.3 \
598      doc/pcre_utf16_to_host_byte_order.3 \
599      doc/pcre_utf32_to_host_byte_order.3 \
600    doc/pcre_version.3 \    doc/pcre_version.3 \
601    doc/pcreapi.3 \    doc/pcreapi.3 \
602    doc/pcrebuild.3 \    doc/pcrebuild.3 \
603    doc/pcrecallout.3 \    doc/pcrecallout.3 \
604    doc/pcrecompat.3 \    doc/pcrecompat.3 \
605    doc/pcregrep.1 \    doc/pcregrep.1 \
606      doc/pcrejit.3 \
607      doc/pcrelimits.3 \
608    doc/pcrematching.3 \    doc/pcrematching.3 \
609    doc/pcrepartial.3 \    doc/pcrepartial.3 \
610    doc/pcrepattern.3 \    doc/pcrepattern.3 \
# Line 294  dist_man_MANS = \ Line 613  dist_man_MANS = \
613    doc/pcreprecompile.3 \    doc/pcreprecompile.3 \
614    doc/pcresample.3 \    doc/pcresample.3 \
615    doc/pcrestack.3 \    doc/pcrestack.3 \
616    doc/pcretest.1    doc/pcresyntax.3 \
617      doc/pcretest.1 \
618      doc/pcreunicode.3
619    
620    # Arrange for the per-function man pages to have 16- and 32-bit names as well.
621    install-data-hook:
622            ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre16_assign_jit_stack.3
623            ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre16_compile.3
624            ln -sf pcre_compile2.3                   $(DESTDIR)$(man3dir)/pcre16_compile2.3
625            ln -sf pcre_config.3                     $(DESTDIR)$(man3dir)/pcre16_config.3
626            ln -sf pcre_copy_named_substring.3       $(DESTDIR)$(man3dir)/pcre16_copy_named_substring.3
627            ln -sf pcre_copy_substring.3             $(DESTDIR)$(man3dir)/pcre16_copy_substring.3
628            ln -sf pcre_dfa_exec.3                   $(DESTDIR)$(man3dir)/pcre16_dfa_exec.3
629            ln -sf pcre_exec.3                       $(DESTDIR)$(man3dir)/pcre16_exec.3
630            ln -sf pcre_free_study.3                 $(DESTDIR)$(man3dir)/pcre16_free_study.3
631            ln -sf pcre_free_substring.3             $(DESTDIR)$(man3dir)/pcre16_free_substring.3
632            ln -sf pcre_free_substring_list.3        $(DESTDIR)$(man3dir)/pcre16_free_substring_list.3
633            ln -sf pcre_fullinfo.3                   $(DESTDIR)$(man3dir)/pcre16_fullinfo.3
634            ln -sf pcre_get_named_substring.3        $(DESTDIR)$(man3dir)/pcre16_get_named_substring.3
635            ln -sf pcre_get_stringnumber.3           $(DESTDIR)$(man3dir)/pcre16_get_stringnumber.3
636            ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre16_get_stringtable_entries.3
637            ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre16_get_substring.3
638            ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre16_get_substring_list.3
639            ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre16_jit_stack_alloc.3
640            ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre16_jit_stack_free.3
641            ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre16_maketables.3
642            ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre16_pattern_to_host_byte_order.3
643            ln -sf pcre_refcount.3                   $(DESTDIR)$(man3dir)/pcre16_refcount.3
644            ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre16_study.3
645            ln -sf pcre_utf16_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre16_utf16_to_host_byte_order.3
646            ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre16_version.3
647            ln -sf pcre_assign_jit_stack.3           $(DESTDIR)$(man3dir)/pcre32_assign_jit_stack.3
648            ln -sf pcre_compile.3                    $(DESTDIR)$(man3dir)/pcre32_compile.3
649            ln -sf pcre_compile2.3                   $(DESTDIR)$(man3dir)/pcre32_compile2.3
650            ln -sf pcre_config.3                     $(DESTDIR)$(man3dir)/pcre32_config.3
651            ln -sf pcre_copy_named_substring.3       $(DESTDIR)$(man3dir)/pcre32_copy_named_substring.3
652            ln -sf pcre_copy_substring.3             $(DESTDIR)$(man3dir)/pcre32_copy_substring.3
653            ln -sf pcre_dfa_exec.3                   $(DESTDIR)$(man3dir)/pcre32_dfa_exec.3
654            ln -sf pcre_exec.3                       $(DESTDIR)$(man3dir)/pcre32_exec.3
655            ln -sf pcre_free_study.3                 $(DESTDIR)$(man3dir)/pcre32_free_study.3
656            ln -sf pcre_free_substring.3             $(DESTDIR)$(man3dir)/pcre32_free_substring.3
657            ln -sf pcre_free_substring_list.3        $(DESTDIR)$(man3dir)/pcre32_free_substring_list.3
658            ln -sf pcre_fullinfo.3                   $(DESTDIR)$(man3dir)/pcre32_fullinfo.3
659            ln -sf pcre_get_named_substring.3        $(DESTDIR)$(man3dir)/pcre32_get_named_substring.3
660            ln -sf pcre_get_stringnumber.3           $(DESTDIR)$(man3dir)/pcre32_get_stringnumber.3
661            ln -sf pcre_get_stringtable_entries.3    $(DESTDIR)$(man3dir)/pcre32_get_stringtable_entries.3
662            ln -sf pcre_get_substring.3              $(DESTDIR)$(man3dir)/pcre32_get_substring.3
663            ln -sf pcre_get_substring_list.3         $(DESTDIR)$(man3dir)/pcre32_get_substring_list.3
664            ln -sf pcre_jit_stack_alloc.3            $(DESTDIR)$(man3dir)/pcre32_jit_stack_alloc.3
665            ln -sf pcre_jit_stack_free.3             $(DESTDIR)$(man3dir)/pcre32_jit_stack_free.3
666            ln -sf pcre_maketables.3                 $(DESTDIR)$(man3dir)/pcre32_maketables.3
667            ln -sf pcre_pattern_to_host_byte_order.3 $(DESTDIR)$(man3dir)/pcre32_pattern_to_host_byte_order.3
668            ln -sf pcre_refcount.3                   $(DESTDIR)$(man3dir)/pcre32_refcount.3
669            ln -sf pcre_study.3                      $(DESTDIR)$(man3dir)/pcre32_study.3
670            ln -sf pcre_utf32_to_host_byte_order.3   $(DESTDIR)$(man3dir)/pcre32_utf32_to_host_byte_order.3
671            ln -sf pcre_version.3                    $(DESTDIR)$(man3dir)/pcre32_version.3
672    
673  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
674  EXTRA_DIST += $(pcrecpp_man)  EXTRA_DIST += $(pcrecpp_man)
# Line 306  endif Line 680  endif
680  ## CMake support  ## CMake support
681    
682  EXTRA_DIST += \  EXTRA_DIST += \
683      cmake/COPYING-CMAKE-SCRIPTS \
684      cmake/FindPackageHandleStandardArgs.cmake \
685      cmake/FindReadline.cmake \
686      cmake/FindEditline.cmake \
687    CMakeLists.txt \    CMakeLists.txt \
688    config-cmake.h.in    config-cmake.h.in
689    
 config-cmake.h.in: config.h.in  
         sed 's/#undef/#cmakedefine/g' config.h.in >$@  
   
 MAINTAINERCLEANFILES += config-cmake.h.in  
   
690  ## end Makefile.am  ## end Makefile.am

Legend:
Removed from v.103  
changed lines
  Added in v.1151

  ViewVC Help
Powered by ViewVC 1.1.5