"Fossies" - the Fresh Open Source Software Archive

Member "tin-2.4.1/pcre/Makefile.in-old" (28 Aug 2013, 26802 Bytes) of package /linux/misc/tin-2.4.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 # Makefile.in for PCRE (Perl-Compatible Regular Expression) library.
    3 
    4 
    5 #############################################################################
    6 
    7 # PCRE is developed on a Unix system. I do not use Windows or Macs, and know
    8 # nothing about building software on them. Although the code of PCRE should
    9 # be very portable, the building system in this Makefile is designed for Unix
   10 # systems. However, there are features that have been supplied to me by various
   11 # people that should make it work on MinGW and Cygwin systems.
   12 
   13 # This setting enables Unix-style directory scanning in pcregrep, triggered
   14 # by the -f option. Maybe one day someone will add code for other systems.
   15 
   16 PCREGREP_OSTYPE=-DIS_UNIX
   17 
   18 #############################################################################
   19 
   20 
   21 # Libtool places .o files in the .libs directory; this can mean that "make"
   22 # thinks is it not up-to-date when in fact it is. This setting helps when
   23 # GNU "make" is being used. It presumably does no harm in other cases.
   24 
   25 VPATH=.libs
   26 
   27 
   28 #---------------------------------------------------------------------------#
   29 # The following lines are modified by "configure" to insert data that it is #
   30 # given in its arguments, or which it finds out for itself.                 #
   31 #---------------------------------------------------------------------------#
   32 
   33 SHELL = @SHELL@
   34 prefix = @prefix@
   35 exec_prefix = @exec_prefix@
   36 top_srcdir = @top_srcdir@
   37 
   38 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
   39 
   40 # NB: top_builddir is not referred to directly below, but it is used in the
   41 # setting of $(LIBTOOL), so don't remove it!
   42 
   43 top_builddir = .
   44 
   45 # BINDIR is the directory in which the pcregrep, pcretest, and pcre-config
   46 #          commands are installed.
   47 # INCDIR is the directory in which the public header files pcre.h and
   48 #          pcreposix.h are installed.
   49 # LIBDIR is the directory in which the libraries are installed.
   50 # MANDIR is the directory in which the man pages are installed.
   51 
   52 BINDIR = @bindir@
   53 LIBDIR = @libdir@
   54 INCDIR = @includedir@
   55 MANDIR = @mandir@
   56 
   57 # EXEEXT is set by configure to the extention of an executable file
   58 # OBJEXT is set by configure to the extention of an object file
   59 # The BUILD_* equivalents are the same but for the host we're building on
   60 
   61 EXEEXT = @EXEEXT@
   62 OBJEXT = @OBJEXT@
   63 # Note that these are just here to have a convenient place to look at the
   64 # outcome.
   65 BUILD_EXEEXT = @BUILD_EXEEXT@
   66 BUILD_OBJEXT = @BUILD_OBJEXT@
   67 
   68 # POSIX_OBJ and POSIX_LOBJ are either set empty, or to the names of the
   69 # POSIX object files.
   70 
   71 POSIX_OBJ = @POSIX_OBJ@
   72 POSIX_LOBJ = @POSIX_LOBJ@
   73 
   74 # The compiler, C flags, preprocessor flags, etc
   75 
   76 CC = @CC@
   77 CXX = @CXX@
   78 CFLAGS = @CFLAGS@
   79 CXXFLAGS = @CXXFLAGS@
   80 LDFLAGS = @LDFLAGS@
   81 CXXLDFLAGS = @CXXLDFLAGS@
   82 
   83 CC_FOR_BUILD = @CC_FOR_BUILD@
   84 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
   85 CXX_FOR_BUILD = @CXX_FOR_BUILD@
   86 CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
   87 LDFLAGS_FOR_BUILD = $(LDFLAGS)
   88 
   89 UCP = @UCP@
   90 UTF8 = @UTF8@
   91 NEWLINE = @NEWLINE@
   92 POSIX_MALLOC_THRESHOLD = @POSIX_MALLOC_THRESHOLD@
   93 LINK_SIZE = @LINK_SIZE@
   94 MATCH_LIMIT = @MATCH_LIMIT@ @MATCH_LIMIT_RECURSION@
   95 NO_RECURSE = @NO_RECURSE@
   96 EBCDIC = @EBCDIC@
   97 
   98 INSTALL = @INSTALL@
   99 INSTALL_DATA = @INSTALL_DATA@
  100 
  101 # LIBTOOL enables the building of shared and static libraries. It is set up
  102 # to do one or the other or both by ./configure.
  103 
  104 LIBTOOL = @LIBTOOL@
  105 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT) $(NO_RECURSE) $(EBCDIC)
  106 LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT) $(NO_RECURSE) $(EBCDIC)
  107 @ON_WINDOWS@LINK = $(CC) $(LDFLAGS) -I. -I$(top_srcdir) -L.libs
  108 @NOT_ON_WINDOWS@LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -I. -I$(top_srcdir)
  109 LINKLIB = $(LIBTOOL) --mode=link $(CC) -export-symbols-regex '^[^_]' $(LDFLAGS) -I. -I$(top_srcdir)
  110 LINK_FOR_BUILD = $(LIBTOOL) --mode=link $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -I. -I$(top_srcdir)
  111 @ON_WINDOWS@CXXLINK = $(CXX) $(LDFLAGS) -I. -I$(top_srcdir) -L.libs
  112 @NOT_ON_WINDOWS@CXXLINK = $(LIBTOOL) --mode=link $(CXX) $(CXXFLAGS) $(CXXLDFLAGS) -I. -I$(top_srcdir)
  113 CXXLINKLIB = $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -I. -I$(top_srcdir)
  114 
  115 # These are the version numbers for the shared libraries
  116 
  117 PCRELIBVERSION = @PCRE_LIB_VERSION@
  118 PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@
  119 PCRECPPLIBVERSION = @PCRE_CPPLIB_VERSION@
  120 
  121 ##############################################################################
  122 
  123 
  124 OBJ = pcre_chartables.@OBJEXT@ \
  125   pcre_compile.@OBJEXT@ \
  126   pcre_config.@OBJEXT@ \
  127   pcre_dfa_exec.@OBJEXT@ \
  128   pcre_exec.@OBJEXT@ \
  129   pcre_fullinfo.@OBJEXT@ \
  130   pcre_get.@OBJEXT@ \
  131   pcre_globals.@OBJEXT@ \
  132   pcre_info.@OBJEXT@ \
  133   pcre_maketables.@OBJEXT@ \
  134   pcre_newline.@OBJEXT@ \
  135   pcre_ord2utf8.@OBJEXT@ \
  136   pcre_refcount.@OBJEXT@ \
  137   pcre_study.@OBJEXT@ \
  138   pcre_tables.@OBJEXT@ \
  139   pcre_try_flipped.@OBJEXT@ \
  140   pcre_ucp_searchfuncs.@OBJEXT@ \
  141   pcre_valid_utf8.@OBJEXT@ \
  142   pcre_version.@OBJEXT@ \
  143   pcre_xclass.@OBJEXT@ \
  144   $(POSIX_OBJ)
  145 
  146 LOBJ = pcre_chartables.lo \
  147   pcre_compile.lo \
  148   pcre_config.lo \
  149   pcre_dfa_exec.lo \
  150   pcre_exec.lo \
  151   pcre_fullinfo.lo \
  152   pcre_get.lo \
  153   pcre_globals.lo \
  154   pcre_info.lo \
  155   pcre_maketables.lo \
  156   pcre_newline.lo \
  157   pcre_ord2utf8.lo \
  158   pcre_refcount.lo \
  159   pcre_study.lo \
  160   pcre_tables.lo \
  161   pcre_try_flipped.lo \
  162   pcre_ucp_searchfuncs.lo \
  163   pcre_valid_utf8.lo \
  164   pcre_version.lo \
  165   pcre_xclass.lo \
  166   $(POSIX_LOBJ)
  167 
  168 CPPOBJ = pcrecpp.@OBJEXT@ \
  169   pcre_scanner.@OBJEXT@ \
  170   pcre_stringpiece.@OBJEXT@
  171 
  172 CPPLOBJ = pcrecpp.lo \
  173   pcre_scanner.lo \
  174   pcre_stringpiece.lo
  175 
  176 CPP_TARGETS = libpcrecpp.la \
  177   pcrecpp_unittest@EXEEXT@ \
  178   pcre_scanner_unittest@EXEEXT@ \
  179   pcre_stringpiece_unittest@EXEEXT@
  180 
  181 all:            libpcre.la @POSIX_LIB@ pcretest@EXEEXT@ pcregrep@EXEEXT@ \
  182 		@MAYBE_CPP_TARGETS@ @ON_WINDOWS@ winshared
  183 
  184 pcregrep@EXEEXT@: libpcre.la pcregrep.@OBJEXT@ @ON_WINDOWS@ winshared
  185 		$(LINK) -o pcregrep@EXEEXT@ pcregrep.@OBJEXT@ libpcre.la
  186 
  187 pcretest@EXEEXT@: libpcre.la @POSIX_LIB@ pcretest.@OBJEXT@ \
  188 		@ON_WINDOWS@ winshared
  189 		$(LINK) $(PURIFY) $(EFENCE) -o pcretest@EXEEXT@  \
  190 		pcretest.@OBJEXT@ \
  191 		libpcre.la @POSIX_LIB@
  192 
  193 pcrecpp_unittest@EXEEXT@: libpcrecpp.la pcrecpp_unittest.@OBJEXT@ \
  194 		@ON_WINDOWS@ winshared
  195 		$(CXXLINK) $(PURIFY) $(EFENCE) -o pcrecpp_unittest@EXEEXT@ \
  196 		pcrecpp_unittest.@OBJEXT@ \
  197 		libpcrecpp.la @POSIX_LIB@
  198 
  199 pcre_scanner_unittest@EXEEXT@: libpcrecpp.la pcre_scanner_unittest.@OBJEXT@ \
  200 		@ON_WINDOWS@ winshared
  201 		$(CXXLINK) $(PURIFY) $(EFENCE) \
  202 		-o pcre_scanner_unittest@EXEEXT@ \
  203 		pcre_scanner_unittest.@OBJEXT@ \
  204 		libpcrecpp.la @POSIX_LIB@
  205 
  206 pcre_stringpiece_unittest@EXEEXT@: libpcrecpp.la \
  207 		pcre_stringpiece_unittest.@OBJEXT@ @ON_WINDOWS@ winshared
  208 		$(CXXLINK) $(PURIFY) $(EFENCE) \
  209 		-o pcre_stringpiece_unittest@EXEEXT@ \
  210 		pcre_stringpiece_unittest.@OBJEXT@ \
  211 		libpcrecpp.la @POSIX_LIB@
  212 
  213 libpcre.la:     $(OBJ)
  214 		-rm -f libpcre.la
  215 		$(LINKLIB) -rpath $(LIBDIR) -version-info \
  216 		'$(PCRELIBVERSION)' -o libpcre.la $(LOBJ)
  217 
  218 libpcreposix.la: libpcre.la pcreposix.@OBJEXT@
  219 		-rm -f libpcreposix.la
  220 		$(LINKLIB) -rpath $(LIBDIR) libpcre.la -version-info \
  221 		'$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
  222 
  223 libpcrecpp.la: libpcre.la $(CPPOBJ)
  224 		-rm -f libpcrecpp.la
  225 		$(CXXLINKLIB) -rpath $(LIBDIR) libpcre.la -version-info \
  226 		'$(PCRECPPLIBVERSION)' -o libpcrecpp.la $(CPPLOBJ)
  227 
  228 # Note that files generated by ./configure and by dftables are in the current
  229 # directory, not the source directory.
  230 
  231 pcre_chartables.@OBJEXT@: pcre_chartables.c
  232 		@$(LTCOMPILE) pcre_chartables.c
  233 
  234 pcre_compile.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
  235 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_compile.c \
  236 		$(top_srcdir)/pcre_printint.src
  237 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  238 		$(top_srcdir)/pcre_compile.c
  239 
  240 pcre_config.@OBJEXT@:  Makefile config.h $(top_srcdir)/pcre.h \
  241 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_config.c
  242 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  243 		$(top_srcdir)/pcre_config.c
  244 
  245 pcre_dfa_exec.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
  246 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_dfa_exec.c
  247 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  248 		$(top_srcdir)/pcre_dfa_exec.c
  249 
  250 pcre_exec.@OBJEXT@:    Makefile config.h $(top_srcdir)/pcre.h \
  251 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_exec.c
  252 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  253 		$(top_srcdir)/pcre_exec.c
  254 
  255 pcre_fullinfo.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
  256 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_fullinfo.c
  257 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  258 		$(top_srcdir)/pcre_fullinfo.c
  259 
  260 pcre_get.@OBJEXT@:     Makefile config.h $(top_srcdir)/pcre.h \
  261 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_get.c
  262 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  263 		$(top_srcdir)/pcre_get.c
  264 
  265 pcre_globals.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
  266 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_globals.c
  267 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  268 		$(top_srcdir)/pcre_globals.c
  269 
  270 pcre_info.@OBJEXT@:    Makefile config.h $(top_srcdir)/pcre.h \
  271 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_info.c
  272 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  273 		$(top_srcdir)/pcre_info.c
  274 
  275 pcre_maketables.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
  276 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_maketables.c
  277 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  278 		$(top_srcdir)/pcre_maketables.c
  279 
  280 pcre_newline.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
  281 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_newline.c
  282 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  283 		$(top_srcdir)/pcre_newline.c
  284 
  285 pcre_ord2utf8.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
  286 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_ord2utf8.c
  287 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  288 		$(top_srcdir)/pcre_ord2utf8.c
  289 
  290 pcre_refcount.@OBJEXT@:   Makefile config.h $(top_srcdir)/pcre.h \
  291 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_refcount.c
  292 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  293 		$(top_srcdir)/pcre_refcount.c
  294 
  295 pcre_study.@OBJEXT@:   Makefile config.h $(top_srcdir)/pcre.h \
  296 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_study.c
  297 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  298 		$(top_srcdir)/pcre_study.c
  299 
  300 pcre_tables.@OBJEXT@:  Makefile config.h $(top_srcdir)/pcre.h \
  301 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_tables.c
  302 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  303 		$(top_srcdir)/pcre_tables.c
  304 
  305 pcre_try_flipped.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
  306 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_try_flipped.c
  307 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  308 		$(top_srcdir)/pcre_try_flipped.c
  309 
  310 pcre_ucp_searchfuncs.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
  311 		$(top_srcdir)/pcre_internal.h \
  312 		$(top_srcdir)/pcre_ucp_searchfuncs.c \
  313 		$(top_srcdir)/ucpinternal.h \
  314 		$(top_srcdir)/ucptable.c
  315 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  316 		$(top_srcdir)/pcre_ucp_searchfuncs.c
  317 
  318 pcre_valid_utf8.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
  319 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_valid_utf8.c
  320 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  321 		$(top_srcdir)/pcre_valid_utf8.c
  322 
  323 pcre_version.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
  324 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_version.c
  325 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  326 		$(top_srcdir)/pcre_version.c
  327 
  328 pcre_xclass.@OBJEXT@:  Makefile config.h $(top_srcdir)/pcre.h \
  329 		$(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_xclass.c
  330 		@$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  331 		$(top_srcdir)/pcre_xclass.c
  332 
  333 pcreposix.@OBJEXT@:    $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \
  334 		  $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre.h config.h Makefile
  335 		@$(LTCOMPILE) $(POSIX_MALLOC_THRESHOLD) \
  336 		$(top_srcdir)/pcreposix.c
  337 
  338 pcrecpp.@OBJEXT@:      $(top_srcdir)/pcrecpp.cc $(top_srcdir)/pcrecpp.h \
  339 		pcrecpparg.h pcre_stringpiece.h $(top_srcdir)/pcre.h config.h Makefile
  340 		@$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  341 		$(top_srcdir)/pcrecpp.cc
  342 
  343 pcre_scanner.@OBJEXT@: $(top_srcdir)/pcre_scanner.cc \
  344 		$(top_srcdir)/pcre_scanner.h \
  345 		$(top_srcdir)/pcrecpp.h pcrecpparg.h pcre_stringpiece.h \
  346 		$(top_srcdir)/pcre.h config.h Makefile
  347 		@$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  348 		$(top_srcdir)/pcre_scanner.cc
  349 
  350 pcre_stringpiece.@OBJEXT@:  $(top_srcdir)/pcre_stringpiece.cc \
  351 		pcre_stringpiece.h \
  352 		config.h Makefile
  353 		@$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
  354 		$(top_srcdir)/pcre_stringpiece.cc
  355 
  356 pcretest.@OBJEXT@:     $(top_srcdir)/pcretest.c $(top_srcdir)/pcre_internal.h \
  357 		$(top_srcdir)/pcre_printint.src $(top_srcdir)/pcre.h config.h Makefile
  358 		$(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) \
  359 		$(LINK_SIZE) $(top_srcdir)/pcretest.c
  360 
  361 pcrecpp_unittest.@OBJEXT@:  $(top_srcdir)/pcrecpp_unittest.cc \
  362 		$(top_srcdir)/pcrecpp.h \
  363 		pcrecpparg.h pcre_stringpiece.h $(top_srcdir)/pcre.h config.h Makefile
  364 		$(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) \
  365 		$(LINK_SIZE) $(top_srcdir)/pcrecpp_unittest.cc
  366 
  367 pcre_stringpiece_unittest.@OBJEXT@: $(top_srcdir)/pcre_stringpiece_unittest.cc \
  368 		pcre_stringpiece.h pcrecpparg.h config.h Makefile
  369 		$(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) \
  370 		$(LINK_SIZE) $(top_srcdir)/pcre_stringpiece_unittest.cc
  371 
  372 pcre_scanner_unittest.@OBJEXT@:  $(top_srcdir)/pcre_scanner_unittest.cc \
  373 		$(top_srcdir)/pcre_scanner.h \
  374 		$(top_srcdir)/pcrecpp.h pcre_stringpiece.h \
  375 		$(top_srcdir)/pcre.h pcrecpparg.h config.h Makefile
  376 		$(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) \
  377 		$(LINK_SIZE) $(top_srcdir)/pcre_scanner_unittest.cc
  378 
  379 pcregrep.@OBJEXT@:     $(top_srcdir)/pcregrep.c $(top_srcdir)/pcre.h Makefile config.h
  380 		$(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) \
  381 		$(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
  382 
  383 # Some Windows-specific targets for MinGW. Do not use for Cygwin.
  384 
  385 winshared : .libs/@WIN_PREFIX@pcre.dll .libs/@WIN_PREFIX@pcreposix.dll \
  386 		.libs/@WIN_PREFIX@pcrecpp.dll
  387 
  388 .libs/@WIN_PREFIX@pcre.dll : libpcre.la
  389 	$(CC) $(CFLAGS) -shared -o $@ \
  390 	-Wl,--whole-archive .libs/libpcre.a \
  391 	-Wl,--out-implib,.libs/libpcre.dll.a \
  392 	-Wl,--output-def,.libs/@WIN_PREFIX@pcre.dll-def \
  393 	-Wl,--export-all-symbols \
  394 	-Wl,--no-whole-archive
  395 	sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcre.dll'#" \
  396 	-e "s#library_names=''#library_names='libpcre.dll.a'#" \
  397 	< .libs/libpcre.lai > .libs/libpcre.lai.tmp && \
  398 	mv -f .libs/libpcre.lai.tmp .libs/libpcre.lai
  399 	sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcre.dll'#" \
  400 	-e "s#library_names=''#library_names='libpcre.dll.a'#" \
  401 	< libpcre.la > libpcre.la.tmp && \
  402 	mv -f libpcre.la.tmp libpcre.la
  403 
  404 
  405 .libs/@WIN_PREFIX@pcreposix.dll: libpcreposix.la libpcre.la
  406 	$(CC) $(CFLAGS) -shared -o $@ \
  407 	-Wl,--whole-archive .libs/libpcreposix.a \
  408 	-Wl,--out-implib,.libs/@WIN_PREFIX@pcreposix.dll.a \
  409 	-Wl,--output-def,.libs/@WIN_PREFIX@libpcreposix.dll-def \
  410 	-Wl,--export-all-symbols \
  411 	-Wl,--no-whole-archive .libs/libpcre.a
  412 	sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcreposix.dll'#" \
  413 	-e "s#library_names=''#library_names='libpcreposix.dll.a'#"\
  414 	< .libs/libpcreposix.lai > .libs/libpcreposix.lai.tmp && \
  415 	mv -f .libs/libpcreposix.lai.tmp .libs/libpcreposix.lai
  416 	sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcreposix.dll'#" \
  417 	-e "s#library_names=''#library_names='libpcreposix.dll.a'#"\
  418 	< libpcreposix.la > libpcreposix.la.tmp && \
  419 	mv -f libpcreposix.la.tmp libpcreposix.la
  420 
  421 .libs/@WIN_PREFIX@pcrecpp.dll: libpcrecpp.la libpcre.la
  422 	$(CXX) $(CXXFLAGS) -shared -o $@ \
  423 	-Wl,--whole-archive .libs/libpcrecpp.a \
  424 	-Wl,--out-implib,.libs/@WIN_PREFIX@pcrecpp.dll.a \
  425 	-Wl,--output-def,.libs/@WIN_PREFIX@libpcrecpp.dll-def \
  426 	-Wl,--export-all-symbols \
  427 	-Wl,--no-whole-archive .libs/libpcre.a
  428 	sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcrecpp.dll'#" \
  429 	-e "s#library_names=''#library_names='libpcrecpp.dll.a'#"\
  430 	< .libs/libpcrecpp.lai > .libs/libpcrecpp.lai.tmp && \
  431 	mv -f .libs/libpcrecpp.lai.tmp .libs/libpcrecpp.lai
  432 	sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcrecpp.dll'#" \
  433 	-e "s#library_names=''#library_names='libpcrecpp.dll.a'#"\
  434 	< libpcrecpp.la > libpcrecpp.la.tmp && \
  435 	mv -f libpcrecpp.la.tmp libpcrecpp.la
  436 
  437 
  438 wininstall : winshared
  439 	$(mkinstalldirs) $(DESTDIR)$(LIBDIR)
  440 	$(mkinstalldirs) $(DESTDIR)$(BINDIR)
  441 	$(INSTALL) .libs/@WIN_PREFIX@pcre.dll $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcre.dll
  442 	$(INSTALL) .libs/@WIN_PREFIX@pcreposix.dll $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcreposix.dll
  443 	$(INSTALL) .libs/@WIN_PREFIX@libpcreposix.dll.a $(DESTDIR)$(LIBDIR)/@WIN_PREFIX@libpcreposix.dll.a
  444 	$(INSTALL) .libs/@WIN_PREFIX@libpcre.dll.a $(DESTDIR)$(LIBDIR)/@WIN_PREFIX@libpcre.dll.a
  445 @HAVE_CPP@	 $(INSTALL) .libs/@WIN_PREFIX@pcrecpp.dll $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcrecpp.dll
  446 @HAVE_CPP@	 $(INSTALL) .libs/@WIN_PREFIX@libpcrecpp.dll.a $(DESTDIR)$(LIBDIR)/@WIN_PREFIX@libpcrecpp.dll.a
  447 	-strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcre.dll
  448 	-strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcreposix.dll
  449 @HAVE_CPP@	 -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcrecpp.dll
  450 	-strip $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
  451 	-strip $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
  452 
  453 # An auxiliary program makes the default character table source. This is put
  454 # in the current directory, NOT the $top_srcdir directory.
  455 
  456 pcre_chartables.c:   dftables@BUILD_EXEEXT@
  457 		./dftables@BUILD_EXEEXT@ pcre_chartables.c
  458 
  459 dftables.@BUILD_OBJEXT@:     $(top_srcdir)/dftables.c \
  460 		$(top_srcdir)/pcre_maketables.c $(top_srcdir)/pcre_internal.h \
  461 		$(top_srcdir)/pcre.h config.h Makefile
  462 		$(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -I. $(top_srcdir)/dftables.c
  463 
  464 dftables@BUILD_EXEEXT@:      dftables.@BUILD_OBJEXT@
  465 		$(LINK_FOR_BUILD) -o dftables@BUILD_EXEEXT@ dftables.@OBJEXT@
  466 
  467 install:        all @ON_WINDOWS@ wininstall
  468 @NOT_ON_WINDOWS@	       $(mkinstalldirs) $(DESTDIR)$(LIBDIR)
  469 @NOT_ON_WINDOWS@	       echo "$(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la"
  470 @NOT_ON_WINDOWS@	       $(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la
  471 @NOT_ON_WINDOWS@	       echo "$(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la"
  472 @NOT_ON_WINDOWS@	       $(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la
  473 @NOT_ON_WINDOWS@@HAVE_CPP@		echo "$(LIBTOOL) --mode=install $(INSTALL) libpcrecpp.la $(DESTDIR)$(LIBDIR)/libpcrecpp.la"
  474 @NOT_ON_WINDOWS@@HAVE_CPP@		$(LIBTOOL) --mode=install $(INSTALL) libpcrecpp.la $(DESTDIR)$(LIBDIR)/libpcrecpp.la
  475 @NOT_ON_WINDOWS@	       $(LIBTOOL) --finish $(DESTDIR)$(LIBDIR)
  476 		$(mkinstalldirs) $(DESTDIR)$(INCDIR)
  477 		$(INSTALL_DATA) $(top_srcdir)/pcre.h $(DESTDIR)$(INCDIR)/pcre.h
  478 		$(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)$(INCDIR)/pcreposix.h
  479 @HAVE_CPP@		 $(INSTALL_DATA) $(top_srcdir)/pcrecpp.h $(DESTDIR)$(INCDIR)/pcrecpp.h
  480 @HAVE_CPP@		 $(INSTALL_DATA) pcrecpparg.h $(DESTDIR)$(INCDIR)/pcrecpparg.h
  481 @HAVE_CPP@		 $(INSTALL_DATA) pcre_stringpiece.h $(DESTDIR)$(INCDIR)/pcre_stringpiece.h
  482 @HAVE_CPP@		 $(INSTALL_DATA) $(top_srcdir)/pcre_scanner.h $(DESTDIR)$(INCDIR)/pcre_scanner.h
  483 		$(mkinstalldirs) $(DESTDIR)$(MANDIR)/man3
  484 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre.3 $(DESTDIR)$(MANDIR)/man3/pcre.3
  485 		$(INSTALL_DATA) $(top_srcdir)/doc/pcreapi.3 $(DESTDIR)$(MANDIR)/man3/pcreapi.3
  486 		$(INSTALL_DATA) $(top_srcdir)/doc/pcrebuild.3 $(DESTDIR)$(MANDIR)/man3/pcrebuild.3
  487 		$(INSTALL_DATA) $(top_srcdir)/doc/pcrecallout.3 $(DESTDIR)$(MANDIR)/man3/pcrecallout.3
  488 		$(INSTALL_DATA) $(top_srcdir)/doc/pcrecompat.3 $(DESTDIR)$(MANDIR)/man3/pcrecompat.3
  489 @HAVE_CPP@		 $(INSTALL_DATA) $(top_srcdir)/doc/pcrecpp.3 $(DESTDIR)$(MANDIR)/man3/pcrecpp.3
  490 		$(INSTALL_DATA) $(top_srcdir)/doc/pcrematching.3 $(DESTDIR)$(MANDIR)/man3/pcrematching.3
  491 		$(INSTALL_DATA) $(top_srcdir)/doc/pcrepartial.3 $(DESTDIR)$(MANDIR)/man3/pcrepartial.3
  492 		$(INSTALL_DATA) $(top_srcdir)/doc/pcrepattern.3 $(DESTDIR)$(MANDIR)/man3/pcrepattern.3
  493 		$(INSTALL_DATA) $(top_srcdir)/doc/pcreperform.3 $(DESTDIR)$(MANDIR)/man3/pcreperform.3
  494 		$(INSTALL_DATA) $(top_srcdir)/doc/pcreposix.3 $(DESTDIR)$(MANDIR)/man3/pcreposix.3
  495 		$(INSTALL_DATA) $(top_srcdir)/doc/pcreprecompile.3 $(DESTDIR)$(MANDIR)/man3/pcreprecompile.3
  496 		$(INSTALL_DATA) $(top_srcdir)/doc/pcresample.3 $(DESTDIR)$(MANDIR)/man3/pcresample.3
  497 		$(INSTALL_DATA) $(top_srcdir)/doc/pcrestack.3 $(DESTDIR)$(MANDIR)/man3/pcrestack.3
  498 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_compile.3 $(DESTDIR)$(MANDIR)/man3/pcre_compile.3
  499 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_compile2.3 $(DESTDIR)$(MANDIR)/man3/pcre_compile2.3
  500 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_config.3 $(DESTDIR)$(MANDIR)/man3/pcre_config.3
  501 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_named_substring.3
  502 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_substring.3
  503 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_dfa_exec.3 $(DESTDIR)$(MANDIR)/man3/pcre_dfa_exec.3
  504 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_exec.3 $(DESTDIR)$(MANDIR)/man3/pcre_exec.3
  505 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring.3
  506 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring_list.3
  507 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_fullinfo.3 $(DESTDIR)$(MANDIR)/man3/pcre_fullinfo.3
  508 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_named_substring.3
  509 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_stringnumber.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_stringnumber.3
  510 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_stringtable_entries.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_stringtable_entries.3
  511 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring.3
  512 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring_list.3
  513 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_info.3 $(DESTDIR)$(MANDIR)/man3/pcre_info.3
  514 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_maketables.3 $(DESTDIR)$(MANDIR)/man3/pcre_maketables.3
  515 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_refcount.3 $(DESTDIR)$(MANDIR)/man3/pcre_refcount.3
  516 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_study.3 $(DESTDIR)$(MANDIR)/man3/pcre_study.3
  517 		$(INSTALL_DATA) $(top_srcdir)/doc/pcre_version.3 $(DESTDIR)$(MANDIR)/man3/pcre_version.3
  518 		$(mkinstalldirs) $(DESTDIR)$(MANDIR)/man1
  519 		$(INSTALL_DATA) $(top_srcdir)/doc/pcregrep.1 $(DESTDIR)$(MANDIR)/man1/pcregrep.1
  520 		$(INSTALL_DATA) $(top_srcdir)/doc/pcretest.1 $(DESTDIR)$(MANDIR)/man1/pcretest.1
  521 		$(mkinstalldirs) $(DESTDIR)$(BINDIR)
  522 		$(LIBTOOL) --mode=install $(INSTALL) pcregrep@EXEEXT@ $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
  523 		$(LIBTOOL) --mode=install $(INSTALL) pcretest@EXEEXT@ $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
  524 		$(INSTALL) pcre-config $(DESTDIR)$(BINDIR)/pcre-config
  525 		$(mkinstalldirs) $(DESTDIR)$(LIBDIR)/pkgconfig
  526 		$(INSTALL_DATA) libpcre.pc $(DESTDIR)$(LIBDIR)/pkgconfig/libpcre.pc
  527 		$(INSTALL_DATA) libpcrecpp.pc $(DESTDIR)$(LIBDIR)/pkgconfig/libpcrecpp.pc
  528 
  529 # The uninstall target removes all the files that were installed.
  530 
  531 uninstall:;     -rm -rf \
  532 		$(DESTDIR)$(LIBDIR)/libpcre.* \
  533 		$(DESTDIR)$(LIBDIR)/libpcreposix.* \
  534 		$(DESTDIR)$(LIBDIR)/libpcrecpp.* \
  535 		$(DESTDIR)$(INCDIR)/pcre.h \
  536 		$(DESTDIR)$(INCDIR)/pcreposix.h \
  537 		$(DESTDIR)$(INCDIR)/pcrecpp.h \
  538 		$(DESTDIR)$(INCDIR)/pcrecpparg.h \
  539 		$(DESTDIR)$(INCDIR)/pcre_scanner.h \
  540 		$(DESTDIR)$(INCDIR)/pcre_stringpiece.h \
  541 		$(DESTDIR)$(MANDIR)/man3/pcre.3 \
  542 		$(DESTDIR)$(MANDIR)/man3/pcreapi.3 \
  543 		$(DESTDIR)$(MANDIR)/man3/pcrebuild.3 \
  544 		$(DESTDIR)$(MANDIR)/man3/pcrecallout.3 \
  545 		$(DESTDIR)$(MANDIR)/man3/pcrecompat.3 \
  546 		$(DESTDIR)$(MANDIR)/man3/pcrecpp.3 \
  547 		$(DESTDIR)$(MANDIR)/man3/pcrematching.3 \
  548 		$(DESTDIR)$(MANDIR)/man3/pcrepartial.3 \
  549 		$(DESTDIR)$(MANDIR)/man3/pcrepattern.3 \
  550 		$(DESTDIR)$(MANDIR)/man3/pcreperform.3 \
  551 		$(DESTDIR)$(MANDIR)/man3/pcreposix.3 \
  552 		$(DESTDIR)$(MANDIR)/man3/pcreprecompile.3 \
  553 		$(DESTDIR)$(MANDIR)/man3/pcresample.3 \
  554 		$(DESTDIR)$(MANDIR)/man3/pcrestack.3 \
  555 		$(DESTDIR)$(MANDIR)/man3/pcre_compile.3 \
  556 		$(DESTDIR)$(MANDIR)/man3/pcre_compile2.3 \
  557 		$(DESTDIR)$(MANDIR)/man3/pcre_config.3 \
  558 		$(DESTDIR)$(MANDIR)/man3/pcre_copy_named_substring.3 \
  559 		$(DESTDIR)$(MANDIR)/man3/pcre_copy_substring.3 \
  560 		$(DESTDIR)$(MANDIR)/man3/pcre_dfa_exec.3 \
  561 		$(DESTDIR)$(MANDIR)/man3/pcre_exec.3 \
  562 		$(DESTDIR)$(MANDIR)/man3/pcre_free_substring.3 \
  563 		$(DESTDIR)$(MANDIR)/man3/pcre_free_substring_list.3 \
  564 		$(DESTDIR)$(MANDIR)/man3/pcre_fullinfo.3 \
  565 		$(DESTDIR)$(MANDIR)/man3/pcre_get_named_substring.3 \
  566 		$(DESTDIR)$(MANDIR)/man3/pcre_get_stringnumber.3 \
  567 		$(DESTDIR)$(MANDIR)/man3/pcre_get_stringtable_entries.3 \
  568 		$(DESTDIR)$(MANDIR)/man3/pcre_get_substring.3 \
  569 		$(DESTDIR)$(MANDIR)/man3/pcre_get_substring_list.3 \
  570 		$(DESTDIR)$(MANDIR)/man3/pcre_info.3 \
  571 		$(DESTDIR)$(MANDIR)/man3/pcre_maketables.3 \
  572 		$(DESTDIR)$(MANDIR)/man3/pcre_refcount.3 \
  573 		$(DESTDIR)$(MANDIR)/man3/pcre_study.3 \
  574 		$(DESTDIR)$(MANDIR)/man3/pcre_version.3 \
  575 		$(DESTDIR)$(MANDIR)/man1/pcregrep.1 \
  576 		$(DESTDIR)$(MANDIR)/man1/pcretest.1 \
  577 		$(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@ \
  578 		$(DESTDIR)$(BINDIR)/pcretest@EXEEXT@ \
  579 		$(DESTDIR)$(BINDIR)/pcre-config \
  580 		$(DESTDIR)$(LIBDIR)/pkgconfig/libpcre.pc \
  581 		$(DESTDIR)$(LIBDIR)/pkgconfig/libpcrecpp.pc
  582 
  583 # We deliberately omit dftables and pcre_chartables.c from 'make clean'; once
  584 # made pcre_chartables.c shouldn't change, and if people have edited the tables
  585 # by hand, you don't want to throw them away.
  586 
  587 clean:;         -rm -rf *.@OBJEXT@ *.lo *.a *.la .libs pcretest@EXEEXT@ pcre_stringpiece_unittest@EXEEXT@ pcrecpp_unittest@EXEEXT@ pcre_scanner_unittest@EXEEXT@ pcregrep@EXEEXT@ testtry
  588 
  589 # But "make distclean" should get back to a virgin distribution
  590 
  591 distclean:      clean
  592 		-rm -f pcre_chartables.c libtool pcre-config libpcre.pc \
  593 		libpcrecpp.pc pcre_stringpiece.h pcrecpparg.h \
  594 		dftables@EXEEXT@ RunGrepTest RunTest \
  595 		Makefile config.h config.status config.log config.cache
  596 
  597 check:          runtest
  598 
  599 @WIN_PREFIX@pcre.dll : winshared
  600 	cp .libs/@WIN_PREFIX@pcre.dll .
  601 
  602 test:           runtest
  603 
  604 runtest:        all @ON_WINDOWS@ @WIN_PREFIX@pcre.dll
  605 		@./RunTest
  606 		@./RunGrepTest
  607 @HAVE_CPP@		 @echo ""
  608 @HAVE_CPP@		 @echo "Testing C++ wrapper"
  609 @HAVE_CPP@		 @echo ""; echo "Test 1++: stringpiece"
  610 @HAVE_CPP@		 @./pcre_stringpiece_unittest@EXEEXT@
  611 @HAVE_CPP@		 @echo ""; echo "Test 2++: RE class"
  612 @HAVE_CPP@		 @./pcrecpp_unittest@EXEEXT@
  613 @HAVE_CPP@		 @echo ""; echo "Test 3++: Scanner class"
  614 @HAVE_CPP@		 @./pcre_scanner_unittest@EXEEXT@
  615 
  616 # End