/[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 678 by ph10, Sun Aug 28 15:23:03 2011 UTC revision 877 by ph10, Sun Jan 15 12:20:28 2012 UTC
# Line 17  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/pcre16.html \
21    doc/html/pcre-config.html \    doc/html/pcre-config.html \
22    doc/html/pcre_assign_jit_stack.html \    doc/html/pcre_assign_jit_stack.html \
23    doc/html/pcre_compile.html \    doc/html/pcre_compile.html \
# Line 35  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 \
   doc/html/pcre_info.html \  
39    doc/html/pcre_jit_stack_alloc.html \    doc/html/pcre_jit_stack_alloc.html \
40    doc/html/pcre_jit_stack_free.html \    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 \
# Line 79  check_SCRIPTS = Line 81  check_SCRIPTS =
81  dist_noinst_SCRIPTS =  dist_noinst_SCRIPTS =
82    
83  # 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
84  # (non-user-visible) helper programs needed to build libpcre.  # (non-user-visible) helper programs needed to build libpcre or libpcre16.
85  bin_PROGRAMS =  bin_PROGRAMS =
86  noinst_PROGRAMS =  noinst_PROGRAMS =
87    
# Line 100  EXTRA_DIST += \ Line 102  EXTRA_DIST += \
102  # These files are used in the preparation of a release  # These files are used in the preparation of a release
103  EXTRA_DIST += \  EXTRA_DIST += \
104    PrepareRelease \    PrepareRelease \
105      CheckMan \
106    CleanTxt \    CleanTxt \
107    Detrail \    Detrail \
108    132html \    132html \
# Line 168  pcre_chartables.c: $(srcdir)/pcre_charta Line 171  pcre_chartables.c: $(srcdir)/pcre_charta
171    
172  endif # WITH_REBUILD_CHARTABLES  endif # WITH_REBUILD_CHARTABLES
173    
174    BUILT_SOURCES = pcre_chartables.c
175    
176  ## The main pcre library  ## The main pcre library
177    
178    # Build the 8 bit library if it is enabled.
179    if WITH_PCRE8
180  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
181  libpcre_la_SOURCES = \  libpcre_la_SOURCES = \
182      pcre_byte_order.c \
183    pcre_compile.c \    pcre_compile.c \
184    pcre_config.c \    pcre_config.c \
185    pcre_dfa_exec.c \    pcre_dfa_exec.c \
# Line 179  libpcre_la_SOURCES = \ Line 187  libpcre_la_SOURCES = \
187    pcre_fullinfo.c \    pcre_fullinfo.c \
188    pcre_get.c \    pcre_get.c \
189    pcre_globals.c \    pcre_globals.c \
   pcre_info.c \  
190    pcre_internal.h \    pcre_internal.h \
191    pcre_jit_compile.c \    pcre_jit_compile.c \
192    pcre_maketables.c \    pcre_maketables.c \
193    pcre_newline.c \    pcre_newline.c \
194    pcre_ord2utf8.c \    pcre_ord2utf8.c \
195    pcre_refcount.c \    pcre_refcount.c \
196      pcre_string_utils.c \
197    pcre_study.c \    pcre_study.c \
198    pcre_tables.c \    pcre_tables.c \
   pcre_try_flipped.c \  
199    pcre_ucd.c \    pcre_ucd.c \
200    pcre_valid_utf8.c \    pcre_valid_utf8.c \
201    pcre_version.c \    pcre_version.c \
# Line 199  libpcre_la_SOURCES = \ Line 206  libpcre_la_SOURCES = \
206  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
207    pcre_chartables.c    pcre_chartables.c
208    
209  # The pcre_printint.src file is #included by some source files, so it must be  endif # WITH_PCRE8
210  # distributed. The pcre_chartables.c.dist file is the default version of  
211  # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.  # Build the 16 bit library if it is enabled.
212  EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist  if WITH_PCRE16
213    lib_LTLIBRARIES += libpcre16.la
214    libpcre16_la_SOURCES = \
215      pcre16_byte_order.c \
216      pcre16_chartables.c \
217      pcre16_compile.c \
218      pcre16_config.c \
219      pcre16_dfa_exec.c \
220      pcre16_exec.c \
221      pcre16_fullinfo.c \
222      pcre16_get.c \
223      pcre16_globals.c \
224      pcre16_jit_compile.c \
225      pcre16_maketables.c \
226      pcre16_newline.c \
227      pcre16_ord2utf16.c \
228      pcre16_refcount.c \
229      pcre16_string_utils.c \
230      pcre16_study.c \
231      pcre16_tables.c \
232      pcre16_ucd.c \
233      pcre16_utf16_utils.c \
234      pcre16_valid_utf16.c \
235      pcre16_version.c \
236      pcre16_xclass.c
237    
238    ## This file is generated as part of the building process, so don't distribute.
239    nodist_libpcre16_la_SOURCES = \
240      pcre_chartables.c
241    
242    endif # WITH_PCRE16
243    
244    # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,
245    # used unless --enable-rebuild-chartables is specified.
246    EXTRA_DIST += pcre_chartables.c.dist
247    
248  # The JIT compiler lives in a separate directory, but its files are #included  # The JIT compiler lives in a separate directory, but its files are #included
249  # when pcre_jit_compile.c is processed, so they must be distributed.  # when pcre_jit_compile.c is processed, so they must be distributed.
# Line 224  EXTRA_DIST += \ Line 265  EXTRA_DIST += \
265    sljit/sljitNativeX86_common.c \    sljit/sljitNativeX86_common.c \
266    sljit/sljitUtils.c    sljit/sljitUtils.c
267    
268    if WITH_PCRE8
269  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
270    endif # WITH_PCRE8
271    if WITH_PCRE16
272    libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE16_LDFLAGS)
273    endif # WITH_PCRE16
274    
275  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
276    
# Line 233  if WITH_JIT Line 279  if WITH_JIT
279  TESTS += pcre_jit_test  TESTS += pcre_jit_test
280  noinst_PROGRAMS += pcre_jit_test  noinst_PROGRAMS += pcre_jit_test
281  pcre_jit_test_SOURCES = pcre_jit_test.c  pcre_jit_test_SOURCES = pcre_jit_test.c
282  pcre_jit_test_LDADD = libpcre.la  pcre_jit_test_LDADD =
283    if WITH_PCRE8
284    pcre_jit_test_LDADD += libpcre.la
285    endif # WITH_PCRE8
286    if WITH_PCRE16
287    pcre_jit_test_LDADD += libpcre16.la
288    endif # WITH_PCRE16
289  endif # WITH_JIT  endif # WITH_JIT
290    
291  ## 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.
292    if WITH_PCRE8
293  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
294  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
295    pcreposix.c    pcreposix.c
296  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
297  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
298    endif # WITH_PCRE8
299    
300  ## There's a C++ library as well.  ## There's a C++ library as well.
301  if WITH_PCRE_CPP  if WITH_PCRE_CPP
# Line 282  dist_noinst_SCRIPTS += RunTest Line 336  dist_noinst_SCRIPTS += RunTest
336  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
337  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
338  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
339  pcretest_LDADD = libpcreposix.la $(LIBREADLINE)  pcretest_LDADD = $(LIBREADLINE)
340    if WITH_PCRE8
341    pcretest_SOURCES += pcre_printint.c
342    pcretest_LDADD += libpcreposix.la
343    endif # WITH_PCRE8
344    if WITH_PCRE16
345    pcretest_SOURCES += pcre16_printint.c
346    pcretest_LDADD += libpcre16.la
347    endif # WITH_PCRE16
348    
349    if WITH_PCRE8
350  TESTS += RunGrepTest  TESTS += RunGrepTest
351  dist_noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
352  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
353  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
354  pcregrep_LDADD = libpcreposix.la $(LIBZ) $(LIBBZ2)  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
355    pcregrep_LDADD += libpcreposix.la
356    endif # WITH_PCRE8
357    
358  EXTRA_DIST += \  EXTRA_DIST += \
359    testdata/grepinput \    testdata/grepinput \
# Line 300  EXTRA_DIST += \ Line 365  EXTRA_DIST += \
365    testdata/grepoutput \    testdata/grepoutput \
366    testdata/grepoutput8 \    testdata/grepoutput8 \
367    testdata/grepoutputN \    testdata/grepoutputN \
368      testdata/greppatN4 \
369      testdata/saved16 \
370      testdata/saved16BE-1 \
371      testdata/saved16BE-2 \
372      testdata/saved16LE-1 \
373      testdata/saved16LE-2 \
374      testdata/saved8 \
375    testdata/testinput1 \    testdata/testinput1 \
376    testdata/testinput2 \    testdata/testinput2 \
377    testdata/testinput3 \    testdata/testinput3 \
# Line 315  EXTRA_DIST += \ Line 387  EXTRA_DIST += \
387    testdata/testinput13 \    testdata/testinput13 \
388    testdata/testinput14 \    testdata/testinput14 \
389    testdata/testinput15 \    testdata/testinput15 \
390      testdata/testinput16 \
391      testdata/testinput17 \
392      testdata/testinput18 \
393      testdata/testinput19 \
394      testdata/testinput20 \
395    testdata/testoutput1 \    testdata/testoutput1 \
396    testdata/testoutput2 \    testdata/testoutput2 \
397    testdata/testoutput3 \    testdata/testoutput3 \
# Line 325  EXTRA_DIST += \ Line 402  EXTRA_DIST += \
402    testdata/testoutput8 \    testdata/testoutput8 \
403    testdata/testoutput9 \    testdata/testoutput9 \
404    testdata/testoutput10 \    testdata/testoutput10 \
405    testdata/testoutput11 \    testdata/testoutput11-16 \
406      testdata/testoutput11-8 \
407    testdata/testoutput12 \    testdata/testoutput12 \
408    testdata/testoutput13 \    testdata/testoutput13 \
409    testdata/testoutput14 \    testdata/testoutput14 \
410    testdata/testoutput15 \    testdata/testoutput15 \
411      testdata/testoutput16 \
412      testdata/testoutput17 \
413      testdata/testoutput18 \
414      testdata/testoutput19 \
415      testdata/testoutput20 \
416    testdata/wintestinput3 \    testdata/wintestinput3 \
417    testdata/wintestoutput3 \    testdata/wintestoutput3 \
418    perltest.pl    perltest.pl
# Line 359  test: check ; Line 442  test: check ;
442  # A PCRE user submitted the following addition, saying that it "will allow  # A PCRE user submitted the following addition, saying that it "will allow
443  # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a  # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
444  # nice DLL for Windows use". (It is used by the pcre.dll target.)  # nice DLL for Windows use". (It is used by the pcre.dll target.)
445  DLL_OBJS= pcre_compile.o pcre_config.o \  DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
446          pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \          pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
447          pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \          pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
448          pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \          pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
449          pcre_study.o pcre_tables.o pcre_try_flipped.o \          pcre_study.o pcre_tables.o pcre_ucd.o \
450          pcre_ucd.o pcre_valid_utf8.o pcre_version.o \          pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
         pcre_chartables.o \  
