/[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

code/trunk/Makefile.am revision 135 by ph10, Thu Mar 29 09:09:33 2007 UTC code/branches/pcre16/Makefile.am revision 815 by ph10, Wed Dec 21 17:46:58 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 or libpcre16.
83  bin_PROGRAMS =  bin_PROGRAMS =
84  noinst_PROGRAMS =  noinst_PROGRAMS =
85    
# Line 87  EXTRA_DIST += \ Line 100  EXTRA_DIST += \
100  # These files are used in the preparation of a release  # These files are used in the preparation of a release
101  EXTRA_DIST += \  EXTRA_DIST += \
102    PrepareRelease \    PrepareRelease \
103      CheckMan \
104    CleanTxt \    CleanTxt \
105    Detrail \    Detrail \
106    132html \    132html \
# Line 106  EXTRA_DIST += \ Line 120  EXTRA_DIST += \
120    pcre.h.generic \    pcre.h.generic \
121    config.h.generic    config.h.generic
122    
123    pcre.h.generic: configure.ac
124            rm -f $@
125            cp -p pcre.h $@
126    
127    MAINTAINERCLEANFILES += pcre.h.generic
128    
129  # 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
130  # it is generated from pcre.h.in.  # it is generated from pcre.h.in.
131  nodist_include_HEADERS = \  nodist_include_HEADERS = \
# Line 144  pcre_chartables.c: dftables$(EXEEXT) Line 164  pcre_chartables.c: dftables$(EXEEXT)
164  else  else
165    
166  pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist  pcre_chartables.c: $(srcdir)/pcre_chartables.c.dist
167          cp -f $(srcdir)/pcre_chartables.c.dist pcre_chartables.c          rm -f $@
168            $(LN_S) $(srcdir)/pcre_chartables.c.dist $@
169    
170  endif # WITH_REBUILD_CHARTABLES  endif # WITH_REBUILD_CHARTABLES
171    
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 161  libpcre_la_SOURCES = \ Line 186  libpcre_la_SOURCES = \
186    pcre_globals.c \    pcre_globals.c \
187    pcre_info.c \    pcre_info.c \
188    pcre_internal.h \    pcre_internal.h \
189      pcre_jit_compile.c \
190    pcre_maketables.c \    pcre_maketables.c \
191    pcre_newline.c \    pcre_newline.c \
192    pcre_ord2utf8.c \    pcre_ord2utf8.c \
193    pcre_refcount.c \    pcre_refcount.c \
194      pcre_string_utils.c \
195    pcre_study.c \    pcre_study.c \
196    pcre_tables.c \    pcre_tables.c \
197    pcre_try_flipped.c \    pcre_ucd.c \
   pcre_ucp_searchfuncs.c \  
198    pcre_valid_utf8.c \    pcre_valid_utf8.c \
199    pcre_version.c \    pcre_version.c \
200    pcre_xclass.c \    pcre_xclass.c \
201    ucp.h \    ucp.h
   ucpinternal.h \  
   ucptable.h  
202    
203  ## 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.
204  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
205    pcre_chartables.c    pcre_chartables.c
206    
207  # The pcre_printint.src file is #included by some source files, so it must be  endif # WITH_PCRE8
208  # distributed. The pcre_chartables.c.dist file is the default version of  
209  # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.  # Build the 16 bit library if it is enabled.
210  EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist  if WITH_PCRE16
211    lib_LTLIBRARIES += libpcre16.la
212    libpcre16_la_SOURCES = \
213      pcre16_byte_order.c \
214      pcre16_chartables.c \
215      pcre16_compile.c \
216      pcre16_config.c \
217      pcre16_dfa_exec.c \
218      pcre16_exec.c \
219      pcre16_fullinfo.c \
220      pcre16_get.c \
221      pcre16_globals.c \
222      pcre16_info.c \
223      pcre16_jit_compile.c \
224      pcre16_maketables.c \
225      pcre16_newline.c \
226      pcre16_ord2utf16.c \
227      pcre16_refcount.c \
228      pcre16_string_utils.c \
229      pcre16_study.c \
230      pcre16_tables.c \
231      pcre16_ucd.c \
232      pcre16_utf16_utils.c \
233      pcre16_valid_utf16.c \
234      pcre16_version.c \
235      pcre16_xclass.c
236    
237    ## This file is generated as part of the building process, so don't distribute.
238    nodist_libpcre16_la_SOURCES = \
239      pcre_chartables.c
240    
241    endif # WITH_PCRE16
242    
243    # The pcre_chartables.c.dist file is the default version of pcre_chartables.c,
244    # used unless --enable-rebuild-chartables is specified.
245    EXTRA_DIST += pcre_chartables.c.dist
246    
247    # The JIT compiler lives in a separate directory, but its files are #included
248    # when pcre_jit_compile.c is processed, so they must be distributed.
249    EXTRA_DIST += \
250      sljit/sljitConfig.h \
251      sljit/sljitConfigInternal.h \
252      sljit/sljitExecAllocator.c \
253      sljit/sljitLir.c \
254      sljit/sljitLir.h \
255      sljit/sljitNativeARM_Thumb2.c \
256      sljit/sljitNativeARM_v5.c \
257      sljit/sljitNativeMIPS_32.c \
258      sljit/sljitNativeMIPS_common.c \
259      sljit/sljitNativePPC_32.c \
260      sljit/sljitNativePPC_64.c \
261      sljit/sljitNativePPC_common.c \
262      sljit/sljitNativeX86_32.c \
263      sljit/sljitNativeX86_64.c \
264      sljit/sljitNativeX86_common.c \
265      sljit/sljitUtils.c
266    
267    if WITH_PCRE8
268  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
269    endif # WITH_PCRE8
270    if WITH_PCRE16
271    libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
272    endif # WITH_PCRE16
273    
274  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
275    
276    ## If JIT support is enabled, arrange for the JIT test program to run.
277    if WITH_JIT
278    TESTS += pcre_jit_test
279    noinst_PROGRAMS += pcre_jit_test
280    pcre_jit_test_SOURCES = pcre_jit_test.c
281    pcre_jit_test_LDADD =
282    if WITH_PCRE8
283    pcre_jit_test_LDADD += libpcre.la
284    endif # WITH_PCRE8
285    if WITH_PCRE16
286    pcre_jit_test_LDADD += libpcre16.la
287    endif # WITH_PCRE16
288    endif # WITH_JIT
289    
290  ## 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.
291    if WITH_PCRE8
292  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
293  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
294    pcreposix.c    pcreposix.c
295  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
296  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
297    endif # WITH_PCRE8
298    
299  ## There's a C++ library as well.  ## There's a C++ library as well.
300  if WITH_PCRE_CPP  if WITH_PCRE_CPP
301    
302  lib_LTLIBRARIES += libpcrecpp.la  lib_LTLIBRARIES += libpcrecpp.la
303  libpcrecpp_la_SOURCES = \  libpcrecpp_la_SOURCES = \
304      pcrecpp_internal.h \
305    pcrecpp.cc \    pcrecpp.cc \
306    pcre_scanner.cc \    pcre_scanner.cc \
307    pcre_stringpiece.cc    pcre_stringpiece.cc
# Line 230  endif # WITH_PCRE_CPP Line 331  endif # WITH_PCRE_CPP
331  # ways. We install these test binaries in case folks find it helpful.  # ways. We install these test binaries in case folks find it helpful.
332    
333  TESTS += RunTest  TESTS += RunTest
334  noinst_SCRIPTS += RunTest  dist_noinst_SCRIPTS += RunTest
335  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
336  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
337  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
338  pcretest_LDADD = libpcreposix.la  pcretest_LDADD = $(LIBREADLINE)
339    if WITH_PCRE8
340    pcretest_SOURCES += pcre_printint.c
341    pcretest_LDADD += libpcreposix.la
342    endif # WITH_PCRE8
343    if WITH_PCRE16
344    pcretest_SOURCES += pcre16_printint.c
345    pcretest_LDADD += libpcre16.la
346    endif # WITH_PCRE16
347    
348  TESTS += RunGrepTest  TESTS += RunGrepTest
349  noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
350  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
351  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
352  pcregrep_LDADD = libpcreposix.la  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
353    if WITH_PCRE8
354    pcregrep_LDADD += libpcreposix.la
355    endif # WITH_PCRE8
356    
357  EXTRA_DIST += \  EXTRA_DIST += \
358    testdata/grepinput \    testdata/grepinput \
359      testdata/grepinput3 \
360    testdata/grepinput8 \    testdata/grepinput8 \
361      testdata/grepinputv \
362    testdata/grepinputx \    testdata/grepinputx \
363    testdata/greplist \    testdata/greplist \
364    testdata/grepoutput \    testdata/grepoutput \
# Line 259  EXTRA_DIST += \ Line 373  EXTRA_DIST += \
373    testdata/testinput7 \    testdata/testinput7 \
374    testdata/testinput8 \    testdata/testinput8 \
375    testdata/testinput9 \    testdata/testinput9 \
376      testdata/testinput10 \
377      testdata/testinput11 \
378      testdata/testinput12 \
379      testdata/testinput13 \
380      testdata/testinput14 \
381      testdata/testinput15 \
382      testdata/testinput16 \
383      testdata/testinput17 \
384      testdata/testinput18 \
385      testdata/testinput19 \
386    testdata/testoutput1 \    testdata/testoutput1 \
387    testdata/testoutput2 \    testdata/testoutput2 \
388    testdata/testoutput3 \    testdata/testoutput3 \
# Line 268  EXTRA_DIST += \ Line 392  EXTRA_DIST += \
392    testdata/testoutput7 \    testdata/testoutput7 \
393    testdata/testoutput8 \    testdata/testoutput8 \
394    testdata/testoutput9 \    testdata/testoutput9 \
395      testdata/testoutput10 \
396      testdata/testoutput11-8 \
397      testdata/testoutput11-16 \
398      testdata/testoutput12 \
399      testdata/testoutput13 \
400      testdata/testoutput14 \
401      testdata/testoutput15 \
402      testdata/testoutput16 \
403      testdata/testoutput17 \
404      testdata/testoutput18 \
405      testdata/testoutput19 \
406      testdata/wintestinput3 \
407      testdata/wintestoutput3 \
408    perltest.pl    perltest.pl
409    
410  CLEANFILES += \  CLEANFILES += \
411          testsavedregex \          testsavedregex \
412          teststderr \          teststderr \
413          testtry          testtry \
414            testNinput
415    
416    
417    # PCRE demonstration program. No longer built automatcally. The point is that
418    # the users should build it themselves. So just distribute the source.
419    # noinst_PROGRAMS += pcredemo
420    # pcredemo_SOURCES = pcredemo.c
421    # pcredemo_LDADD = libpcre.la
422    
423    EXTRA_DIST += pcredemo.c
424    
 # PCRE demonstration program  
 noinst_PROGRAMS += pcredemo  
 pcredemo_SOURCES = pcredemo.c  
 pcredemo_LDADD = libpcre.la  
425    
426  ## Utility rules, documentation, etc.  ## Utility rules, documentation, etc.
427    
428  # A compatibility line, the old build system worked with 'make test'  # A compatibility line, the old build system worked with 'make test'
429  test: check ;  test: check ;
430    
431    
432    # A PCRE user submitted the following addition, saying that it "will allow
433    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
434    # nice DLL for Windows use". (It is used by the pcre.dll target.)
435    DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
436            pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
437            pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \
438            pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
439            pcre_study.o pcre_tables.o pcre_ucd.o \
440            pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
441            pcre_xclass.o
442    
443    # A PCRE user submitted the following addition, saying that it "will allow
444    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
445    # nice DLL for Windows use".
446    pcre.dll: $(DLL_OBJS)
447            $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
448    
449    
450  # We have .pc files for pkg-config users.  # We have .pc files for pkg-config users.
451  pkgconfigdir = $(libdir)/pkgconfig  pkgconfigdir = $(libdir)/pkgconfig
452  pkgconfig_DATA = libpcre.pc  pkgconfig_DATA = libpcre.pc libpcreposix.pc
453    if WITH_PCRE16
454    pkgconfig_DATA += libpcre16.pc
455    endif
456  if WITH_PCRE_CPP  if WITH_PCRE_CPP
457  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
458  endif  endif
459    
460  dist_man_MANS = \  dist_man_MANS = \
461    doc/pcre.3 \    doc/pcre.3 \
462      doc/pcre-config.1 \
463      doc/pcre_assign_jit_stack.3 \
464    doc/pcre_compile.3 \    doc/pcre_compile.3 \
465    doc/pcre_compile2.3 \    doc/pcre_compile2.3 \
466    doc/pcre_config.3 \    doc/pcre_config.3 \
# Line 301  dist_man_MANS = \ Line 468  dist_man_MANS = \
468    doc/pcre_copy_substring.3 \    doc/pcre_copy_substring.3 \
469    doc/pcre_dfa_exec.3 \    doc/pcre_dfa_exec.3 \
470    doc/pcre_exec.3 \    doc/pcre_exec.3 \
471      doc/pcre_free_study.3 \
472    doc/pcre_free_substring.3 \    doc/pcre_free_substring.3 \
473    doc/pcre_free_substring_list.3 \    doc/pcre_free_substring_list.3 \
474    doc/pcre_fullinfo.3 \    doc/pcre_fullinfo.3 \
# Line 310  dist_man_MANS = \ Line 478  dist_man_MANS = \
478    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
479    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
480    doc/pcre_info.3 \    doc/pcre_info.3 \
481      doc/pcre_jit_stack_alloc.3 \
482      doc/pcre_jit_stack_free.3 \
483    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
484    doc/pcre_refcount.3 \    doc/pcre_refcount.3 \
485    doc/pcre_study.3 \    doc/pcre_study.3 \
# Line 319  dist_man_MANS = \ Line 489  dist_man_MANS = \
489    doc/pcrecallout.3 \    doc/pcrecallout.3 \
490    doc/pcrecompat.3 \    doc/pcrecompat.3 \
491    doc/pcregrep.1 \    doc/pcregrep.1 \
492      doc/pcrejit.3 \
493      doc/pcrelimits.3 \
494    doc/pcrematching.3 \    doc/pcrematching.3 \
495    doc/pcrepartial.3 \    doc/pcrepartial.3 \
496    doc/pcrepattern.3 \    doc/pcrepattern.3 \
# Line 327  dist_man_MANS = \ Line 499  dist_man_MANS = \
499    doc/pcreprecompile.3 \    doc/pcreprecompile.3 \
500    doc/pcresample.3 \    doc/pcresample.3 \
501    doc/pcrestack.3 \    doc/pcrestack.3 \
502    doc/pcretest.1    doc/pcresyntax.3 \
503      doc/pcretest.1 \
504      doc/pcreunicode.3
505    
506  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
507  EXTRA_DIST += $(pcrecpp_man)  EXTRA_DIST += $(pcrecpp_man)
# Line 339  endif Line 513  endif
513  ## CMake support  ## CMake support
514    
515  EXTRA_DIST += \  EXTRA_DIST += \
516      cmake/COPYING-CMAKE-SCRIPTS \
517      cmake/FindPackageHandleStandardArgs.cmake \
518      cmake/FindReadline.cmake \
519    CMakeLists.txt \    CMakeLists.txt \
520    config-cmake.h.in    config-cmake.h.in
521    
 config-cmake.h.in: config.h.in  
         sed 's/#undef/#cmakedefine/g' config.h.in >$@  
   
 MAINTAINERCLEANFILES += config-cmake.h.in  
   
522  ## end Makefile.am  ## end Makefile.am

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

  ViewVC Help
Powered by ViewVC 1.1.5