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

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

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

revision 135 by ph10, Thu Mar 29 09:09:33 2007 UTC revision 690 by ph10, Sat Sep 10 16:19:31 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 \
10    AUTHORS \    AUTHORS \
# Line 14  dist_doc_DATA = \ Line 17  dist_doc_DATA = \
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 21  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 30  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 38  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 47  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 63  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 106  EXTRA_DIST += \ Line 119  EXTRA_DIST += \
119    pcre.h.generic \    pcre.h.generic \
120    config.h.generic    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  # These are the header files we'll install. We do not distribute pcre.h because
129  # it is generated from pcre.h.in.  # it is generated from pcre.h.in.
130  nodist_include_HEADERS = \  nodist_include_HEADERS = \
# Line 144  pcre_chartables.c: dftables$(EXEEXT) Line 163  pcre_chartables.c: dftables$(EXEEXT)
163  else  else
164    
165  pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist  pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
166          cp -f $(srcdir)/pcre_chartables.c.dist pcre_chartables.c          rm -f $@
167            $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
168    
169  endif # WITH_REBUILD_CHARTABLES  endif # WITH_REBUILD_CHARTABLES
170    
# Line 161  libpcre_la_SOURCES = \ Line 181  libpcre_la_SOURCES = \
181    pcre_globals.c \    pcre_globals.c \
182    pcre_info.c \    pcre_info.c \
183    pcre_internal.h \    pcre_internal.h \
184      pcre_jit_compile.c \
185    pcre_maketables.c \    pcre_maketables.c \
186    pcre_newline.c \    pcre_newline.c \
187    pcre_ord2utf8.c \    pcre_ord2utf8.c \
# Line 168  libpcre_la_SOURCES = \ Line 189  libpcre_la_SOURCES = \
189    pcre_study.c \    pcre_study.c \
190    pcre_tables.c \    pcre_tables.c \
191    pcre_try_flipped.c \    pcre_try_flipped.c \
192    pcre_ucp_searchfuncs.c \    pcre_ucd.c \
193    pcre_valid_utf8.c \    pcre_valid_utf8.c \
194    pcre_version.c \    pcre_version.c \
195    pcre_xclass.c \    pcre_xclass.c \
196    ucp.h \    ucp.h
   ucpinternal.h \  
   ucptable.h  
