/[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 755 by ph10, Mon Nov 21 10:41:54 2011 UTC revision 757 by ph10, Mon Nov 21 11:44:55 2011 UTC
# Line 79  check_SCRIPTS = Line 79  check_SCRIPTS =
79  dist_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 170  endif # WITH_REBUILD_CHARTABLES Line 170  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 199  libpcre_la_SOURCES = \ Line 202  libpcre_la_SOURCES = \
202  nodist_libpcre_la_SOURCES = \  nodist_libpcre_la_SOURCES = \
203    pcre_chartables.c    pcre_chartables.c
204    
205    endif # WITH_PCRE8
206    
207    # Build the 16 bit library if it is enabled.
208    if WITH_PCRE16
209    lib_LTLIBRARIES += libpcre16.la
210    libpcre16_la_SOURCES = \
211      pcre16_compile.c \
212      pcre16_convert_utf16.c \
213      pcre16_valid_utf16.c
214    
215    ## This file is generated as part of the building process, so don't distribute.
216    nodist_libpcre16_la_SOURCES = \
217      pcre_chartables.c
218    
219    endif # WITH_PCRE16
220    
221  # 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
222  # distributed. The pcre_chartables.c.dist file is the default version of  # distributed. The pcre_chartables.c.dist file is the default version of
223  # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.  # pcre_chartables.c, used unless --enable-rebuild-chartables is specified.
# Line 224  EXTRA_DIST += \ Line 243  EXTRA_DIST += \
243    sljit/sljitNativeX86_common.c \    sljit/sljitNativeX86_common.c \
244    sljit/sljitUtils.c    sljit/sljitUtils.c
245    
246    if WITH_PCRE8
247  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)  libpcre_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
248    endif # WITH_PCRE8
249    if WITH_PCRE16
250    libpcre16_la_LDFLAGS = $(EXTRA_LIBPCRE_LDFLAGS)
251    endif # WITH_PCRE16
252    
253  CLEANFILES += pcre_chartables.c  CLEANFILES += pcre_chartables.c
254    
# Line 233  if WITH_JIT Line 257  if WITH_JIT
257  TESTS += pcre_jit_test  TESTS += pcre_jit_test
258  noinst_PROGRAMS += pcre_jit_test  noinst_PROGRAMS += pcre_jit_test
259  pcre_jit_test_SOURCES = pcre_jit_test.c  pcre_jit_test_SOURCES = pcre_jit_test.c
260  pcre_jit_test_LDADD = libpcre.la  pcre_jit_test_LDADD =
261    if WITH_PCRE8
262    pcre_jit_test_LDADD += libpcre.la
263    endif # WITH_PCRE8
264    if WITH_PCRE16
265    pcre_jit_test_LDADD += libpcre16.la
266    endif # WITH_PCRE16
267  endif # WITH_JIT  endif # WITH_JIT
268    
269  ## 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.
270    if WITH_PCRE8
271  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
272  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
273    pcreposix.c    pcreposix.c
274  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
275  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
276    endif # WITH_PCRE8
277    
278  ## There's a C++ library as well.  ## There's a C++ library as well.
279  if WITH_PCRE_CPP  if WITH_PCRE_CPP
# Line 282  dist_noinst_SCRIPTS += RunTest Line 314  dist_noinst_SCRIPTS += RunTest
314  EXTRA_DIST += RunTest.bat  EXTRA_DIST += RunTest.bat
315  bin_PROGRAMS += pcretest  bin_PROGRAMS += pcretest
316  pcretest_SOURCES = pcretest.c  pcretest_SOURCES = pcretest.c
317  pcretest_LDADD = libpcreposix.la $(LIBREADLINE)  pcretest_LDADD = $(LIBREADLINE)
318    if WITH_PCRE8
319    pcretest_LDADD += libpcreposix.la
320    endif # WITH_PCRE8
321    
322  TESTS += RunGrepTest  TESTS += RunGrepTest
323  dist_noinst_SCRIPTS += RunGrepTest  dist_noinst_SCRIPTS += RunGrepTest
324  bin_PROGRAMS += pcregrep  bin_PROGRAMS += pcregrep
325  pcregrep_SOURCES = pcregrep.c  pcregrep_SOURCES = pcregrep.c
326  pcregrep_LDADD = libpcreposix.la $(LIBZ) $(LIBBZ2)  pcregrep_LDADD = $(LIBZ) $(LIBBZ2)
327    if WITH_PCRE8
328    pcregrep_LDADD += libpcreposix.la
329    endif # WITH_PCRE8
330    
331  EXTRA_DIST += \  EXTRA_DIST += \
332    testdata/grepinput \    testdata/grepinput \
# Line 378  pcre.dll: $(DLL_OBJS) Line 416  pcre.dll: $(DLL_OBJS)
416  # We have .pc files for pkg-config users.  # We have .pc files for pkg-config users.
417  pkgconfigdir = $(libdir)/pkgconfig  pkgconfigdir = $(libdir)/pkgconfig
418  pkgconfig_DATA = libpcre.pc libpcreposix.pc  pkgconfig_DATA = libpcre.pc libpcreposix.pc
419    if WITH_PCRE16
420    pkgconfig_DATA += libpcre16.pc
421    endif
422  if WITH_PCRE_CPP  if WITH_PCRE_CPP
423  pkgconfig_DATA += libpcrecpp.pc  pkgconfig_DATA += libpcrecpp.pc
424  endif  endif

Legend:
Removed from v.755  
changed lines
  Added in v.757

  ViewVC Help
Powered by ViewVC 1.1.5