38 |
|
|
39 |
# LIBTOOL defaults to "", which cuts out the building of shared libraries. |
# LIBTOOL defaults to "", which cuts out the building of shared libraries. |
40 |
# If "configure" is called with --enable-shared-libraries, then LIBTOOL is |
# If "configure" is called with --enable-shared-libraries, then LIBTOOL is |
41 |
# set to "libtool", which causes shared libraries to be built, and LIBSUFFIX |
# 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 |
# is set to "la" instead of "a", which causes the shared libraries to be |
43 |
# installed. |
# installed. |
44 |
|
|
79 |
all: libtool libpcre.$(LIBSUFFIX) libpcreposix.$(LIBSUFFIX) pcretest pgrep |
all: libtool libpcre.$(LIBSUFFIX) libpcreposix.$(LIBSUFFIX) pcretest pgrep |
80 |
|
|
81 |
libtool: config.guess config.sub ltconfig ltmain.sh |
libtool: config.guess config.sub ltconfig ltmain.sh |
82 |
@if test "$(LIBTOOL)" = "libtool"; then \ |
@if test "$(LIBTOOL)" = "./libtool"; then \ |
83 |
echo '--- Building libtool ---'; \ |
echo '--- Building libtool ---'; \ |
84 |
./ltconfig ./ltmain.sh; \ |
./ltconfig ./ltmain.sh; \ |
85 |
echo '--- Built libtool ---'; fi |
echo '--- Built libtool ---'; fi |
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) -version-info '$(PCRELIBVERSION)' -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) -version-info '$(PCREPOSIXLIBVERSION)' -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 |
160 |
$(LIBTOOL) $(INSTALL_DATA) libpcre.$(LIBSUFFIX) $(LIBDIR)/libpcre.$(LIBSUFFIX) |
$(LIBTOOL) $(INSTALL_DATA) libpcre.$(LIBSUFFIX) $(LIBDIR)/libpcre.$(LIBSUFFIX) |
161 |
$(LIBTOOL) $(INSTALL_DATA) libpcreposix.$(LIBSUFFIX) $(LIBDIR)/libpcreposix.$(LIBSUFFIX) |
$(LIBTOOL) $(INSTALL_DATA) libpcreposix.$(LIBSUFFIX) $(LIBDIR)/libpcreposix.$(LIBSUFFIX) |
162 |
$(INSTALL_DATA) pcre.h $(INCDIR)/pcre.h |
$(INSTALL_DATA) pcre.h $(INCDIR)/pcre.h |
163 |
|
$(INSTALL_DATA) pcreposix.h $(INCDIR)/pcreposix.h |
164 |
$(INSTALL_DATA) doc/pcre.3 $(MANDIR)/man3/pcre.3 |
$(INSTALL_DATA) doc/pcre.3 $(MANDIR)/man3/pcre.3 |
165 |
$(INSTALL_DATA) doc/pcreposix.3 $(MANDIR)/man3/pcre.3 |
$(INSTALL_DATA) doc/pcreposix.3 $(MANDIR)/man3/pcreposix.3 |
166 |
$(INSTALL_DATA) doc/pgrep.1 $(MANDIR)/man1/pgrep.1 |
$(INSTALL_DATA) doc/pgrep.1 $(MANDIR)/man1/pgrep.1 |
167 |
@if test "$(LIBTOOL)" = "libtool"; then \ |
@if test "$(LIBTOOL)" = "./libtool"; then \ |
168 |
echo ' '; \ |
echo ' '; \ |
169 |
echo '--- Rebuilding pgrep to use installed shared library ---'; \ |
echo '--- Rebuilding pgrep to use installed shared library ---'; \ |
170 |
echo $(CC) $(CFLAGS) -o pgrep pgrep.o -L$(LIBDIR) -lpcre; \ |
echo $(CC) $(CFLAGS) -o pgrep pgrep.o -L$(LIBDIR) -lpcre; \ |