/[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 764 by zherczeg, Wed Nov 23 17:23:20 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 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    
171    
172  ## The main pcre library  ## The main pcre library
173    
174    # Build the 8 bit library if it is enabled.
175    if WITH_PCRE8
176  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
177  libpcre_la_SOURCES = \  libpcre_la_SOURCES = \
178    pcre_compile.c \    pcre_compile.c \
# Line 161  libpcre_la_SOURCES = \ Line 184  libpcre_la_SOURCES = \
184    pcre_globals.c \    pcre_globals.c \
185    pcre_info.c \    pcre_info.c \
186    pcre_internal.h \    pcre_internal.h \
187      pcre_jit_compile.c \
188    pcre_maketables.c \    pcre_maketables.c \
189    pcre_newline.c \    pcre_newline.c \
190    pcre_ord2utf8.c \    pcre_ord2utf8.c \
191    pcre_refcount.c \    pcre_refcount.c \
192      pcre_string_utils.c \
193    pcre_study.c \    pcre_study.c \
194    pcre_tables.c \    pcre_tables.c \
195    pcre_try_flipped.c \    pcre_try_flipped.c \
196    pcre_ucp_searchfuncs.c \    pcre_ucd.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    endif # WITH_PCRE8
207    
208    # Build the 16 bit library if it is enabled.
209    if WITH_PCRE16
210    lib_LTLIBRARIES += libpcre16.la
211    libpcre16_la_SOURCES = \
212      pcre16_chartables.c \
213      pcre16_compile.c \
214      pcre16_exec.c \
215      pcre16_jit_compile.c \
216      pcre16_newline.c \
217      pcre16_string_utils.c \
218      pcre16_study.c \
219      pcre16_tables.c \
220      pcre16_try_flipped.c \
221      pcre16_utf16_utils.c \
222      pcre16_valid_utf16.c
223    
224    ## This file is generated as part of the building process, so don't distribute.
225    nodist_libpcre16_la_SOURCES = \
226      pcre_chartables.c
227    
228    endif # WITH_PCRE16
229    
230  # 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
231  # distributed. The pcre_chartables.c.dist file is the default version of  # distributed. The pcre_chartables.c.dist file is the default version of
232  # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.  # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.
233  EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist  EXTRA_DIST += pcre_printint.src pcre_chartables.c.dist
234    
235    # The JIT compiler lives in a separate directory, but its files are #included
236    # when pcre_jit_compile.c is processed, so they must be distributed.
237    EXTRA_DIST += \
238      sljit/sljitConfig.h \
239      sljit/sljitConfigInternal.h \
240      sljit/sljitExecAllocator.c \
241      sljit/sljitLir.c \
242      sljit/sljitLir.h \
243      sljit/sljitNativeARM_Thumb2.c \
244      sljit/sljitNativeARM_v5.c \
245      sljit/sljitNativeMIPS_32.c \
246      sljit/sljitNativeMIPS_common.c \
247      sljit/sljitNativePPC_32.c \
248      sljit/sljitNativePPC_64.c \
249      sljit/sljitNativePPC_common.c \
250      sljit/sljitNativeX86_32.c \
251      sljit/sljitNativeX86_64.c \
252      sljit/sljitNativeX86_common.c \
253      sljit/sljitUtils.c
254    
255    if WITH_PCRE8
256  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
257    endif # WITH_PCRE8
258    if WITH_PCRE16
259    libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
260    endif # WITH_PCRE16
261    
262  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
263    
264    ## If JIT support is enabled, arrange for the JIT test program to run.
265    if WITH_JIT
266    TESTS += pcre_jit_test
267    noinst_PROGRAMS += pcre_jit_test
268    pcre_jit_test_SOURCES = pcre_jit_test.c
269    pcre_jit_test_LDADD =
270    if WITH_PCRE8
271    pcre_jit_test_LDADD += libpcre.la
272    endif # WITH_PCRE8
273    if WITH_PCRE16
274    pcre_jit_test_LDADD += libpcre16.la
275    endif # WITH_PCRE16
276    endif # WITH_JIT
277    
278  ## 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.
279    if WITH_PCRE8
280  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
281  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
282    pcreposix.c    pcreposix.c
283  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
284  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
285    endif # WITH_PCRE8
286    
287  ## There's a C++ library as well.  ## There's a C++ library as well.
288  if WITH_PCRE_CPP  if WITH_PCRE_CPP
289    
290  lib_LTLIBRARIES += libpcrecpp.la  lib_LTLIBRARIES += libpcrecpp.la
291  libpcrecpp_la_SOURCES = \  libpcrecpp_la_SOURCES = \
292      pcrecpp_internal.h \
293    pcrecpp.cc \    pcrecpp.cc \
294    pcre_scanner.cc \    pcre_scanner.cc \
295    pcre_stringpiece.cc    pcre_stringpiece.cc
# Line 230  endif # WITH_PCRE_CPP Line 319  endif # WITH_PCRE_CPP
319  # ways. We install these test binaries in case folks find it helpful.  # ways. We install these test binaries in case folks find it helpful.
320    
321  TESTS += RunTest  TESTS += RunTest
322  noinst_SCRIPTS += RunTest  dist_noinst_SCRIPTS += RunTest
323  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
324  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
325  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
326  pcretest_LDADD = libpcreposix.la  pcretest_LDADD = $(LIBREADLINE)
327    if WITH_PCRE8
328    pcretest_LDADD += libpcreposix.la
329    endif # WITH_PCRE8
330    
331  TESTS += RunGrepTest  TESTS += RunGrepTest
332  noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
333  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
334  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
335  pcregrep_LDADD = libpcreposix.la  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
336    if WITH_PCRE8
337    pcregrep_LDADD += libpcreposix.la
338    endif # WITH_PCRE8
339    
340  EXTRA_DIST += \  EXTRA_DIST += \
341    testdata/grepinput \    testdata/grepinput \
342      testdata/grepinput3 \
343    testdata/grepinput8 \    testdata/grepinput8 \
344      testdata/grepinputv \
345    testdata/grepinputx \    testdata/grepinputx \
346    testdata/greplist \    testdata/greplist \
347    testdata/grepoutput \    testdata/grepoutput \
# Line 259  EXTRA_DIST += \ Line 356  EXTRA_DIST += \
356    testdata/testinput7 \    testdata/testinput7 \
357    testdata/testinput8 \    testdata/testinput8 \
358    testdata/testinput9 \    testdata/testinput9 \
359      testdata/testinput10 \
360      testdata/testinput11 \
361      testdata/testinput12 \
362      testdata/testinput13 \
363      testdata/testinput14 \
364      testdata/testinput15 \
365    testdata/testoutput1 \    testdata/testoutput1 \
366    testdata/testoutput2 \    testdata/testoutput2 \
367    testdata/testoutput3 \    testdata/testoutput3 \
# Line 268  EXTRA_DIST += \ Line 371  EXTRA_DIST += \
371    testdata/testoutput7 \    testdata/testoutput7 \
372    testdata/testoutput8 \    testdata/testoutput8 \
373    testdata/testoutput9 \    testdata/testoutput9 \
374      testdata/testoutput10 \
375      testdata/testoutput11 \
376      testdata/testoutput12 \
377      testdata/testoutput13 \
378      testdata/testoutput14 \
379      testdata/testoutput15 \
380      testdata/wintestinput3 \
381      testdata/wintestoutput3 \
382    perltest.pl    perltest.pl
383    
384  CLEANFILES += \  CLEANFILES += \
385          testsavedregex \          testsavedregex \
386          teststderr \          teststderr \
387          testtry          testtry \
388            testNinput
389    
390    
391    # PCRE demonstration program. No longer built automatcally. The point is that
392    # the users should build it themselves. So just distribute the source.
393    # noinst_PROGRAMS += pcredemo
394    # pcredemo_SOURCES = pcredemo.c
395    # pcredemo_LDADD = libpcre.la
396    
397    EXTRA_DIST += pcredemo.c
398    
 # PCRE demonstration program  
 noinst_PROGRAMS += pcredemo  
 pcredemo_SOURCES = pcredemo.c  
 pcredemo_LDADD = libpcre.la  
399    
400  ## Utility rules, documentation, etc.  ## Utility rules, documentation, etc.
401    
402  # A compatibility line, the old build system worked with 'make test'  # A compatibility line, the old build system worked with 'make test'
403  test: check ;  test: check ;
404    
405    
406    # A PCRE user submitted the following addition, saying that it "will allow
407    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
408    # nice DLL for Windows use". (It is used by the pcre.dll target.)
409    DLL_OBJS= pcre_compile.o pcre_config.o \
410            pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
411            pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \
412            pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
413            pcre_study.o pcre_tables.o pcre_try_flipped.o \
414            pcre_ucd.o pcre_valid_utf8.o pcre_version.o \
415            pcre_chartables.o \
416            pcre_xclass.o
417    
418    # A PCRE user submitted the following addition, saying that it "will allow
419    # anyone using the 'mingw32' compiler to simply type 'make pcre.dll' and get a
420    # nice DLL for Windows use".
421    pcre.dll: $(DLL_OBJS)
422            $(CC) -shared -o pcre.dll -Wl,"--strip-all" -Wl,"--export-all-symbols" $(DLL_OBJS)
423    
424    
425  # We have .pc files for pkg-config users.  # We have .pc files for pkg-config users.
426  pkgconfigdir = $(libdir)/pkgconfig  pkgconfigdir = $(libdir)/pkgconfig
427  pkgconfig_DATA = libpcre.pc  pkgconfig_DATA = libpcre.pc libpcreposix.pc
428    if WITH_PCRE16
429    pkgconfig_DATA += libpcre16.pc
430    endif
431  if WITH_PCRE_CPP  if WITH_PCRE_CPP
432  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
433  endif  endif
434    
435  dist_man_MANS = \  dist_man_MANS = \
436    doc/pcre.3 \    doc/pcre.3 \
437      doc/pcre-config.1 \
438      doc/pcre_assign_jit_stack.3 \
439    doc/pcre_compile.3 \    doc/pcre_compile.3 \
440    doc/pcre_compile2.3 \    doc/pcre_compile2.3 \
441    doc/pcre_config.3 \    doc/pcre_config.3 \
# Line 301  dist_man_MANS = \ Line 443  dist_man_MANS = \
443    doc/pcre_copy_substring.3 \    doc/pcre_copy_substring.3 \
444    doc/pcre_dfa_exec.3 \    doc/pcre_dfa_exec.3 \
445    doc/pcre_exec.3 \    doc/pcre_exec.3 \
446      doc/pcre_free_study.3 \
447    doc/pcre_free_substring.3 \    doc/pcre_free_substring.3 \
448    doc/pcre_free_substring_list.3 \    doc/pcre_free_substring_list.3 \
449    doc/pcre_fullinfo.3 \    doc/pcre_fullinfo.3 \
# Line 310  dist_man_MANS = \ Line 453  dist_man_MANS = \
453    doc/pcre_get_substring.3 \    doc/pcre_get_substring.3 \
454    doc/pcre_get_substring_list.3 \    doc/pcre_get_substring_list.3 \
455    doc/pcre_info.3 \    doc/pcre_info.3 \
456      doc/pcre_jit_stack_alloc.3 \
457      doc/pcre_jit_stack_free.3 \
458    doc/pcre_maketables.3 \    doc/pcre_maketables.3 \
459    doc/pcre_refcount.3 \    doc/pcre_refcount.3 \
460    doc/pcre_study.3 \    doc/pcre_study.3 \
# Line 319  dist_man_MANS = \ Line 464  dist_man_MANS = \
464    doc/pcrecallout.3 \    doc/pcrecallout.3 \
465    doc/pcrecompat.3 \    doc/pcrecompat.3 \
466    doc/pcregrep.1 \    doc/pcregrep.1 \
467      doc/pcrejit.3 \
468      doc/pcrelimits.3 \
469    doc/pcrematching.3 \    doc/pcrematching.3 \
470    doc/pcrepartial.3 \    doc/pcrepartial.3 \
471    doc/pcrepattern.3 \    doc/pcrepattern.3 \
# Line 327  dist_man_MANS = \ Line 474  dist_man_MANS = \
474    doc/pcreprecompile.3 \    doc/pcreprecompile.3 \
475    doc/pcresample.3 \    doc/pcresample.3 \
476    doc/pcrestack.3 \    doc/pcrestack.3 \
477    doc/pcretest.1    doc/pcresyntax.3 \
478      doc/pcretest.1 \
479      doc/pcreunicode.3
480    
481  pcrecpp_man = doc/pcrecpp.3  pcrecpp_man = doc/pcrecpp.3
482  EXTRA_DIST += $(pcrecpp_man)  EXTRA_DIST += $(pcrecpp_man)
# Line 339  endif Line 488  endif
488  ## CMake support  ## CMake support
489    
490  EXTRA_DIST += \  EXTRA_DIST += \
491      cmake/COPYING-CMAKE-SCRIPTS \
492      cmake/FindPackageHandleStandardArgs.cmake \
493      cmake/FindReadline.cmake \
494    CMakeLists.txt \    CMakeLists.txt \
495    config-cmake.h.in    config-cmake.h.in
496    
 config-cmake.h.in: config.h.in  
         sed 's/#undef/#cmakedefine/g' config.h.in >$@  
   
 MAINTAINERCLEANFILES += config-cmake.h.in  
   
497  ## end Makefile.am  ## end Makefile.am

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

  ViewVC Help
Powered by ViewVC 1.1.5