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

Contents of /code/trunk/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.5