/[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 222 by ph10, Fri Aug 17 10:48:51 2007 UTC revision 842 by ph10, Sat Dec 31 15:19:04 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 \    doc/pcre-config.txt \
# Line 16  dist_html_DATA = \ Line 18  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 \    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 23  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 31  dist_html_DATA = \ Line 35  dist_html_DATA = \
35    doc/html/pcre_get_stringtable_entries.html \    doc/html/pcre_get_stringtable_entries.html \
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_jit_stack_alloc.html \
39      doc/html/pcre_jit_stack_free.html \
40    doc/html/pcre_maketables.html \    doc/html/pcre_maketables.html \
41    doc/html/pcre_refcount.html \    doc/html/pcre_refcount.html \
42    doc/html/pcre_study.html \    doc/html/pcre_study.html \
# Line 40  dist_html_DATA = \ Line 45  dist_html_DATA = \
45    doc/html/pcrebuild.html \    doc/html/pcrebuild.html \
46    doc/html/pcrecallout.html \    doc/html/pcrecallout.html \
47    doc/html/pcrecompat.html \    doc/html/pcrecompat.html \
48      doc/html/pcredemo.html \
49    doc/html/pcregrep.html \    doc/html/pcregrep.html \
50      doc/html/pcrejit.html \
51      doc/html/pcrelimits.html \
52    doc/html/pcrematching.html \    doc/html/pcrematching.html \
53    doc/html/pcrepartial.html \    doc/html/pcrepartial.html \
54    doc/html/pcrepattern.html \    doc/html/pcrepattern.html \
# Line 49  dist_html_DATA = \ Line 57  dist_html_DATA = \
57    doc/html/pcreprecompile.html \    doc/html/pcreprecompile.html \
58    doc/html/pcresample.html \    doc/html/pcresample.html \
59    doc/html/pcrestack.html \    doc/html/pcrestack.html \
60    doc/html/pcretest.html    doc/html/pcresyntax.html \
61      doc/html/pcretest.html \
62      doc/html/pcreunicode.html
63    
64  pcrecpp_html = doc/html/pcrecpp.html  pcrecpp_html = doc/html/pcrecpp.html
65  dist_noinst_DATA = $(pcrecpp_html)  dist_noinst_DATA = $(pcrecpp_html)
# Line 68  check_SCRIPTS = Line 78  check_SCRIPTS =
78  dist_noinst_SCRIPTS =  dist_noinst_SCRIPTS =
79    
80  # 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
81  # (non-user-visible) helper programs needed to build libpcre.  # (non-user-visible) helper programs needed to build libpcre or libpcre16.
82  bin_PROGRAMS =  bin_PROGRAMS =
83  noinst_PROGRAMS =  noinst_PROGRAMS =
84    
# Line 89  EXTRA_DIST += \ Line 99  EXTRA_DIST += \
99  # These files are used in the preparation of a release  # These files are used in the preparation of a release
100  EXTRA_DIST += \  EXTRA_DIST += \
101    PrepareRelease \    PrepareRelease \
102      CheckMan \
103    CleanTxt \    CleanTxt \
104    Detrail \    Detrail \
105    132html \    132html \
# Line 157  pcre_chartables.c: $(srcdir)/pcre_charta Line 168  pcre_chartables.c: $(srcdir)/pcre_charta
168    
169  endif # WITH_REBUILD_CHARTABLES  endif # WITH_REBUILD_CHARTABLES
170    
171    BUILT_SOURCES = pcre_chartables.c
172    
173  ## The main pcre library  ## The main pcre library
174    
175    # Build the 8 bit library if it is enabled.
176    if WITH_PCRE8
177  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
178  libpcre_la_SOURCES = \  libpcre_la_SOURCES = \
179      pcre_byte_order.c \
180    pcre_compile.c \    pcre_compile.c \
181    pcre_config.c \    pcre_config.c \
182    pcre_dfa_exec.c \    pcre_dfa_exec.c \
# Line 168  libpcre_la_SOURCES = \ Line 184  libpcre_la_SOURCES = \
184    pcre_fullinfo.c \    pcre_fullinfo.c \
185    pcre_get.c \    pcre_get.c \
186    pcre_globals.c \    pcre_globals.c \
   pcre_info.c \  
187    pcre_internal.h \    pcre_internal.h \
188      pcre_jit_compile.c \
189    pcre_maketables.c \    pcre_maketables.c \
190    pcre_newline.c \    pcre_newline.c \
191    pcre_ord2utf8.c \    pcre_ord2utf8.c \
192    pcre_refcount.c \    pcre_refcount.c \
193      pcre_string_utils.c \
194    pcre_study.c \    pcre_study.c \
195    pcre_tables.c \    pcre_tables.c \
196    pcre_try_flipped.c \    pcre_ucd.c \
   pcre_ucp_searchfuncs.c \  
197    pcre_valid_utf8.c \    pcre_valid_utf8.c \
198    pcre_version.c \    pcre_version.c \
199    pcre_xclass.c \    pcre_xclass.c \
200    ucp.h \    ucp.h
   ucpinternal.h \  
   ucptable.h  
201    
202  ## 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.
203  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
204    pcre_chartables.c    pcre_chartables.c
205    
206  # The pcre_printint.src file is #included by some source files, so it must be  endif # WITH_PCRE8
207  # distributed. The pcre_chartables.c.dist file is the default version of  
208  # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.  # Build the 16 bit library if it is enabled.
209  EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist  if WITH_PCRE16
210    lib_LTLIBRARIES += libpcre16.la
211    libpcre16_la_SOURCES = \
212      pcre16_byte_order.c \
213      pcre16_chartables.c \
214      pcre16_compile.c \
215      pcre16_config.c \
216      pcre16_dfa_exec.c \
217      pcre16_exec.c \
218      pcre16_fullinfo.c \
219      pcre16_get.c \
220      pcre16_globals.c \
221      pcre16_jit_compile.c \
222      pcre16_maketables.c \
223      pcre16_newline.c \
224      pcre16_ord2utf16.c \
225      pcre16_refcount.c \
226      pcre16_string_utils.c \
227      pcre16_study.c \
228      pcre16_tables.c \
229      pcre16_ucd.c \
230      pcre16_utf16_utils.c \
231      pcre16_valid_utf16.c \
232      pcre16_version.c \
233      pcre16_xclass.c
234    
235    ## This file is generated as part of the building process, so don't distribute.
236    nodist_libpcre16_la_SOURCES = \
237      pcre_chartables.c
238    
239    endif # WITH_PCRE16
240    
241    # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,
242    # used unless --enable-rebuild-chartables is specified.
243    EXTRA_DIST += pcre_chartables.c.dist
244    
245    # The JIT compiler lives in a separate directory, but its files are #included
246    # when pcre_jit_compile.c is processed, so they must be distributed.
247    EXTRA_DIST += \
248      sljit/sljitConfig.h \
249      sljit/sljitConfigInternal.h \
250      sljit/sljitExecAllocator.c \
251      sljit/sljitLir.c \
252      sljit/sljitLir.h \
253      sljit/sljitNativeARM_Thumb2.c \
254      sljit/sljitNativeARM_v5.c \
255      sljit/sljitNativeMIPS_32.c \
256      sljit/sljitNativeMIPS_common.c \
257      sljit/sljitNativePPC_32.c \
258      sljit/sljitNativePPC_64.c \
259      sljit/sljitNativePPC_common.c \
260      sljit/sljitNativeX86_32.c \
261      sljit/sljitNativeX86_64.c \
262      sljit/sljitNativeX86_common.c \
263      sljit/sljitUtils.c
264    
265    if WITH_PCRE8
266  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
267    endif # WITH_PCRE8
268    if WITH_PCRE16
269    libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
270    endif # WITH_PCRE16
271    
272  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
273    
274    ## If JIT support is enabled, arrange for the JIT test program to run.
275    if WITH_JIT
276    TESTS += pcre_jit_test
277    noinst_PROGRAMS += pcre_jit_test
278    pcre_jit_test_SOURCES = pcre_jit_test.c
279    pcre_jit_test_LDADD =
280    if WITH_PCRE8
281    pcre_jit_test_LDADD += libpcre.la
282    endif # WITH_PCRE8
283    if WITH_PCRE16
284    pcre_jit_test_LDADD += libpcre16.la
285    endif # WITH_PCRE16
286    endif # WITH_JIT
287    
288  ## 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.
289    if WITH_PCRE8
290  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
291  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
292    pcreposix.c    pcreposix.c
293  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
294  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
295    endif # WITH_PCRE8
296    
297  ## There's a C++ library as well.  ## There's a C++ library as well.
298  if WITH_PCRE_CPP  if WITH_PCRE_CPP
# Line 244  dist_noinst_SCRIPTS += RunTest Line 333  dist_noinst_SCRIPTS += RunTest
333  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
334  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
335  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
336  pcretest_LDADD = libpcreposix.la  pcretest_LDADD = $(LIBREADLINE)
337    if WITH_PCRE8
338    pcretest_SOURCES += pcre_printint.c
339    pcretest_LDADD += libpcreposix.la
340    endif # WITH_PCRE8
341    if WITH_PCRE16
342    pcretest_SOURCES += pcre16_printint.c
343    pcretest_LDADD += libpcre16.la
344    endif # WITH_PCRE16
345    
346    if WITH_PCRE8
347  TESTS += RunGrepTest  TESTS += RunGrepTest
348  dist_noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
349  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
350  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
351  pcregrep_LDADD = libpcreposix.la  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
352    pcregrep_LDADD += libpcreposix.la
353    endif # WITH_PCRE8
354    
355  EXTRA_DIST += \  EXTRA_DIST += \
356    testdata/grepinput \    testdata/grepinput \
357      testdata/grepinput3 \
358    testdata/grepinput8 \    testdata/grepinput8 \
359    testdata/grepinputv \    testdata/grepinputv \
360    testdata/grepinputx \    testdata/grepinputx \
# Line 261  EXTRA_DIST += \ Line 362  EXTRA_DIST += \
362    testdata/grepoutput \    testdata/grepoutput \
363    testdata/grepoutput8 \    testdata/grepoutput8 \
364    testdata/grepoutputN \    testdata/grepoutputN \
365      testdata/greppatN4 \
366      testdata/saved16 \
367      testdata/saved16BE-1 \
368      testdata/saved16BE-2 \
369      testdata/saved16LE-1 \
370      testdata/saved16LE-2 \
371      testdata/saved8 \
372    testdata/testinput1 \    testdata/testinput1 \
373    testdata/testinput2 \    testdata/testinput2 \
374    testdata/testinput3 \    testdata/testinput3 \
# Line 271  EXTRA_DIST += \ Line 379  EXTRA_DIST += \
379    testdata/testinput8 \    testdata/testinput8 \
380    testdata/testinput9 \    testdata/testinput9 \
381    testdata/testinput10 \    testdata/testinput10 \
382      testdata/testinput11 \
383      testdata/testinput12 \
384      testdata/testinput13 \
385      testdata/testinput14 \
386      testdata/testinput15 \
387      testdata/testinput16 \
388      testdata/testinput17 \
389      testdata/testinput18 \
390      testdata/testinput19 \
391      testdata/testinput20 \
392    testdata/testoutput1 \    testdata/testoutput1 \
393    testdata/testoutput2 \    testdata/testoutput2 \
394    testdata/testoutput3 \    testdata/testoutput3 \
# Line 281  EXTRA_DIST += \ Line 399  EXTRA_DIST += \
399    testdata/testoutput8 \    testdata/testoutput8 \
400    testdata/testoutput9 \    testdata/testoutput9 \
401    testdata/testoutput10 \    testdata/testoutput10 \
402      testdata/testoutput11-16 \
403      testdata/testoutput11-8 \
404      testdata/testoutput12 \
405      testdata/testoutput13 \
406      testdata/testoutput14 \
407      testdata/testoutput15 \
408      testdata/testoutput16 \
409      testdata/testoutput17 \
410      testdata/testoutput18 \
411      testdata/testoutput19 \
412      testdata/testoutput20 \
413      testdata/wintestinput3 \
414      testdata/wintestoutput3 \
415    perltest.pl    perltest.pl
416    
417  CLEANFILES += \  CLEANFILES += \
# Line 289  CLEANFILES += \ Line 420  CLEANFILES += \
420          testtry \          testtry \
421          testNinput          testNinput
422    
423  # PCRE demonstration program  
424  noinst_PROGRAMS += pcredemo  # PCRE demonstration program. No longer built automatcally. The point is that
425  pcredemo_SOURCES = pcredemo.c  # the users should build it themselves. So just distribute the source.
426  pcredemo_LDADD = libpcre.la  # noinst_PROGRAMS += pcredemo
427    # pcredemo_SOURCES = pcredemo.c
428    # pcredemo_LDADD = libpcre.la
429    
430    EXTRA_DIST += pcredemo.c
431    
432    
433  ## Utility rules, documentation, etc.  ## Utility rules, documentation, etc.
434    
435  # A compatibility line, the old build system worked with 'make test'  # A compatibility line, the old build system worked with 'make test'
436  test: check ;  test: check ;
437    
438    
439    # A PCRE user submitted the following addition, saying that it "will allow
440    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
441    # nice DLL for Windows use". (It is used by the pcre.dll target.)
442    DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
443            pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
444            pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
445            pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
446            pcre_study.o pcre_tables.o pcre_ucd.o \
447            pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
448            pcre_xclass.o
449    
450    # A PCRE user submitted the following addition, saying that it "will allow
451    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
452    # nice DLL for Windows use".
453    pcre.dll: $(DLL_OBJS)
454            $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
455    
456    
457  # We have .pc files for pkg-config users.  # We have .pc files for pkg-config users.
458  pkgconfigdir = $(libdir)/pkgconfig  pkgconfigdir = $(libdir)/pkgconfig
459  pkgconfig_DATA = libpcre.pc  pkgconfig_DATA = libpcre.pc libpcreposix.pc
460    if WITH_PCRE16
461    pkgconfig_DATA += libpcre16.pc
462    endif
463  if WITH_PCRE_CPP  if WITH_PCRE_CPP
464  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
465  endif  endif
# Line 309  endif Line 467  endif
467  dist_man_MANS = \  dist_man_MANS = \
468    doc/pcre.3 \    doc/pcre.3 \
469    doc/pcre-config.1 \    doc/pcre-config.1 \
470      doc/pcre_assign_jit_stack.3 \
471    doc/pcre_compile.3 \    doc/pcre_compile.3 \
472    doc/pcre_compile2.3 \    doc/pcre_compile2.3 \
473    doc/pcre_config.3 \    doc/pcre_config.3 \
# Line 316  dist_man_MANS = \ Line 475  dist_man_MANS = \
475    doc/pcre_copy_substring.3 \    doc/pcre_copy_substring.3 \
476    doc/pcre_dfa_exec.3 \    doc/pcre_dfa_exec.3 \
477    doc/pcre_exec.3 \    doc/pcre_exec.3 \
478      doc/pcre_free_study.3 \
479    doc/pcre_free_substring.3 \    doc/pcre_free_substring.3 \
480    doc/pcre_free_substring_list.3 \    doc/pcre_free_substring_list.3 \
481    doc/pcre_fullinfo.3 \    doc/pcre_fullinfo.3 \
# Line 324  dist_man_MANS = \ Line 484  dist_man_MANS = \
484    doc/pcre_get_stringtable_entries.3 \    doc/pcre_get_stringtable_entries.3 \
485    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
486    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
487    doc/pcre_info.3 \    doc/pcre_jit_stack_alloc.3 \
488      doc/pcre_jit_stack_free.3 \
489    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
490    doc/pcre_refcount.3 \    doc/pcre_refcount.3 \
491    doc/pcre_study.3 \    doc/pcre_study.3 \
# Line 334  dist_man_MANS = \ Line 495  dist_man_MANS = \
495    doc/pcrecallout.3 \    doc/pcrecallout.3 \
496    doc/pcrecompat.3 \    doc/pcrecompat.3 \
497    doc/pcregrep.1 \    doc/pcregrep.1 \
498      doc/pcrejit.3 \
499      doc/pcrelimits.3 \
500    doc/pcrematching.3 \    doc/pcrematching.3 \
501    doc/pcrepartial.3 \    doc/pcrepartial.3 \
502    doc/pcrepattern.3 \    doc/pcrepattern.3 \
# Line 342  dist_man_MANS = \ Line 505  dist_man_MANS = \
505    doc/pcreprecompile.3 \    doc/pcreprecompile.3 \
506    doc/pcresample.3 \    doc/pcresample.3 \
507    doc/pcrestack.3 \    doc/pcrestack.3 \
508    doc/pcretest.1    doc/pcresyntax.3 \
509      doc/pcretest.1 \
510      doc/pcreunicode.3
511    
512  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
513  EXTRA_DIST += $(pcrecpp_man)  EXTRA_DIST += $(pcrecpp_man)
# Line 354  endif Line 519  endif
519  ## CMake support  ## CMake support
520    
521  EXTRA_DIST += \  EXTRA_DIST += \
522      cmake/COPYING-CMAKE-SCRIPTS \
523      cmake/FindPackageHandleStandardArgs.cmake \
524      cmake/FindReadline.cmake \
525    CMakeLists.txt \    CMakeLists.txt \
526    config-cmake.h.in    config-cmake.h.in
527    

Legend:
Removed from v.222  
changed lines
  Added in v.842

  ViewVC Help
Powered by ViewVC 1.1.5