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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 63 - (show annotations) (download)
Sat Feb 24 21:40:03 2007 UTC (7 years, 2 months ago) by nigel
Original Path: code/trunk/Makefile.in
File size: 9359 byte(s)
Load pcre-4.0 into code/trunk.

1
2 # Makefile.in for PCRE (Perl-Compatible Regular Expression) library.
3
4 #---------------------------------------------------------------------------#
5 # 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 #---------------------------------------------------------------------------#
11
12
13 #############################################################################
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 #---------------------------------------------------------------------------#
29 # The following lines are modified by "configure" to insert data that it is #
30 # given in its arguments, or which it finds out for itself. #
31 #---------------------------------------------------------------------------#
32
33 SHELL = @SHELL@
34 prefix = @prefix@
35 exec_prefix = @exec_prefix@
36 top_srcdir = @top_srcdir@
37
38 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
39
40 # NB: top_builddir is not referred to directly below, but it is used in the
41 # setting of $(LIBTOOL), so don't remove it!
42
43 top_builddir = .
44
45 # BINDIR is the directory in which the pcregrep, pcretest, and pcre-config
46 # commands are installed.
47 # INCDIR is the directory in which the public header files pcre.h and
48 # pcreposix.h are installed.
49 # LIBDIR is the directory in which the libraries are installed.
50 # MANDIR is the directory in which the man pages are installed.
51
52 BINDIR = @bindir@
53 LIBDIR = @libdir@
54 INCDIR = @includedir@
55 MANDIR = @mandir@
56
57 CC = @CC@
58 CFLAGS = @CFLAGS@
59 HOST_CC = @HOST_CC@
60 HOST_CFLAGS = @HOST_CFLAGS@
61 UTF8 = @UTF8@
62 NEWLINE = @NEWLINE@
63 POSIX_MALLOC_THRESHOLD = @POSIX_MALLOC_THRESHOLD@
64 LINK_SIZE = @LINK_SIZE@
65 MATCH_LIMIT= @MATCH_LIMIT@
66
67 INSTALL = @INSTALL@
68 INSTALL_DATA = @INSTALL_DATA@
69
70 # LIBTOOL enables the building of shared and static libraries. It is set up
71 # to do one or the other or both by ./configure.
72
73 LIBTOOL = @LIBTOOL@
74 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT)
75 LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -I. -I$(top_srcdir)
76
77 # These are the version numbers for the shared libraries
78
79 PCRELIBVERSION = @PCRE_LIB_VERSION@
80 PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@
81
82 ##############################################################################
83
84
85 OBJ = maketables.o get.o study.o pcre.o @POSIX_OBJ@
86 LOBJ = maketables.lo get.lo study.lo pcre.lo @POSIX_LOBJ@
87
88 all: libpcre.la @POSIX_LIB@ pcretest pcregrep
89
90 pcregrep: libpcre.la pcregrep.o
91 $(LINK) -o pcregrep pcregrep.o libpcre.la
92
93 pcretest: libpcre.la @POSIX_LIB@ pcretest.o
94 $(LINK) $(PURIFY) $(EFENCE) -o pcretest pcretest.o \
95 libpcre.la @POSIX_LIB@
96
97 libpcre.la: $(OBJ)
98 -rm -f libpcre.la
99 $(LINK) -rpath $(LIBDIR) -version-info \
100 '$(PCRELIBVERSION)' -o libpcre.la $(LOBJ)
101
102 libpcreposix.la: pcreposix.o
103 -rm -f libpcreposix.la
104 $(LINK) -rpath $(LIBDIR) -version-info \
105 '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
106
107 pcre.o: $(top_srcdir)/chartables.c $(top_srcdir)/pcre.c \
108 $(top_srcdir)/internal.h $(top_srcdir)/printint.c \
109 pcre.h config.h Makefile
110 $(LTCOMPILE) $(UTF8) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcre.c
111
112 pcreposix.o: $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \
113 $(top_srcdir)/internal.h pcre.h config.h Makefile
114 $(LTCOMPILE) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcreposix.c
115
116 maketables.o: $(top_srcdir)/maketables.c $(top_srcdir)/internal.h \
117 pcre.h config.h Makefile
118 $(LTCOMPILE) $(top_srcdir)/maketables.c
119
120 get.o: $(top_srcdir)/get.c $(top_srcdir)/internal.h \
121 pcre.h config.h Makefile
122 $(LTCOMPILE) $(top_srcdir)/get.c
123
124 study.o: $(top_srcdir)/study.c $(top_srcdir)/internal.h \
125 pcre.h config.h Makefile
126 $(LTCOMPILE) $(UTF8) $(top_srcdir)/study.c
127
128 pcretest.o: $(top_srcdir)/pcretest.c $(top_srcdir)/internal.h \
129 $(top_srcdir)/printint.c \
130 pcre.h config.h Makefile
131 $(CC) -c $(CFLAGS) -I. $(UTF8) $(LINK_SIZE) $(top_srcdir)/pcretest.c
132
133 pcregrep.o: $(top_srcdir)/pcregrep.c pcre.h Makefile config.h
134 $(CC) -c $(CFLAGS) -I. $(UTF8) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
135
136 # An auxiliary program makes the default character table source
137
138 $(top_srcdir)/chartables.c: dftables
139 ./dftables >$(top_srcdir)/chartables.c
140
141 dftables.o: $(top_srcdir)/dftables.c $(top_srcdir)/maketables.c \
142 $(top_srcdir)/internal.h pcre.h config.h Makefile
143 $(HOST_CC) -c $(HOST_CFLAGS) -I. $(top_srcdir)/dftables.c
144
145 dftables: dftables.o
146 $(LINK) -o dftables dftables.o
147
148 install: all
149 $(mkinstalldirs) $(DESTDIR)$(LIBDIR)
150 echo "$(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la"
151 $(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la
152 echo "$(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la"
153 $(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la
154 $(LIBTOOL) --finish $(DESTDIR)$(LIBDIR)
155 $(mkinstalldirs) $(DESTDIR)$(INCDIR)
156 $(INSTALL_DATA) pcre.h $(DESTDIR)$(INCDIR)/pcre.h
157 $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)$(INCDIR)/pcreposix.h
158 $(mkinstalldirs) $(DESTDIR)$(MANDIR)/man3
159 $(INSTALL_DATA) $(top_srcdir)/doc/pcre.3 $(DESTDIR)$(MANDIR)/man3/pcre.3
160 $(INSTALL_DATA) $(top_srcdir)/doc/pcreapi.3 $(DESTDIR)$(MANDIR)/man3/pcreapi.3
161 $(INSTALL_DATA) $(top_srcdir)/doc/pcrebuild.3 $(DESTDIR)$(MANDIR)/man3/pcrebuild.3
162 $(INSTALL_DATA) $(top_srcdir)/doc/pcrecallout.3 $(DESTDIR)$(MANDIR)/man3/pcrecallout.3
163 $(INSTALL_DATA) $(top_srcdir)/doc/pcrecompat.3 $(DESTDIR)$(MANDIR)/man3/pcrecompat.3
164 $(INSTALL_DATA) $(top_srcdir)/doc/pcrepattern.3 $(DESTDIR)$(MANDIR)/man3/pcrepattern.3
165 $(INSTALL_DATA) $(top_srcdir)/doc/pcreperform.3 $(DESTDIR)$(MANDIR)/man3/pcreperform.3
166 $(INSTALL_DATA) $(top_srcdir)/doc/pcreposix.3 $(DESTDIR)$(MANDIR)/man3/pcreposix.3
167 $(INSTALL_DATA) $(top_srcdir)/doc/pcresample.3 $(DESTDIR)$(MANDIR)/man3/pcresample.3
168 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_compile.3 $(DESTDIR)$(MANDIR)/man3/pcre_compile.3
169 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_config.3 $(DESTDIR)$(MANDIR)/man3/pcre_config.3
170 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_named_substring.3
171 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_substring.3
172 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_exec.3 $(DESTDIR)$(MANDIR)/man3/pcre_exec.3
173 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring.3
174 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring_list.3
175 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_fullinfo.3 $(DESTDIR)$(MANDIR)/man3/pcre_fullinfo.3
176 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_named_substring.3
177 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_stringnumber.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_stringnumber.3
178 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring.3
179 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring_list.3
180 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_info.3 $(DESTDIR)$(MANDIR)/man3/pcre_info.3
181 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_maketables.3 $(DESTDIR)$(MANDIR)/man3/pcre_maketables.3
182 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_study.3 $(DESTDIR)$(MANDIR)/man3/pcre_study.3
183 $(INSTALL_DATA) $(top_srcdir)/doc/pcre_version.3 $(DESTDIR)$(MANDIR)/man3/pcre_version.3
184 $(mkinstalldirs) $(DESTDIR)$(MANDIR)/man1
185 $(INSTALL_DATA) $(top_srcdir)/doc/pcregrep.1 $(DESTDIR)$(MANDIR)/man1/pcregrep.1
186 $(INSTALL_DATA) $(top_srcdir)/doc/pcretest.1 $(DESTDIR)$(MANDIR)/man1/pcretest.1
187 $(mkinstalldirs) $(DESTDIR)$(BINDIR)
188 $(LIBTOOL) --mode=install $(INSTALL) pcregrep $(DESTDIR)$(BINDIR)/pcregrep
189 $(LIBTOOL) --mode=install $(INSTALL) pcretest $(DESTDIR)$(BINDIR)/pcretest
190 $(INSTALL) pcre-config $(DESTDIR)$(BINDIR)/pcre-config
191
192 # We deliberately omit dftables and chartables.c from 'make clean'; once made
193 # chartables.c shouldn't change, and if people have edited the tables by hand,
194 # you don't want to throw them away.
195
196 clean:; -rm -rf *.o *.lo *.a *.la .libs pcretest pcregrep testtry
197
198 # But "make distclean" should get back to a virgin distribution
199
200 distclean: clean
201 -rm -f chartables.c libtool pcre-config pcre.h \
202 Makefile config.h config.status config.log config.cache
203
204 check: runtest
205
206 test: runtest
207
208 runtest: all
209 ./RunTest
210
211 # End

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12