/[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 100 by ph10, Tue Mar 6 14:53:10 2007 UTC revision 783 by ph10, Mon Dec 5 10:29:19 2011 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/pcre-config.html \
21      doc/html/pcre_assign_jit_stack.html \
22    doc/html/pcre_compile.html \    doc/html/pcre_compile.html \
23    doc/html/pcre_compile2.html \    doc/html/pcre_compile2.html \
24    doc/html/pcre_config.html \    doc/html/pcre_config.html \
# Line 24  dist_html_DATA = \ Line 26  dist_html_DATA = \
26    doc/html/pcre_copy_substring.html \    doc/html/pcre_copy_substring.html \
27    doc/html/pcre_dfa_exec.html \    doc/html/pcre_dfa_exec.html \
28    doc/html/pcre_exec.html \    doc/html/pcre_exec.html \
29      doc/html/pcre_free_study.html \
30    doc/html/pcre_free_substring.html \    doc/html/pcre_free_substring.html \
31    doc/html/pcre_free_substring_list.html \    doc/html/pcre_free_substring_list.html \
32    doc/html/pcre_fullinfo.html \    doc/html/pcre_fullinfo.html \
# Line 33  dist_html_DATA = \ Line 36  dist_html_DATA = \
36    doc/html/pcre_get_substring.html \    doc/html/pcre_get_substring.html \
37    doc/html/pcre_get_substring_list.html \    doc/html/pcre_get_substring_list.html \
38    doc/html/pcre_info.html \    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 \    doc/html/pcre_maketables.html \
42    doc/html/pcre_refcount.html \    doc/html/pcre_refcount.html \
43    doc/html/pcre_study.html \    doc/html/pcre_study.html \
# Line 41  dist_html_DATA = \ Line 46  dist_html_DATA = \
46    doc/html/pcrebuild.html \    doc/html/pcrebuild.html \
47    doc/html/pcrecallout.html \    doc/html/pcrecallout.html \
48    doc/html/pcrecompat.html \    doc/html/pcrecompat.html \
49      doc/html/pcredemo.html \
50    doc/html/pcregrep.html \    doc/html/pcregrep.html \
51      doc/html/pcrejit.html \
52      doc/html/pcrelimits.html \
53    doc/html/pcrematching.html \    doc/html/pcrematching.html \
54    doc/html/pcrepartial.html \    doc/html/pcrepartial.html \
55    doc/html/pcrepattern.html \    doc/html/pcrepattern.html \
# Line 50  dist_html_DATA = \ Line 58  dist_html_DATA = \
58    doc/html/pcreprecompile.html \    doc/html/pcreprecompile.html \
59    doc/html/pcresample.html \    doc/html/pcresample.html \
60    doc/html/pcrestack.html \    doc/html/pcrestack.html \
61    doc/html/pcretest.html    doc/html/pcresyntax.html \
62      doc/html/pcretest.html \
63      doc/html/pcreunicode.html
64    
65  pcrecpp_html = doc/html/pcrecpp.html  pcrecpp_html = doc/html/pcrecpp.html
66  dist_noinst_DATA = $(pcrecpp_html)  dist_noinst_DATA = $(pcrecpp_html)
# Line 66  lib_LTLIBRARIES = Line 76  lib_LTLIBRARIES =
76  # TESTS is for binary unit tests, check_SCRIPTS for script-based tests  # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
77  TESTS =  TESTS =
78  check_SCRIPTS =  check_SCRIPTS =
79  noinst_SCRIPTS =  dist_noinst_SCRIPTS =
80    
81  # 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
82  # (non-user-visible) helper programs needed to build libpcre.  # (non-user-visible) helper programs needed to build libpcre.
# Line 77  noinst_PROGRAMS = Line 87  noinst_PROGRAMS =
87  CLEANFILES =  CLEANFILES =
88  MAINTAINERCLEANFILES =  MAINTAINERCLEANFILES =
89    
90  # Additional files to bundle with the distribution.  # Additional files to bundle with the distribution, over and above what
91    # the Autotools include by default.
92  EXTRA_DIST =  EXTRA_DIST =
93    
94  # These are the header files we'll install.  Note that while pcre.h is  # These files contain maintenance information
95  # generated from pcre.h.in, we want to include it in the distribution so  EXTRA_DIST += \
96  # that users building without Autotools support have an easier time of it.    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      CheckMan \
104      CleanTxt \
105      Detrail \
106      132html \
107      doc/index.html.src
108    
109    # These files are to do with building for Virtual Pascal
110    EXTRA_DIST += \
111      makevp.bat \
112      makevp_c.txt \
113      makevp_l.txt \
114      pcregexp.pas
115    
116    # These files are usable versions of pcre.h and config.h that are distributed
117    # for the benefit of people who are building PCRE manually, without the
118    # Autotools support.
119    EXTRA_DIST += \
120      pcre.h.generic \
121      config.h.generic
122    
123    pcre.h.generic: configure.ac
124            rm -f $@
125            cp -p pcre.h $@
126    
127    MAINTAINERCLEANFILES += pcre.h.generic
128    
129    # These are the header files we'll install. We do not distribute pcre.h because
130    # it is generated from pcre.h.in.
131    nodist_include_HEADERS = \
132      pcre.h
133  include_HEADERS = \  include_HEADERS = \
   pcre.h \  
134    pcreposix.h    pcreposix.h
135    
136  # 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
137  # distribute pcrecpparg.h nor pcre_stringpiece.h, as these are generated  # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
138  # from corresponding .h.in files (which we do distribute).  # from corresponding .h.in files (which we do distribute).
139  if WITH_PCRE_CPP  if WITH_PCRE_CPP
140  nodist_include_HEADERS = \  nodist_include_HEADERS += \
141    pcrecpparg.h \    pcrecpparg.h \
142    pcre_stringpiece.h    pcre_stringpiece.h
143  include_HEADERS += \  include_HEADERS += \
# Line 102  endif # WITH_PCRE_CPP Line 148  endif # WITH_PCRE_CPP
148  bin_SCRIPTS = pcre-config  bin_SCRIPTS = pcre-config
149    
150  ## ---------------------------------------------------------------  ## ---------------------------------------------------------------
151  ## Some helper programs used to compile libpcre.  They aren't user-visible.  ## The dftables program is used to rebuild character tables before compiling
152    ## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
153    ## program. The default (when --enable-rebuild-chartables is not specified) is
154    ## to copy a distributed set of tables that are defined for ASCII code. In this
155    ## case, dftables is not needed.
156    
157    if WITH_REBUILD_CHARTABLES
158    
159  noinst_PROGRAMS += dftables  noinst_PROGRAMS += dftables
160  dftables_SOURCES = dftables.c  dftables_SOURCES = dftables.c
161    
162  pcre_chartables.c: dftables$(EXEEXT)  pcre_chartables.c: dftables$(EXEEXT)
163          ./dftables$(EXEEXT) $@          ./dftables$(EXEEXT) $@
164    else
165    
166    pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
167            rm -f $@
168            $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
169    
170    endif # WITH_REBUILD_CHARTABLES
171    
172    
173  ## The main pcre library  ## The main pcre library
174  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
# Line 121  libpcre_la_SOURCES = \ Line 182  libpcre_la_SOURCES = \
182    pcre_globals.c \    pcre_globals.c \
183    pcre_info.c \    pcre_info.c \
184    pcre_internal.h \    pcre_internal.h \
185      pcre_jit_compile.c \
186    pcre_maketables.c \    pcre_maketables.c \
187    pcre_newline.c \    pcre_newline.c \
188    pcre_ord2utf8.c \    pcre_ord2utf8.c \
# Line 128  libpcre_la_SOURCES = \ Line 190  libpcre_la_SOURCES = \
190    pcre_study.c \    pcre_study.c \
191    pcre_tables.c \    pcre_tables.c \
192    pcre_try_flipped.c \    pcre_try_flipped.c \
193    pcre_ucp_searchfuncs.c \    pcre_ucd.c \
194    pcre_valid_utf8.c \    pcre_valid_utf8.c \
195    pcre_version.c \    pcre_version.c \
196    pcre_xclass.c \    pcre_xclass.c \
197    ucp.h \    ucp.h
198    ucpinternal.h \  
   ucptable.h  
   
199  ## 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.
200  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
201    pcre_chartables.c    pcre_chartables.c
202    
203  # The pcre_printint.src file is #included by some source files, so it must be  # The pcre_printint.src file is #included by some source files, so it must be
204  # distributed. In an Autotools world, config.h is generated from config.h.in,  # distributed. The pcre_chartables.c.dist file is the default version of
205  # but, like pcre.h, we want to include it in the distribution so that users  # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.
206  # building without Autotools support have an easier time of it.  EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist
207  EXTRA_DIST += pcre_printint.src config.h  
208    # The JIT compiler lives in a separate directory, but its files are #included
209    # when pcre_jit_compile.c is processed, so they must be distributed.
210    EXTRA_DIST += \
211      sljit/sljitConfig.h \
212      sljit/sljitConfigInternal.h \
213      sljit/sljitExecAllocator.c \
214      sljit/sljitLir.c \
215      sljit/sljitLir.h \
216      sljit/sljitNativeARM_Thumb2.c \
217      sljit/sljitNativeARM_v5.c \
218      sljit/sljitNativeMIPS_32.c \
219      sljit/sljitNativeMIPS_common.c \
220      sljit/sljitNativePPC_32.c \
221      sljit/sljitNativePPC_64.c \
222      sljit/sljitNativePPC_common.c \
223      sljit/sljitNativeX86_32.c \
224      sljit/sljitNativeX86_64.c \
225      sljit/sljitNativeX86_common.c \
226      sljit/sljitUtils.c
227    
228  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
229    
230  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
231    
232    ## If JIT support is enabled, arrange for the JIT test program to run.
233    if WITH_JIT
234    TESTS += pcre_jit_test
235    noinst_PROGRAMS += pcre_jit_test
236    pcre_jit_test_SOURCES = pcre_jit_test.c
237    pcre_jit_test_LDADD = libpcre.la
238    endif # WITH_JIT
239    
240  ## 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.
241  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
242  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
# Line 162  if WITH_PCRE_CPP Line 249  if WITH_PCRE_CPP
249    
250  lib_LTLIBRARIES += libpcrecpp.la  lib_LTLIBRARIES += libpcrecpp.la
251  libpcrecpp_la_SOURCES = \  libpcrecpp_la_SOURCES = \
252      pcrecpp_internal.h \
253    pcrecpp.cc \    pcrecpp.cc \
254    pcre_scanner.cc \    pcre_scanner.cc \
255    pcre_stringpiece.cc    pcre_stringpiece.cc
# Line 191  endif # WITH_PCRE_CPP Line 279  endif # WITH_PCRE_CPP
279  # ways. We install these test binaries in case folks find it helpful.  # ways. We install these test binaries in case folks find it helpful.
280    
281  TESTS += RunTest  TESTS += RunTest
282  noinst_SCRIPTS += RunTest  dist_noinst_SCRIPTS += RunTest
283  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
284  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
285  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
286  pcretest_LDADD = libpcreposix.la  pcretest_LDADD = libpcreposix.la $(LIBREADLINE)
287    
288  TESTS += RunGrepTest  TESTS += RunGrepTest
289  noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
290  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
291  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
292  pcregrep_LDADD = libpcreposix.la  pcregrep_LDADD = libpcreposix.la $(LIBZ) $(LIBBZ2)
293    
294  EXTRA_DIST += \  EXTRA_DIST += \
295    testdata/grepinput \    testdata/grepinput \
296      testdata/grepinput3 \
297    testdata/grepinput8 \    testdata/grepinput8 \
298      testdata/grepinputv \
299    testdata/grepinputx \    testdata/grepinputx \
300    testdata/greplist \    testdata/greplist \
301    testdata/grepoutput \    testdata/grepoutput \
302    testdata/grepoutput8 \    testdata/grepoutput8 \
303      testdata/grepoutputN \
304    testdata/testinput1 \    testdata/testinput1 \
305    testdata/testinput2 \    testdata/testinput2 \
306    testdata/testinput3 \    testdata/testinput3 \
# Line 219  EXTRA_DIST += \ Line 310  EXTRA_DIST += \
310    testdata/testinput7 \    testdata/testinput7 \
311    testdata/testinput8 \    testdata/testinput8 \
312    testdata/testinput9 \    testdata/testinput9 \
313      testdata/testinput10 \
314      testdata/testinput11 \
315      testdata/testinput12 \
316      testdata/testinput13 \
317      testdata/testinput14 \
318      testdata/testinput15 \
319    testdata/testoutput1 \    testdata/testoutput1 \
320    testdata/testoutput2 \    testdata/testoutput2 \
321    testdata/testoutput3 \    testdata/testoutput3 \
# Line 228  EXTRA_DIST += \ Line 325  EXTRA_DIST += \
325    testdata/testoutput7 \    testdata/testoutput7 \
326    testdata/testoutput8 \    testdata/testoutput8 \
327    testdata/testoutput9 \    testdata/testoutput9 \
328      testdata/testoutput10 \
329      testdata/testoutput11 \
330      testdata/testoutput12 \
331      testdata/testoutput13 \
332      testdata/testoutput14 \
333      testdata/testoutput15 \
334      testdata/wintestinput3 \
335      testdata/wintestoutput3 \
336    perltest.pl    perltest.pl
337    
338  CLEANFILES += \  CLEANFILES += \
339          testsavedregex \          testsavedregex \
340          teststderr \          teststderr \
341          testtry          testtry \
342            testNinput
343    
344    
345    # PCRE demonstration program. No longer built automatcally. The point is that
346    # the users should build it themselves. So just distribute the source.
347    # noinst_PROGRAMS += pcredemo
348    # pcredemo_SOURCES = pcredemo.c
349    # pcredemo_LDADD = libpcre.la
350    
351    EXTRA_DIST += pcredemo.c
352    
 # PCRE demonstration program  
 noinst_PROGRAMS += pcredemo  
 pcredemo_SOURCES = pcredemo.c  
 pcredemo_LDADD = libpcre.la  
353    
354  ## Utility rules, documentation, etc.  ## Utility rules, documentation, etc.
355    
356  # A compatibility line, the old build system worked with 'make test'  # A compatibility line, the old build system worked with 'make test'
357  test: check ;  test: check ;
358    
359    
360    # A PCRE user submitted the following addition, saying that it "will allow
361    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
362    # nice DLL for Windows use". (It is used by the pcre.dll target.)
363    DLL_OBJS= pcre_compile.o pcre_config.o \
364            pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
365            pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \
366            pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
367            pcre_study.o pcre_tables.o pcre_try_flipped.o \
368            pcre_ucd.o pcre_valid_utf8.o pcre_version.o \
369            pcre_chartables.o \
370            pcre_xclass.o
371    
372    # A PCRE user submitted the following addition, saying that it "will allow
373    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
374    # nice DLL for Windows use".
375    pcre.dll: $(DLL_OBJS)
376            $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
377    
378    
379  # We have .pc files for pkg-config users.  # We have .pc files for pkg-config users.
380  pkgconfigdir = $(libdir)/pkgconfig  pkgconfigdir = $(libdir)/pkgconfig
381  pkgconfig_DATA = libpcre.pc  pkgconfig_DATA = libpcre.pc libpcreposix.pc
382  if WITH_PCRE_CPP  if WITH_PCRE_CPP
383  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
384  endif  endif
385    
386  dist_man_MANS = \  dist_man_MANS = \
387    doc/pcre.3 \    doc/pcre.3 \
388      doc/pcre-config.1 \
389      doc/pcre_assign_jit_stack.3 \
390    doc/pcre_compile.3 \    doc/pcre_compile.3 \
391    doc/pcre_compile2.3 \    doc/pcre_compile2.3 \
392    doc/pcre_config.3 \    doc/pcre_config.3 \
# Line 261  dist_man_MANS = \ Line 394  dist_man_MANS = \
394    doc/pcre_copy_substring.3 \    doc/pcre_copy_substring.3 \
395    doc/pcre_dfa_exec.3 \    doc/pcre_dfa_exec.3 \
396    doc/pcre_exec.3 \    doc/pcre_exec.3 \
397      doc/pcre_free_study.3 \
398    doc/pcre_free_substring.3 \    doc/pcre_free_substring.3 \
399    doc/pcre_free_substring_list.3 \    doc/pcre_free_substring_list.3 \
400    doc/pcre_fullinfo.3 \    doc/pcre_fullinfo.3 \
# Line 270  dist_man_MANS = \ Line 404  dist_man_MANS = \
404    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
405    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
406    doc/pcre_info.3 \    doc/pcre_info.3 \
407      doc/pcre_jit_stack_alloc.3 \
408      doc/pcre_jit_stack_free.3 \
409    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
410    doc/pcre_refcount.3 \    doc/pcre_refcount.3 \
411    doc/pcre_study.3 \    doc/pcre_study.3 \
# Line 279  dist_man_MANS = \ Line 415  dist_man_MANS = \
415    doc/pcrecallout.3 \    doc/pcrecallout.3 \
416    doc/pcrecompat.3 \    doc/pcrecompat.3 \
417    doc/pcregrep.1 \    doc/pcregrep.1 \
418      doc/pcrejit.3 \
419      doc/pcrelimits.3 \
420    doc/pcrematching.3 \    doc/pcrematching.3 \
421    doc/pcrepartial.3 \    doc/pcrepartial.3 \
422    doc/pcrepattern.3 \    doc/pcrepattern.3 \
# Line 287  dist_man_MANS = \ Line 425  dist_man_MANS = \
425    doc/pcreprecompile.3 \    doc/pcreprecompile.3 \
426    doc/pcresample.3 \    doc/pcresample.3 \
427    doc/pcrestack.3 \    doc/pcrestack.3 \
428    doc/pcretest.1    doc/pcresyntax.3 \
429      doc/pcretest.1 \
430      doc/pcreunicode.3
431    
432  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
433  EXTRA_DIST += $(pcrecpp_man)  EXTRA_DIST += $(pcrecpp_man)
# Line 299  endif Line 439  endif
439  ## CMake support  ## CMake support
440    
441  EXTRA_DIST += \  EXTRA_DIST += \
442      cmake/COPYING-CMAKE-SCRIPTS \
443      cmake/FindPackageHandleStandardArgs.cmake \
444      cmake/FindReadline.cmake \
445    CMakeLists.txt \    CMakeLists.txt \
446    config-cmake.h.in    config-cmake.h.in
447    
 config-cmake.h.in: config.h.in  
         sed 's/#undef/#cmakedefine/g' config.h.in >$@  
   
 MAINTAINERCLEANFILES += config-cmake.h.in  
   
448  ## end Makefile.am  ## end Makefile.am

Legend:
Removed from v.100  
changed lines
  Added in v.783

  ViewVC Help
Powered by ViewVC 1.1.5