/[pcre]/code/trunk/Makefile.in
ViewVC logotype

Diff of /code/trunk/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 57 by nigel, Sat Feb 24 21:39:50 2007 UTC revision 91 by nigel, Sat Feb 24 21:41:34 2007 UTC
# Line 1  Line 1 
1    
2  # Makefile.in for PCRE (Perl-Compatible Regular Expression) library.  # Makefile.in for PCRE (Perl-Compatible Regular Expression) library.
3    
 #---------------------------------------------------------------------------#  
 # To build mingw32 DLL uncomment the next two lines. This addition for      #  
 # mingw32 was contributed by <Paul.Sokolovsky@technologist.com>. I (Philip  #  
 # Hazel) don't know anything about it! There are some additional targets at #  
 # the bottom of this Makefile.                                              #  
 #---------------------------------------------------------------------------#  
 #  
 # include dll.mk  
 # DLL_LDFLAGS=-s  
   
4    
5  #############################################################################  #############################################################################
6    
7  # PCRE is developed on a Unix system. I do not use Windows or Macs, and know  # 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  # 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  # be very portable, the building system in this Makefile is designed for Unix
10  # systems, with the exception of the mingw32 stuff just mentioned.  # 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  # 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.  # by the -f option. Maybe one day someone will add code for other systems.
# Line 27  PCREGREP_OSTYPE=-DIS_UNIX Line 18  PCREGREP_OSTYPE=-DIS_UNIX
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 #  # 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.                 #  # given in its arguments, or which it finds out for itself.                 #
# Line 56  LIBDIR = @libdir@ Line 54  LIBDIR = @libdir@
54  INCDIR = @includedir@  INCDIR = @includedir@
55  MANDIR = @mandir@  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@  CC = @CC@
77    CXX = @CXX@
78  CFLAGS = @CFLAGS@  CFLAGS = @CFLAGS@
79  RANLIB = @RANLIB@  CXXFLAGS = @CXXFLAGS@
80  UTF8   = @UTF8@  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@  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@  INSTALL = @INSTALL@
99  INSTALL_DATA = @INSTALL_DATA@  INSTALL_DATA = @INSTALL_DATA@
# Line 69  INSTALL_DATA = @INSTALL_DATA@ Line 102  INSTALL_DATA = @INSTALL_DATA@
102  # to do one or the other or both by ./configure.  # to do one or the other or both by ./configure.
103    
104  LIBTOOL = @LIBTOOL@  LIBTOOL = @LIBTOOL@
105  LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. $(NEWLINE)  LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT) $(NO_RECURSE) $(EBCDIC)
106  LINK = $(LIBTOOL) --mode=link $(CC)  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  # These are the version numbers for the shared libraries
116    
117  PCRELIBVERSION = @PCRE_LIB_VERSION@  PCRELIBVERSION = @PCRE_LIB_VERSION@
118  PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@  PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@
119    PCRECPPLIBVERSION = @PCRE_CPPLIB_VERSION@
120    
121  ##############################################################################  ##############################################################################
122    
123    
124  OBJ = maketables.o get.o study.o pcre.o  OBJ = pcre_chartables.@OBJEXT@ \
125  LOBJ = maketables.lo get.lo study.lo pcre.lo    pcre_compile.@OBJEXT@ \
126      pcre_config.@OBJEXT@ \
127  all:            libpcre.la libpcreposix.la pcretest pcregrep    pcre_dfa_exec.@OBJEXT@ \
128      pcre_exec.@OBJEXT@ \
129  pcregrep:       libpcre.la pcregrep.o    pcre_fullinfo.@OBJEXT@ \
130                  $(LINK) $(CFLAGS) -o pcregrep pcregrep.o libpcre.la    pcre_get.@OBJEXT@ \
131      pcre_globals.@OBJEXT@ \
132  pcretest:       libpcre.la libpcreposix.la pcretest.o    pcre_info.@OBJEXT@ \
133                  $(LINK) $(PURIFY) $(CFLAGS) -o pcretest pcretest.o \    pcre_maketables.@OBJEXT@ \
134                  libpcre.la libpcreposix.la    pcre_ord2utf8.@OBJEXT@ \
135      pcre_refcount.@OBJEXT@ \
136      pcre_study.@OBJEXT@ \
137      pcre_tables.@OBJEXT@ \
138      pcre_try_flipped.@OBJEXT@ \
139      pcre_ucp_searchfuncs.@OBJEXT@ \
140      pcre_valid_utf8.@OBJEXT@ \
141      pcre_version.@OBJEXT@ \
142      pcre_xclass.@OBJEXT@ \
143      $(POSIX_OBJ)
144    
145    LOBJ = pcre_chartables.lo \
146      pcre_compile.lo \
147      pcre_config.lo \
148      pcre_dfa_exec.lo \
149      pcre_exec.lo \
150      pcre_fullinfo.lo \
151      pcre_get.lo \
152      pcre_globals.lo \
153      pcre_info.lo \
154      pcre_maketables.lo \
155      pcre_ord2utf8.lo \
156      pcre_refcount.lo \
157      pcre_study.lo \
158      pcre_tables.lo \
159      pcre_try_flipped.lo \
160      pcre_ucp_searchfuncs.lo \
161      pcre_valid_utf8.lo \
162      pcre_version.lo \
163      pcre_xclass.lo \
164      $(POSIX_LOBJ)
165    
166    CPPOBJ = pcrecpp.@OBJEXT@ \
167      pcre_scanner.@OBJEXT@ \
168      pcre_stringpiece.@OBJEXT@
169    
170    CPPLOBJ = pcrecpp.lo \
171      pcre_scanner.lo \
172      pcre_stringpiece.lo
173    
174    CPP_TARGETS = libpcrecpp.la \
175      pcrecpp_unittest@EXEEXT@ \
176      pcre_scanner_unittest@EXEEXT@ \
177      pcre_stringpiece_unittest@EXEEXT@
178    
179    all:            libpcre.la @POSIX_LIB@ pcretest@EXEEXT@ pcregrep@EXEEXT@ \
180                    @MAYBE_CPP_TARGETS@ @ON_WINDOWS@ winshared
181    
182    pcregrep@EXEEXT@: libpcre.la pcregrep.@OBJEXT@ @ON_WINDOWS@ winshared
183                    $(LINK) -o pcregrep@EXEEXT@ pcregrep.@OBJEXT@ libpcre.la
184    
185    pcretest@EXEEXT@: libpcre.la @POSIX_LIB@ pcretest.@OBJEXT@ \
186                    @ON_WINDOWS@ winshared
187                    $(LINK) $(PURIFY) $(EFENCE) -o pcretest@EXEEXT@  \
188                    pcretest.@OBJEXT@ \
189                    libpcre.la @POSIX_LIB@
190    
191    pcrecpp_unittest@EXEEXT@: libpcrecpp.la pcrecpp_unittest.@OBJEXT@ \
192                    @ON_WINDOWS@ winshared
193                    $(CXXLINK) $(PURIFY) $(EFENCE) -o pcrecpp_unittest@EXEEXT@ \
194                    pcrecpp_unittest.@OBJEXT@ \
195                    libpcrecpp.la @POSIX_LIB@
196    
197    pcre_scanner_unittest@EXEEXT@: libpcrecpp.la pcre_scanner_unittest.@OBJEXT@ \
198                    @ON_WINDOWS@ winshared
199                    $(CXXLINK) $(PURIFY) $(EFENCE) \
200                    -o pcre_scanner_unittest@EXEEXT@ \
201                    pcre_scanner_unittest.@OBJEXT@ \
202                    libpcrecpp.la @POSIX_LIB@
203    
204    pcre_stringpiece_unittest@EXEEXT@: libpcrecpp.la \
205                    pcre_stringpiece_unittest.@OBJEXT@ @ON_WINDOWS@ winshared
206                    $(CXXLINK) $(PURIFY) $(EFENCE) \
207                    -o pcre_stringpiece_unittest@EXEEXT@ \
208                    pcre_stringpiece_unittest.@OBJEXT@ \
209                    libpcrecpp.la @POSIX_LIB@
210    
211  libpcre.la:     $(OBJ)  libpcre.la:     $(OBJ)
212                  -rm -f libpcre.la                  -rm -f libpcre.la
213                  $(LINK) -rpath $(LIBDIR) -version-info \                  $(LINKLIB) -rpath $(LIBDIR) -version-info \
214                  '$(PCRELIBVERSION)' -o libpcre.la $(LOBJ)                  '$(PCRELIBVERSION)' -o libpcre.la $(LOBJ)
215    
216  libpcreposix.la: pcreposix.o  libpcreposix.la: libpcre.la pcreposix.@OBJEXT@
217                  -rm -f libpcreposix.la                  -rm -f libpcreposix.la
218                  $(LINK) -rpath $(LIBDIR) -version-info \                  $(LINKLIB) -rpath $(LIBDIR) libpcre.la -version-info \
219                  '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo                  '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
220    
221  pcre.o:         $(top_srcdir)/chartables.c $(top_srcdir)/pcre.c \  libpcrecpp.la: libpcre.la $(CPPOBJ)
222                  $(top_srcdir)/internal.h pcre.h config.h Makefile                  -rm -f libpcrecpp.la
223                  $(LTCOMPILE) $(UTF8) $(top_srcdir)/pcre.c                  $(CXXLINKLIB) -rpath $(LIBDIR) libpcre.la -version-info \
224                    '$(PCRECPPLIBVERSION)' -o libpcrecpp.la $(CPPLOBJ)
225  pcreposix.o:    $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \  
226                  $(top_srcdir)/internal.h pcre.h config.h Makefile  # Note that files generated by ./configure and by dftables are in the current
227                  $(LTCOMPILE) $(top_srcdir)/pcreposix.c  # directory, not the source directory.
228    
229  maketables.o:   $(top_srcdir)/maketables.c $(top_srcdir)/internal.h \  pcre_chartables.@OBJEXT@: pcre_chartables.c
230                  pcre.h config.h Makefile                  @$(LTCOMPILE) pcre_chartables.c
231                  $(LTCOMPILE) $(top_srcdir)/maketables.c  
232    pcre_compile.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
233  get.o:          $(top_srcdir)/get.c $(top_srcdir)/internal.h \                  $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_compile.c \
234                  pcre.h config.h Makefile                  $(top_srcdir)/pcre_printint.src
235                  $(LTCOMPILE) $(top_srcdir)/get.c                  @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
236                    $(top_srcdir)/pcre_compile.c
237  study.o:        $(top_srcdir)/study.c $(top_srcdir)/internal.h \  
238                  pcre.h config.h Makefile  pcre_config.@OBJEXT@:  Makefile config.h $(top_srcdir)/pcre.h \
239                  $(LTCOMPILE) $(UTF8) $(top_srcdir)/study.c                  $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_config.c
240                    @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
241  pcretest.o:     $(top_srcdir)/pcretest.c $(top_srcdir)/internal.h pcre.h config.h Makefile                  $(top_srcdir)/pcre_config.c
242                  $(LTCOMPILE) $(UTF8) $(top_srcdir)/pcretest.c  
243    pcre_dfa_exec.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
244  pcregrep.o:     $(top_srcdir)/pcregrep.c pcre.h Makefile config.h                  $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_dfa_exec.c
245                  $(LTCOMPILE) $(UTF8) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c                  @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
246                    $(top_srcdir)/pcre_dfa_exec.c
247  # An auxiliary program makes the default character table source  
248    pcre_exec.@OBJEXT@:    Makefile config.h $(top_srcdir)/pcre.h \
249  $(top_srcdir)/chartables.c:   dftables                  $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_exec.c
250                  ./dftables >$(top_srcdir)/chartables.c                  @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
251                    $(top_srcdir)/pcre_exec.c
252  dftables:       $(top_srcdir)/dftables.c $(top_srcdir)/maketables.c \  
253                  $(top_srcdir)/internal.h pcre.h config.h Makefile  pcre_fullinfo.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
254                  $(LINK) -o dftables $(CFLAGS) $(top_srcdir)/dftables.c                  $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_fullinfo.c
255                    @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
256  install:        all                  $(top_srcdir)/pcre_fullinfo.c
257                  $(mkinstalldirs) $(DESTDIR)/$(LIBDIR)  
258                  echo "$(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)/$(LIBDIR)/libpcre.la"  pcre_get.@OBJEXT@:     Makefile config.h $(top_srcdir)/pcre.h \
259                  $(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)/$(LIBDIR)/libpcre.la                  $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_get.c
260                  echo "$(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)/$(LIBDIR)/libpcreposix.la"                  @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
261                  $(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)/$(LIBDIR)/libpcreposix.la                  $(top_srcdir)/pcre_get.c
262                  $(LIBTOOL) --finish $(DESTDIR)/$(LIBDIR)  
263                  $(mkinstalldirs) $(DESTDIR)/$(INCDIR)  pcre_globals.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
264                  $(INSTALL_DATA) pcre.h $(DESTDIR)/$(INCDIR)/pcre.h                  $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_globals.c
265                  $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)/$(INCDIR)/pcreposix.h                  @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
266                  $(mkinstalldirs) $(DESTDIR)/$(MANDIR)/man3                  $(top_srcdir)/pcre_globals.c
267                  $(INSTALL_DATA) $(top_srcdir)/doc/pcre.3 $(DESTDIR)/$(MANDIR)/man3/pcre.3  
268                  $(INSTALL_DATA) $(top_srcdir)/doc/pcreposix.3 $(DESTDIR)/$(MANDIR)/man3/pcreposix.3  pcre_info.@OBJEXT@:    Makefile config.h $(top_srcdir)/pcre.h \
269                  $(mkinstalldirs) $(DESTDIR)/$(MANDIR)/man1                  $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_info.c
270                  $(INSTALL_DATA) $(top_srcdir)/doc/pcregrep.1 $(DESTDIR)/$(MANDIR)/man1/pcregrep.1                  @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
271                  $(INSTALL_DATA) $(top_srcdir)/doc/pcretest.1 $(DESTDIR)/$(MANDIR)/man1/pcretest.1                  $(top_srcdir)/pcre_info.c
272                  $(mkinstalldirs) $(DESTDIR)/$(BINDIR)  
273                  $(LIBTOOL) --mode=install $(INSTALL) pcregrep $(DESTDIR)/$(BINDIR)/pcregrep  pcre_maketables.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
274                  $(LIBTOOL) --mode=install $(INSTALL) pcretest $(DESTDIR)/$(BINDIR)/pcretest                  $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_maketables.c
275                  $(INSTALL) pcre-config $(DESTDIR)/$(BINDIR)/pcre-config                  @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
276                    $(top_srcdir)/pcre_maketables.c
277  # We deliberately omit dftables and chartables.c from 'make clean'; once made  
278  # chartables.c shouldn't change, and if people have edited the tables by hand,  pcre_ord2utf8.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
279  # you don't want to throw them away.                  $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_ord2utf8.c
280                    @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
281                    $(top_srcdir)/pcre_ord2utf8.c
282    
283    pcre_refcount.@OBJEXT@:   Makefile config.h $(top_srcdir)/pcre.h \
284                    $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_refcount.c
285                    @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
286                    $(top_srcdir)/pcre_refcount.c
287    
288    pcre_study.@OBJEXT@:   Makefile config.h $(top_srcdir)/pcre.h \
289                    $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_study.c
290                    @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
291                    $(top_srcdir)/pcre_study.c
292    
293    pcre_tables.@OBJEXT@:  Makefile config.h $(top_srcdir)/pcre.h \
294                    $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_tables.c
295                    @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
296                    $(top_srcdir)/pcre_tables.c
297    
298    pcre_try_flipped.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
299                    $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_try_flipped.c
300                    @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
301                    $(top_srcdir)/pcre_try_flipped.c
302    
303    pcre_ucp_searchfuncs.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
304                    $(top_srcdir)/pcre_internal.h \
305                    $(top_srcdir)/pcre_ucp_searchfuncs.c \
306                    $(top_srcdir)/ucptable.c
307                    @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
308                    $(top_srcdir)/pcre_ucp_searchfuncs.c
309    
310    pcre_valid_utf8.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
311                    $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_valid_utf8.c
312                    @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
313                    $(top_srcdir)/pcre_valid_utf8.c
314    
315    pcre_version.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
316                    $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_version.c
317                    @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
318                    $(top_srcdir)/pcre_version.c
319    
320    pcre_xclass.@OBJEXT@:  Makefile config.h $(top_srcdir)/pcre.h \
321                    $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_xclass.c
322                    @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
323                    $(top_srcdir)/pcre_xclass.c
324    
325    pcreposix.@OBJEXT@:    $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \
326                      $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre.h config.h Makefile
327                    @$(LTCOMPILE) $(POSIX_MALLOC_THRESHOLD) \
328                    $(top_srcdir)/pcreposix.c
329    
330    pcrecpp.@OBJEXT@:      $(top_srcdir)/pcrecpp.cc $(top_srcdir)/pcrecpp.h \
331                    pcrecpparg.h pcre_stringpiece.h $(top_srcdir)/pcre.h config.h Makefile
332                    @$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
333                    $(top_srcdir)/pcrecpp.cc
334    
335    pcre_scanner.@OBJEXT@: $(top_srcdir)/pcre_scanner.cc \
336                    $(top_srcdir)/pcre_scanner.h \
337                    $(top_srcdir)/pcrecpp.h pcrecpparg.h pcre_stringpiece.h \
338                    $(top_srcdir)/pcre.h config.h Makefile
339                    @$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
340                    $(top_srcdir)/pcre_scanner.cc
341    
342    pcre_stringpiece.@OBJEXT@:  $(top_srcdir)/pcre_stringpiece.cc \
343                    pcre_stringpiece.h \
344                    config.h Makefile
345                    @$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
346                    $(top_srcdir)/pcre_stringpiece.cc
347    
348    pcretest.@OBJEXT@:     $(top_srcdir)/pcretest.c $(top_srcdir)/pcre_internal.h \
349                    $(top_srcdir)/pcre_printint.src $(top_srcdir)/pcre.h config.h Makefile
350                    $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) \
351                    $(LINK_SIZE) $(top_srcdir)/pcretest.c
352    
353    pcrecpp_unittest.@OBJEXT@:  $(top_srcdir)/pcrecpp_unittest.cc \
354                    $(top_srcdir)/pcrecpp.h \
355                    pcrecpparg.h pcre_stringpiece.h $(top_srcdir)/pcre.h config.h Makefile
356                    $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) \
357                    $(LINK_SIZE) $(top_srcdir)/pcrecpp_unittest.cc
358    
359    pcre_stringpiece_unittest.@OBJEXT@: $(top_srcdir)/pcre_stringpiece_unittest.cc \
360                    pcre_stringpiece.h pcrecpparg.h config.h Makefile
361                    $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) \
362                    $(LINK_SIZE) $(top_srcdir)/pcre_stringpiece_unittest.cc
363    
364    pcre_scanner_unittest.@OBJEXT@:  $(top_srcdir)/pcre_scanner_unittest.cc \
365                    $(top_srcdir)/pcre_scanner.h \
366                    $(top_srcdir)/pcrecpp.h pcre_stringpiece.h \
367                    $(top_srcdir)/pcre.h pcrecpparg.h config.h Makefile
368                    $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) \
369                    $(LINK_SIZE) $(top_srcdir)/pcre_scanner_unittest.cc
370    
371    pcregrep.@OBJEXT@:     $(top_srcdir)/pcregrep.c $(top_srcdir)/pcre.h Makefile config.h
372                    $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) \
373                    $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
374    
375    # Some Windows-specific targets for MinGW. Do not use for Cygwin.
376    
377    winshared : .libs/@WIN_PREFIX@pcre.dll .libs/@WIN_PREFIX@pcreposix.dll \
378                    .libs/@WIN_PREFIX@pcrecpp.dll
379    
380    .libs/@WIN_PREFIX@pcre.dll : libpcre.la
381            $(CC) $(CFLAGS) -shared -o $@ \
382            -Wl,--whole-archive .libs/libpcre.a \
383            -Wl,--out-implib,.libs/libpcre.dll.a \
384            -Wl,--output-def,.libs/@WIN_PREFIX@pcre.dll-def \
385            -Wl,--export-all-symbols \
386            -Wl,--no-whole-archive
387            sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcre.dll'#" \
388            -e "s#library_names=''#library_names='libpcre.dll.a'#" \
389            < .libs/libpcre.lai > .libs/libpcre.lai.tmp && \
390            mv -f .libs/libpcre.lai.tmp .libs/libpcre.lai
391            sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcre.dll'#" \
392            -e "s#library_names=''#library_names='libpcre.dll.a'#" \
393            < libpcre.la > libpcre.la.tmp && \
394            mv -f libpcre.la.tmp libpcre.la
395    
396    
397    .libs/@WIN_PREFIX@pcreposix.dll: libpcreposix.la libpcre.la
398            $(CC) $(CFLAGS) -shared -o $@ \
399            -Wl,--whole-archive .libs/libpcreposix.a \
400            -Wl,--out-implib,.libs/@WIN_PREFIX@pcreposix.dll.a \
401            -Wl,--output-def,.libs/@WIN_PREFIX@libpcreposix.dll-def \
402            -Wl,--export-all-symbols \
403            -Wl,--no-whole-archive .libs/libpcre.a
404            sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcreposix.dll'#" \
405            -e "s#library_names=''#library_names='libpcreposix.dll.a'#"\
406            < .libs/libpcreposix.lai > .libs/libpcreposix.lai.tmp && \
407            mv -f .libs/libpcreposix.lai.tmp .libs/libpcreposix.lai
408            sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcreposix.dll'#" \
409            -e "s#library_names=''#library_names='libpcreposix.dll.a'#"\
410            < libpcreposix.la > libpcreposix.la.tmp && \
411            mv -f libpcreposix.la.tmp libpcreposix.la
412    
413    .libs/@WIN_PREFIX@pcrecpp.dll: libpcrecpp.la libpcre.la
414            $(CXX) $(CXXFLAGS) -shared -o $@ \
415            -Wl,--whole-archive .libs/libpcrecpp.a \
416            -Wl,--out-implib,.libs/@WIN_PREFIX@pcrecpp.dll.a \
417            -Wl,--output-def,.libs/@WIN_PREFIX@libpcrecpp.dll-def \
418            -Wl,--export-all-symbols \
419            -Wl,--no-whole-archive .libs/libpcre.a
420            sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcrecpp.dll'#" \
421            -e "s#library_names=''#library_names='libpcrecpp.dll.a'#"\
422            < .libs/libpcrecpp.lai > .libs/libpcrecpp.lai.tmp && \
423            mv -f .libs/libpcrecpp.lai.tmp .libs/libpcrecpp.lai
424            sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcrecpp.dll'#" \
425            -e "s#library_names=''#library_names='libpcrecpp.dll.a'#"\
426            < libpcrecpp.la > libpcrecpp.la.tmp && \
427            mv -f libpcrecpp.la.tmp libpcrecpp.la
428    
429    
430    wininstall : winshared
431            $(mkinstalldirs) $(DESTDIR)$(LIBDIR)
432            $(mkinstalldirs) $(DESTDIR)$(BINDIR)
433            $(INSTALL) .libs/@WIN_PREFIX@pcre.dll $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcre.dll
434            $(INSTALL) .libs/@WIN_PREFIX@pcreposix.dll $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcreposix.dll
435            $(INSTALL) .libs/@WIN_PREFIX@libpcreposix.dll.a $(DESTDIR)$(LIBDIR)/@WIN_PREFIX@libpcreposix.dll.a
436            $(INSTALL) .libs/@WIN_PREFIX@libpcre.dll.a $(DESTDIR)$(LIBDIR)/@WIN_PREFIX@libpcre.dll.a
437    @HAVE_CPP@       $(INSTALL) .libs/@WIN_PREFIX@pcrecpp.dll $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcrecpp.dll
438    @HAVE_CPP@       $(INSTALL) .libs/@WIN_PREFIX@libpcrecpp.dll.a $(DESTDIR)$(LIBDIR)/@WIN_PREFIX@libpcrecpp.dll.a
439            -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcre.dll
440            -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcreposix.dll
441    @HAVE_CPP@       -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcrecpp.dll
442            -strip $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
443            -strip $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
444    
445    # An auxiliary program makes the default character table source. This is put
446    # in the current directory, NOT the $top_srcdir directory.
447    
448    pcre_chartables.c:   dftables@BUILD_EXEEXT@
449                    ./dftables@BUILD_EXEEXT@ pcre_chartables.c
450    
451    dftables.@BUILD_OBJEXT@:     $(top_srcdir)/dftables.c \
452                    $(top_srcdir)/pcre_maketables.c $(top_srcdir)/pcre_internal.h \
453                    $(top_srcdir)/pcre.h config.h Makefile
454                    $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -I. $(top_srcdir)/dftables.c
455    
456    dftables@BUILD_EXEEXT@:      dftables.@BUILD_OBJEXT@
457                    $(LINK_FOR_BUILD) -o dftables@BUILD_EXEEXT@ dftables.@OBJEXT@
458    
459    install:        all @ON_WINDOWS@ wininstall
460    @NOT_ON_WINDOWS@               $(mkinstalldirs) $(DESTDIR)$(LIBDIR)
461    @NOT_ON_WINDOWS@               echo "$(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la"
462    @NOT_ON_WINDOWS@               $(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la
463    @NOT_ON_WINDOWS@               echo "$(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la"
464    @NOT_ON_WINDOWS@               $(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la
465    @NOT_ON_WINDOWS@@HAVE_CPP@              echo "$(LIBTOOL) --mode=install $(INSTALL) libpcrecpp.la $(DESTDIR)$(LIBDIR)/libpcrecpp.la"
466    @NOT_ON_WINDOWS@@HAVE_CPP@              $(LIBTOOL) --mode=install $(INSTALL) libpcrecpp.la $(DESTDIR)$(LIBDIR)/libpcrecpp.la
467    @NOT_ON_WINDOWS@               $(LIBTOOL) --finish $(DESTDIR)$(LIBDIR)
468                    $(mkinstalldirs) $(DESTDIR)$(INCDIR)
469                    $(INSTALL_DATA) $(top_srcdir)/pcre.h $(DESTDIR)$(INCDIR)/pcre.h
470                    $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)$(INCDIR)/pcreposix.h
471    @HAVE_CPP@               $(INSTALL_DATA) $(top_srcdir)/pcrecpp.h $(DESTDIR)$(INCDIR)/pcrecpp.h
472    @HAVE_CPP@               $(INSTALL_DATA) pcrecpparg.h $(DESTDIR)$(INCDIR)/pcrecpparg.h
473    @HAVE_CPP@               $(INSTALL_DATA) pcre_stringpiece.h $(DESTDIR)$(INCDIR)/pcre_stringpiece.h
474    @HAVE_CPP@               $(INSTALL_DATA) $(top_srcdir)/pcre_scanner.h $(DESTDIR)$(INCDIR)/pcre_scanner.h
475                    $(mkinstalldirs) $(DESTDIR)$(MANDIR)/man3
476                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre.3 $(DESTDIR)$(MANDIR)/man3/pcre.3
477                    $(INSTALL_DATA) $(top_srcdir)/doc/pcreapi.3 $(DESTDIR)$(MANDIR)/man3/pcreapi.3
478                    $(INSTALL_DATA) $(top_srcdir)/doc/pcrebuild.3 $(DESTDIR)$(MANDIR)/man3/pcrebuild.3
479                    $(INSTALL_DATA) $(top_srcdir)/doc/pcrecallout.3 $(DESTDIR)$(MANDIR)/man3/pcrecallout.3
480                    $(INSTALL_DATA) $(top_srcdir)/doc/pcrecompat.3 $(DESTDIR)$(MANDIR)/man3/pcrecompat.3
481    @HAVE_CPP@               $(INSTALL_DATA) $(top_srcdir)/doc/pcrecpp.3 $(DESTDIR)$(MANDIR)/man3/pcrecpp.3
482                    $(INSTALL_DATA) $(top_srcdir)/doc/pcrematching.3 $(DESTDIR)$(MANDIR)/man3/pcrematching.3
483                    $(INSTALL_DATA) $(top_srcdir)/doc/pcrepartial.3 $(DESTDIR)$(MANDIR)/man3/pcrepartial.3
484                    $(INSTALL_DATA) $(top_srcdir)/doc/pcrepattern.3 $(DESTDIR)$(MANDIR)/man3/pcrepattern.3
485                    $(INSTALL_DATA) $(top_srcdir)/doc/pcreperform.3 $(DESTDIR)$(MANDIR)/man3/pcreperform.3
486                    $(INSTALL_DATA) $(top_srcdir)/doc/pcreposix.3 $(DESTDIR)$(MANDIR)/man3/pcreposix.3
487                    $(INSTALL_DATA) $(top_srcdir)/doc/pcreprecompile.3 $(DESTDIR)$(MANDIR)/man3/pcreprecompile.3
488                    $(INSTALL_DATA) $(top_srcdir)/doc/pcresample.3 $(DESTDIR)$(MANDIR)/man3/pcresample.3
489                    $(INSTALL_DATA) $(top_srcdir)/doc/pcrestack.3 $(DESTDIR)$(MANDIR)/man3/pcrestack.3
490                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_compile.3 $(DESTDIR)$(MANDIR)/man3/pcre_compile.3
491                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_compile2.3 $(DESTDIR)$(MANDIR)/man3/pcre_compile2.3
492                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_config.3 $(DESTDIR)$(MANDIR)/man3/pcre_config.3
493                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_named_substring.3
494                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_substring.3
495                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_dfa_exec.3 $(DESTDIR)$(MANDIR)/man3/pcre_dfa_exec.3
496                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_exec.3 $(DESTDIR)$(MANDIR)/man3/pcre_exec.3
497                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring.3
498                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring_list.3
499                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_fullinfo.3 $(DESTDIR)$(MANDIR)/man3/pcre_fullinfo.3
500                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_named_substring.3
501                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_stringnumber.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_stringnumber.3
502                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_stringtable_entries.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_stringtable_entries.3
503                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring.3
504                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring_list.3
505                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_info.3 $(DESTDIR)$(MANDIR)/man3/pcre_info.3
506                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_maketables.3 $(DESTDIR)$(MANDIR)/man3/pcre_maketables.3
507                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_refcount.3 $(DESTDIR)$(MANDIR)/man3/pcre_refcount.3
508                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_study.3 $(DESTDIR)$(MANDIR)/man3/pcre_study.3
509                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_version.3 $(DESTDIR)$(MANDIR)/man3/pcre_version.3
510                    $(mkinstalldirs) $(DESTDIR)$(MANDIR)/man1
511                    $(INSTALL_DATA) $(top_srcdir)/doc/pcregrep.1 $(DESTDIR)$(MANDIR)/man1/pcregrep.1
512                    $(INSTALL_DATA) $(top_srcdir)/doc/pcretest.1 $(DESTDIR)$(MANDIR)/man1/pcretest.1
513                    $(mkinstalldirs) $(DESTDIR)$(BINDIR)
514                    $(LIBTOOL) --mode=install $(INSTALL) pcregrep@EXEEXT@ $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
515                    $(LIBTOOL) --mode=install $(INSTALL) pcretest@EXEEXT@ $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
516                    $(INSTALL) pcre-config $(DESTDIR)$(BINDIR)/pcre-config
517                    $(mkinstalldirs) $(DESTDIR)$(LIBDIR)/pkgconfig
518                    $(INSTALL_DATA) libpcre.pc $(DESTDIR)$(LIBDIR)/pkgconfig/libpcre.pc
519    
520    # The uninstall target removes all the files that were installed.
521    
522    uninstall:;     -rm -rf \
523                    $(DESTDIR)$(LIBDIR)/libpcre.* \
524                    $(DESTDIR)$(LIBDIR)/libpcreposix.* \
525                    $(DESTDIR)$(LIBDIR)/libpcrecpp.* \
526                    $(DESTDIR)$(INCDIR)/pcre.h \
527                    $(DESTDIR)$(INCDIR)/pcreposix.h \
528                    $(DESTDIR)$(INCDIR)/pcrecpp.h \
529                    $(DESTDIR)$(INCDIR)/pcrecpparg.h \
530                    $(DESTDIR)$(INCDIR)/pcre_scanner.h \
531                    $(DESTDIR)$(INCDIR)/pcre_stringpiece.h \
532                    $(DESTDIR)$(MANDIR)/man3/pcre.3 \
533                    $(DESTDIR)$(MANDIR)/man3/pcreapi.3 \
534                    $(DESTDIR)$(MANDIR)/man3/pcrebuild.3 \
535                    $(DESTDIR)$(MANDIR)/man3/pcrecallout.3 \
536                    $(DESTDIR)$(MANDIR)/man3/pcrecompat.3 \
537                    $(DESTDIR)$(MANDIR)/man3/pcrecpp.3 \
538                    $(DESTDIR)$(MANDIR)/man3/pcrematching.3 \
539                    $(DESTDIR)$(MANDIR)/man3/pcrepartial.3 \
540                    $(DESTDIR)$(MANDIR)/man3/pcrepattern.3 \
541                    $(DESTDIR)$(MANDIR)/man3/pcreperform.3 \
542                    $(DESTDIR)$(MANDIR)/man3/pcreposix.3 \
543                    $(DESTDIR)$(MANDIR)/man3/pcreprecompile.3 \
544                    $(DESTDIR)$(MANDIR)/man3/pcresample.3 \
545                    $(DESTDIR)$(MANDIR)/man3/pcrestack.3 \
546                    $(DESTDIR)$(MANDIR)/man3/pcre_compile.3 \
547                    $(DESTDIR)$(MANDIR)/man3/pcre_compile2.3 \
548                    $(DESTDIR)$(MANDIR)/man3/pcre_config.3 \
549                    $(DESTDIR)$(MANDIR)/man3/pcre_copy_named_substring.3 \
550                    $(DESTDIR)$(MANDIR)/man3/pcre_copy_substring.3 \
551                    $(DESTDIR)$(MANDIR)/man3/pcre_dfa_exec.3 \
552                    $(DESTDIR)$(MANDIR)/man3/pcre_exec.3 \
553                    $(DESTDIR)$(MANDIR)/man3/pcre_free_substring.3 \
554                    $(DESTDIR)$(MANDIR)/man3/pcre_free_substring_list.3 \
555                    $(DESTDIR)$(MANDIR)/man3/pcre_fullinfo.3 \
556                    $(DESTDIR)$(MANDIR)/man3/pcre_get_named_substring.3 \
557                    $(DESTDIR)$(MANDIR)/man3/pcre_get_stringnumber.3 \
558                    $(DESTDIR)$(MANDIR)/man3/pcre_get_stringtable_entries.3 \
559                    $(DESTDIR)$(MANDIR)/man3/pcre_get_substring.3 \
560                    $(DESTDIR)$(MANDIR)/man3/pcre_get_substring_list.3 \
561                    $(DESTDIR)$(MANDIR)/man3/pcre_info.3 \
562                    $(DESTDIR)$(MANDIR)/man3/pcre_maketables.3 \
563                    $(DESTDIR)$(MANDIR)/man3/pcre_refcount.3 \
564                    $(DESTDIR)$(MANDIR)/man3/pcre_study.3 \
565                    $(DESTDIR)$(MANDIR)/man3/pcre_version.3 \
566                    $(DESTDIR)$(MANDIR)/man1/pcregrep.1 \
567                    $(DESTDIR)$(MANDIR)/man1/pcretest.1 \
568                    $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@ \
569                    $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@ \
570                    $(DESTDIR)$(BINDIR)/pcre-config \
571                    $(DESTDIR)$(LIBDIR)/pkgconfig/libpcre.pc
572    
573    # We deliberately omit dftables and pcre_chartables.c from 'make clean'; once
574    # made pcre_chartables.c shouldn't change, and if people have edited the tables
575    # by hand, you don't want to throw them away.
576    
577  clean:;         -rm -rf *.o *.lo *.a *.la .libs pcretest pcregrep testtry  clean:;         -rm -rf *.@OBJEXT@ *.lo *.a *.la .libs pcretest@EXEEXT@ pcre_stringpiece_unittest@EXEEXT@ pcrecpp_unittest@EXEEXT@ pcre_scanner_unittest@EXEEXT@ pcregrep@EXEEXT@ testtry
578    
579  # But "make distclean" should get back to a virgin distribution  # But "make distclean" should get back to a virgin distribution
580    
581  distclean:      clean  distclean:      clean
582                  -rm -f chartables.c libtool pcre-config pcre.h \                  -rm -f pcre_chartables.c libtool pcre-config libpcre.pc \
583                    pcre_stringpiece.h pcrecpparg.h \
584                    dftables@EXEEXT@ RunGrepTest RunTest \
585                  Makefile config.h config.status config.log config.cache                  Makefile config.h config.status config.log config.cache
586    
587  check:          runtest  check:          runtest
588    
589  test:           runtest  @WIN_PREFIX@pcre.dll : winshared
590            cp .libs/@WIN_PREFIX@pcre.dll .
 runtest:        all  
                 ./RunTest  
   
 ######## MINGW32 ############### MINGW32 ############### MINGW32 #############  
591    
592  # This addition for mingw32 was contributed by  Paul Sokolovsky  test:           runtest
 # <Paul.Sokolovsky@technologist.com>. I (PH) don't know anything about it!  
   
 dll:            _dll libpcre.dll.a pcregrep_d pcretest_d  
   
 _dll:  
                 $(MAKE) CFLAGS=-DSTATIC pcre.dll  
   
 pcre.dll:       $(OBJ) pcreposix.o pcre.def  
 libpcre.dll.a:  pcre.def  
   
 pcregrep_d:     libpcre.dll.a pcregrep.o  
                 $(CC) $(CFLAGS) -L. -o pcregrep pcregrep.o -lpcre.dll  
593    
594  pcretest_d:     libpcre.dll.a pcretest.o  runtest:        all @ON_WINDOWS@ @WIN_PREFIX@pcre.dll
595                  $(PURIFY) $(CC) $(CFLAGS) -L. -o pcretest pcretest.o -lpcre.dll                  @./RunTest
596                    @./RunGrepTest
597    @HAVE_CPP@               @echo ""
598    @HAVE_CPP@               @echo "Testing C++ wrapper"
599    @HAVE_CPP@               @echo ""; echo "Test 1++: stringpiece"
600    @HAVE_CPP@               @./pcre_stringpiece_unittest@EXEEXT@
601    @HAVE_CPP@               @echo ""; echo "Test 2++: RE class"
602    @HAVE_CPP@               @./pcrecpp_unittest@EXEEXT@
603    @HAVE_CPP@               @echo ""; echo "Test 3++: Scanner class"
604    @HAVE_CPP@               @./pcre_scanner_unittest@EXEEXT@
605    
606  # End  # End

Legend:
Removed from v.57  
changed lines
  Added in v.91

  ViewVC Help
Powered by ViewVC 1.1.5