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

Contents of /code/trunk/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12