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

Contents of /code/trunk/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 85 - (hide annotations) (download)
Sat Feb 24 21:41:13 2007 UTC (7 years, 1 month ago) by nigel
File size: 24763 byte(s)
Load pcre-6.4 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 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 nigel 85 LINKLIB = $(LIBTOOL) --mode=link $(CC) -export-symbols-regex '^[^_]' $(LDFLAGS) -I. -I$(top_srcdir)
109 nigel 83 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_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 nigel 83 $(POSIX_OBJ)
143 nigel 41
144 nigel 77 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 nigel 83 $(POSIX_LOBJ)
164 nigel 41
165 nigel 77 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 nigel 79 all: libpcre.la @POSIX_LIB@ pcretest@EXEEXT@ pcregrep@EXEEXT@ @MAYBE_CPP_TARGETS@ @ON_WINDOWS@ winshared
179 nigel 77
180 nigel 67 pcregrep@EXEEXT@: libpcre.la pcregrep.@OBJEXT@ @ON_WINDOWS@ winshared
181 nigel 71 $(LINK) -o pcregrep@EXEEXT@ pcregrep.@OBJEXT@ libpcre.la
182 nigel 41
183 nigel 67 pcretest@EXEEXT@: libpcre.la @POSIX_LIB@ pcretest.@OBJEXT@ @ON_WINDOWS@ winshared
184     $(LINK) $(PURIFY) $(EFENCE) -o pcretest@EXEEXT@ pcretest.@OBJEXT@ \
185 nigel 71 libpcre.la @POSIX_LIB@
186 nigel 41
187 nigel 77 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 nigel 41 libpcre.la: $(OBJ)
200     -rm -f libpcre.la
201 nigel 67 $(LINKLIB) -rpath $(LIBDIR) -version-info \
202 nigel 53 '$(PCRELIBVERSION)' -o libpcre.la $(LOBJ)
203 nigel 41
204 nigel 73 libpcreposix.la: libpcre.la pcreposix.@OBJEXT@
205 nigel 41 -rm -f libpcreposix.la
206 nigel 71 $(LINKLIB) -rpath $(LIBDIR) libpcre.la -version-info \
207 nigel 53 '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
208 nigel 41
209 nigel 77 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 nigel 75
214 nigel 77 # Note that files generated by ./configure and by dftables are in the current
215     # directory, not the source directory.
216 nigel 41
217 nigel 77 pcre_chartables.@OBJEXT@: pcre_chartables.c
218 nigel 81 @$(LTCOMPILE) pcre_chartables.c
219 nigel 77
220     pcre_compile.@OBJEXT@: Makefile config.h pcre.h \
221     $(top_srcdir)/pcre_internal.h $(top_srcdir)/pcre_compile.c
222 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
223 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
228 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
233 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
238 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
243 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
248 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
253 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
258 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
263 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
268 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
273 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
278 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
283 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
288 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
293 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
298 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
303 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
308 nigel 77 $(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 nigel 79 @$(LTCOMPILE) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcreposix.c
313 nigel 41
314 nigel 77 pcrecpp.@OBJEXT@: $(top_srcdir)/pcrecpp.cc pcrecpp.h \
315     pcre_stringpiece.h pcre.h config.h Makefile
316 nigel 79 @$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
317 nigel 77 $(top_srcdir)/pcrecpp.cc
318 nigel 41
319 nigel 77 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 nigel 79 @$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
322 nigel 77 $(top_srcdir)/pcre_scanner.cc
323 nigel 41
324 nigel 77 pcre_stringpiece.@OBJEXT@: $(top_srcdir)/pcre_stringpiece.cc pcre_stringpiece.h \
325     config.h Makefile
326 nigel 79 @$(LTCXXCOMPILE) $(UTF8) $(UCP) $(POSIX_MALLOC_THRESHOLD) \
327 nigel 77 $(top_srcdir)/pcre_stringpiece.cc
328 nigel 41
329 nigel 77 pcretest.@OBJEXT@: $(top_srcdir)/pcretest.c $(top_srcdir)/pcre_internal.h \
330 nigel 63 pcre.h config.h Makefile
331 nigel 81 $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) $(LINK_SIZE) $(top_srcdir)/pcretest.c
332 nigel 41
333 nigel 77 pcrecpp_unittest.@OBJEXT@: $(top_srcdir)/pcrecpp_unittest.cc pcrecpp.h \
334     pcre_stringpiece.h pcre.h config.h Makefile
335 nigel 81 $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) $(LINK_SIZE) $(top_srcdir)/pcrecpp_unittest.cc
336 nigel 77
337     pcre_stringpiece_unittest.@OBJEXT@: $(top_srcdir)/pcre_stringpiece_unittest.cc \
338     pcre_stringpiece.h config.h Makefile
339 nigel 81 $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) $(LINK_SIZE) $(top_srcdir)/pcre_stringpiece_unittest.cc
340 nigel 77
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 nigel 81 $(CXX) -c $(CXXFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) $(LINK_SIZE) $(top_srcdir)/pcre_scanner_unittest.cc
345 nigel 77
346 nigel 67 pcregrep.@OBJEXT@: $(top_srcdir)/pcregrep.c pcre.h Makefile config.h
347 nigel 81 $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(UTF8) $(UCP) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
348 nigel 41
349 nigel 71 # Some Windows-specific targets for MinGW. Do not use for Cygwin.
350 nigel 67
351 nigel 77 winshared : .libs/@WIN_PREFIX@pcre.dll .libs/@WIN_PREFIX@pcreposix.dll \
352     .libs/@WIN_PREFIX@pcrecpp.dll
353 nigel 67
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 nigel 77 mv -f .libs/libpcre.lai.tmp .libs/libpcre.lai
365 nigel 67 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 nigel 77 mv -f libpcre.la.tmp libpcre.la
369 nigel 67
370    
371     .libs/@WIN_PREFIX@pcreposix.dll: libpcreposix.la libpcre.la
372     $(CC) $(CFLAGS) -shared -o $@ \
373     -Wl,--whole-archive .libs/libpcreposix.a \
374 nigel 71 -Wl,--out-implib,.libs/@WIN_PREFIX@pcreposix.dll.a \
375     -Wl,--output-def,.libs/@WIN_PREFIX@libpcreposix.dll-def \
376 nigel 67 -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 nigel 77 mv -f .libs/libpcreposix.lai.tmp .libs/libpcreposix.lai
382 nigel 67 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 nigel 77 mv -f libpcreposix.la.tmp libpcreposix.la
386 nigel 67
387 nigel 77 .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 nigel 67
403 nigel 77
404 nigel 67 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 nigel 69 $(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 nigel 83 @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 nigel 67 -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcre.dll
414     -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcreposix.dll
415 nigel 83 @HAVE_CPP@ -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcrecpp.dll
416 nigel 67 -strip $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
417     -strip $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
418    
419 nigel 75 # An auxiliary program makes the default character table source. This is put
420     # in the current directory, NOT the $top_srcdir directory.
421 nigel 41
422 nigel 77 pcre_chartables.c: dftables@BUILD_EXEEXT@
423     ./dftables@BUILD_EXEEXT@ pcre_chartables.c
424 nigel 41
425 nigel 77 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 nigel 65 $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -I. $(top_srcdir)/dftables.c
429 nigel 41
430 nigel 77 dftables@BUILD_EXEEXT@: dftables.@BUILD_OBJEXT@
431     $(LINK_FOR_BUILD) -o dftables@BUILD_EXEEXT@ dftables.@OBJEXT@
432 nigel 63
433 nigel 67 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 nigel 83 @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 nigel 67 @NOT_ON_WINDOWS@ $(LIBTOOL) --finish $(DESTDIR)$(LIBDIR)
442 nigel 63 $(mkinstalldirs) $(DESTDIR)$(INCDIR)
443     $(INSTALL_DATA) pcre.h $(DESTDIR)$(INCDIR)/pcre.h
444     $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)$(INCDIR)/pcreposix.h
445 nigel 83 @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 nigel 63 $(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 nigel 83 @HAVE_CPP@ $(INSTALL_DATA) $(top_srcdir)/doc/pcrecpp.3 $(DESTDIR)$(MANDIR)/man3/pcrecpp.3
455 nigel 77 $(INSTALL_DATA) $(top_srcdir)/doc/pcrematching.3 $(DESTDIR)$(MANDIR)/man3/pcrematching.3
456 nigel 63 $(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 nigel 77 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_dfa_exec.3 $(DESTDIR)$(MANDIR)/man3/pcre_dfa_exec.3
465 nigel 63 $(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 nigel 77 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_refcount.3 $(DESTDIR)$(MANDIR)/man3/pcre_refcount.3
476 nigel 63 $(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 nigel 67 $(LIBTOOL) --mode=install $(INSTALL) pcregrep@EXEEXT@ $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
483     $(LIBTOOL) --mode=install $(INSTALL) pcretest@EXEEXT@ $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
484 nigel 63 $(INSTALL) pcre-config $(DESTDIR)$(BINDIR)/pcre-config
485 nigel 75 $(mkinstalldirs) $(DESTDIR)$(LIBDIR)/pkgconfig
486 nigel 77 $(INSTALL_DATA) libpcre.pc $(DESTDIR)$(LIBDIR)/pkgconfig/libpcre.pc
487 nigel 41
488 nigel 77 # The uninstall target removes all the files that were installed.
489 nigel 41
490 nigel 77 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 nigel 41
535 nigel 77 # 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 nigel 41 # But "make distclean" should get back to a virgin distribution
542    
543     distclean: clean
544 nigel 77 -rm -f pcre_chartables.c libtool pcre-config libpcre.pc \
545     pcre.h pcre_stringpiece.h pcrecpp.h \
546     dftables@EXEEXT@ RunGrepTest RunTest \
547 nigel 41 Makefile config.h config.status config.log config.cache
548    
549     check: runtest
550    
551 nigel 67 @WIN_PREFIX@pcre.dll : winshared
552     cp .libs/@WIN_PREFIX@pcre.dll .
553    
554 nigel 49 test: runtest
555    
556 nigel 67 runtest: all @ON_WINDOWS@ @WIN_PREFIX@pcre.dll
557 nigel 73 @./RunTest
558 nigel 77 @./RunGrepTest
559 nigel 83 @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 nigel 41
568     # End

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12