/[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 1195 by zherczeg, Thu Nov 1 15:21:27 2012 UTC revision 1225 by ph10, Sat Nov 24 11:29:45 2012 UTC
# Line 101  EXTRA_DIST = Line 101  EXTRA_DIST =
101    
102  # These files contain additional m4 macros that are used by autoconf.  # These files contain additional m4 macros that are used by autoconf.
103  EXTRA_DIST += \  EXTRA_DIST += \
104    m4/ax_pthread.m4    m4/ax_pthread.m4 m4/pcre_visibility.m4
105    
106  # These files contain maintenance information  # These files contain maintenance information
107  EXTRA_DIST += \  EXTRA_DIST += \
# Line 141  pcre.h.generic: pcre.h.in configure.ac Line 141  pcre.h.generic: pcre.h.in configure.ac
141    
142  # It is more complicated for config.h.generic. We need the version that results  # It is more complicated for config.h.generic. We need the version that results
143  # from a default configuration. We can get this by doing a configure in a  # from a default configuration. We can get this by doing a configure in a
144  # temporary directory. It has to be entirely done using files in that  # temporary directory. However, some trickery is needed,
145  # directory, because the source directory may already be configured. If you  # because the source directory may already be configured. If you
146  # just try running configure in a new directory, it complains that the source  # just try running configure in a new directory, it complains. For this reason,
147  # directory is already configured.  # we move config.status out of the way while doing the default configuration.
148    # The resulting config.h is munged by perl to put #ifdefs round any #defines
149    # and to get rid of any gcc-specific visibility settings. Make sure that
150    # PCRE_EXP_DEFN is unset (in case it has visibility settings).
151  config.h.generic: configure.ac  config.h.generic: configure.ac
152          rm -rf $@ _generic          rm -rf $@ _generic
153          mkdir _generic          mkdir _generic
# Line 152  config.h.generic: configure.ac Line 155  config.h.generic: configure.ac
155          cd _generic && $(abs_top_srcdir)/configure || :          cd _generic && $(abs_top_srcdir)/configure || :
156          cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs          cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs
157          test -f _generic/config.h          test -f _generic/config.h
158          perl -pe 'if(/^#define\s(?!PACKAGE)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$_="";}' _generic/config.h >$@          perl -n \
159              -e 'BEGIN{$$blank=0;}' \
160              -e 'if(/PCRE_EXP_DEFN/){print"/* #undef PCRE_EXP_DEFN */\n";$$blank=0;next;}' \
161              -e 'if(/to make a symbol visible/){next;}' \
162              -e 'if(/__attribute__ \(\(visibility/){next;}' \
163              -e 'if(/^#define\s(?!PACKAGE)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$blank=0;}' \
164              -e 'else {if(/^\s*$$/){print unless $$blank; $$blank=1;} else{print;$$blank=0;}}' \
165              _generic/config.h >$@
166          rm -rf _generic          rm -rf _generic
167    
168  MAINTAINERCLEANFILES += pcre.h.generic config.h.generic  MAINTAINERCLEANFILES += pcre.h.generic config.h.generic
# Line 207  BUILT_SOURCES = pcre_chartables.c Line 217  BUILT_SOURCES = pcre_chartables.c
217  # Build the 8 bit library if it is enabled.  # Build the 8 bit library if it is enabled.
218  if WITH_PCRE8  if WITH_PCRE8
219  lib_LTLIBRARIES += libpcre.la  lib_LTLIBRARIES += libpcre.la
220    
221  libpcre_la_SOURCES = \  libpcre_la_SOURCES = \
222    pcre_byte_order.c \    pcre_byte_order.c \
223    pcre_compile.c \    pcre_compile.c \
# Line 232  libpcre_la_SOURCES = \ Line 243  libpcre_la_SOURCES = \
243    ucp.h    ucp.h
244    
245  libpcre_la_CFLAGS = \  libpcre_la_CFLAGS = \
246      $(VISIBILITY_CFLAGS) \
247    $(AM_CFLAGS)    $(AM_CFLAGS)
248    
249  libpcre_la_LIBADD =  libpcre_la_LIBADD =
# Line 270  libpcre16_la_SOURCES = \ Line 282  libpcre16_la_SOURCES = \
282    pcre16_xclass.c    pcre16_xclass.c
283    
284  libpcre16_la_CFLAGS = \  libpcre16_la_CFLAGS = \
285      $(VISIBILITY_CFLAGS) \
286    $(AM_CFLAGS)    $(AM_CFLAGS)
287    
288  libpcre16_la_LIBADD =  libpcre16_la_LIBADD =
# Line 308  libpcre32_la_SOURCES = \ Line 321  libpcre32_la_SOURCES = \
321    pcre32_xclass.c    pcre32_xclass.c
322    
323  libpcre32_la_CFLAGS = \  libpcre32_la_CFLAGS = \
324      $(VISIBILITY_CFLAGS) \
325    $(AM_CFLAGS)    $(AM_CFLAGS)
326    
327  libpcre32_la_LIBADD =  libpcre32_la_LIBADD =
328    
329  ## 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.
# Line 407  if WITH_PCRE8 Line 422  if WITH_PCRE8
422  lib_LTLIBRARIES += libpcreposix.la  lib_LTLIBRARIES += libpcreposix.la
423  libpcreposix_la_SOURCES = \  libpcreposix_la_SOURCES = \
424    pcreposix.c    pcreposix.c
425  libpcreposix_la_CFLAGS = $(AM_CFLAGS)  libpcreposix_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS)
426  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)  libpcreposix_la_LDFLAGS = $(EXTRA_LIBPCREPOSIX_LDFLAGS)
427  libpcreposix_la_LIBADD = libpcre.la  libpcreposix_la_LIBADD = libpcre.la
428    
# Line 426  libpcrecpp_la_SOURCES = \ Line 441  libpcrecpp_la_SOURCES = \
441    pcrecpp.cc \    pcrecpp.cc \
442    pcre_scanner.cc \    pcre_scanner.cc \
443    pcre_stringpiece.cc    pcre_stringpiece.cc
444  libpcrecpp_la_CXXFLAGS = $(AM_CXXFLAGS)  libpcrecpp_la_CXXFLAGS = $(VISIBILITY_CXXFLAGS) $(AM_CXXFLAGS)
445  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)  libpcrecpp_la_LDFLAGS = $(EXTRA_LIBPCRECPP_LDFLAGS)
446  libpcrecpp_la_LIBADD = libpcre.la  libpcrecpp_la_LIBADD = libpcre.la
447    

Legend:
Removed from v.1195  
changed lines
  Added in v.1225

  ViewVC Help
Powered by ViewVC 1.1.5