197    
198  ## 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.
199  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
# Line 185  nodist_libpcre_la_SOURCES = \ Line 204  nodist_libpcre_la_SOURCES = \
204  # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.  # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.
205  EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist  EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist
206    
207    # The JIT compiler lives in a separate directory, but its files are #included
208    # when pcre_jit_compile.c is processed, so they must be distributed.
209    EXTRA_DIST += \
210      sljit/sljitConfig.h \
211      sljit/sljitConfigInternal.h \
212      sljit/sljitExecAllocator.c \
213      sljit/sljitLir.c \
214      sljit/sljitLir.h \
215      sljit/sljitNativeARM_Thumb2.c \
216      sljit/sljitNativeARM_v5.c \
217      sljit/sljitNativeMIPS_32.c \
218      sljit/sljitNativeMIPS_common.c \
219      sljit/sljitNativePPC_32.c \
220      sljit/sljitNativePPC_64.c \
221      sljit/sljitNativePPC_common.c \
222      sljit/sljitNativeX86_32.c \
223      sljit/sljitNativeX86_64.c \
224      sljit/sljitNativeX86_common.c \
225      sljit/sljitUtils.c
226    
227  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
228    
229  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
230    
231    ## If JIT support and UTF-8 is enabled, arrange for the JIT test program to run.
232    if WITH_JIT
233    if WITH_UTF8
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_UTF8
239    endif # WITH_JIT
240    
241  ## 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.
242  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
243  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
# Line 201  if WITH_PCRE_CPP Line 250  if WITH_PCRE_CPP
250    
251  lib_LTLIBRARIES += libpcrecpp.la  lib_LTLIBRARIES += libpcrecpp.la
252  libpcrecpp_la_SOURCES = \  libpcrecpp_la_SOURCES = \
253      pcrecpp_internal.h \
254    pcrecpp.cc \    pcrecpp.cc \
255    pcre_scanner.cc \    pcre_scanner.cc \
256    pcre_stringpiece.cc    pcre_stringpiece.cc
# Line 230  endif # WITH_PCRE_CPP Line 280  endif # WITH_PCRE_CPP
280  # ways. We install these test binaries in case folks find it helpful.  # ways. We install these test binaries in case folks find it helpful.
281    
282  TESTS += RunTest  TESTS += RunTest
283  noinst_SCRIPTS += RunTest  dist_noinst_SCRIPTS += RunTest
284  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
285  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
286  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
287  pcretest_LDADD = libpcreposix.la  pcretest_LDADD = libpcreposix.la $(LIBREADLINE)
288    
289  TESTS += RunGrepTest  TESTS += RunGrepTest
290  noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
291  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
292  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
293  pcregrep_LDADD = libpcreposix.la  pcregrep_LDADD = libpcreposix.la $(LIBZ) $(LIBBZ2)
294    
295  EXTRA_DIST += \  EXTRA_DIST += \
296    testdata/grepinput \    testdata/grepinput \
297      testdata/grepinput3 \
298    testdata/grepinput8 \    testdata/grepinput8 \
299      testdata/grepinputv \
300    testdata/grepinputx \    testdata/grepinputx \
301    testdata/greplist \    testdata/greplist \
302    testdata/grepoutput \    testdata/grepoutput \
# Line 259  EXTRA_DIST += \ Line 311  EXTRA_DIST += \
311    testdata/testinput7 \    testdata/testinput7 \
312    testdata/testinput8 \    testdata/testinput8 \
313    testdata/testinput9 \    testdata/testinput9 \
314      testdata/testinput10 \
315      testdata/testinput11 \
316      testdata/testinput12 \
317      testdata/testinput13 \
318      testdata/testinput14 \
319      testdata/testinput15 \
320    testdata/testoutput1 \    testdata/testoutput1 \
321    testdata/testoutput2 \    testdata/testoutput2 \
322    testdata/testoutput3 \    testdata/testoutput3 \
# Line 268  EXTRA_DIST += \ Line 326  EXTRA_DIST += \
326    testdata/testoutput7 \    testdata/testoutput7 \
327    testdata/testoutput8 \    testdata/testoutput8 \
328    testdata/testoutput9 \    testdata/testoutput9 \
329      testdata/testoutput10 \
330      testdata/testoutput11 \
331      testdata/testoutput12 \
332      testdata/testoutput13 \
333      testdata/testoutput14 \
334      testdata/testoutput15 \
335      testdata/wintestinput3 \
336      testdata/wintestoutput3 \
337    perltest.pl    perltest.pl
338    
339  CLEANFILES += \  CLEANFILES += \
340          testsavedregex \          testsavedregex \
341          teststderr \          teststderr \
342          testtry          testtry \
343            testNinput
344    
345    
346    # PCRE demonstration program. No longer built automatcally. The point is that
347    # the users should build it themselves. So just distribute the source.
348    # noinst_PROGRAMS += pcredemo
349    # pcredemo_SOURCES = pcredemo.c
350    # pcredemo_LDADD = libpcre.la
351    
352    EXTRA_DIST += pcredemo.c
353    
 # PCRE demonstration program  
 noinst_PROGRAMS += pcredemo  
 pcredemo_SOURCES = pcredemo.c  
 pcredemo_LDADD = libpcre.la  
