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

Contents of /code/trunk/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 41 - (hide annotations) (download)
Sat Feb 24 21:39:17 2007 UTC (7 years, 7 months ago) by nigel
File size: 7006 byte(s)
Load pcre-2.08a 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     #---------------------------------------------------------------------------#
16     # The next few lines are modified by "configure" to insert data that it is #
17     # given in its arguments, or which it finds out for itself. #
18     #---------------------------------------------------------------------------#
19    
20     # BINDIR is the directory in which the pgrep command is installed.
21     # INCDIR is the directory in which the public header file pcre.h is installed.
22     # LIBDIR is the directory in which the libraries are installed.
23     # MANDIR is the directory in which the man pages are installed.
24     # The pcretest program, as it is a test program, does not get installed
25     # anywhere.
26    
27     prefix = @prefix@
28     exec_prefix = @exec_prefix@
29    
30     BINDIR = $(exec_prefix)/bin
31     LIBDIR = $(exec_prefix)/lib
32     INCDIR = $(prefix)/include
33     MANDIR = $(prefix)/man
34    
35     CC = @CC@
36     CFLAGS = @CFLAGS@
37     RANLIB = @RANLIB@
38    
39     # LIBTOOL defaults to "", which cuts out the building of shared libraries.
40     # If "configure" is called with --enable-shared-libraries, then LIBTOOL is
41     # set to "libtool", which causes shared libraries to be built, and LIBSUFFIX
42     # is set to "la" instead of "a", which causes the shared libraries to be
43     # installed.
44    
45     LIBTOOL = @LIBTOOL@
46     LIBSUFFIX = @LIBSUFFIX@
47    
48    
49     #---------------------------------------------------------------------------#
50     # A copy of install-sh is in this distribution and is used by default. #
51     #---------------------------------------------------------------------------#
52    
53     INSTALL = ./install-sh -c
54     INSTALL_DATA = ${INSTALL} -m 644
55    
56    
57     #---------------------------------------------------------------------------#
58     # For almost all systems, the command to create a library is "ar cq", but #
59     # there is at least one where it is different, to make this configurable. #
60     # However, I haven't got round to learning how to make "configure" find #
61     # this out for itself. It is necessary to use a command such as #
62     # "make AR='ar -rc'" if you need to vary this. #
63     #---------------------------------------------------------------------------#
64    
65     AR = ar cq
66    
67    
68     ##############################################################################
69    
70    
71     OBJ = maketables.o get.o study.o pcre.o
72     LOBJ = maketables.lo get.lo study.lo pcre.lo
73    
74     all: libtool libpcre.$(LIBSUFFIX) libpcreposix.$(LIBSUFFIX) pcretest pgrep
75    
76     libtool: config.guess config.sub ltconfig ltmain.sh
77     @if test "$(LIBTOOL)" = "libtool"; then \
78     echo '--- Building libtool ---'; \
79     ./ltconfig ./ltmain.sh; \
80     echo '--- Built libtool ---'; fi
81    
82     pgrep: libpcre.$(LIBSUFFIX) pgrep.o
83     @echo ' '
84     @echo '--- Building pgrep utility'
85     @echo ' '
86     $(LIBTOOL) $(CC) $(CFLAGS) -o pgrep pgrep.o libpcre.$(LIBSUFFIX)
87    
88     pcretest: libpcre.$(LIBSUFFIX) libpcreposix.$(LIBSUFFIX) pcretest.o
89     @echo ' '
90     @echo '--- Building pcretest testing program'
91     @echo ' '
92     $(LIBTOOL) $(PURIFY) $(CC) $(CFLAGS) -o pcretest pcretest.o \
93     libpcre.$(LIBSUFFIX) libpcreposix.$(LIBSUFFIX)
94    
95     libpcre.a: $(OBJ)
96     @echo ' '
97     @echo '--- Building static library: libpcre'
98     @echo ' '
99     -rm -f libpcre.a
100     $(AR) libpcre.a $(OBJ)
101     $(RANLIB) libpcre.a
102    
103     libpcre.la: $(OBJ)
104     @echo ' '
105     @echo '--- Building shared library: libpcre'
106     @echo ' '
107     -rm -f libpcre.la
108     libtool $(CC) -o libpcre.la -rpath $(LIBDIR) $(LOBJ)
109    
110     libpcreposix.a: pcreposix.o
111     @echo ' '
112     @echo '--- Building static library: libpcreposix'
113     @echo ' '
114     -rm -f libpcreposix.a
115     $(AR) libpcreposix.a pcreposix.o
116     $(RANLIB) libpcreposix.a
117    
118     libpcreposix.la: pcreposix.o
119     @echo ' '
120     @echo '--- Building shared library: libpcreposix'
121     @echo ' '
122     -rm -f libpcreposix.la
123     libtool $(CC) -o libpcreposix.la -rpath $(LIBDIR) pcreposix.lo
124    
125     pcre.o: chartables.c pcre.c pcre.h internal.h config.h Makefile
126     $(LIBTOOL) $(CC) -c $(CFLAGS) pcre.c
127    
128     pcreposix.o: pcreposix.c pcreposix.h internal.h pcre.h config.h Makefile
129     $(LIBTOOL) $(CC) -c $(CFLAGS) pcreposix.c
130    
131     maketables.o: maketables.c pcre.h internal.h config.h Makefile
132     $(LIBTOOL) $(CC) -c $(CFLAGS) maketables.c
133    
134     get.o: get.c pcre.h internal.h config.h Makefile
135     $(LIBTOOL) $(CC) -c $(CFLAGS) get.c
136    
137     study.o: study.c pcre.h internal.h config.h Makefile
138     $(LIBTOOL) $(CC) -c $(CFLAGS) study.c
139    
140     pcretest.o: pcretest.c pcre.h config.h Makefile
141     $(CC) -c $(CFLAGS) pcretest.c
142    
143     pgrep.o: pgrep.c pcre.h Makefile config.h
144     $(CC) -c $(CFLAGS) pgrep.c
145    
146     # An auxiliary program makes the default character table source
147    
148     chartables.c: dftables
149     ./dftables >chartables.c
150    
151     dftables: dftables.c maketables.c pcre.h internal.h config.h Makefile
152     $(CC) -o dftables $(CFLAGS) dftables.c
153    
154     install: all
155     $(LIBTOOL) $(INSTALL_DATA) libpcre.$(LIBSUFFIX) $(LIBDIR)/libpcre.$(LIBSUFFIX)
156     $(LIBTOOL) $(INSTALL_DATA) libpcreposix.$(LIBSUFFIX) $(LIBDIR)/libpcreposix.$(LIBSUFFIX)
157     $(INSTALL_DATA) pcre.h $(INCDIR)/pcre.h
158     $(INSTALL_DATA) doc/pcre.3 $(MANDIR)/man3/pcre.3
159     $(INSTALL_DATA) doc/pcreposix.3 $(MANDIR)/man3/pcre.3
160     $(INSTALL_DATA) doc/pgrep.1 $(MANDIR)/man1/pgrep.1
161     @if test "$(LIBTOOL)" = "libtool"; then \
162     echo '--- Rebuilding pgrep to use installed shared library ---'; \
163     echo $(CC) $(CFLAGS) -o pgrep pgrep.o -L$(LIBDIR) -lpcre; \
164     $(CC) $(CFLAGS) -o pgrep pgrep.o -L$(LIBDIR) -lpcre; \
165     fi
166     $(INSTALL) pgrep $(BINDIR)/pgrep \
167    
168     # We deliberately omit dftables and chartables.c from 'make clean'; once made
169     # chartables.c shouldn't change, and if people have edited the tables by hand,
170     # you don't want to throw them away.
171    
172     clean:; -rm -rf *.o *.lo *.a *.la .libs pcretest pgrep testtry
173    
174     # But "make distclean" should get back to a virgin distribution
175    
176     distclean: clean
177     -rm -f chartables.c libtool \
178     Makefile config.h config.status config.log config.cache
179    
180     check: runtest
181    
182     runtest: all
183     ./RunTest
184    
185     ######## MINGW32 ############### MINGW32 ############### MINGW32 #############
186    
187     # This addition for mingw32 was contributed by Paul Sokolovsky
188     # <Paul.Sokolovsky@technologist.com>. I (PH) don't know anything about it!
189    
190     dll: _dll libpcre.dll.a pgrep_d pcretest_d
191    
192     _dll:
193     $(MAKE) CFLAGS=-DSTATIC pcre.dll
194    
195     pcre.dll: $(OBJ) pcreposix.o pcre.def
196     libpcre.dll.a: pcre.def
197    
198     pgrep_d: libpcre.dll.a pgrep.o
199     $(CC) $(CFLAGS) -L. -o pgrep pgrep.o -lpcre.dll
200    
201     pcretest_d: libpcre.dll.a pcretest.o
202     $(PURIFY) $(CC) $(CFLAGS) -L. -o pcretest pcretest.o -lpcre.dll
203    
204     # End

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12