451          pcre_xclass.o          pcre_xclass.o
452    
453  # A PCRE user submitted the following addition, saying that it "will allow  # A PCRE user submitted the following addition, saying that it "will allow
# Line 378  pcre.dll: $(DLL_OBJS) Line 460  pcre.dll: $(DLL_OBJS)
460  # We have .pc files for pkg-config users.  # We have .pc files for pkg-config users.
461  pkgconfigdir = $(libdir)/pkgconfig  pkgconfigdir = $(libdir)/pkgconfig
462  pkgconfig_DATA = libpcre.pc libpcreposix.pc  pkgconfig_DATA = libpcre.pc libpcreposix.pc
463    if WITH_PCRE16
464    pkgconfig_DATA += libpcre16.pc
465    endif
466  if WITH_PCRE_CPP  if WITH_PCRE_CPP
467  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
468  endif  endif
469    
470  dist_man_MANS = \  dist_man_MANS = \
471    doc/pcre.3 \    doc/pcre.3 \
472      doc/pcre16.3 \
473    doc/pcre-config.1 \    doc/pcre-config.1 \
474    doc/pcre_assign_jit_stack.3 \    doc/pcre_assign_jit_stack.3 \
475    doc/pcre_compile.3 \    doc/pcre_compile.3 \
# Line 402  dist_man_MANS = \ Line 488  dist_man_MANS = \
488    doc/pcre_get_stringtable_entries.3 \    doc/pcre_get_stringtable_entries.3 \
489    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
490    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
   doc/pcre_info.3 \  
