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

Contents of /code/trunk/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 83 - (show annotations) (download)
Sat Feb 24 21:41:06 2007 UTC (7 years, 8 months ago) by nigel
File size: 25048 byte(s)
Load pcre-6.3 into code/trunk.

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
82 CC_FOR_BUILD = @CC_FOR_BUILD@
83 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
84 CXX_FOR_BUILD = @CXX_FOR_BUILD@
85 CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
86 LDFLAGS_FOR_BUILD = $(LDFLAGS)
87
88 UCP = @UCP@
89 UTF8 = @UTF8@
90 NEWLINE = @NEWLINE@
91 POSIX_MALLOC_THRESHOLD = @POSIX_MALLOC_THRESHOLD@
92 LINK_SIZE = @LINK_SIZE@
93 MATCH_LIMIT = @MATCH_LIMIT@
94 NO_RECURSE = @NO_RECURSE@
95 EBCDIC = @EBCDIC@
96
97 INSTALL = @INSTALL@
98 INSTALL_DATA = @INSTALL_DATA@
99
100 # LIBTOOL enables the building of shared and static libraries. It is set up
101 # to do one or the other or both by ./configure.
102
103 LIBTOOL = @LIBTOOL@
104 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT) $(NO_RECURSE) $(EBCDIC)
105 LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT) $(NO_RECURSE) $(EBCDIC)
106 @ON_WINDOWS@LINK = $(CC) $(LDFLAGS) -I. -I$(top_srcdir) -L.libs
107 @NOT_ON_WINDOWS@LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -I. -I$(top_srcdir)
108 LINKLIB = $(LIBTOOL) --mode=link $(CC) -export-symbols-regex '^[^_]|__?pcre_.*utf8|__?pcre_printint' $(LDFLAGS) -I. -I$(top_srcdir)
109 LINK_FOR_BUILD = $(LIBTOOL) --mode=link $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -I. -I$(top_srcdir)
110 @ON_WINDOWS@CXXLINK = $(CXX) $(LDFLAGS) -I. -I$(top_srcdir) -L.libs
111 @NOT_ON_WINDOWS@CXXLINK = $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -I. -I$(top_srcdir)
112 CXXLINKLIB = $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -I. -I$(top_srcdir)
113
114 # These are the version numbers for the shared libraries
115
116 PCRELIBVERSION = @PCRE_LIB_VERSION@
117 PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@
118 PCRECPPLIBVERSION = @PCRE_CPPLIB_VERSION@
119
120 ##############################################################################
121
122
123 OBJ = pcre_chartables.@OBJEXT@ \
124 pcre_compile.@OBJEXT@ \
125 pcre_config.@OBJEXT@ \
126 pcre_dfa_exec.@OBJEXT@ \
127 pcre_exec.@OBJEXT@ \
128 pcre_fullinfo.@OBJEXT@ \
129 pcre_get.@OBJEXT@ \
130 pcre_globals.@OBJEXT@ \
131 pcre_info.@OBJEXT@ \
132 pcre_maketables.@OBJEXT@ \
133 pcre_ord2utf8.@OBJEXT@ \
134 pcre_printint.@OBJEXT@ \
135 pcre_refcount.@OBJEXT@ \
136 pcre_study.@OBJEXT@ \
137 pcre_tables.@OBJEXT@ \
138 pcre_try_flipped.@OBJEXT@ \
139 pcre_ucp_findchar.@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_printint.lo \
157 pcre_refcount.lo \
158 pcre_study.lo \
159 pcre_tables.lo \
160 pcre_try_flipped.lo \
161 pcre_ucp_findchar.lo \
162 pcre_valid_utf8.lo \
163 pcre_version.lo \
164 pcre_xclass.lo \
165 $(POSIX_LOBJ)
166
167 CPPOBJ = pcrecpp.@OBJEXT@ \
168 pcre_scanner.@OBJEXT@ \
169 pcre_stringpiece.@OBJEXT@
170
171 CPPLOBJ = pcrecpp.lo \
172 pcre_scanner.lo \
173 pcre_stringpiece.lo
174
175 CPP_TARGETS = libpcrecpp.la \
176 pcrecpp_unittest@EXEEXT@ \
177 pcre_scanner_unittest@EXEEXT@ \
178 pcre_stringpiece_unittest@EXEEXT@
179
180 all: libpcre.la @POSIX_LIB@ pcretest@EXEEXT@ pcregrep@EXEEXT@ @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@ @ON_WINDOWS@ winshared
186 $(LINK) $(PURIFY) $(EFENCE) -o pcretest@EXEEXT@ pcretest.@OBJEXT@ \
187 libpcre.la @POSIX_LIB@
188
189 pcrecpp_unittest@EXEEXT@: libpcrecpp.la pcrecpp_unittest.@OBJEXT@ @ON_WINDOWS@ winshared
190 $(CXXLINK) $(PURIFY) $(EFENCE) -o pcrecpp_unittest@EXEEXT@ pcrecpp_unittest.@OBJEXT@ \
191 libpcrecpp.la @POSIX_LIB@
192
193 pcre_scanner_unittest@EXEEXT@: libpcrecpp.la pcre_scanner_unittest.@OBJEXT@ @ON_WINDOWS@ winshared
194 $(CXXLINK) $(PURIFY) $(EFENCE) -o pcre_scanner_unittest@EXEEXT@ pcre_scanner_unittest.@OBJEXT@ \
195 libpcrecpp.la @POSIX_LIB@
196
197 pcre_stringpiece_unittest@EXEEXT@: libpcrecpp.la pcre_stringpiece_unittest.@OBJEXT@ @ON_WINDOWS@ winshared
198 $(CXXLINK) $(PURIFY) $(EFENCE) -o pcre_stringpiece_unittest@EXEEXT@ pcre_stringpiece_unittest.@OBJEXT@ \
199 libpcrecpp.la @POSIX_LIB@
200
201 libpcre.la: $(OBJ)
202 -rm -f libpcre.la
203 $(LINKLIB) -rpath $(LIBDIR) -version-info \
204 '$(PCRELIBVERSION)' -o libpcre.la $(LOBJ)
205
206 libpcreposix.la: libpcre.la pcreposix.@OBJEXT@
207 -rm -f libpcreposix.la
208 $(LINKLIB) -rpath $(LIBDIR) libpcre.la -version-info \
209 '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
210
211 libpcrecpp.la: libpcre.la $(CPPOBJ)
212 -rm -f libpcrecpp.la
213 $(CXXLINKLIB) -rpath $(LIBDIR) libpcre.la -version-info \
214 '$(PCRECPPLIBVERSION)' -o libpcrecpp.la $(CPPLOBJ)
215
216 # Note that files generated by ./configure and by dftables are in the current
217 # directory, not the source directory.
218
219 pcre_chartables.@OBJEXT@: pcre_chartables.c
220 @$(LTCOMPILE) pcre_chartables.c
221
222 pcre_compile.@OBJEXT@: Makefile config.h pcre.h \
223 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_compile.c
224 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
225 $(top_srcdir)/pcre_compile.c
226
227 pcre_config.@OBJEXT@: Makefile config.h pcre.h \
228 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_config.c
229 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
230 $(top_srcdir)/pcre_config.c
231
232 pcre_dfa_exec.@OBJEXT@: Makefile config.h pcre.h \
233 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_dfa_exec.c
234 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
235 $(top_srcdir)/pcre_dfa_exec.c
236
237 pcre_exec.@OBJEXT@: Makefile config.h pcre.h \
238 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_exec.c
239 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
240 $(top_srcdir)/pcre_exec.c
241
242 pcre_fullinfo.@OBJEXT@: Makefile config.h pcre.h \
243 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_fullinfo.c
244 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
245 $(top_srcdir)/pcre_fullinfo.c
246
247 pcre_get.@OBJEXT@: Makefile config.h pcre.h \
248 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_get.c
249 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
250 $(top_srcdir)/pcre_get.c
251
252 pcre_globals.@OBJEXT@: Makefile config.h pcre.h \
253 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_globals.c
254 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
255 $(top_srcdir)/pcre_globals.c
256
257 pcre_info.@OBJEXT@: Makefile config.h pcre.h \
258 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_info.c
259 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
260 $(top_srcdir)/pcre_info.c
261
262 pcre_maketables.@OBJEXT@: Makefile config.h pcre.h \
263 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_maketables.c
264 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
265 $(top_srcdir)/pcre_maketables.c
266
267 pcre_ord2utf8.@OBJEXT@: Makefile config.h pcre.h \
268 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_ord2utf8.c
269 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
270 $(top_srcdir)/pcre_ord2utf8.c
271
272 pcre_printint.@OBJEXT@: Makefile config.h pcre.h \
273 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_printint.c
274 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
275 $(top_srcdir)/pcre_printint.c
276
277 pcre_refcount.@OBJEXT@: Makefile config.h pcre.h \
278 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_refcount.c
279 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
280 $(top_srcdir)/pcre_refcount.c
281
282 pcre_study.@OBJEXT@: Makefile config.h pcre.h \
283 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_study.c
284 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
285 $(top_srcdir)/pcre_study.c
286
287 pcre_tables.@OBJEXT@: Makefile config.h pcre.h \
288 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_tables.c
289 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
290 $(top_srcdir)/pcre_tables.c
291
292 pcre_try_flipped.@OBJEXT@: Makefile config.h pcre.h \
293 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_try_flipped.c
294 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
295 $(top_srcdir)/pcre_try_flipped.c
296
297 pcre_ucp_findchar.@OBJEXT@: Makefile config.h pcre.h \
298 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_ucp_findchar.c
299 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
300 $(top_srcdir)/pcre_ucp_findchar.c
301
302 pcre_valid_utf8.@OBJEXT@: Makefile config.h pcre.h \
303 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_valid_utf8.c
304 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
305 $(top_srcdir)/pcre_valid_utf8.c
306
307 pcre_version.@OBJEXT@: Makefile config.h pcre.h \
308 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_version.c
309 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
310 $(top_srcdir)/pcre_version.c
311
312 pcre_xclass.@OBJEXT@: Makefile config.h pcre.h \
313 $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_xclass.c
314 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
315 $(top_srcdir)/pcre_xclass.c
316
317 pcreposix.@OBJEXT@: $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \
318 $(top_srcdir)/pcre_internal.h pcre.h config.h Makefile
319 @$(LTCOMPILE) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcreposix.c
320
321 pcrecpp.@OBJEXT@: $(top_srcdir)/pcrecpp.cc pcrecpp.h \
322 pcre_stringpiece.h pcre.h config.h Makefile
323 @$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
324 $(top_srcdir)/pcrecpp.cc
325
326 pcre_scanner.@OBJEXT@: $(top_srcdir)/pcre_scanner.cc $(top_srcdir)/pcre_scanner.h \
327 pcrecpp.h pcre_stringpiece.h pcre.h config.h Makefile
328 @$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
329 $(top_srcdir)/pcre_scanner.cc
330
331 pcre_stringpiece.@OBJEXT@: $(top_srcdir)/pcre_stringpiece.cc pcre_stringpiece.h \
332 config.h Makefile
333 @$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
334 $(top_srcdir)/pcre_stringpiece.cc
335
336 pcretest.@OBJEXT@: $(top_srcdir)/pcretest.c $(top_srcdir)/pcre_internal.h \
337 pcre.h config.h Makefile
338 $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) $(LINK_SIZE) $(top_srcdir)/pcretest.c
339
340 pcrecpp_unittest.@OBJEXT@: $(top_srcdir)/pcrecpp_unittest.cc pcrecpp.h \
341 pcre_stringpiece.h pcre.h config.h Makefile
342 $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) $(LINK_SIZE) $(top_srcdir)/pcrecpp_unittest.cc
343
344 pcre_stringpiece_unittest.@OBJEXT@: $(top_srcdir)/pcre_stringpiece_unittest.cc \
345 pcre_stringpiece.h config.h Makefile
346 $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) $(LINK_SIZE) $(top_srcdir)/pcre_stringpiece_unittest.cc
347
348 pcre_scanner_unittest.@OBJEXT@: $(top_srcdir)/pcre_scanner_unittest.cc \
349 $(top_srcdir)/pcre_scanner.h pcrecpp.h pcre_stringpiece.h \
350 pcre.h config.h Makefile
351 $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) $(LINK_SIZE) $(top_srcdir)/pcre_scanner_unittest.cc
352
353 pcregrep.@OBJEXT@: $(top_srcdir)/pcregrep.c pcre.h Makefile config.h
354 $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
355
356 # Some Windows-specific targets for MinGW. Do not use for Cygwin.
357
358 winshared : .libs/@WIN_PREFIX@pcre.dll .libs/@WIN_PREFIX@pcreposix.dll \
359 .libs/@WIN_PREFIX@pcrecpp.dll
360
361 .libs/@WIN_PREFIX@pcre.dll : libpcre.la
362 $(CC) $(CFLAGS) -shared -o $@ \
363 -Wl,--whole-archive .libs/libpcre.a \
364 -Wl,--out-implib,.libs/libpcre.dll.a \
365 -Wl,--output-def,.libs/@WIN_PREFIX@pcre.dll-def \
366 -Wl,--export-all-symbols \
367 -Wl,--no-whole-archive
368 sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcre.dll'#" \
369 -e "s#library_names=''#library_names='libpcre.dll.a'#" \
370 < .libs/libpcre.lai > .libs/libpcre.lai.tmp && \
371 mv -f .libs/libpcre.lai.tmp .libs/libpcre.lai
372 sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcre.dll'#" \
373 -e "s#library_names=''#library_names='libpcre.dll.a'#" \
374 < libpcre.la > libpcre.la.tmp && \
375 mv -f libpcre.la.tmp libpcre.la
376
377
378 .libs/@WIN_PREFIX@pcreposix.dll: libpcreposix.la libpcre.la
379 $(CC) $(CFLAGS) -shared -o $@ \
380 -Wl,--whole-archive .libs/libpcreposix.a \
381 -Wl,--out-implib,.libs/@WIN_PREFIX@pcreposix.dll.a \
382 -Wl,--output-def,.libs/@WIN_PREFIX@libpcreposix.dll-def \
383 -Wl,--export-all-symbols \
384 -Wl,--no-whole-archive .libs/libpcre.a
385 sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcreposix.dll'#" \
386 -e "s#library_names=''#library_names='libpcreposix.dll.a'#"\
387 < .libs/libpcreposix.lai > .libs/libpcreposix.lai.tmp && \
388 mv -f .libs/libpcreposix.lai.tmp .libs/libpcreposix.lai
389 sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcreposix.dll'#" \
390 -e "s#library_names=''#library_names='libpcreposix.dll.a'#"\
391 < libpcreposix.la > libpcreposix.la.tmp && \
392 mv -f libpcreposix.la.tmp libpcreposix.la
393
394 .libs/@WIN_PREFIX@pcrecpp.dll: libpcrecpp.la libpcre.la
395 $(CXX) $(CXXFLAGS) -shared -o $@ \
396 -Wl,--whole-archive .libs/libpcrecpp.a \
397 -Wl,--out-implib,.libs/@WIN_PREFIX@pcrecpp.dll.a \
398 -Wl,--output-def,.libs/@WIN_PREFIX@libpcrecpp.dll-def \
399 -Wl,--export-all-symbols \
400 -Wl,--no-whole-archive .libs/libpcre.a
401 sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcrecpp.dll'#" \
402 -e "s#library_names=''#library_names='libpcrecpp.dll.a'#"\
403 < .libs/libpcrecpp.lai > .libs/libpcrecpp.lai.tmp && \
404 mv -f .libs/libpcrecpp.lai.tmp .libs/libpcrecpp.lai
405 sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcrecpp.dll'#" \
406 -e "s#library_names=''#library_names='libpcrecpp.dll.a'#"\
407 < libpcrecpp.la > libpcrecpp.la.tmp && \
408 mv -f libpcrecpp.la.tmp libpcrecpp.la
409
410
411 wininstall : winshared
412 $(mkinstalldirs) $(DESTDIR)$(LIBDIR)
413 $(mkinstalldirs) $(DESTDIR)$(BINDIR)
414 $(INSTALL) .libs/@WIN_PREFIX@pcre.dll $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcre.dll
415 $(INSTALL) .libs/@WIN_PREFIX@pcreposix.dll $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcreposix.dll
416 $(INSTALL) .libs/@WIN_PREFIX@libpcreposix.dll.a $(DESTDIR)$(LIBDIR)/@WIN_PREFIX@libpcreposix.dll.a
417 $(INSTALL) .libs/@WIN_PREFIX@libpcre.dll.a $(DESTDIR)$(LIBDIR)/@WIN_PREFIX@libpcre.dll.a
418 @HAVE_CPP@ $(INSTALL) .libs/@WIN_PREFIX@pcrecpp.dll $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcrecpp.dll
419 @HAVE_CPP@ $(INSTALL) .libs/@WIN_PREFIX@libpcrecpp.dll.a $(DESTDIR)$(LIBDIR)/@WIN_PREFIX@libpcrecpp.dll.a
420 -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcre.dll
421 -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcreposix.dll
422 @HAVE_CPP@ -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcrecpp.dll
423 -strip $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
424 -strip $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
425
426 # An auxiliary program makes the default character table source. This is put
427 # in the current directory, NOT the $top_srcdir directory.
428
429 pcre_chartables.c: dftables@BUILD_EXEEXT@
430 ./dftables@BUILD_EXEEXT@ pcre_chartables.c
431
432 dftables.@BUILD_OBJEXT@: $(top_srcdir)/dftables.c \
433 $(top_srcdir)/pcre_maketables.c $(top_srcdir)/pcre_internal.h \
434 pcre.h config.h Makefile
435 $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -I. $(top_srcdir)/dftables.c
436
437 dftables@BUILD_EXEEXT@: dftables.@BUILD_OBJEXT@
438 $(LINK_FOR_BUILD) -o dftables@BUILD_EXEEXT@ dftables.@OBJEXT@
439
440 install: all @ON_WINDOWS@ wininstall
441 @NOT_ON_WINDOWS@ $(mkinstalldirs) $(DESTDIR)$(LIBDIR)
442 @NOT_ON_WINDOWS@ echo "$(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la"
443 @NOT_ON_WINDOWS@ $(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la
444 @NOT_ON_WINDOWS@ echo "$(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la"
445 @NOT_ON_WINDOWS@ $(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la
446 @NOT_ON_WINDOWS@@HAVE_CPP@ echo "$(LIBTOOL) --mode=install $(INSTALL) libpcrecpp.la $(DESTDIR)$(LIBDIR)/libpcrecpp.la"
447 @NOT_ON_WINDOWS@@HAVE_CPP@ $(LIBTOOL) --mode=install $(INSTALL) libpcrecpp.la $(DESTDIR)$(LIBDIR)/libpcrecpp.la
448 @NOT_ON_WINDOWS@ $(LIBTOOL) --finish $(DESTDIR)$(LIBDIR)
449 $(mkinstalldirs) $(DESTDIR)$(INCDIR)
450 $(INSTALL_DATA) pcre.h $(DESTDIR)$(INCDIR)/pcre.h
451 $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)$(INCDIR)/pcreposix.h
452 @HAVE_CPP@ $(INSTALL_DATA) pcrecpp.h $(DESTDIR)$(INCDIR)/pcrecpp.h
453 @HAVE_CPP@ $(INSTALL_DATA) pcre_stringpiece.h $(DESTDIR)$(INCDIR)/pcre_stringpiece.h
454 @HAVE_CPP@ $(INSTALL_DATA) $(top_srcdir)/pcre_scanner.h $(DESTDIR)$(INCDIR)/pcre_scanner.h
455 $(mkinstalldirs) $(DESTDIR)$(MANDIR)/man3
456 $(INSTALL_DATA) $(top_srcdir)/doc/pcre.3 $(DESTDIR)$(MANDIR)/man3/pcre.3
457 $(INSTALL_DATA) $(top_srcdir)/doc/pcreapi.3 $(DESTDIR)$(MANDIR)/man3/pcreapi.3
458 $(INSTALL_DATA) $(top_srcdir)/doc/pcrebuild.3 $(DESTDIR)$(MANDIR)/man3/pcrebuild.3
459 $(INSTALL_DATA) $(top_srcdir)/doc/pcrecallout.3 $(DESTDIR)$(MANDIR)/man3/pcrecallout.3
460 $(INSTALL_DATA) $(top_srcdir)/doc/pcrecompat.3 $(DESTDIR)$(MANDIR)/man3/pcrecompat.3
461 @HAVE_CPP@ $(INSTALL_DATA) $(top_srcdir)/doc/pcrecpp.3 $(DESTDIR)$(MANDIR)/man3/pcrecpp.3
462 $(INSTALL_DATA) $(top_srcdir)/doc/pcrematching.3 $(DESTDIR)$(MANDIR)/man3/pcrematching.3
463 $(INSTALL_DATA) $(top_srcdir)/doc/pcrepattern.3 $(DESTDIR)$(MANDIR)/man3/pcrepattern.3
464 $(INSTALL_DATA) $(top_srcdir)/doc/pcreperform.3 $(DESTDIR)$(MANDIR)/man3/pcreperform.3
465 $(INSTALL_DATA) $(top_srcdir)/doc/pcreposix.3 $(DESTDIR)$(MANDIR)/man3/pcreposix.3
466 $(INSTALL_DATA) $(top_srcdir)/doc/pcresample.3 $(DESTDIR)$(MANDIR)/man3/pcresample.3
467 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_compile.3 $(DESTDIR)$(MANDIR)/man3/pcre_compile.3
468 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_config.3 $(DESTDIR)$(MANDIR)/man3/pcre_config.3
469 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_named_substring.3
470 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_substring.3
471 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_dfa_exec.3 $(DESTDIR)$(MANDIR)/man3/pcre_dfa_exec.3
472 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_exec.3 $(DESTDIR)$(MANDIR)/man3/pcre_exec.3
473 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring.3
474 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring_list.3
475 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_fullinfo.3 $(DESTDIR)$(MANDIR)/man3/pcre_fullinfo.3
476 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_named_substring.3
477 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_stringnumber.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_stringnumber.3
478 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring.3
479 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring_list.3
480 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_info.3 $(DESTDIR)$(MANDIR)/man3/pcre_info.3
481 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_maketables.3 $(DESTDIR)$(MANDIR)/man3/pcre_maketables.3
482 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_refcount.3 $(DESTDIR)$(MANDIR)/man3/pcre_refcount.3
483 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_study.3 $(DESTDIR)$(MANDIR)/man3/pcre_study.3
484 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_version.3 $(DESTDIR)$(MANDIR)/man3/pcre_version.3
485 $(mkinstalldirs) $(DESTDIR)$(MANDIR)/man1
486 $(INSTALL_DATA) $(top_srcdir)/doc/pcregrep.1 $(DESTDIR)$(MANDIR)/man1/pcregrep.1
487 $(INSTALL_DATA) $(top_srcdir)/doc/pcretest.1 $(DESTDIR)$(MANDIR)/man1/pcretest.1
488 $(mkinstalldirs) $(DESTDIR)$(BINDIR)
489 $(LIBTOOL) --mode=install $(INSTALL) pcregrep@EXEEXT@ $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
490 $(LIBTOOL) --mode=install $(INSTALL) pcretest@EXEEXT@ $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
491 $(INSTALL) pcre-config $(DESTDIR)$(BINDIR)/pcre-config
492 $(mkinstalldirs) $(DESTDIR)$(LIBDIR)/pkgconfig
493 $(INSTALL_DATA) libpcre.pc $(DESTDIR)$(LIBDIR)/pkgconfig/libpcre.pc
494
495 # The uninstall target removes all the files that were installed.
496
497 uninstall:; -rm -rf \
498 $(DESTDIR)$(LIBDIR)/libpcre.* \
499 $(DESTDIR)$(LIBDIR)/libpcreposix.* \
500 $(DESTDIR)$(LIBDIR)/libpcrecpp.* \
501 $(DESTDIR)$(INCDIR)/pcre.h \
502 $(DESTDIR)$(INCDIR)/pcreposix.h \
503 $(DESTDIR)$(INCDIR)/pcrecpp.h \
504 $(DESTDIR)$(INCDIR)/pcre_scanner.h \
505 $(DESTDIR)$(INCDIR)/pcre_stringpiece.h \
506 $(DESTDIR)$(MANDIR)/man3/pcre.3 \
507 $(DESTDIR)$(MANDIR)/man3/pcreapi.3 \
508 $(DESTDIR)$(MANDIR)/man3/pcrebuild.3 \
509 $(DESTDIR)$(MANDIR)/man3/pcrecallout.3 \
510 $(DESTDIR)$(MANDIR)/man3/pcrecompat.3 \
511 $(DESTDIR)$(MANDIR)/man3/pcrecpp.3 \
512 $(DESTDIR)$(MANDIR)/man3/pcrematching.3 \
513 $(DESTDIR)$(MANDIR)/man3/pcrepattern.3 \
514 $(DESTDIR)$(MANDIR)/man3/pcreperform.3 \
515 $(DESTDIR)$(MANDIR)/man3/pcreposix.3 \
516 $(DESTDIR)$(MANDIR)/man3/pcresample.3 \
517 $(DESTDIR)$(MANDIR)/man3/pcre_compile.3 \
518 $(DESTDIR)$(MANDIR)/man3/pcre_config.3 \
519 $(DESTDIR)$(MANDIR)/man3/pcre_copy_named_substring.3 \
520 $(DESTDIR)$(MANDIR)/man3/pcre_copy_substring.3 \
521 $(DESTDIR)$(MANDIR)/man3/pcre_dfa_exec.3 \
522 $(DESTDIR)$(MANDIR)/man3/pcre_exec.3 \
523 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring.3 \
524 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring_list.3 \
525 $(DESTDIR)$(MANDIR)/man3/pcre_fullinfo.3 \
526 $(DESTDIR)$(MANDIR)/man3/pcre_get_named_substring.3 \
527 $(DESTDIR)$(MANDIR)/man3/pcre_get_stringnumber.3 \
528 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring.3 \
529 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring_list.3 \
530 $(DESTDIR)$(MANDIR)/man3/pcre_info.3 \
531 $(DESTDIR)$(MANDIR)/man3/pcre_maketables.3 \
532 $(DESTDIR)$(MANDIR)/man3/pcre_refcount.3 \
533 $(DESTDIR)$(MANDIR)/man3/pcre_study.3 \
534 $(DESTDIR)$(MANDIR)/man3/pcre_version.3 \
535 $(DESTDIR)$(MANDIR)/man1/pcregrep.1 \
536 $(DESTDIR)$(MANDIR)/man1/pcretest.1 \
537 $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@ \
538 $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@ \
539 $(DESTDIR)$(BINDIR)/pcre-config \
540 $(DESTDIR)$(LIBDIR)/pkgconfig/libpcre.pc
541
542 # We deliberately omit dftables and pcre_chartables.c from 'make clean'; once
543 # made pcre_chartables.c shouldn't change, and if people have edited the tables
544 # by hand, you don't want to throw them away.
545
546 clean:; -rm -rf *.@OBJEXT@ *.lo *.a *.la .libs pcretest@EXEEXT@ pcre_stringpiece_unittest@EXEEXT@ pcrecpp_unittest@EXEEXT@ pcre_scanner_unittest@EXEEXT@ pcregrep@EXEEXT@ testtry
547
548 # But "make distclean" should get back to a virgin distribution
549
550 distclean: clean
551 -rm -f pcre_chartables.c libtool pcre-config libpcre.pc \
552 pcre.h pcre_stringpiece.h pcrecpp.h \
553 dftables@EXEEXT@ RunGrepTest RunTest \
554 Makefile config.h config.status config.log config.cache
555
556 check: runtest
557
558 @WIN_PREFIX@pcre.dll : winshared
559 cp .libs/@WIN_PREFIX@pcre.dll .
560
561 test: runtest
562
563 runtest: all @ON_WINDOWS@ @WIN_PREFIX@pcre.dll
564 @./RunTest
565 @./RunGrepTest
566 @HAVE_CPP@ @echo ""
567 @HAVE_CPP@ @echo "Testing C++ wrapper"
568 @HAVE_CPP@ @echo ""; echo "Test 1++: stringpiece"
569 @HAVE_CPP@ @./pcre_stringpiece_unittest@EXEEXT@
570 @HAVE_CPP@ @echo ""; echo "Test 2++: RE class"
571 @HAVE_CPP@ @./pcrecpp_unittest@EXEEXT@
572 @HAVE_CPP@ @echo ""; echo "Test 3++: Scanner class"
573 @HAVE_CPP@ @./pcre_scanner_unittest@EXEEXT@
574
575 # End

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12