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

Contents of /code/trunk/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 89 - (hide annotations) (download)
Sat Feb 24 21:41:27 2007 UTC (7 years, 4 months ago) by nigel
File size: 26060 byte(s)
Load pcre-6.6 into code/trunk.

1 nigel 41
2     # Makefile.in for PCRE (Perl-Compatible Regular Expression) library.
3    
4    
5 nigel 53 #############################################################################
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 nigel 71 # 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 nigel 53
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 nigel 77 # 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 nigel 41 #---------------------------------------------------------------------------#
29 nigel 53 # The following lines are modified by "configure" to insert data that it is #
30 nigel 41 # given in its arguments, or which it finds out for itself. #
31     #---------------------------------------------------------------------------#
32    
33 nigel 53 SHELL = @SHELL@
34 nigel 41 prefix = @prefix@
35     exec_prefix = @exec_prefix@
36 nigel 53 top_srcdir = @top_srcdir@
37 nigel 41
38 nigel 53 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 nigel 43 BINDIR = @bindir@
53     LIBDIR = @libdir@
54     INCDIR = @includedir@
55     MANDIR = @mandir@
56 nigel 41
57 nigel 67 # 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 nigel 83 # 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 nigel 67 # The compiler, C flags, preprocessor flags, etc
75    
76 nigel 41 CC = @CC@
77 nigel 77 CXX = @CXX@
78 nigel 41 CFLAGS = @CFLAGS@
79 nigel 77 CXXFLAGS = @CXXFLAGS@
80     LDFLAGS = @LDFLAGS@
81 nigel 87 CXXLDFLAGS = @CXXLDFLAGS@
82 nigel 73
83 nigel 65 CC_FOR_BUILD = @CC_FOR_BUILD@
84     CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
85 nigel 77 CXX_FOR_BUILD = @CXX_FOR_BUILD@
86     CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
87     LDFLAGS_FOR_BUILD = $(LDFLAGS)
88 nigel 73
89 nigel 75 UCP = @UCP@
90 nigel 65 UTF8 = @UTF8@
91 nigel 53 NEWLINE = @NEWLINE@
92 nigel 63 POSIX_MALLOC_THRESHOLD = @POSIX_MALLOC_THRESHOLD@
93     LINK_SIZE = @LINK_SIZE@
94 nigel 87 MATCH_LIMIT = @MATCH_LIMIT@ @MATCH_LIMIT_RECURSION@
95 nigel 73 NO_RECURSE = @NO_RECURSE@
96     EBCDIC = @EBCDIC@
97 nigel 41
98 nigel 53 INSTALL = @INSTALL@
99     INSTALL_DATA = @INSTALL_DATA@
100 nigel 41
101 nigel 53 # 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 nigel 41 LIBTOOL = @LIBTOOL@
105 nigel 73 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT) $(NO_RECURSE) $(EBCDIC)
106 nigel 77 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 nigel 83 @NOT_ON_WINDOWS@LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -I. -I$(top_srcdir)
109 nigel 85 LINKLIB = $(LIBTOOL) --mode=link $(CC) -export-symbols-regex '^[^_]' $(LDFLAGS) -I. -I$(top_srcdir)
110 nigel 83 LINK_FOR_BUILD = $(LIBTOOL) --mode=link $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -I. -I$(top_srcdir)
111 nigel 77 @ON_WINDOWS@CXXLINK = $(CXX) $(LDFLAGS) -I. -I$(top_srcdir) -L.libs
112 nigel 87 @NOT_ON_WINDOWS@CXXLINK = $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) $(CXXLDFLAGS) -I. -I$(top_srcdir)
113 nigel 77 CXXLINKLIB = $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -I. -I$(top_srcdir)
114 nigel 41
115 nigel 43 # These are the version numbers for the shared libraries
116 nigel 41
117 nigel 43 PCRELIBVERSION = @PCRE_LIB_VERSION@
118     PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@
119 nigel 77 PCRECPPLIBVERSION = @PCRE_CPPLIB_VERSION@
120 nigel 43
121 nigel 41 ##############################################################################
122    
123    
124 nigel 77 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_ord2utf8.@OBJEXT@ \
135     pcre_refcount.@OBJEXT@ \
136     pcre_study.@OBJEXT@ \
137     pcre_tables.@OBJEXT@ \
138     pcre_try_flipped.@OBJEXT@ \
139 nigel 87 pcre_ucp_searchfuncs.@OBJEXT@ \
140 nigel 77 pcre_valid_utf8.@OBJEXT@ \
141     pcre_version.@OBJEXT@ \
142     pcre_xclass.@OBJEXT@ \
143 nigel 83 $(POSIX_OBJ)
144 nigel 41
145 nigel 77 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 nigel 87 pcre_ucp_searchfuncs.lo \
161 nigel 77 pcre_valid_utf8.lo \
162     pcre_version.lo \
163     pcre_xclass.lo \
164 nigel 83 $(POSIX_LOBJ)
165 nigel 41
166 nigel 77 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 nigel 87 all: libpcre.la @POSIX_LIB@ pcretest@EXEEXT@ pcregrep@EXEEXT@ \
180     @MAYBE_CPP_TARGETS@ @ON_WINDOWS@ winshared
181 nigel 77
182 nigel 67 pcregrep@EXEEXT@: libpcre.la pcregrep.@OBJEXT@ @ON_WINDOWS@ winshared
183 nigel 71 $(LINK) -o pcregrep@EXEEXT@ pcregrep.@OBJEXT@ libpcre.la
184 nigel 41
185 nigel 87 pcretest@EXEEXT@: libpcre.la @POSIX_LIB@ pcretest.@OBJEXT@ \
186     @ON_WINDOWS@ winshared
187     $(LINK) $(PURIFY) $(EFENCE) -o pcretest@EXEEXT@ \
188     pcretest.@OBJEXT@ \
189 nigel 71 libpcre.la @POSIX_LIB@
190 nigel 41
191 nigel 87 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 nigel 77 libpcrecpp.la @POSIX_LIB@
196    
197 nigel 87 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 nigel 77 libpcrecpp.la @POSIX_LIB@
203    
204 nigel 87 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 nigel 77 libpcrecpp.la @POSIX_LIB@
210    
211 nigel 41 libpcre.la: $(OBJ)
212     -rm -f libpcre.la
213 nigel 67 $(LINKLIB) -rpath $(LIBDIR) -version-info \
214 nigel 53 '$(PCRELIBVERSION)' -o libpcre.la $(LOBJ)
215 nigel 41
216 nigel 73 libpcreposix.la: libpcre.la pcreposix.@OBJEXT@
217 nigel 41 -rm -f libpcreposix.la
218 nigel 71 $(LINKLIB) -rpath $(LIBDIR) libpcre.la -version-info \
219 nigel 53 '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
220 nigel 41
221 nigel 77 libpcrecpp.la: libpcre.la $(CPPOBJ)
222     -rm -f libpcrecpp.la
223     $(CXXLINKLIB) -rpath $(LIBDIR) libpcre.la -version-info \
224     '$(PCRECPPLIBVERSION)' -o libpcrecpp.la $(CPPLOBJ)
225 nigel 75
226 nigel 77 # Note that files generated by ./configure and by dftables are in the current
227     # directory, not the source directory.
228 nigel 41
229 nigel 77 pcre_chartables.@OBJEXT@: pcre_chartables.c
230 nigel 81 @$(LTCOMPILE) pcre_chartables.c
231 nigel 77
232 nigel 89 pcre_compile.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
233 nigel 87 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_compile.c \
234     $(top_srcdir)/pcre_printint.src
235 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
236 nigel 77 $(top_srcdir)/pcre_compile.c
237    
238 nigel 89 pcre_config.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
239 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_config.c
240 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
241 nigel 77 $(top_srcdir)/pcre_config.c
242    
243 nigel 89 pcre_dfa_exec.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
244 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_dfa_exec.c
245 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
246 nigel 77 $(top_srcdir)/pcre_dfa_exec.c
247    
248 nigel 89 pcre_exec.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
249 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_exec.c
250 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
251 nigel 77 $(top_srcdir)/pcre_exec.c
252    
253 nigel 89 pcre_fullinfo.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
254 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_fullinfo.c
255 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
256 nigel 77 $(top_srcdir)/pcre_fullinfo.c
257    
258 nigel 89 pcre_get.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
259 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_get.c
260 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
261 nigel 77 $(top_srcdir)/pcre_get.c
262    
263 nigel 89 pcre_globals.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
264 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_globals.c
265 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
266 nigel 77 $(top_srcdir)/pcre_globals.c
267    
268 nigel 89 pcre_info.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
269 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_info.c
270 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
271 nigel 77 $(top_srcdir)/pcre_info.c
272    
273 nigel 89 pcre_maketables.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
274 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_maketables.c
275 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
276 nigel 77 $(top_srcdir)/pcre_maketables.c
277    
278 nigel 89 pcre_ord2utf8.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
279 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_ord2utf8.c
280 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
281 nigel 77 $(top_srcdir)/pcre_ord2utf8.c
282    
283 nigel 89 pcre_refcount.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
284 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_refcount.c
285 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
286 nigel 77 $(top_srcdir)/pcre_refcount.c
287    
288 nigel 89 pcre_study.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
289 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_study.c
290 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
291 nigel 77 $(top_srcdir)/pcre_study.c
292    
293 nigel 89 pcre_tables.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
294 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_tables.c
295 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
296 nigel 77 $(top_srcdir)/pcre_tables.c
297    
298 nigel 89 pcre_try_flipped.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
299 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_try_flipped.c
300 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
301 nigel 77 $(top_srcdir)/pcre_try_flipped.c
302    
303 nigel 89 pcre_ucp_searchfuncs.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
304 nigel 87 $(top_srcdir)/pcre_internal.h \
305     $(top_srcdir)/pcre_ucp_searchfuncs.c \
306     $(top_srcdir)/ucptable.c
307 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
308 nigel 87 $(top_srcdir)/pcre_ucp_searchfuncs.c
309 nigel 77
310 nigel 89 pcre_valid_utf8.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
311 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_valid_utf8.c
312 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
313 nigel 77 $(top_srcdir)/pcre_valid_utf8.c
314    
315 nigel 89 pcre_version.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
316 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_version.c
317 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
318 nigel 77 $(top_srcdir)/pcre_version.c
319    
320 nigel 89 pcre_xclass.@OBJEXT@: Makefile config.h $(top_srcdir)/pcre.h \
321 nigel 77 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_xclass.c
322 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
323 nigel 77 $(top_srcdir)/pcre_xclass.c
324    
325     pcreposix.@OBJEXT@: $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \
326 nigel 89 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre.h config.h Makefile
327 nigel 87 @$(LTCOMPILE) $(POSIX_MALLOC_THRESHOLD) \
328     $(top_srcdir)/pcreposix.c
329 nigel 41
330 nigel 87 pcrecpp.@OBJEXT@: $(top_srcdir)/pcrecpp.cc $(top_srcdir)/pcrecpp.h \
331 nigel 89 pcrecpparg.h pcre_stringpiece.h $(top_srcdir)/pcre.h config.h Makefile
332 nigel 79 @$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
333 nigel 77 $(top_srcdir)/pcrecpp.cc
334 nigel 41
335 nigel 87 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 nigel 89 $(top_srcdir)/pcre.h config.h Makefile
339 nigel 79 @$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
340 nigel 77 $(top_srcdir)/pcre_scanner.cc
341 nigel 41
342 nigel 87 pcre_stringpiece.@OBJEXT@: $(top_srcdir)/pcre_stringpiece.cc \
343     pcre_stringpiece.h \
344 nigel 77 config.h Makefile
345 nigel 79 @$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
346 nigel 77 $(top_srcdir)/pcre_stringpiece.cc
347 nigel 41
348 nigel 77 pcretest.@OBJEXT@: $(top_srcdir)/pcretest.c $(top_srcdir)/pcre_internal.h \
349 nigel 89 $(top_srcdir)/pcre_printint.src $(top_srcdir)/pcre.h config.h Makefile
350 nigel 87 $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) \
351     $(LINK_SIZE) $(top_srcdir)/pcretest.c
352 nigel 41
353 nigel 87 pcrecpp_unittest.@OBJEXT@: $(top_srcdir)/pcrecpp_unittest.cc \
354     $(top_srcdir)/pcrecpp.h \
355 nigel 89 pcrecpparg.h pcre_stringpiece.h $(top_srcdir)/pcre.h config.h Makefile
356 nigel 87 $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) \
357     $(LINK_SIZE) $(top_srcdir)/pcrecpp_unittest.cc
358 nigel 77
359 nigel 87 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 nigel 77
364     pcre_scanner_unittest.@OBJEXT@: $(top_srcdir)/pcre_scanner_unittest.cc \
365 nigel 87 $(top_srcdir)/pcre_scanner.h \
366     $(top_srcdir)/pcrecpp.h pcre_stringpiece.h \
367 nigel 89 $(top_srcdir)/pcre.h pcrecpparg.h config.h Makefile
368 nigel 87 $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) \
369     $(LINK_SIZE) $(top_srcdir)/pcre_scanner_unittest.cc
370 nigel 77
371 nigel 89 pcregrep.@OBJEXT@: $(top_srcdir)/pcregrep.c $(top_srcdir)/pcre.h Makefile config.h
372 nigel 87 $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) \
373     $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
374 nigel 41
375 nigel 71 # Some Windows-specific targets for MinGW. Do not use for Cygwin.
376 nigel 67
377 nigel 77 winshared : .libs/@WIN_PREFIX@pcre.dll .libs/@WIN_PREFIX@pcreposix.dll \
378     .libs/@WIN_PREFIX@pcrecpp.dll
379 nigel 67
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 nigel 77 mv -f .libs/libpcre.lai.tmp .libs/libpcre.lai
391 nigel 67 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 nigel 77 mv -f libpcre.la.tmp libpcre.la
395 nigel 67
396    
397     .libs/@WIN_PREFIX@pcreposix.dll: libpcreposix.la libpcre.la
398     $(CC) $(CFLAGS) -shared -o $@ \
399     -Wl,--whole-archive .libs/libpcreposix.a \
400 nigel 71 -Wl,--out-implib,.libs/@WIN_PREFIX@pcreposix.dll.a \
401     -Wl,--output-def,.libs/@WIN_PREFIX@libpcreposix.dll-def \
402 nigel 67 -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 nigel 77 mv -f .libs/libpcreposix.lai.tmp .libs/libpcreposix.lai
408 nigel 67 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 nigel 77 mv -f libpcreposix.la.tmp libpcreposix.la
412 nigel 67
413 nigel 77 .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 nigel 67
429 nigel 77
430 nigel 67 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 nigel 69 $(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 nigel 83 @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 nigel 67 -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcre.dll
440     -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcreposix.dll
441 nigel 83 @HAVE_CPP@ -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcrecpp.dll
442 nigel 67 -strip $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
443     -strip $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
444    
445 nigel 75 # An auxiliary program makes the default character table source. This is put
446     # in the current directory, NOT the $top_srcdir directory.
447 nigel 41
448 nigel 77 pcre_chartables.c: dftables@BUILD_EXEEXT@
449     ./dftables@BUILD_EXEEXT@ pcre_chartables.c
450 nigel 41
451 nigel 77 dftables.@BUILD_OBJEXT@: $(top_srcdir)/dftables.c \
452     $(top_srcdir)/pcre_maketables.c $(top_srcdir)/pcre_internal.h \
453 nigel 89 $(top_srcdir)/pcre.h config.h Makefile
454 nigel 65 $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -I. $(top_srcdir)/dftables.c
455 nigel 41
456 nigel 77 dftables@BUILD_EXEEXT@: dftables.@BUILD_OBJEXT@
457     $(LINK_FOR_BUILD) -o dftables@BUILD_EXEEXT@ dftables.@OBJEXT@
458 nigel 63
459 nigel 67 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 nigel 83 @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 nigel 67 @NOT_ON_WINDOWS@ $(LIBTOOL) --finish $(DESTDIR)$(LIBDIR)
468 nigel 63 $(mkinstalldirs) $(DESTDIR)$(INCDIR)
469 nigel 89 $(INSTALL_DATA) $(top_srcdir)/pcre.h $(DESTDIR)$(INCDIR)/pcre.h
470 nigel 63 $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)$(INCDIR)/pcreposix.h
471 nigel 87 @HAVE_CPP@ $(INSTALL_DATA) $(top_srcdir)/pcrecpp.h $(DESTDIR)$(INCDIR)/pcrecpp.h
472     @HAVE_CPP@ $(INSTALL_DATA) pcrecpparg.h $(DESTDIR)$(INCDIR)/pcrecpparg.h
473 nigel 83 @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 nigel 63 $(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 nigel 83 @HAVE_CPP@ $(INSTALL_DATA) $(top_srcdir)/doc/pcrecpp.3 $(DESTDIR)$(MANDIR)/man3/pcrecpp.3
482 nigel 77 $(INSTALL_DATA) $(top_srcdir)/doc/pcrematching.3 $(DESTDIR)$(MANDIR)/man3/pcrematching.3
483 nigel 87 $(INSTALL_DATA) $(top_srcdir)/doc/pcrepartial.3 $(DESTDIR)$(MANDIR)/man3/pcrepartial.3
484 nigel 63 $(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 nigel 87 $(INSTALL_DATA) $(top_srcdir)/doc/pcreprecompile.3 $(DESTDIR)$(MANDIR)/man3/pcreprecompile.3
488 nigel 63 $(INSTALL_DATA) $(top_srcdir)/doc/pcresample.3 $(DESTDIR)$(MANDIR)/man3/pcresample.3
489     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_compile.3 $(DESTDIR)$(MANDIR)/man3/pcre_compile.3
490 nigel 87 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_compile2.3 $(DESTDIR)$(MANDIR)/man3/pcre_compile2.3
491 nigel 63 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_config.3 $(DESTDIR)$(MANDIR)/man3/pcre_config.3
492     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_named_substring.3
493     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_substring.3
494 nigel 77 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_dfa_exec.3 $(DESTDIR)$(MANDIR)/man3/pcre_dfa_exec.3
495 nigel 63 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_exec.3 $(DESTDIR)$(MANDIR)/man3/pcre_exec.3
496     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring.3
497     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring_list.3
498     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_fullinfo.3 $(DESTDIR)$(MANDIR)/man3/pcre_fullinfo.3
499     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_named_substring.3
500     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_stringnumber.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_stringnumber.3
501     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring.3
502     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring_list.3
503     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_info.3 $(DESTDIR)$(MANDIR)/man3/pcre_info.3
504     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_maketables.3 $(DESTDIR)$(MANDIR)/man3/pcre_maketables.3
505 nigel 77 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_refcount.3 $(DESTDIR)$(MANDIR)/man3/pcre_refcount.3
506 nigel 63 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_study.3 $(DESTDIR)$(MANDIR)/man3/pcre_study.3
507     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_version.3 $(DESTDIR)$(MANDIR)/man3/pcre_version.3
508     $(mkinstalldirs) $(DESTDIR)$(MANDIR)/man1
509     $(INSTALL_DATA) $(top_srcdir)/doc/pcregrep.1 $(DESTDIR)$(MANDIR)/man1/pcregrep.1
510     $(INSTALL_DATA) $(top_srcdir)/doc/pcretest.1 $(DESTDIR)$(MANDIR)/man1/pcretest.1
511     $(mkinstalldirs) $(DESTDIR)$(BINDIR)
512 nigel 67 $(LIBTOOL) --mode=install $(INSTALL) pcregrep@EXEEXT@ $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
513     $(LIBTOOL) --mode=install $(INSTALL) pcretest@EXEEXT@ $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
514 nigel 63 $(INSTALL) pcre-config $(DESTDIR)$(BINDIR)/pcre-config
515 nigel 75 $(mkinstalldirs) $(DESTDIR)$(LIBDIR)/pkgconfig
516 nigel 77 $(INSTALL_DATA) libpcre.pc $(DESTDIR)$(LIBDIR)/pkgconfig/libpcre.pc
517 nigel 41
518 nigel 77 # The uninstall target removes all the files that were installed.
519 nigel 41
520 nigel 77 uninstall:; -rm -rf \
521     $(DESTDIR)$(LIBDIR)/libpcre.* \
522     $(DESTDIR)$(LIBDIR)/libpcreposix.* \
523     $(DESTDIR)$(LIBDIR)/libpcrecpp.* \
524     $(DESTDIR)$(INCDIR)/pcre.h \
525     $(DESTDIR)$(INCDIR)/pcreposix.h \
526     $(DESTDIR)$(INCDIR)/pcrecpp.h \
527 nigel 87 $(DESTDIR)$(INCDIR)/pcrecpparg.h \
528 nigel 77 $(DESTDIR)$(INCDIR)/pcre_scanner.h \
529     $(DESTDIR)$(INCDIR)/pcre_stringpiece.h \
530     $(DESTDIR)$(MANDIR)/man3/pcre.3 \
531     $(DESTDIR)$(MANDIR)/man3/pcreapi.3 \
532     $(DESTDIR)$(MANDIR)/man3/pcrebuild.3 \
533     $(DESTDIR)$(MANDIR)/man3/pcrecallout.3 \
534     $(DESTDIR)$(MANDIR)/man3/pcrecompat.3 \
535     $(DESTDIR)$(MANDIR)/man3/pcrecpp.3 \
536     $(DESTDIR)$(MANDIR)/man3/pcrematching.3 \
537 nigel 87 $(DESTDIR)$(MANDIR)/man3/pcrepartial.3 \
538 nigel 77 $(DESTDIR)$(MANDIR)/man3/pcrepattern.3 \
539     $(DESTDIR)$(MANDIR)/man3/pcreperform.3 \
540     $(DESTDIR)$(MANDIR)/man3/pcreposix.3 \
541 nigel 87 $(DESTDIR)$(MANDIR)/man3/pcreprecompile.3 \
542 nigel 77 $(DESTDIR)$(MANDIR)/man3/pcresample.3 \
543     $(DESTDIR)$(MANDIR)/man3/pcre_compile.3 \
544 nigel 87 $(DESTDIR)$(MANDIR)/man3/pcre_compile2.3 \
545 nigel 77 $(DESTDIR)$(MANDIR)/man3/pcre_config.3 \
546     $(DESTDIR)$(MANDIR)/man3/pcre_copy_named_substring.3 \
547     $(DESTDIR)$(MANDIR)/man3/pcre_copy_substring.3 \
548     $(DESTDIR)$(MANDIR)/man3/pcre_dfa_exec.3 \
549     $(DESTDIR)$(MANDIR)/man3/pcre_exec.3 \
550     $(DESTDIR)$(MANDIR)/man3/pcre_free_substring.3 \
551     $(DESTDIR)$(MANDIR)/man3/pcre_free_substring_list.3 \
552     $(DESTDIR)$(MANDIR)/man3/pcre_fullinfo.3 \
553     $(DESTDIR)$(MANDIR)/man3/pcre_get_named_substring.3 \
554     $(DESTDIR)$(MANDIR)/man3/pcre_get_stringnumber.3 \
555     $(DESTDIR)$(MANDIR)/man3/pcre_get_substring.3 \
556     $(DESTDIR)$(MANDIR)/man3/pcre_get_substring_list.3 \
557     $(DESTDIR)$(MANDIR)/man3/pcre_info.3 \
558     $(DESTDIR)$(MANDIR)/man3/pcre_maketables.3 \
559     $(DESTDIR)$(MANDIR)/man3/pcre_refcount.3 \
560     $(DESTDIR)$(MANDIR)/man3/pcre_study.3 \
561     $(DESTDIR)$(MANDIR)/man3/pcre_version.3 \
562     $(DESTDIR)$(MANDIR)/man1/pcregrep.1 \
563     $(DESTDIR)$(MANDIR)/man1/pcretest.1 \
564     $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@ \
565     $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@ \
566     $(DESTDIR)$(BINDIR)/pcre-config \
567     $(DESTDIR)$(LIBDIR)/pkgconfig/libpcre.pc
568 nigel 41
569 nigel 77 # We deliberately omit dftables and pcre_chartables.c from 'make clean'; once
570     # made pcre_chartables.c shouldn't change, and if people have edited the tables
571     # by hand, you don't want to throw them away.
572    
573     clean:; -rm -rf *.@OBJEXT@ *.lo *.a *.la .libs pcretest@EXEEXT@ pcre_stringpiece_unittest@EXEEXT@ pcrecpp_unittest@EXEEXT@ pcre_scanner_unittest@EXEEXT@ pcregrep@EXEEXT@ testtry
574    
575 nigel 41 # But "make distclean" should get back to a virgin distribution
576    
577     distclean: clean
578 nigel 77 -rm -f pcre_chartables.c libtool pcre-config libpcre.pc \
579 nigel 89 pcre_stringpiece.h pcrecpparg.h \
580 nigel 77 dftables@EXEEXT@ RunGrepTest RunTest \
581 nigel 41 Makefile config.h config.status config.log config.cache
582    
583     check: runtest
584    
585 nigel 67 @WIN_PREFIX@pcre.dll : winshared
586     cp .libs/@WIN_PREFIX@pcre.dll .
587    
588 nigel 49 test: runtest
589    
590 nigel 67 runtest: all @ON_WINDOWS@ @WIN_PREFIX@pcre.dll
591 nigel 73 @./RunTest
592 nigel 77 @./RunGrepTest
593 nigel 83 @HAVE_CPP@ @echo ""
594     @HAVE_CPP@ @echo "Testing C++ wrapper"
595     @HAVE_CPP@ @echo ""; echo "Test 1++: stringpiece"
596     @HAVE_CPP@ @./pcre_stringpiece_unittest@EXEEXT@
597     @HAVE_CPP@ @echo ""; echo "Test 2++: RE class"
598     @HAVE_CPP@ @./pcrecpp_unittest@EXEEXT@
599     @HAVE_CPP@ @echo ""; echo "Test 3++: Scanner class"
600     @HAVE_CPP@ @./pcre_scanner_unittest@EXEEXT@
601 nigel 41
602     # End

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12