491    doc/pcre_jit_stack_alloc.3 \    doc/pcre_jit_stack_alloc.3 \
492    doc/pcre_jit_stack_free.3 \    doc/pcre_jit_stack_free.3 \
493    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
494      doc/pcre_pattern_to_host_byte_order.3 \
495    doc/pcre_refcount.3 \    doc/pcre_refcount.3 \
496    doc/pcre_study.3 \    doc/pcre_study.3 \
497      doc/pcre_utf16_to_host_byte_order.3 \
498    doc/pcre_version.3 \    doc/pcre_version.3 \
499    doc/pcreapi.3 \    doc/pcreapi.3 \
500    doc/pcrebuild.3 \    doc/pcrebuild.3 \
# Line 428  dist_man_MANS = \ Line 515  dist_man_MANS = \
515    doc/pcretest.1 \    doc/pcretest.1 \
516    doc/pcreunicode.3    doc/pcreunicode.3
517    
518    # Arrange for the per-function man pages to have 16-bit names as well.
519    install-exec-hook:
520            pushd $(DESTDIR)($man3dir)
521            ln -s pcre_assign_jit_stack.3            pcre16_assign_jit_stack.3
522            ln -s pcre_compile.3                     pcre16_compile.3
523            ln -s pcre_compile2.3                    pcre16_compile2.3
524            ln -s pcre_config.3                      pcre16_config.3
525            ln -s pcre_copy_named_substring.3        pcre16_copy_named_substring.3
526            ln -s pcre_copy_substring.3              pcre16_copy_substring.3
527            ln -s pcre_dfa_exec.3                    pcre16_dfa_exec.3
528            ln -s pcre_exec.3                        pcre16_exec.3
529            ln -s pcre_free_study.3                  pcre16_free_study.3
530            ln -s pcre_free_substring.3              pcre16_free_substring.3
531            ln -s pcre_free_substring_list.3         pcre16_free_substring_list.3
532            ln -s pcre_fullinfo.3                    pcre16_fullinfo.3
533            ln -s pcre_get_named_substring.3         pcre16_get_named_substring.3
534            ln -s pcre_get_stringnumber.3            pcre16_get_stringnumber.3
535            ln -s pcre_get_stringtable_entries.3     pcre16_get_stringtable_entries.3
536            ln -s pcre_get_substring.3               pcre16_get_substring.3
537            ln -s pcre_get_substring_list.3          pcre16_get_substring_list.3
538            ln -s pcre_jit_stack_alloc.3             pcre16_jit_stack_alloc.3
539            ln -s pcre_jit_stack_free.3              pcre16_jit_stack_free.3
540            ln -s pcre_maketables.3                  pcre16_maketables.3
541            ln -s pcre_pattern_to_host_byte_order.3  pcre16_pattern_to_host_byte_order.3
542            ln -s pcre_refcount.3                    pcre16_refcount.3
543            ln -s pcre_study.3                       pcre16_study.3
544            ln -s pcre_utf16_to_host_byte_order.3    pcre16_utf16_to_host_byte_order.3
545            ln -s pcre_version.3                     pcre16_version.3
546            popd
547    
548  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
549  EXTRA_DIST += $(pcrecpp_man)  EXTRA_DIST += $(pcrecpp_man)
550    

Legend:
Removed from v.678  
changed lines
  Added in v.877

  ViewVC Help
Powered by ViewVC 1.1.5