| 1 |
|
|
| 2 |
# Makefile.in for PCRE (Perl-Compatible Regular Expression) library. |
# Makefile.in for PCRE (Perl-Compatible Regular Expression) library. |
| 3 |
|
|
|
#---------------------------------------------------------------------------# |
|
|
# MinGW DLLs are built automatically with this configure.in and Makefile.in # |
|
|
# as long you are using autoconf 2.50 or higher. The Win32 static libraries # |
|
|
# have not been tested, but appear to be generated. This functionality is # |
|
|
# by courtesy of Fred Cox. I (Philip Hazel) don't know anything about it, # |
|
|
# as I live entirely in a non-Windows world. # |
|
|
#---------------------------------------------------------------------------# |
|
|
|
|
| 4 |
|
|
| 5 |
############################################################################# |
############################################################################# |
| 6 |
|
|
| 7 |
# PCRE is developed on a Unix system. I do not use Windows or Macs, and know |
# PCRE is developed on a Unix system. I do not use Windows or Macs, and know |
| 8 |
# nothing about building software on them. Although the code of PCRE should |
# nothing about building software on them. Although the code of PCRE should |
| 9 |
# be very portable, the building system in this Makefile is designed for Unix |
# be very portable, the building system in this Makefile is designed for Unix |
| 10 |
# systems, with the exception of the mingw32 stuff just mentioned. |
# systems. However, there are features that have been supplied to me by various |
| 11 |
|
# people that should make it work on MinGW and Cygwin systems. |
| 12 |
|
|
| 13 |
# This setting enables Unix-style directory scanning in pcregrep, triggered |
# This setting enables Unix-style directory scanning in pcregrep, triggered |
| 14 |
# by the -f option. Maybe one day someone will add code for other systems. |
# by the -f option. Maybe one day someone will add code for other systems. |
| 99 |
all: libpcre.la @POSIX_LIB@ pcretest@EXEEXT@ pcregrep@EXEEXT@ @ON_WINDOWS@ winshared |
all: libpcre.la @POSIX_LIB@ pcretest@EXEEXT@ pcregrep@EXEEXT@ @ON_WINDOWS@ winshared |
| 100 |
|
|
| 101 |
pcregrep@EXEEXT@: libpcre.la pcregrep.@OBJEXT@ @ON_WINDOWS@ winshared |
pcregrep@EXEEXT@: libpcre.la pcregrep.@OBJEXT@ @ON_WINDOWS@ winshared |
| 102 |
$(LINK) -o pcregrep@EXEEXT@ pcregrep.@OBJEXT@ -lpcre |
$(LINK) -o pcregrep@EXEEXT@ pcregrep.@OBJEXT@ libpcre.la |
| 103 |
|
|
| 104 |
pcretest@EXEEXT@: libpcre.la @POSIX_LIB@ pcretest.@OBJEXT@ @ON_WINDOWS@ winshared |
pcretest@EXEEXT@: libpcre.la @POSIX_LIB@ pcretest.@OBJEXT@ @ON_WINDOWS@ winshared |
| 105 |
$(LINK) $(PURIFY) $(EFENCE) -o pcretest@EXEEXT@ pcretest.@OBJEXT@ \ |
$(LINK) $(PURIFY) $(EFENCE) -o pcretest@EXEEXT@ pcretest.@OBJEXT@ \ |
| 106 |
-lpcre @POSIX_LIB@ |
libpcre.la @POSIX_LIB@ |
| 107 |
|
|
| 108 |
libpcre.la: $(OBJ) |
libpcre.la: $(OBJ) |
| 109 |
-rm -f libpcre.la |
-rm -f libpcre.la |
| 112 |
|
|
| 113 |
libpcreposix.la: pcreposix.@OBJEXT@ |
libpcreposix.la: pcreposix.@OBJEXT@ |
| 114 |
-rm -f libpcreposix.la |
-rm -f libpcreposix.la |
| 115 |
$(LINKLIB) -rpath $(LIBDIR) -L. -lpcre -version-info \ |
$(LINKLIB) -rpath $(LIBDIR) libpcre.la -version-info \ |
| 116 |
'$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo |
'$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo |
| 117 |
|
|
| 118 |
pcre.@OBJEXT@: $(top_srcdir)/chartables.c $(top_srcdir)/pcre.c \ |
pcre.@OBJEXT@: $(top_srcdir)/chartables.c $(top_srcdir)/pcre.c \ |
| 144 |
pcregrep.@OBJEXT@: $(top_srcdir)/pcregrep.c pcre.h Makefile config.h |
pcregrep.@OBJEXT@: $(top_srcdir)/pcregrep.c pcre.h Makefile config.h |
| 145 |
$(CC) -c $(CFLAGS) -I. $(UTF8) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c |
$(CC) -c $(CFLAGS) -I. $(UTF8) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c |
| 146 |
|
|
| 147 |
# Some Windows-specific targets, for Cygwin and MinGW |
# Some Windows-specific targets for MinGW. Do not use for Cygwin. |
| 148 |
|
|
| 149 |
winshared : .libs/@WIN_PREFIX@pcre.dll .libs/@WIN_PREFIX@pcreposix.dll |
winshared : .libs/@WIN_PREFIX@pcre.dll .libs/@WIN_PREFIX@pcreposix.dll |
| 150 |
|
|
| 168 |
.libs/@WIN_PREFIX@pcreposix.dll: libpcreposix.la libpcre.la |
.libs/@WIN_PREFIX@pcreposix.dll: libpcreposix.la libpcre.la |
| 169 |
$(CC) $(CFLAGS) -shared -o $@ \ |
$(CC) $(CFLAGS) -shared -o $@ \ |
| 170 |
-Wl,--whole-archive .libs/libpcreposix.a \ |
-Wl,--whole-archive .libs/libpcreposix.a \ |
| 171 |
-Wl,--out-implib,.libs/lib@WIN_PREFIX@pcreposix.dll.a \ |
-Wl,--out-implib,.libs/@WIN_PREFIX@pcreposix.dll.a \ |
| 172 |
-Wl,--output-def,.libs/@WIN_PREFIX@pcreposix.dll-def \ |
-Wl,--output-def,.libs/@WIN_PREFIX@libpcreposix.dll-def \ |
| 173 |
-Wl,--export-all-symbols \ |
-Wl,--export-all-symbols \ |
| 174 |
-Wl,--no-whole-archive .libs/libpcre.a |
-Wl,--no-whole-archive .libs/libpcre.a |
| 175 |
sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcreposix.dll'#" \ |
sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcreposix.dll'#" \ |