/[pcre]/code/tags/pcre-6.3/Makefile.in
ViewVC logotype

Contents of /code/tags/pcre-6.3/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 84 - (hide annotations) (download)
Sat Feb 24 21:41:08 2007 UTC (7 years, 8 months ago) by nigel
File size: 25048 byte(s)
Tag code/trunk as code/tags/pcre-6.3.

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 73
82 nigel 65 CC_FOR_BUILD = @CC_FOR_BUILD@
83     CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
84 nigel 77 CXX_FOR_BUILD = @CXX_FOR_BUILD@
85     CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
86     LDFLAGS_FOR_BUILD = $(LDFLAGS)
87 nigel 73
88 nigel 75 UCP = @UCP@
89 nigel 65 UTF8 = @UTF8@
90 nigel 53 NEWLINE = @NEWLINE@
91 nigel 63 POSIX_MALLOC_THRESHOLD = @POSIX_MALLOC_THRESHOLD@
92     LINK_SIZE = @LINK_SIZE@
93 nigel 73 MATCH_LIMIT = @MATCH_LIMIT@
94     NO_RECURSE = @NO_RECURSE@
95     EBCDIC = @EBCDIC@
96 nigel 41
97 nigel 53 INSTALL = @INSTALL@
98     INSTALL_DATA = @INSTALL_DATA@
99 nigel 41
100 nigel 53 # 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 nigel 41 LIBTOOL = @LIBTOOL@
104 nigel 73 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT) $(NO_RECURSE) $(EBCDIC)
105 nigel 77 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 nigel 83 @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 nigel 77 @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 nigel 41
114 nigel 43 # These are the version numbers for the shared libraries
115 nigel 41
116 nigel 43 PCRELIBVERSION = @PCRE_LIB_VERSION@
117     PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@
118 nigel 77 PCRECPPLIBVERSION = @PCRE_CPPLIB_VERSION@
119 nigel 43
120 nigel 41 ##############################################################################
121    
122    
123 nigel 77 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 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_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 nigel 83 $(POSIX_LOBJ)
166 nigel 41
167 nigel 77 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 nigel 79 all: libpcre.la @POSIX_LIB@ pcretest@EXEEXT@ pcregrep@EXEEXT@ @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 67 pcretest@EXEEXT@: libpcre.la @POSIX_LIB@ pcretest.@OBJEXT@ @ON_WINDOWS@ winshared
186     $(LINK) $(PURIFY) $(EFENCE) -o pcretest@EXEEXT@ pcretest.@OBJEXT@ \
187 nigel 71 libpcre.la @POSIX_LIB@
188 nigel 41
189 nigel 77 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 nigel 41 libpcre.la: $(OBJ)
202     -rm -f libpcre.la
203 nigel 67 $(LINKLIB) -rpath $(LIBDIR) -version-info \
204 nigel 53 '$(PCRELIBVERSION)' -o libpcre.la $(LOBJ)
205 nigel 41
206 nigel 73 libpcreposix.la: libpcre.la pcreposix.@OBJEXT@
207 nigel 41 -rm -f libpcreposix.la
208 nigel 71 $(LINKLIB) -rpath $(LIBDIR) libpcre.la -version-info \
209 nigel 53 '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
210 nigel 41
211 nigel 77 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 nigel 75
216 nigel 77 # Note that files generated by ./configure and by dftables are in the current
217     # directory, not the source directory.
218 nigel 41
219 nigel 77 pcre_chartables.@OBJEXT@: pcre_chartables.c
220 nigel 81 @$(LTCOMPILE) pcre_chartables.c
221 nigel 77
222     pcre_compile.@OBJEXT@: Makefile config.h pcre.h \
223     $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_compile.c
224 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
225 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
230 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
235 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
240 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
245 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
250 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
255 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
260 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
265 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
270 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
275 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
280 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
285 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
290 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
295 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
300 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
305 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
310 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
315 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcreposix.c
320 nigel 41
321 nigel 77 pcrecpp.@OBJEXT@: $(top_srcdir)/pcrecpp.cc pcrecpp.h \
322     pcre_stringpiece.h pcre.h config.h Makefile
323 nigel 79 @$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
324 nigel 77 $(top_srcdir)/pcrecpp.cc
325 nigel 41
326 nigel 77 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 nigel 79 @$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
329 nigel 77 $(top_srcdir)/pcre_scanner.cc
330 nigel 41
331 nigel 77 pcre_stringpiece.@OBJEXT@: $(top_srcdir)/pcre_stringpiece.cc pcre_stringpiece.h \
332     config.h Makefile
333 nigel 79 @$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
334 nigel 77 $(top_srcdir)/pcre_stringpiece.cc
335 nigel 41
336 nigel 77 pcretest.@OBJEXT@: $(top_srcdir)/pcretest.c $(top_srcdir)/pcre_internal.h \
337 nigel 63 pcre.h config.h Makefile
338 nigel 81 $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) $(LINK_SIZE) $(top_srcdir)/pcretest.c
339 nigel 41
340 nigel 77 pcrecpp_unittest.@OBJEXT@: $(top_srcdir)/pcrecpp_unittest.cc pcrecpp.h \
341     pcre_stringpiece.h pcre.h config.h Makefile
342 nigel 81 $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) $(LINK_SIZE) $(top_srcdir)/pcrecpp_unittest.cc
343 nigel 77
344     pcre_stringpiece_unittest.@OBJEXT@: $(top_srcdir)/pcre_stringpiece_unittest.cc \
345     pcre_stringpiece.h config.h Makefile
346 nigel 81 $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) $(LINK_SIZE) $(top_srcdir)/pcre_stringpiece_unittest.cc
347 nigel 77
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 nigel 81 $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) $(LINK_SIZE) $(top_srcdir)/pcre_scanner_unittest.cc
352 nigel 77
353 nigel 67 pcregrep.@OBJEXT@: $(top_srcdir)/pcregrep.c pcre.h Makefile config.h
354 nigel 81 $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
355 nigel 41
356 nigel 71 # Some Windows-specific targets for MinGW. Do not use for Cygwin.
357 nigel 67
358 nigel 77 winshared : .libs/@WIN_PREFIX@pcre.dll .libs/@WIN_PREFIX@pcreposix.dll \
359     .libs/@WIN_PREFIX@pcrecpp.dll
360 nigel 67
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 nigel 77 mv -f .libs/libpcre.lai.tmp .libs/libpcre.lai
372 nigel 67 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 nigel 77 mv -f libpcre.la.tmp libpcre.la
376 nigel 67
377    
378     .libs/@WIN_PREFIX@pcreposix.dll: libpcreposix.la libpcre.la
379     $(CC) $(CFLAGS) -shared -o $@ \
380     -Wl,--whole-archive .libs/libpcreposix.a \
381 nigel 71 -Wl,--out-implib,.libs/@WIN_PREFIX@pcreposix.dll.a \
382     -Wl,--output-def,.libs/@WIN_PREFIX@libpcreposix.dll-def \
383 nigel 67 -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 nigel 77 mv -f .libs/libpcreposix.lai.tmp .libs/libpcreposix.lai
389 nigel 67 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 nigel 77 mv -f libpcreposix.la.tmp libpcreposix.la
393 nigel 67
394 nigel 77 .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 nigel 67
410 nigel 77
411 nigel 67 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 nigel 69 $(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 nigel 83 @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 nigel 67 -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcre.dll
421     -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcreposix.dll
422 nigel 83 @HAVE_CPP@ -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcrecpp.dll
423 nigel 67 -strip $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
424     -strip $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
425    
426 nigel 75 # An auxiliary program makes the default character table source. This is put
427     # in the current directory, NOT the $top_srcdir directory.
428 nigel 41
429 nigel 77 pcre_chartables.c: dftables@BUILD_EXEEXT@
430     ./dftables@BUILD_EXEEXT@ pcre_chartables.c
431 nigel 41
432 nigel 77 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 nigel 65 $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -I. $(top_srcdir)/dftables.c
436 nigel 41
437 nigel 77 dftables@BUILD_EXEEXT@: dftables.@BUILD_OBJEXT@
438     $(LINK_FOR_BUILD) -o dftables@BUILD_EXEEXT@ dftables.@OBJEXT@
439 nigel 63
440 nigel 67 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 nigel 83 @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 nigel 67 @NOT_ON_WINDOWS@ $(LIBTOOL) --finish $(DESTDIR)$(LIBDIR)
449 nigel 63 $(mkinstalldirs) $(DESTDIR)$(INCDIR)
450     $(INSTALL_DATA) pcre.h $(DESTDIR)$(INCDIR)/pcre.h
451     $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)$(INCDIR)/pcreposix.h
452 nigel 83 @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 nigel 63 $(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 nigel 83 @HAVE_CPP@ $(INSTALL_DATA) $(top_srcdir)/doc/pcrecpp.3 $(DESTDIR)$(MANDIR)/man3/pcrecpp.3
462 nigel 77 $(INSTALL_DATA) $(top_srcdir)/doc/pcrematching.3 $(DESTDIR)$(MANDIR)/man3/pcrematching.3
463 nigel 63 $(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 nigel 77 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_dfa_exec.3 $(DESTDIR)$(MANDIR)/man3/pcre_dfa_exec.3
472 nigel 63 $(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 nigel 77 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_refcount.3 $(DESTDIR)$(MANDIR)/man3/pcre_refcount.3
483 nigel 63 $(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 nigel 67 $(LIBTOOL) --mode=install $(INSTALL) pcregrep@EXEEXT@ $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
490     $(LIBTOOL) --mode=install $(INSTALL) pcretest@EXEEXT@ $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
491 nigel 63 $(INSTALL) pcre-config $(DESTDIR)$(BINDIR)/pcre-config
492 nigel 75 $(mkinstalldirs) $(DESTDIR)$(LIBDIR)/pkgconfig
493 nigel 77 $(INSTALL_DATA) libpcre.pc $(DESTDIR)$(LIBDIR)/pkgconfig/libpcre.pc
494 nigel 41
495 nigel 77 # The uninstall target removes all the files that were installed.
496 nigel 41
497 nigel 77 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 nigel 41
542 nigel 77 # 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 nigel 41 # But "make distclean" should get back to a virgin distribution
549    
550     distclean: clean
551 nigel 77 -rm -f pcre_chartables.c libtool pcre-config libpcre.pc \
552     pcre.h pcre_stringpiece.h pcrecpp.h \
553     dftables@EXEEXT@ RunGrepTest RunTest \
554 nigel 41 Makefile config.h config.status config.log config.cache
555    
556     check: runtest
557    
558 nigel 67 @WIN_PREFIX@pcre.dll : winshared
559     cp .libs/@WIN_PREFIX@pcre.dll .
560    
561 nigel 49 test: runtest
562    
563 nigel 67 runtest: all @ON_WINDOWS@ @WIN_PREFIX@pcre.dll
564 nigel 73 @./RunTest
565 nigel 77 @./RunGrepTest
566 nigel 83 @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 nigel 41
575     # End

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12