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

Contents of /code/trunk/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 67 - (hide annotations) (download)
Sat Feb 24 21:40:13 2007 UTC (7 years, 6 months ago) by nigel
File size: 12879 byte(s)
Load pcre-4.2 into code/trunk.

1 nigel 41
2     # Makefile.in for PCRE (Perl-Compatible Regular Expression) library.
3    
4     #---------------------------------------------------------------------------#
5 nigel 63 # MinGW DLLs are built automatically with this configure.in and Makefile.in #
6     # as long you are using autoconf 2.50 or higher. The Win32 static libraries #
7     # have not been tested, but appear to be generated. This functionality is #
8     # by courtesy of Fred Cox. I (Philip Hazel) don't know anything about it, #
9     # as I live entirely in a non-Windows world. #
10 nigel 41 #---------------------------------------------------------------------------#
11    
12    
13 nigel 53 #############################################################################
14    
15     # PCRE is developed on a Unix system. I do not use Windows or Macs, and know
16     # nothing about building software on them. Although the code of PCRE should
17     # be very portable, the building system in this Makefile is designed for Unix
18     # systems, with the exception of the mingw32 stuff just mentioned.
19    
20     # This setting enables Unix-style directory scanning in pcregrep, triggered
21     # by the -f option. Maybe one day someone will add code for other systems.
22    
23     PCREGREP_OSTYPE=-DIS_UNIX
24    
25     #############################################################################
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     CFLAGS = @CFLAGS@
72 nigel 67 CPPFLAGS = @CPPFLAGS@
73 nigel 65 CC_FOR_BUILD = @CC_FOR_BUILD@
74     CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
75 nigel 67 CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
76 nigel 65 UTF8 = @UTF8@
77 nigel 53 NEWLINE = @NEWLINE@
78 nigel 63 POSIX_MALLOC_THRESHOLD = @POSIX_MALLOC_THRESHOLD@
79     LINK_SIZE = @LINK_SIZE@
80     MATCH_LIMIT= @MATCH_LIMIT@
81 nigel 41
82 nigel 53 INSTALL = @INSTALL@
83     INSTALL_DATA = @INSTALL_DATA@
84 nigel 41
85 nigel 53 # LIBTOOL enables the building of shared and static libraries. It is set up
86     # to do one or the other or both by ./configure.
87    
88 nigel 41 LIBTOOL = @LIBTOOL@
89 nigel 63 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT)
90 nigel 67 @ON_WINDOWS@LINK = $(CC) $(CFLAGS) -I. -I$(top_srcdir) -L.libs
91     @NOT_ON_WINDOWS@LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -I. -I$(top_srcdir)
92     LINKLIB = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -I. -I$(top_srcdir)
93     LINK_FOR_BUILD = $(LIBTOOL) --mode=link $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -I. -I$(top_srcdir)
94 nigel 41
95 nigel 43 # These are the version numbers for the shared libraries
96 nigel 41
97 nigel 43 PCRELIBVERSION = @PCRE_LIB_VERSION@
98     PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@
99    
100 nigel 41 ##############################################################################
101    
102    
103 nigel 67 OBJ = maketables.@OBJEXT@ get.@OBJEXT@ study.@OBJEXT@ pcre.@OBJEXT@ @POSIX_OBJ@
104 nigel 63 LOBJ = maketables.lo get.lo study.lo pcre.lo @POSIX_LOBJ@
105 nigel 41
106 nigel 67 all: libpcre.la @POSIX_LIB@ pcretest@EXEEXT@ pcregrep@EXEEXT@ @ON_WINDOWS@ winshared
107 nigel 41
108 nigel 67 pcregrep@EXEEXT@: libpcre.la pcregrep.@OBJEXT@ @ON_WINDOWS@ winshared
109     $(LINK) -o pcregrep@EXEEXT@ pcregrep.@OBJEXT@ -lpcre
110 nigel 41
111 nigel 67 pcretest@EXEEXT@: libpcre.la @POSIX_LIB@ pcretest.@OBJEXT@ @ON_WINDOWS@ winshared
112     $(LINK) $(PURIFY) $(EFENCE) -o pcretest@EXEEXT@ pcretest.@OBJEXT@ \
113     -lpcre @POSIX_LIB@
114 nigel 41
115     libpcre.la: $(OBJ)
116     -rm -f libpcre.la
117 nigel 67 $(LINKLIB) -rpath $(LIBDIR) -version-info \
118 nigel 53 '$(PCRELIBVERSION)' -o libpcre.la $(LOBJ)
119 nigel 41
120 nigel 67 libpcreposix.la: pcreposix.@OBJEXT@
121 nigel 41 -rm -f libpcreposix.la
122 nigel 67 $(LINKLIB) -rpath $(LIBDIR) -L. -lpcre -version-info \
123 nigel 53 '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
124 nigel 41
125 nigel 67 pcre.@OBJEXT@: $(top_srcdir)/chartables.c $(top_srcdir)/pcre.c \
126 nigel 63 $(top_srcdir)/internal.h $(top_srcdir)/printint.c \
127     pcre.h config.h Makefile
128     $(LTCOMPILE) $(UTF8) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcre.c
129 nigel 41
130 nigel 67 pcreposix.@OBJEXT@: $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \
131 nigel 53 $(top_srcdir)/internal.h pcre.h config.h Makefile
132 nigel 63 $(LTCOMPILE) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcreposix.c
133 nigel 41
134 nigel 67 maketables.@OBJEXT@: $(top_srcdir)/maketables.c $(top_srcdir)/internal.h \
135 nigel 53 pcre.h config.h Makefile
136     $(LTCOMPILE) $(top_srcdir)/maketables.c
137 nigel 41
138 nigel 67 get.@OBJEXT@: $(top_srcdir)/get.c $(top_srcdir)/internal.h \
139 nigel 53 pcre.h config.h Makefile
140     $(LTCOMPILE) $(top_srcdir)/get.c
141 nigel 41
142 nigel 67 study.@OBJEXT@: $(top_srcdir)/study.c $(top_srcdir)/internal.h \
143 nigel 53 pcre.h config.h Makefile
144     $(LTCOMPILE) $(UTF8) $(top_srcdir)/study.c
145 nigel 41
146 nigel 67 pcretest.@OBJEXT@: $(top_srcdir)/pcretest.c $(top_srcdir)/internal.h \
147 nigel 63 $(top_srcdir)/printint.c \
148     pcre.h config.h Makefile
149     $(CC) -c $(CFLAGS) -I. $(UTF8) $(LINK_SIZE) $(top_srcdir)/pcretest.c
150 nigel 41
151 nigel 67 pcregrep.@OBJEXT@: $(top_srcdir)/pcregrep.c pcre.h Makefile config.h
152 nigel 61 $(CC) -c $(CFLAGS) -I. $(UTF8) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
153 nigel 41
154 nigel 67 # Some Windows-specific targets, for Cygwin and MinGW
155    
156     winshared : .libs/@WIN_PREFIX@pcre.dll .libs/@WIN_PREFIX@pcreposix.dll
157    
158     .libs/@WIN_PREFIX@pcre.dll : libpcre.la
159     $(CC) $(CFLAGS) -shared -o $@ \
160     -Wl,--whole-archive .libs/libpcre.a \
161     -Wl,--out-implib,.libs/libpcre.dll.a \
162     -Wl,--output-def,.libs/@WIN_PREFIX@pcre.dll-def \
163     -Wl,--export-all-symbols \
164     -Wl,--no-whole-archive
165     sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcre.dll'#" \
166     -e "s#library_names=''#library_names='libpcre.dll.a'#" \
167     < .libs/libpcre.lai > .libs/libpcre.lai.tmp && \
168     mv .libs/libpcre.lai.tmp .libs/libpcre.lai
169     sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcre.dll'#" \
170     -e "s#library_names=''#library_names='libpcre.dll.a'#" \
171     < libpcre.la > libpcre.la.tmp && \
172     mv libpcre.la.tmp libpcre.la
173    
174    
175     .libs/@WIN_PREFIX@pcreposix.dll: libpcreposix.la libpcre.la
176     $(CC) $(CFLAGS) -shared -o $@ \
177     -Wl,--whole-archive .libs/libpcreposix.a \
178     -Wl,--out-implib,.libs/lib@WIN_PREFIX@pcreposix.dll.a \
179     -Wl,--output-def,.libs/@WIN_PREFIX@pcreposix.dll-def \
180     -Wl,--export-all-symbols \
181     -Wl,--no-whole-archive .libs/libpcre.a
182     sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcreposix.dll'#" \
183     -e "s#library_names=''#library_names='libpcreposix.dll.a'#"\
184     < .libs/libpcreposix.lai > .libs/libpcreposix.lai.tmp && \
185     mv .libs/libpcreposix.lai.tmp .libs/libpcreposix.lai
186     sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcreposix.dll'#" \
187     -e "s#library_names=''#library_names='libpcreposix.dll.a'#"\
188     < libpcreposix.la > libpcreposix.la.tmp && \
189     mv libpcreposix.la.tmp libpcreposix.la
190    
191    
192     wininstall : winshared
193     $(mkinstalldirs) $(DESTDIR)$(LIBDIR)
194     $(mkinstalldirs) $(DESTDIR)$(BINDIR)
195     $(INSTALL) .libs/@WIN_PREFIX@pcre.dll $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcre.dll
196     $(INSTALL) .libs/@WIN_PREFIX@pcreposix.dll $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcreposix.dll
197     $(INSTALL) .libs/libpcreposix.dll.a $(DESTDIR)$(LIBDIR)/libpcreposix.dll.a
198     $(INSTALL) .libs/libpcre.dll.a $(DESTDIR)$(LIBDIR)/libpcre.dll.a
199     -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcre.dll
200     -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcreposix.dll
201     -strip $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
202     -strip $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
203    
204 nigel 41 # An auxiliary program makes the default character table source
205    
206 nigel 57 $(top_srcdir)/chartables.c: dftables
207     ./dftables >$(top_srcdir)/chartables.c
208 nigel 41
209 nigel 67 dftables.@BUILD_OBJEXT@: $(top_srcdir)/dftables.c $(top_srcdir)/maketables.c \
210 nigel 53 $(top_srcdir)/internal.h pcre.h config.h Makefile
211 nigel 65 $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -I. $(top_srcdir)/dftables.c
212 nigel 41
213 nigel 67 dftables: dftables.@BUILD_OBJEXT@
214     $(LINK_FOR_BUILD) -o dftables dftables.@OBJEXT@
215 nigel 63
216 nigel 67 install: all @ON_WINDOWS@ wininstall
217     @NOT_ON_WINDOWS@ $(mkinstalldirs) $(DESTDIR)$(LIBDIR)
218     @NOT_ON_WINDOWS@ echo "$(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la"
219     @NOT_ON_WINDOWS@ $(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la
220     @NOT_ON_WINDOWS@ echo "$(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la"
221     @NOT_ON_WINDOWS@ $(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la
222     @NOT_ON_WINDOWS@ $(LIBTOOL) --finish $(DESTDIR)$(LIBDIR)
223 nigel 63 $(mkinstalldirs) $(DESTDIR)$(INCDIR)
224     $(INSTALL_DATA) pcre.h $(DESTDIR)$(INCDIR)/pcre.h
225     $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)$(INCDIR)/pcreposix.h
226     $(mkinstalldirs) $(DESTDIR)$(MANDIR)/man3
227     $(INSTALL_DATA) $(top_srcdir)/doc/pcre.3 $(DESTDIR)$(MANDIR)/man3/pcre.3
228     $(INSTALL_DATA) $(top_srcdir)/doc/pcreapi.3 $(DESTDIR)$(MANDIR)/man3/pcreapi.3
229     $(INSTALL_DATA) $(top_srcdir)/doc/pcrebuild.3 $(DESTDIR)$(MANDIR)/man3/pcrebuild.3
230     $(INSTALL_DATA) $(top_srcdir)/doc/pcrecallout.3 $(DESTDIR)$(MANDIR)/man3/pcrecallout.3
231     $(INSTALL_DATA) $(top_srcdir)/doc/pcrecompat.3 $(DESTDIR)$(MANDIR)/man3/pcrecompat.3
232     $(INSTALL_DATA) $(top_srcdir)/doc/pcrepattern.3 $(DESTDIR)$(MANDIR)/man3/pcrepattern.3
233     $(INSTALL_DATA) $(top_srcdir)/doc/pcreperform.3 $(DESTDIR)$(MANDIR)/man3/pcreperform.3
234     $(INSTALL_DATA) $(top_srcdir)/doc/pcreposix.3 $(DESTDIR)$(MANDIR)/man3/pcreposix.3
235     $(INSTALL_DATA) $(top_srcdir)/doc/pcresample.3 $(DESTDIR)$(MANDIR)/man3/pcresample.3
236     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_compile.3 $(DESTDIR)$(MANDIR)/man3/pcre_compile.3
237     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_config.3 $(DESTDIR)$(MANDIR)/man3/pcre_config.3
238     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_named_substring.3
239     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_substring.3
240     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_exec.3 $(DESTDIR)$(MANDIR)/man3/pcre_exec.3
241     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring.3
242     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring_list.3
243     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_fullinfo.3 $(DESTDIR)$(MANDIR)/man3/pcre_fullinfo.3
244     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_named_substring.3
245     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_stringnumber.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_stringnumber.3
246     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring.3
247     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring_list.3
248     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_info.3 $(DESTDIR)$(MANDIR)/man3/pcre_info.3
249     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_maketables.3 $(DESTDIR)$(MANDIR)/man3/pcre_maketables.3
250     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_study.3 $(DESTDIR)$(MANDIR)/man3/pcre_study.3
251     $(INSTALL_DATA) $(top_srcdir)/doc/pcre_version.3 $(DESTDIR)$(MANDIR)/man3/pcre_version.3
252     $(mkinstalldirs) $(DESTDIR)$(MANDIR)/man1
253     $(INSTALL_DATA) $(top_srcdir)/doc/pcregrep.1 $(DESTDIR)$(MANDIR)/man1/pcregrep.1
254     $(INSTALL_DATA) $(top_srcdir)/doc/pcretest.1 $(DESTDIR)$(MANDIR)/man1/pcretest.1
255     $(mkinstalldirs) $(DESTDIR)$(BINDIR)
256 nigel 67 $(LIBTOOL) --mode=install $(INSTALL) pcregrep@EXEEXT@ $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
257     $(LIBTOOL) --mode=install $(INSTALL) pcretest@EXEEXT@ $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
258 nigel 63 $(INSTALL) pcre-config $(DESTDIR)$(BINDIR)/pcre-config
259 nigel 41
260     # We deliberately omit dftables and chartables.c from 'make clean'; once made
261     # chartables.c shouldn't change, and if people have edited the tables by hand,
262     # you don't want to throw them away.
263    
264 nigel 67 clean:; -rm -rf *.@OBJEXT@ *.lo *.a *.la .libs pcretest@EXEEXT@ pcregrep@EXEEXT@ testtry
265 nigel 41
266     # But "make distclean" should get back to a virgin distribution
267    
268     distclean: clean
269 nigel 43 -rm -f chartables.c libtool pcre-config pcre.h \
270 nigel 41 Makefile config.h config.status config.log config.cache
271    
272     check: runtest
273    
274 nigel 67 @WIN_PREFIX@pcre.dll : winshared
275     cp .libs/@WIN_PREFIX@pcre.dll .
276    
277 nigel 49 test: runtest
278    
279 nigel 67 runtest: all @ON_WINDOWS@ @WIN_PREFIX@pcre.dll
280 nigel 41 ./RunTest
281    
282     # End

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12