/[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 667 by ph10, Mon Aug 22 14:57:32 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_compile.html \    doc/html/pcre_compile.html \
22    doc/html/pcre_compile2.html \    doc/html/pcre_compile2.html \
23    doc/html/pcre_config.html \    doc/html/pcre_config.html \
# Line 41  dist_html_DATA = \ Line 42  dist_html_DATA = \
42    doc/html/pcrebuild.html \    doc/html/pcrebuild.html \
43    doc/html/pcrecallout.html \    doc/html/pcrecallout.html \
44    doc/html/pcrecompat.html \    doc/html/pcrecompat.html \
45      doc/html/pcredemo.html \
46    doc/html/pcregrep.html \    doc/html/pcregrep.html \
47    doc/html/pcrematching.html \    doc/html/pcrematching.html \
48    doc/html/pcrepartial.html \    doc/html/pcrepartial.html \
# Line 50  dist_html_DATA = \ Line 52  dist_html_DATA = \
52    doc/html/pcreprecompile.html \    doc/html/pcreprecompile.html \
53    doc/html/pcresample.html \    doc/html/pcresample.html \
54    doc/html/pcrestack.html \    doc/html/pcrestack.html \
55      doc/html/pcresyntax.html \
56    doc/html/pcretest.html    doc/html/pcretest.html
57    
58  pcrecpp_html = doc/html/pcrecpp.html  pcrecpp_html = doc/html/pcrecpp.html
# Line 66  lib_LTLIBRARIES = Line 69  lib_LTLIBRARIES =
69  # TESTS is for binary unit tests, check_SCRIPTS for script-based tests  # TESTS is for binary unit tests, check_SCRIPTS for script-based tests
70  TESTS =  TESTS =
71  check_SCRIPTS =  check_SCRIPTS =
72  noinst_SCRIPTS =  dist_noinst_SCRIPTS =
73    
74  # 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
75  # (non-user-visible) helper programs needed to build libpcre.  # (non-user-visible) helper programs needed to build libpcre.
# Line 77  noinst_PROGRAMS = Line 80  noinst_PROGRAMS =
80  CLEANFILES =  CLEANFILES =
81  MAINTAINERCLEANFILES =  MAINTAINERCLEANFILES =
82    
83  # Additional files to bundle with the distribution.  # Additional files to bundle with the distribution, over and above what
84    # the Autotools include by default.
85  EXTRA_DIST =  EXTRA_DIST =
86    
87  # These are the header files we'll install.  Note that while pcre.h is  # These files contain maintenance information
88  # generated from pcre.h.in, we want to include it in the distribution so  EXTRA_DIST += \
89  # that users building without Autotools support have an easier time of it.    doc/perltest.txt \
90      NON-UNIX-USE \
91      HACKING
92    
93    # These files are used in the preparation of a release
94    EXTRA_DIST += \
95      PrepareRelease \
96      CleanTxt \
97      Detrail \
98      132html \
99      doc/index.html.src
100    
101    # These files are to do with building for Virtual Pascal
102    EXTRA_DIST += \
103      makevp.bat \
104      makevp_c.txt \
105      makevp_l.txt \
106      pcregexp.pas
107    
108    # These files are usable versions of pcre.h and config.h that are distributed
109    # for the benefit of people who are building PCRE manually, without the
110    # Autotools support.
111    EXTRA_DIST += \
112      pcre.h.generic \
113      config.h.generic
114    
115    pcre.h.generic: configure.ac
116            rm -f $@
117            cp -p pcre.h $@
118    
119    MAINTAINERCLEANFILES += pcre.h.generic
120    
121    # These are the header files we'll install. We do not distribute pcre.h because
122    # it is generated from pcre.h.in.
123    nodist_include_HEADERS = \
124      pcre.h
125  include_HEADERS = \  include_HEADERS = \
   pcre.h \  
126    pcreposix.h    pcreposix.h
127    
128  # 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
129  # distribute pcrecpparg.h nor pcre_stringpiece.h, as these are generated  # do not distribute pcrecpparg.h or pcre_stringpiece.h, as these are generated
130  # from corresponding .h.in files (which we do distribute).  # from corresponding .h.in files (which we do distribute).
131  if WITH_PCRE_CPP  if WITH_PCRE_CPP
132  nodist_include_HEADERS = \  nodist_include_HEADERS += \
133    pcrecpparg.h \    pcrecpparg.h \
134    pcre_stringpiece.h    pcre_stringpiece.h
135  include_HEADERS += \  include_HEADERS += \
# Line 102  endif # WITH_PCRE_CPP Line 140  endif # WITH_PCRE_CPP
140  bin_SCRIPTS = pcre-config  bin_SCRIPTS = pcre-config
141    
142  ## ---------------------------------------------------------------  ## ---------------------------------------------------------------
143  ## Some helper programs used to compile libpcre.  They aren't user-visible.  ## The dftables program is used to rebuild character tables before compiling
144    ## PCRE, if --enable-rebuild-chartables is specified. It is not a user-visible
145    ## program. The default (when --enable-rebuild-chartables is not specified) is
146    ## to copy a distributed set of tables that are defined for ASCII code. In this
147    ## case, dftables is not needed.
148    
149    if WITH_REBUILD_CHARTABLES
150    
151  noinst_PROGRAMS += dftables  noinst_PROGRAMS += dftables
152  dftables_SOURCES = dftables.c  dftables_SOURCES = dftables.c
153    
154  pcre_chartables.c: dftables$(EXEEXT)  pcre_chartables.c: dftables$(EXEEXT)
155          ./dftables$(EXEEXT) $@          ./dftables$(EXEEXT) $@
156    else
157    
158    pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
159            rm -f $@
160            $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
161    
162    endif # WITH_REBUILD_CHARTABLES
163    
164    
165  ## The main pcre library  ## The main pcre library
166  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
# Line 121  libpcre_la_SOURCES = \ Line 174  libpcre_la_SOURCES = \
174    pcre_globals.c \    pcre_globals.c \
175    pcre_info.c \    pcre_info.c \
176    pcre_internal.h \    pcre_internal.h \
177      pcre_jit_compile.c \
178    pcre_maketables.c \    pcre_maketables.c \
179    pcre_newline.c \    pcre_newline.c \
180    pcre_ord2utf8.c \    pcre_ord2utf8.c \
# Line 128  libpcre_la_SOURCES = \ Line 182  libpcre_la_SOURCES = \
182    pcre_study.c \    pcre_study.c \
183    pcre_tables.c \    pcre_tables.c \
184    pcre_try_flipped.c \    pcre_try_flipped.c \
185    pcre_ucp_searchfuncs.c \    pcre_ucd.c \
186    pcre_valid_utf8.c \    pcre_valid_utf8.c \
187    pcre_version.c \    pcre_version.c \
188    pcre_xclass.c \    pcre_xclass.c \
189    ucp.h \    ucp.h
190    ucpinternal.h \  
   ucptable.h  
   
191  ## 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.
192  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
193    pcre_chartables.c    pcre_chartables.c
194    
195  # 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
196  # 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
197  # 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.
198  # building without Autotools support have an easier time of it.  EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist
199  EXTRA_DIST += pcre_printint.src config.h  
200    # The JIT compiler lives in a separate directory, but its files are #included
201    # when pcre_jit_compile.c is processed, so they must be distributed.
202    EXTRA_DIST += \
203      sljit/sljitConfig.h \
204      sljit/sljitConfigInternal.h \
205      sljit/sljitExecAllocator.c \
206      sljit/sljitLir.c \
207      sljit/sljitLir.h \
208      sljit/sljitNativeARM_Thumb2.c \
209      sljit/sljitNativeARM_v5.c \
210      sljit/sljitNativeMIPS_32.c \
211      sljit/sljitNativeMIPS_common.c \
212      sljit/sljitNativePPC_32.c \
213      sljit/sljitNativePPC_64.c \
214      sljit/sljitNativePPC_common.c \
215      sljit/sljitNativeX86_32.c \
216      sljit/sljitNativeX86_64.c \
217      sljit/sljitNativeX86_common.c \
218      sljit/sljitUtils.c
219    
220  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
221    
222  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
223    
224    ## If JIT support is enabled, arrange for the JIT test program to run.
225    if WITH_JIT
226    TESTS += pcre_jit_test
227    noinst_PROGRAMS += pcre_jit_test
228    pcre_jit_test_SOURCES = pcre_jit_test.c
229    pcre_jit_test_LDADD = libpcre.la
230    endif # WITH_JIT
231    
232  ## 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.
233  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
234  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
# Line 162  if WITH_PCRE_CPP Line 241  if WITH_PCRE_CPP
241    
242  lib_LTLIBRARIES += libpcrecpp.la  lib_LTLIBRARIES += libpcrecpp.la
243  libpcrecpp_la_SOURCES = \  libpcrecpp_la_SOURCES = \
244      pcrecpp_internal.h \
245    pcrecpp.cc \    pcrecpp.cc \
246    pcre_scanner.cc \    pcre_scanner.cc \
247    pcre_stringpiece.cc    pcre_stringpiece.cc
# Line 191  endif # WITH_PCRE_CPP Line 271  endif # WITH_PCRE_CPP
271  # ways. We install these test binaries in case folks find it helpful.  # ways. We install these test binaries in case folks find it helpful.
272    
273  TESTS += RunTest  TESTS += RunTest
274  noinst_SCRIPTS += RunTest  dist_noinst_SCRIPTS += RunTest
275  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
276  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
277  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
278  pcretest_LDADD = libpcreposix.la  pcretest_LDADD = libpcreposix.la $(LIBREADLINE)
279    
280  TESTS += RunGrepTest  TESTS += RunGrepTest
281  noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
282  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
283  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
284  pcregrep_LDADD = libpcreposix.la  pcregrep_LDADD = libpcreposix.la $(LIBZ) $(LIBBZ2)
285    
286  EXTRA_DIST += \  EXTRA_DIST += \
287    testdata/grepinput \    testdata/grepinput \
288      testdata/grepinput3 \
289    testdata/grepinput8 \    testdata/grepinput8 \
290      testdata/grepinputv \
291    testdata/grepinputx \    testdata/grepinputx \
292    testdata/greplist \    testdata/greplist \
293    testdata/grepoutput \    testdata/grepoutput \
294    testdata/grepoutput8 \    testdata/grepoutput8 \
295      testdata/grepoutputN \
296    testdata/testinput1 \    testdata/testinput1 \
297    testdata/testinput2 \    testdata/testinput2 \
298    testdata/testinput3 \    testdata/testinput3 \
# Line 219  EXTRA_DIST += \ Line 302  EXTRA_DIST += \
302    testdata/testinput7 \    testdata/testinput7 \
303    testdata/testinput8 \    testdata/testinput8 \
304    testdata/testinput9 \    testdata/testinput9 \
305      testdata/testinput10 \
306      testdata/testinput11 \
307      testdata/testinput12 \
308      testdata/testinput13 \
309    testdata/testoutput1 \    testdata/testoutput1 \
310    testdata/testoutput2 \    testdata/testoutput2 \
311    testdata/testoutput3 \    testdata/testoutput3 \
# Line 228  EXTRA_DIST += \ Line 315  EXTRA_DIST += \
315    testdata/testoutput7 \    testdata/testoutput7 \
316    testdata/testoutput8 \    testdata/testoutput8 \
317    testdata/testoutput9 \    testdata/testoutput9 \
318      testdata/testoutput10 \
319      testdata/testoutput11 \
320      testdata/testoutput12 \
321      testdata/testoutput13 \
322      testdata/wintestinput3 \
323      testdata/wintestoutput3 \
324    perltest.pl    perltest.pl
325    
326  CLEANFILES += \  CLEANFILES += \
327          testsavedregex \          testsavedregex \
328          teststderr \          teststderr \
329          testtry          testtry \
330            testNinput
331    
332    
333    # PCRE demonstration program. No longer built automatcally. The point is that
334    # the users should build it themselves. So just distribute the source.
335    # noinst_PROGRAMS += pcredemo
336    # pcredemo_SOURCES = pcredemo.c
337    # pcredemo_LDADD = libpcre.la
338    
339    EXTRA_DIST += pcredemo.c
340    
 # PCRE demonstration program  
 noinst_PROGRAMS += pcredemo  
 pcredemo_SOURCES = pcredemo.c  
 pcredemo_LDADD = libpcre.la  
341    
342  ## Utility rules, documentation, etc.  ## Utility rules, documentation, etc.
343    
344  # A compatibility line, the old build system worked with 'make test'  # A compatibility line, the old build system worked with 'make test'
345  test: check ;  test: check ;
346    
347    
348    # A PCRE user submitted the following addition, saying that it "will allow
349    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
350    # nice DLL for Windows use". (It is used by the pcre.dll target.)
351    DLL_OBJS= pcre_compile.o pcre_config.o \
352            pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
353            pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \
354            pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
355            pcre_study.o pcre_tables.o pcre_try_flipped.o \
356            pcre_ucd.o pcre_valid_utf8.o pcre_version.o \
357            pcre_chartables.o \
358            pcre_xclass.o
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".
363    pcre.dll: $(DLL_OBJS)
364            $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
365    
366    
367  # We have .pc files for pkg-config users.  # We have .pc files for pkg-config users.
368  pkgconfigdir = $(libdir)/pkgconfig  pkgconfigdir = $(libdir)/pkgconfig
369  pkgconfig_DATA = libpcre.pc  pkgconfig_DATA = libpcre.pc libpcreposix.pc
370  if WITH_PCRE_CPP  if WITH_PCRE_CPP
371  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
372  endif  endif
373    
374  dist_man_MANS = \  dist_man_MANS = \
375    doc/pcre.3 \    doc/pcre.3 \
376      doc/pcre-config.1 \
377    doc/pcre_compile.3 \    doc/pcre_compile.3 \
378    doc/pcre_compile2.3 \    doc/pcre_compile2.3 \
379    doc/pcre_config.3 \    doc/pcre_config.3 \
# Line 287  dist_man_MANS = \ Line 407  dist_man_MANS = \
407    doc/pcreprecompile.3 \    doc/pcreprecompile.3 \
408    doc/pcresample.3 \    doc/pcresample.3 \
409    doc/pcrestack.3 \    doc/pcrestack.3 \
410      doc/pcresyntax.3 \
411    doc/pcretest.1    doc/pcretest.1
412    
413  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
# Line 299  endif Line 420  endif
420  ## CMake support  ## CMake support
421    
422  EXTRA_DIST += \  EXTRA_DIST += \
423      cmake/COPYING-CMAKE-SCRIPTS \
424      cmake/FindPackageHandleStandardArgs.cmake \
425      cmake/FindReadline.cmake \
426    CMakeLists.txt \    CMakeLists.txt \
427    config-cmake.h.in    config-cmake.h.in
428    
 config-cmake.h.in: config.h.in  
         sed 's/#undef/#cmakedefine/g' config.h.in >$@  
   
 MAINTAINERCLEANFILES += config-cmake.h.in  
   
429  ## end Makefile.am  ## end Makefile.am

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

  ViewVC Help
Powered by ViewVC 1.1.5