27 |
prefix = @prefix@ |
prefix = @prefix@ |
28 |
exec_prefix = @exec_prefix@ |
exec_prefix = @exec_prefix@ |
29 |
|
|
30 |
BINDIR = $(exec_prefix)/bin |
BINDIR = @bindir@ |
31 |
LIBDIR = $(exec_prefix)/lib |
LIBDIR = @libdir@ |
32 |
INCDIR = $(prefix)/include |
INCDIR = @includedir@ |
33 |
MANDIR = $(prefix)/man |
MANDIR = @mandir@ |
34 |
|
|
35 |
CC = @CC@ |
CC = @CC@ |
36 |
CFLAGS = @CFLAGS@ |
CFLAGS = @CFLAGS@ |
45 |
LIBTOOL = @LIBTOOL@ |
LIBTOOL = @LIBTOOL@ |
46 |
LIBSUFFIX = @LIBSUFFIX@ |
LIBSUFFIX = @LIBSUFFIX@ |
47 |
|
|
48 |
|
# These are the version numbers for the shared libraries |
49 |
|
|
50 |
|
PCRELIBVERSION = @PCRE_LIB_VERSION@ |
51 |
|
PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@ |
52 |
|
|
53 |
|
|
54 |
#---------------------------------------------------------------------------# |
#---------------------------------------------------------------------------# |
55 |
# A copy of install-sh is in this distribution and is used by default. # |
# A copy of install-sh is in this distribution and is used by default. # |
110 |
@echo '--- Building shared library: libpcre' |
@echo '--- Building shared library: libpcre' |
111 |
@echo ' ' |
@echo ' ' |
112 |
-rm -f libpcre.la |
-rm -f libpcre.la |
113 |
libtool $(CC) -o libpcre.la -rpath $(LIBDIR) $(LOBJ) |
libtool $(CC) -version-info '$(PCRELIBVERSION)' -o libpcre.la -rpath $(LIBDIR) $(LOBJ) |
114 |
|
|
115 |
libpcreposix.a: pcreposix.o |
libpcreposix.a: pcreposix.o |
116 |
@echo ' ' |
@echo ' ' |
125 |
@echo '--- Building shared library: libpcreposix' |
@echo '--- Building shared library: libpcreposix' |
126 |
@echo ' ' |
@echo ' ' |
127 |
-rm -f libpcreposix.la |
-rm -f libpcreposix.la |
128 |
libtool $(CC) -o libpcreposix.la -rpath $(LIBDIR) pcreposix.lo |
libtool $(CC) -version-info '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la -rpath $(LIBDIR) pcreposix.lo |
129 |
|
|
130 |
pcre.o: chartables.c pcre.c pcre.h internal.h config.h Makefile |
pcre.o: chartables.c pcre.c pcre.h internal.h config.h Makefile |
131 |
$(LIBTOOL) $(CC) -c $(CFLAGS) pcre.c |
$(LIBTOOL) $(CC) -c $(CFLAGS) pcre.c |
164 |
$(INSTALL_DATA) doc/pcreposix.3 $(MANDIR)/man3/pcre.3 |
$(INSTALL_DATA) doc/pcreposix.3 $(MANDIR)/man3/pcre.3 |
165 |
$(INSTALL_DATA) doc/pgrep.1 $(MANDIR)/man1/pgrep.1 |
$(INSTALL_DATA) doc/pgrep.1 $(MANDIR)/man1/pgrep.1 |
166 |
@if test "$(LIBTOOL)" = "libtool"; then \ |
@if test "$(LIBTOOL)" = "libtool"; then \ |
167 |
|
echo ' '; \ |
168 |
echo '--- Rebuilding pgrep to use installed shared library ---'; \ |
echo '--- Rebuilding pgrep to use installed shared library ---'; \ |
169 |
echo $(CC) $(CFLAGS) -o pgrep pgrep.o -L$(LIBDIR) -lpcre; \ |
echo $(CC) $(CFLAGS) -o pgrep pgrep.o -L$(LIBDIR) -lpcre; \ |
170 |
$(CC) $(CFLAGS) -o pgrep pgrep.o -L$(LIBDIR) -lpcre; \ |
$(CC) $(CFLAGS) -o pgrep pgrep.o -L$(LIBDIR) -lpcre; \ |
171 |
|
echo '--- Rebuilding pcretest to use installed shared library ---'; \ |
172 |
|
echo $(CC) $(CFLAGS) -o pcretest pcretest.o -L$(LIBDIR) -lpcre -lpcreposix; \ |
173 |
|
$(CC) $(CFLAGS) -o pcretest pcretest.o -L$(LIBDIR) -lpcre -lpcreposix; \ |
174 |
fi |
fi |
175 |
$(INSTALL) pgrep $(BINDIR)/pgrep \ |
$(INSTALL) pgrep $(BINDIR)/pgrep |
176 |
|
$(INSTALL) pcre-config $(BINDIR)/pcre-config |
177 |
|
|
178 |
# We deliberately omit dftables and chartables.c from 'make clean'; once made |
# We deliberately omit dftables and chartables.c from 'make clean'; once made |
179 |
# chartables.c shouldn't change, and if people have edited the tables by hand, |
# chartables.c shouldn't change, and if people have edited the tables by hand, |
184 |
# But "make distclean" should get back to a virgin distribution |
# But "make distclean" should get back to a virgin distribution |
185 |
|
|
186 |
distclean: clean |
distclean: clean |
187 |
-rm -f chartables.c libtool \ |
-rm -f chartables.c libtool pcre-config pcre.h \ |
188 |
Makefile config.h config.status config.log config.cache |
Makefile config.h config.status config.log config.cache |
189 |
|
|
190 |
check: runtest |
check: runtest |