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

Contents of /code/trunk/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 63 - (hide annotations) (download)
Sat Feb 24 21:40:03 2007 UTC (7 years, 1 month ago) by nigel
File size: 9359 byte(s)
Load pcre-4.0 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     CC = @CC@
58     CFLAGS = @CFLAGS@
59 nigel 63 HOST_CC = @HOST_CC@
60     HOST_CFLAGS = @HOST_CFLAGS@
61 nigel 49 UTF8 = @UTF8@
62 nigel 53 NEWLINE = @NEWLINE@
63 nigel 63 POSIX_MALLOC_THRESHOLD = @POSIX_MALLOC_THRESHOLD@
64     LINK_SIZE = @LINK_SIZE@
65     MATCH_LIMIT= @MATCH_LIMIT@
66 nigel 41
67 nigel 53 INSTALL = @INSTALL@
68     INSTALL_DATA = @INSTALL_DATA@
69 nigel 41
70 nigel 53 # 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 nigel 41 LIBTOOL = @LIBTOOL@
74 nigel 63 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 nigel 41
77 nigel 43 # These are the version numbers for the shared libraries
78 nigel 41
79 nigel 43 PCRELIBVERSION = @PCRE_LIB_VERSION@
80     PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@
81    
82 nigel 41 ##############################################################################
83    
84    
85 nigel 63 OBJ = maketables.o get.o study.o pcre.o @POSIX_OBJ@
86     LOBJ = maketables.lo get.lo study.lo pcre.lo @POSIX_LOBJ@
87 nigel 41
88 nigel 63 all: libpcre.la @POSIX_LIB@ pcretest pcregrep
89 nigel 41
90 nigel 53 pcregrep: libpcre.la pcregrep.o
91 nigel 63 $(LINK) -o pcregrep pcregrep.o libpcre.la
92 nigel 41
93 nigel 63 pcretest: libpcre.la @POSIX_LIB@ pcretest.o
94     $(LINK) $(PURIFY) $(EFENCE) -o pcretest pcretest.o \
95     libpcre.la @POSIX_LIB@
96 nigel 41
97     libpcre.la: $(OBJ)
98     -rm -f libpcre.la
99 nigel 53 $(LINK) -rpath $(LIBDIR) -version-info \
100     '$(PCRELIBVERSION)' -o libpcre.la $(LOBJ)
101 nigel 41
102     libpcreposix.la: pcreposix.o
103     -rm -f libpcreposix.la
104 nigel 53 $(LINK) -rpath $(LIBDIR) -version-info \
105     '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
106 nigel 41
107 nigel 53 pcre.o: $(top_srcdir)/chartables.c $(top_srcdir)/pcre.c \
108 nigel 63 $(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 nigel 41
112 nigel 53 pcreposix.o: $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \
113     $(top_srcdir)/internal.h pcre.h config.h Makefile
114 nigel 63 $(LTCOMPILE) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcreposix.c
115 nigel 41
116 nigel 53 maketables.o: $(top_srcdir)/maketables.c $(top_srcdir)/internal.h \
117     pcre.h config.h Makefile
118     $(LTCOMPILE) $(top_srcdir)/maketables.c
119 nigel 41
120 nigel 53 get.o: $(top_srcdir)/get.c $(top_srcdir)/internal.h \
121     pcre.h config.h Makefile
122     $(LTCOMPILE) $(top_srcdir)/get.c
123 nigel 41
124 nigel 53 study.o: $(top_srcdir)/study.c $(top_srcdir)/internal.h \
125     pcre.h config.h Makefile
126     $(LTCOMPILE) $(UTF8) $(top_srcdir)/study.c
127 nigel 41
128 nigel 63 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 nigel 41
133 nigel 53 pcregrep.o: $(top_srcdir)/pcregrep.c pcre.h Makefile config.h
134 nigel 61 $(CC) -c $(CFLAGS) -I. $(UTF8) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
135 nigel 41
136     # An auxiliary program makes the default character table source
137    
138 nigel 57 $(top_srcdir)/chartables.c: dftables
139     ./dftables >$(top_srcdir)/chartables.c
140 nigel 41
141 nigel 63 dftables.o: $(top_srcdir)/dftables.c $(top_srcdir)/maketables.c \
142 nigel 53 $(top_srcdir)/internal.h pcre.h config.h Makefile
143 nigel 63 $(HOST_CC) -c $(HOST_CFLAGS) -I. $(top_srcdir)/dftables.c
144 nigel 41
145 nigel 63 dftables: dftables.o
146     $(LINK) -o dftables dftables.o
147    
148 nigel 41 install: all
149 nigel 63 $(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 nigel 41
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 nigel 49 clean:; -rm -rf *.o *.lo *.a *.la .libs pcretest pcregrep testtry
197 nigel 41
198     # But "make distclean" should get back to a virgin distribution
199    
200     distclean: clean
201 nigel 43 -rm -f chartables.c libtool pcre-config pcre.h \
202 nigel 41 Makefile config.h config.status config.log config.cache
203    
204     check: runtest
205    
206 nigel 49 test: runtest
207    
208 nigel 41 runtest: all
209     ./RunTest
210    
211     # End

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12