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

Contents of /code/trunk/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 57 - (hide annotations) (download)
Sat Feb 24 21:39:50 2007 UTC (7 years, 9 months ago) by nigel
File size: 7306 byte(s)
Load pcre-3.7 into code/trunk.

1 nigel 41
2     # Makefile.in for PCRE (Perl-Compatible Regular Expression) library.
3    
4     #---------------------------------------------------------------------------#
5     # To build mingw32 DLL uncomment the next two lines. This addition for #
6     # mingw32 was contributed by <Paul.Sokolovsky@technologist.com>. I (Philip #
7     # Hazel) don't know anything about it! There are some additional targets at #
8     # the bottom of this Makefile. #
9     #---------------------------------------------------------------------------#
10     #
11     # include dll.mk
12     # DLL_LDFLAGS=-s
13    
14    
15 nigel 53 #############################################################################
16    
17     # PCRE is developed on a Unix system. I do not use Windows or Macs, and know
18     # nothing about building software on them. Although the code of PCRE should
19     # be very portable, the building system in this Makefile is designed for Unix
20     # systems, with the exception of the mingw32 stuff just mentioned.
21    
22     # This setting enables Unix-style directory scanning in pcregrep, triggered
23     # by the -f option. Maybe one day someone will add code for other systems.
24    
25     PCREGREP_OSTYPE=-DIS_UNIX
26    
27     #############################################################################
28    
29    
30 nigel 41 #---------------------------------------------------------------------------#
31 nigel 53 # The following lines are modified by "configure" to insert data that it is #
32 nigel 41 # given in its arguments, or which it finds out for itself. #
33     #---------------------------------------------------------------------------#
34    
35 nigel 53 SHELL = @SHELL@
36 nigel 41 prefix = @prefix@
37     exec_prefix = @exec_prefix@
38 nigel 53 top_srcdir = @top_srcdir@
39 nigel 41
40 nigel 53 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
41    
42     # NB: top_builddir is not referred to directly below, but it is used in the
43     # setting of $(LIBTOOL), so don't remove it!
44    
45     top_builddir = .
46    
47     # BINDIR is the directory in which the pcregrep, pcretest, and pcre-config
48     # commands are installed.
49     # INCDIR is the directory in which the public header files pcre.h and
50     # pcreposix.h are installed.
51     # LIBDIR is the directory in which the libraries are installed.
52     # MANDIR is the directory in which the man pages are installed.
53    
54 nigel 43 BINDIR = @bindir@
55     LIBDIR = @libdir@
56     INCDIR = @includedir@
57     MANDIR = @mandir@
58 nigel 41
59     CC = @CC@
60     CFLAGS = @CFLAGS@
61     RANLIB = @RANLIB@
62 nigel 49 UTF8 = @UTF8@
63 nigel 53 NEWLINE = @NEWLINE@
64 nigel 41
65 nigel 53 INSTALL = @INSTALL@
66     INSTALL_DATA = @INSTALL_DATA@
67 nigel 41
68 nigel 53 # LIBTOOL enables the building of shared and static libraries. It is set up
69     # to do one or the other or both by ./configure.
70    
71 nigel 41 LIBTOOL = @LIBTOOL@
72 nigel 53 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. $(NEWLINE)
73     LINK = $(LIBTOOL) --mode=link $(CC)
74 nigel 41
75 nigel 43 # These are the version numbers for the shared libraries
76 nigel 41
77 nigel 43 PCRELIBVERSION = @PCRE_LIB_VERSION@
78     PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@
79    
80 nigel 41 ##############################################################################
81    
82    
83     OBJ = maketables.o get.o study.o pcre.o
84     LOBJ = maketables.lo get.lo study.lo pcre.lo
85    
86 nigel 53 all: libpcre.la libpcreposix.la pcretest pcregrep
87 nigel 41
88 nigel 53 pcregrep: libpcre.la pcregrep.o
89     $(LINK) $(CFLAGS) -o pcregrep pcregrep.o libpcre.la
90 nigel 41
91 nigel 53 pcretest: libpcre.la libpcreposix.la pcretest.o
92     $(LINK) $(PURIFY) $(CFLAGS) -o pcretest pcretest.o \
93     libpcre.la libpcreposix.la
94 nigel 41
95     libpcre.la: $(OBJ)
96     -rm -f libpcre.la
97 nigel 53 $(LINK) -rpath $(LIBDIR) -version-info \
98     '$(PCRELIBVERSION)' -o libpcre.la $(LOBJ)
99 nigel 41
100     libpcreposix.la: pcreposix.o
101     -rm -f libpcreposix.la
102 nigel 53 $(LINK) -rpath $(LIBDIR) -version-info \
103     '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
104 nigel 41
105 nigel 53 pcre.o: $(top_srcdir)/chartables.c $(top_srcdir)/pcre.c \
106     $(top_srcdir)/internal.h pcre.h config.h Makefile
107     $(LTCOMPILE) $(UTF8) $(top_srcdir)/pcre.c
108 nigel 41
109 nigel 53 pcreposix.o: $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \
110     $(top_srcdir)/internal.h pcre.h config.h Makefile
111     $(LTCOMPILE) $(top_srcdir)/pcreposix.c
112 nigel 41
113 nigel 53 maketables.o: $(top_srcdir)/maketables.c $(top_srcdir)/internal.h \
114     pcre.h config.h Makefile
115     $(LTCOMPILE) $(top_srcdir)/maketables.c
116 nigel 41
117 nigel 53 get.o: $(top_srcdir)/get.c $(top_srcdir)/internal.h \
118     pcre.h config.h Makefile
119     $(LTCOMPILE) $(top_srcdir)/get.c
120 nigel 41
121 nigel 53 study.o: $(top_srcdir)/study.c $(top_srcdir)/internal.h \
122     pcre.h config.h Makefile
123     $(LTCOMPILE) $(UTF8) $(top_srcdir)/study.c
124 nigel 41
125 nigel 53 pcretest.o: $(top_srcdir)/pcretest.c $(top_srcdir)/internal.h pcre.h config.h Makefile
126     $(LTCOMPILE) $(UTF8) $(top_srcdir)/pcretest.c
127 nigel 41
128 nigel 53 pcregrep.o: $(top_srcdir)/pcregrep.c pcre.h Makefile config.h
129     $(LTCOMPILE) $(UTF8) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
130 nigel 41
131     # An auxiliary program makes the default character table source
132    
133 nigel 57 $(top_srcdir)/chartables.c: dftables
134     ./dftables >$(top_srcdir)/chartables.c
135 nigel 41
136 nigel 53 dftables: $(top_srcdir)/dftables.c $(top_srcdir)/maketables.c \
137     $(top_srcdir)/internal.h pcre.h config.h Makefile
138     $(LINK) -o dftables $(CFLAGS) $(top_srcdir)/dftables.c
139 nigel 41
140     install: all
141 nigel 53 $(mkinstalldirs) $(DESTDIR)/$(LIBDIR)
142     echo "$(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)/$(LIBDIR)/libpcre.la"
143     $(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)/$(LIBDIR)/libpcre.la
144     echo "$(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)/$(LIBDIR)/libpcreposix.la"
145     $(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)/$(LIBDIR)/libpcreposix.la
146     $(LIBTOOL) --finish $(DESTDIR)/$(LIBDIR)
147     $(mkinstalldirs) $(DESTDIR)/$(INCDIR)
148 nigel 49 $(INSTALL_DATA) pcre.h $(DESTDIR)/$(INCDIR)/pcre.h
149 nigel 53 $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)/$(INCDIR)/pcreposix.h
150     $(mkinstalldirs) $(DESTDIR)/$(MANDIR)/man3
151     $(INSTALL_DATA) $(top_srcdir)/doc/pcre.3 $(DESTDIR)/$(MANDIR)/man3/pcre.3
152     $(INSTALL_DATA) $(top_srcdir)/doc/pcreposix.3 $(DESTDIR)/$(MANDIR)/man3/pcreposix.3
153     $(mkinstalldirs) $(DESTDIR)/$(MANDIR)/man1
154     $(INSTALL_DATA) $(top_srcdir)/doc/pcregrep.1 $(DESTDIR)/$(MANDIR)/man1/pcregrep.1
155     $(INSTALL_DATA) $(top_srcdir)/doc/pcretest.1 $(DESTDIR)/$(MANDIR)/man1/pcretest.1
156     $(mkinstalldirs) $(DESTDIR)/$(BINDIR)
157     $(LIBTOOL) --mode=install $(INSTALL) pcregrep $(DESTDIR)/$(BINDIR)/pcregrep
158     $(LIBTOOL) --mode=install $(INSTALL) pcretest $(DESTDIR)/$(BINDIR)/pcretest
159     $(INSTALL) pcre-config $(DESTDIR)/$(BINDIR)/pcre-config
160 nigel 41
161     # We deliberately omit dftables and chartables.c from 'make clean'; once made
162     # chartables.c shouldn't change, and if people have edited the tables by hand,
163     # you don't want to throw them away.
164    
165 nigel 49 clean:; -rm -rf *.o *.lo *.a *.la .libs pcretest pcregrep testtry
166 nigel 41
167     # But "make distclean" should get back to a virgin distribution
168    
169     distclean: clean
170 nigel 43 -rm -f chartables.c libtool pcre-config pcre.h \
171 nigel 41 Makefile config.h config.status config.log config.cache
172    
173     check: runtest
174    
175 nigel 49 test: runtest
176    
177 nigel 41 runtest: all
178     ./RunTest
179    
180     ######## MINGW32 ############### MINGW32 ############### MINGW32 #############
181    
182     # This addition for mingw32 was contributed by Paul Sokolovsky
183     # <Paul.Sokolovsky@technologist.com>. I (PH) don't know anything about it!
184    
185 nigel 49 dll: _dll libpcre.dll.a pcregrep_d pcretest_d
186 nigel 41
187     _dll:
188     $(MAKE) CFLAGS=-DSTATIC pcre.dll
189    
190     pcre.dll: $(OBJ) pcreposix.o pcre.def
191     libpcre.dll.a: pcre.def
192    
193 nigel 49 pcregrep_d: libpcre.dll.a pcregrep.o
194     $(CC) $(CFLAGS) -L. -o pcregrep pcregrep.o -lpcre.dll
195 nigel 41
196     pcretest_d: libpcre.dll.a pcretest.o
197     $(PURIFY) $(CC) $(CFLAGS) -L. -o pcretest pcretest.o -lpcre.dll
198    
199     # End

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12