354    
355  ## Utility rules, documentation, etc.  ## Utility rules, documentation, etc.
356    
357  # A compatibility line, the old build system worked with 'make test'  # A compatibility line, the old build system worked with 'make test'
358  test: check ;  test: check ;
359    
360    
361    # A PCRE user submitted the following addition, saying that it "will allow
362    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
363    # nice DLL for Windows use". (It is used by the pcre.dll target.)
364    DLL_OBJS= pcre_compile.o pcre_config.o \
365            pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
366            pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \
367            pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
368            pcre_study.o pcre_tables.o pcre_try_flipped.o \
369            pcre_ucd.o pcre_valid_utf8.o pcre_version.o \
370            pcre_chartables.o \
371            pcre_xclass.o
372    
373    # A PCRE user submitted the following addition, saying that it "will allow
374    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
375    # nice DLL for Windows use".
376    pcre.dll: $(DLL_OBJS)
377            $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
378    
379    
380  # We have .pc files for pkg-config users.  # We have .pc files for pkg-config users.
381  pkgconfigdir = $(libdir)/pkgconfig  pkgconfigdir = $(libdir)/pkgconfig
382  pkgconfig_DATA = libpcre.pc  pkgconfig_DATA = libpcre.pc libpcreposix.pc
383  if WITH_PCRE_CPP  if WITH_PCRE_CPP
384  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
385  endif  endif
386    
387  dist_man_MANS = \  dist_man_MANS = \
388    doc/pcre.3 \    doc/pcre.3 \
389      doc/pcre-config.1 \
390      doc/pcre_assign_jit_stack.3 \
391    doc/pcre_compile.3 \    doc/pcre_compile.3 \
392    doc/pcre_compile2.3 \    doc/pcre_compile2.3 \
393    doc/pcre_config.3 \    doc/pcre_config.3 \
# Line 301  dist_man_MANS = \ Line 395  dist_man_MANS = \
395    doc/pcre_copy_substring.3 \    doc/pcre_copy_substring.3 \
396    doc/pcre_dfa_exec.3 \    doc/pcre_dfa_exec.3 \
397    doc/pcre_exec.3 \    doc/pcre_exec.3 \
398      doc/pcre_free_study.3 \
399    doc/pcre_free_substring.3 \    doc/pcre_free_substring.3 \
400    doc/pcre_free_substring_list.3 \    doc/pcre_free_substring_list.3 \
401    doc/pcre_fullinfo.3 \    doc/pcre_fullinfo.3 \
# Line 310  dist_man_MANS = \ Line 405  dist_man_MANS = \
405    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
406    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
407    doc/pcre_info.3 \    doc/pcre_info.3 \
408      doc/pcre_jit_stack_alloc.3 \
409      doc/pcre_jit_stack_free.3 \
410    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
411    doc/pcre_refcount.3 \    doc/pcre_refcount.3 \
412    doc/pcre_study.3 \    doc/pcre_study.3 \
# Line 319  dist_man_MANS = \ Line 416  dist_man_MANS = \
416    doc/pcrecallout.3 \    doc/pcrecallout.3 \
417    doc/pcrecompat.3 \    doc/pcrecompat.3 \
418    doc/pcregrep.1 \    doc/pcregrep.1 \
419      doc/pcrejit.3 \
420      doc/pcrelimits.3 \
421    doc/pcrematching.3 \    doc/pcrematching.3 \
422    doc/pcrepartial.3 \    doc/pcrepartial.3 \
423    doc/pcrepattern.3 \    doc/pcrepattern.3 \
# Line 327  dist_man_MANS = \ Line 426  dist_man_MANS = \
426    doc/pcreprecompile.3 \    doc/pcreprecompile.3 \
427    doc/pcresample.3 \    doc/pcresample.3 \
428    doc/pcrestack.3 \    doc/pcrestack.3 \
429    doc/pcretest.1    doc/pcresyntax.3 \
430      doc/pcretest.1 \
431      doc/pcreunicode.3
432    
433  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
434  EXTRA_DIST += $(pcrecpp_man)  EXTRA_DIST += $(pcrecpp_man)
# Line 339  endif Line 440  endif
440  ## CMake support  ## CMake support
441    
442  EXTRA_DIST += \  EXTRA_DIST += \
443      cmake/COPYING-CMAKE-SCRIPTS \
444      cmake/FindPackageHandleStandardArgs.cmake \
445      cmake/FindReadline.cmake \
446    CMakeLists.txt \    CMakeLists.txt \
447    config-cmake.h.in    config-cmake.h.in
448    
 config-cmake.h.in: config.h.in  
         sed 's/#undef/#cmakedefine/g' config.h.in >$@  
   
 MAINTAINERCLEANFILES += config-cmake.h.in  
   
449  ## end Makefile.am  ## end Makefile.am

Legend:
Removed from v.135  
changed lines
  Added in v.690

  ViewVC Help
Powered by ViewVC 1.1.5