/[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 589 by ph10, Sat Jan 15 11:31:39 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 128  libpcre_la_SOURCES = \ Line 181  libpcre_la_SOURCES = \
181    pcre_study.c \    pcre_study.c \
182    pcre_tables.c \    pcre_tables.c \
183    pcre_try_flipped.c \    pcre_try_flipped.c \
184    pcre_ucp_searchfuncs.c \    pcre_ucd.c \
185    pcre_valid_utf8.c \    pcre_valid_utf8.c \
186    pcre_version.c \    pcre_version.c \
187    pcre_xclass.c \    pcre_xclass.c \
188    ucp.h \    ucp.h
189    ucpinternal.h \  
   ucptable.h  
   
190  ## 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.
191  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
192    pcre_chartables.c    pcre_chartables.c
193    
194  # 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
195  # 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
196  # 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.
197  # building without Autotools support have an easier time of it.  EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist
 EXTRA_DIST += pcre_printint.src config.h  
198    
199  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
200    
# Line 162  if WITH_PCRE_CPP Line 212  if WITH_PCRE_CPP
212    
213  lib_LTLIBRARIES += libpcrecpp.la  lib_LTLIBRARIES += libpcrecpp.la
214  libpcrecpp_la_SOURCES = \  libpcrecpp_la_SOURCES = \
215      pcrecpp_internal.h \
216    pcrecpp.cc \    pcrecpp.cc \
217    pcre_scanner.cc \    pcre_scanner.cc \
218    pcre_stringpiece.cc    pcre_stringpiece.cc
# Line 191  endif # WITH_PCRE_CPP Line 242  endif # WITH_PCRE_CPP
242  # ways. We install these test binaries in case folks find it helpful.  # ways. We install these test binaries in case folks find it helpful.
243    
244  TESTS += RunTest  TESTS += RunTest
245  noinst_SCRIPTS += RunTest  dist_noinst_SCRIPTS += RunTest
246  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
247  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
248  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
249  pcretest_LDADD = libpcreposix.la  pcretest_LDADD = libpcreposix.la $(LIBREADLINE)
250    
251  TESTS += RunGrepTest  TESTS += RunGrepTest
252  noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
253  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
254  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
255  pcregrep_LDADD = libpcreposix.la  pcregrep_LDADD = libpcreposix.la $(LIBZ) $(LIBBZ2)
256    
257  EXTRA_DIST += \  EXTRA_DIST += \
258    testdata/grepinput \    testdata/grepinput \
259      testdata/grepinput3 \
260    testdata/grepinput8 \    testdata/grepinput8 \
261      testdata/grepinputv \
262    testdata/grepinputx \    testdata/grepinputx \
263    testdata/greplist \    testdata/greplist \
264    testdata/grepoutput \    testdata/grepoutput \
265    testdata/grepoutput8 \    testdata/grepoutput8 \
266      testdata/grepoutputN \
267    testdata/testinput1 \    testdata/testinput1 \
268    testdata/testinput2 \    testdata/testinput2 \
269    testdata/testinput3 \    testdata/testinput3 \
# Line 219  EXTRA_DIST += \ Line 273  EXTRA_DIST += \
273    testdata/testinput7 \    testdata/testinput7 \
274    testdata/testinput8 \    testdata/testinput8 \
275    testdata/testinput9 \    testdata/testinput9 \
276      testdata/testinput10 \
277      testdata/testinput11 \
278      testdata/testinput12 \
279    testdata/testoutput1 \    testdata/testoutput1 \
280    testdata/testoutput2 \    testdata/testoutput2 \
281    testdata/testoutput3 \    testdata/testoutput3 \
# Line 228  EXTRA_DIST += \ Line 285  EXTRA_DIST += \
285    testdata/testoutput7 \    testdata/testoutput7 \
286    testdata/testoutput8 \    testdata/testoutput8 \
287    testdata/testoutput9 \    testdata/testoutput9 \
288      testdata/testoutput10 \
289      testdata/testoutput11 \
290      testdata/testoutput12 \
291      testdata/wintestinput3 \
292      testdata/wintestoutput3 \
293    perltest.pl    perltest.pl
294    
295  CLEANFILES += \  CLEANFILES += \
296          testsavedregex \          testsavedregex \
297          teststderr \          teststderr \
298          testtry          testtry \
299            testNinput
300    
301    
302    # PCRE demonstration program. No longer built automatcally. The point is that
303    # the users should build it themselves. So just distribute the source.
304    # noinst_PROGRAMS += pcredemo
305    # pcredemo_SOURCES = pcredemo.c
306    # pcredemo_LDADD = libpcre.la
307    
308    EXTRA_DIST += pcredemo.c
309    
 # PCRE demonstration program  
 noinst_PROGRAMS += pcredemo  
 pcredemo_SOURCES = pcredemo.c  
 pcredemo_LDADD = libpcre.la  
310    
311  ## Utility rules, documentation, etc.  ## Utility rules, documentation, etc.
312    
313  # A compatibility line, the old build system worked with 'make test'  # A compatibility line, the old build system worked with 'make test'
314  test: check ;  test: check ;
315    
316    
317    # A PCRE user submitted the following addition, saying that it "will allow
318    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
319    # nice DLL for Windows use". (It is used by the pcre.dll target.)
320    DLL_OBJS= pcre_compile.o pcre_config.o \
321            pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
322            pcre_globals.o pcre_info.o pcre_maketables.o \
323            pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
324            pcre_study.o pcre_tables.o pcre_try_flipped.o \
325            pcre_ucd.o pcre_valid_utf8.o pcre_version.o \
326            pcre_chartables.o \
327            pcre_xclass.o
328    
329    # A PCRE user submitted the following addition, saying that it "will allow
330    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
331    # nice DLL for Windows use".
332    pcre.dll: $(DLL_OBJS)
333            $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
334    
335    
336  # We have .pc files for pkg-config users.  # We have .pc files for pkg-config users.
337  pkgconfigdir = $(libdir)/pkgconfig  pkgconfigdir = $(libdir)/pkgconfig
338  pkgconfig_DATA = libpcre.pc  pkgconfig_DATA = libpcre.pc libpcreposix.pc
339  if WITH_PCRE_CPP  if WITH_PCRE_CPP
340  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
341  endif  endif
342    
343  dist_man_MANS = \  dist_man_MANS = \
344    doc/pcre.3 \    doc/pcre.3 \
345      doc/pcre-config.1 \
346    doc/pcre_compile.3 \    doc/pcre_compile.3 \
347    doc/pcre_compile2.3 \    doc/pcre_compile2.3 \
348    doc/pcre_config.3 \    doc/pcre_config.3 \
# Line 287  dist_man_MANS = \ Line 376  dist_man_MANS = \
376    doc/pcreprecompile.3 \    doc/pcreprecompile.3 \
377    doc/pcresample.3 \    doc/pcresample.3 \
378    doc/pcrestack.3 \    doc/pcrestack.3 \
379      doc/pcresyntax.3 \
380    doc/pcretest.1    doc/pcretest.1
381    
382  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
# Line 299  endif Line 389  endif
389  ## CMake support  ## CMake support
390    
391  EXTRA_DIST += \  EXTRA_DIST += \
392      cmake/COPYING-CMAKE-SCRIPTS \
393      cmake/FindPackageHandleStandardArgs.cmake \
394      cmake/FindReadline.cmake \
395    CMakeLists.txt \    CMakeLists.txt \
396    config-cmake.h.in    config-cmake.h.in
397    
 config-cmake.h.in: config.h.in  
         sed 's/#undef/#cmakedefine/g' config.h.in >$@  
   
 MAINTAINERCLEANFILES += config-cmake.h.in  
   
398  ## end Makefile.am  ## end Makefile.am

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

  ViewVC Help
Powered by ViewVC 1.1.5