~ubuntu-branches/ubuntu/hoary/pcre3/hoary-security

« back to all changes in this revision

Viewing changes to Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2004-03-12 13:23:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040312132302-id6ksx1l8dwssbw9
Tags: 4.5-1.1
* NMU to fix rc-bugs.
* Update libtool related files to fix build-error on mips, keep original
  config.in, as it is no generated file. (Closes: #237265)
* pcregrep replaces pgrep. (Closes: #237564)
* Bump shlibs, pcre 4.5 includes two new functions.
* Let pgrep's /usr/share/doc symlink point to the package it depends on,
  pcregrep.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
# Makefile.in for PCRE (Perl-Compatible Regular Expression) library.
3
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  #
 
4
 
 
5
#############################################################################
 
6
 
 
7
# 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
 
9
# be very portable, the building system in this Makefile is designed for Unix
 
10
# 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
 
14
# by the -f option. Maybe one day someone will add code for other systems.
 
15
 
 
16
PCREGREP_OSTYPE=-DIS_UNIX
 
17
 
 
18
#############################################################################
 
19
 
 
20
 
 
21
#---------------------------------------------------------------------------#
 
22
# The following lines are modified by "configure" to insert data that it is #
17
23
# given in its arguments, or which it finds out for itself.                 #
18
24
#---------------------------------------------------------------------------#
19
25
 
20
 
# BINDIR is the directory in which the pcregrep command is installed.
21
 
# INCDIR is the directory in which the public header file pcre.h is installed.
 
26
SHELL = @SHELL@
 
27
prefix = @prefix@
 
28
exec_prefix = @exec_prefix@
 
29
top_srcdir = @top_srcdir@
 
30
 
 
31
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 
32
 
 
33
# NB: top_builddir is not referred to directly below, but it is used in the
 
34
# setting of $(LIBTOOL), so don't remove it!
 
35
 
 
36
top_builddir = .
 
37
 
 
38
# BINDIR is the directory in which the pcregrep, pcretest, and pcre-config
 
39
#          commands are installed.
 
40
# INCDIR is the directory in which the public header files pcre.h and
 
41
#          pcreposix.h are installed.
22
42
# LIBDIR is the directory in which the libraries are installed.
23
43
# 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
44
 
30
45
BINDIR = @bindir@
31
46
LIBDIR = @libdir@
32
47
INCDIR = @includedir@
33
48
MANDIR = @mandir@
34
49
 
 
50
# EXEEXT is set by configure to the extention of an executable file
 
51
# OBJEXT is set by configure to the extention of an object file
 
52
# The BUILD_* equivalents are the same but for the host we're building on
 
53
 
 
54
EXEEXT = @EXEEXT@
 
55
OBJEXT = @OBJEXT@
 
56
# Note that these are just here to have a convenient place to look at the
 
57
# outcome.
 
58
BUILD_EXEEXT = @BUILD_EXEEXT@
 
59
BUILD_OBJEXT = @BUILD_OBJEXT@
 
60
 
 
61
# The compiler, C flags, preprocessor flags, etc
 
62
 
35
63
CC = @CC@
36
64
CFLAGS = @CFLAGS@
37
 
RANLIB = @RANLIB@
38
 
UTF8   = @UTF8@
39
 
 
40
 
# LIBTOOL defaults to "./libtool", which enables the building of shared
41
 
# libraries. If "configure" is called with --disable-shared-libraries, LIBTOOL
42
 
# is set to "", which stops shared libraries from being built, and LIBSUFFIX
43
 
# is set to "a" instead of "la", which causes the shared libraries not to be
44
 
# installed.
 
65
CPPFLAGS = @CPPFLAGS@
 
66
 
 
67
CC_FOR_BUILD = @CC_FOR_BUILD@
 
68
CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
 
69
CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
 
70
 
 
71
UTF8 = @UTF8@
 
72
NEWLINE = @NEWLINE@
 
73
POSIX_MALLOC_THRESHOLD = @POSIX_MALLOC_THRESHOLD@
 
74
LINK_SIZE = @LINK_SIZE@
 
75
MATCH_LIMIT = @MATCH_LIMIT@
 
76
NO_RECURSE = @NO_RECURSE@
 
77
EBCDIC = @EBCDIC@
 
78
 
 
79
INSTALL = @INSTALL@
 
80
INSTALL_DATA = @INSTALL_DATA@
 
81
 
 
82
# LIBTOOL enables the building of shared and static libraries. It is set up
 
83
# to do one or the other or both by ./configure.
45
84
 
46
85
LIBTOOL = @LIBTOOL@
47
 
LIBSUFFIX = @LIBSUFFIX@
 
86
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT) $(NO_RECURSE) $(EBCDIC)
 
87
@ON_WINDOWS@LINK = $(CC) $(CFLAGS) -I. -I$(top_srcdir) -L.libs
 
88
@NOT_ON_WINDOWS@LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -I. -I$(top_srcdir)
 
89
LINKLIB = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -I. -I$(top_srcdir)
 
90
LINK_FOR_BUILD = $(LIBTOOL) --mode=link $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -I. -I$(top_srcdir)
48
91
 
49
92
# These are the version numbers for the shared libraries
50
93
 
51
94
PCRELIBVERSION = @PCRE_LIB_VERSION@
52
95
PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@
53
96
 
54
 
 
55
 
#---------------------------------------------------------------------------#
56
 
# A copy of install-sh is in this distribution and is used by default.      #
57
 
#---------------------------------------------------------------------------#
58
 
 
59
 
INSTALL = ./install-sh -c
60
 
INSTALL_DATA = ${INSTALL} -m 644
61
 
 
62
 
 
63
 
#---------------------------------------------------------------------------#
64
 
# For almost all systems, the command to create a library is "ar cq", but   #
65
 
# there is at least one where it is different, so this command must be      #
66
 
# configurable. However, I haven't got round to learning how to make        #
67
 
# "configure" find this out for itself. It is necessary to use a command    #
68
 
# such as "make AR='ar -rc'" if you need to vary this. The setting of AR is #
69
 
# *not* passed over to ./ltconfig, because it does its own setting up.      #
70
 
#---------------------------------------------------------------------------#
71
 
 
72
 
AR = ar cq
73
 
 
74
 
 
75
97
##############################################################################
76
98
 
77
99
 
78
 
OBJ = maketables.o get.o study.o pcre.o
79
 
LOBJ = maketables.lo get.lo study.lo pcre.lo
80
 
 
81
 
all:            libtool libpcre.$(LIBSUFFIX) libpcreposix.$(LIBSUFFIX) pcretest pcregrep
82
 
 
83
 
libtool:        config.guess config.sub ltconfig ltmain.sh
84
 
                @if test "$(LIBTOOL)" = "./libtool"; then \
85
 
                  echo '--- Building libtool ---'; \
86
 
                  CC=$(CC) CFLAGS='$(CFLAGS)' RANLIB='$(RANLIB)' ./ltconfig ./ltmain.sh; \
87
 
                  echo '--- Built libtool ---'; fi
88
 
 
89
 
pcregrep:       libpcre.$(LIBSUFFIX) pcregrep.o
90
 
                  @echo ' '
91
 
                  @echo '--- Building pcregrep utility'
92
 
                  @echo ' '
93
 
                $(LIBTOOL) $(CC) $(CFLAGS) -o pcregrep pcregrep.o libpcre.$(LIBSUFFIX)
94
 
 
95
 
pcretest:       libpcre.$(LIBSUFFIX) libpcreposix.$(LIBSUFFIX) pcretest.o
96
 
                  @echo ' '
97
 
                  @echo '--- Building pcretest testing program'
98
 
                  @echo ' '
99
 
                $(LIBTOOL) $(PURIFY) $(CC) $(CFLAGS) -o pcretest pcretest.o \
100
 
                  libpcre.$(LIBSUFFIX) libpcreposix.$(LIBSUFFIX)
101
 
 
102
 
libpcre.a:      $(OBJ)
103
 
                @echo ' '
104
 
                @echo '--- Building static library: libpcre'
105
 
                @echo ' '
106
 
                -rm -f libpcre.a
107
 
                $(AR) libpcre.a $(OBJ)
108
 
                $(RANLIB) libpcre.a
 
100
OBJ = maketables.@OBJEXT@ get.@OBJEXT@ study.@OBJEXT@ pcre.@OBJEXT@ @POSIX_OBJ@
 
101
LOBJ = maketables.lo get.lo study.lo pcre.lo @POSIX_LOBJ@
 
102
 
 
103
all:            libpcre.la @POSIX_LIB@ pcretest@EXEEXT@ pcregrep@EXEEXT@ @ON_WINDOWS@ winshared
 
104
 
 
105
pcregrep@EXEEXT@: libpcre.la pcregrep.@OBJEXT@ @ON_WINDOWS@ winshared
 
106
                $(LINK) -o pcregrep@EXEEXT@ pcregrep.@OBJEXT@ libpcre.la
 
107
 
 
108
pcretest@EXEEXT@: libpcre.la @POSIX_LIB@ pcretest.@OBJEXT@ @ON_WINDOWS@ winshared
 
109
                $(LINK) $(PURIFY) $(EFENCE) -o pcretest@EXEEXT@  pcretest.@OBJEXT@ \
 
110
                libpcre.la @POSIX_LIB@
109
111
 
110
112
libpcre.la:     $(OBJ)
111
 
                @echo ' '
112
 
                @echo '--- Building shared library: libpcre'
113
 
                @echo ' '
114
113
                -rm -f libpcre.la
115
 
                ./libtool $(CC) -version-info '$(PCRELIBVERSION)' -o libpcre.la -rpath $(LIBDIR) $(LOBJ)
116
 
 
117
 
libpcreposix.a: pcreposix.o
118
 
                @echo ' '
119
 
                @echo '--- Building static library: libpcreposix'
120
 
                @echo ' '
121
 
                -rm -f libpcreposix.a
122
 
                $(AR) libpcreposix.a pcreposix.o
123
 
                $(RANLIB) libpcreposix.a
124
 
 
125
 
libpcreposix.la: pcreposix.o
126
 
                @echo ' '
127
 
                @echo '--- Building shared library: libpcreposix'
128
 
                @echo ' '
 
114
                $(LINKLIB) -rpath $(LIBDIR) -version-info \
 
115
                '$(PCRELIBVERSION)' -o libpcre.la $(LOBJ)
 
116
 
 
117
libpcreposix.la: libpcre.la pcreposix.@OBJEXT@
129
118
                -rm -f libpcreposix.la
130
 
                ./libtool $(CC) -version-info '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la -rpath $(LIBDIR) pcreposix.lo
131
 
 
132
 
pcre.o:         chartables.c pcre.c pcre.h internal.h config.h Makefile
133
 
                $(LIBTOOL) $(CC) -c $(CFLAGS) $(UTF8) pcre.c
134
 
 
135
 
pcreposix.o:    pcreposix.c pcreposix.h internal.h pcre.h config.h Makefile
136
 
                $(LIBTOOL) $(CC) -c $(CFLAGS) pcreposix.c
137
 
 
138
 
maketables.o:   maketables.c pcre.h internal.h config.h Makefile
139
 
                $(LIBTOOL) $(CC) -c $(CFLAGS) maketables.c
140
 
 
141
 
get.o:          get.c pcre.h internal.h config.h Makefile
142
 
                $(LIBTOOL) $(CC) -c $(CFLAGS) get.c
143
 
 
144
 
study.o:        study.c pcre.h internal.h config.h Makefile
145
 
                $(LIBTOOL) $(CC) -c $(CFLAGS) $(UTF8) study.c
146
 
 
147
 
pcretest.o:     pcretest.c pcre.h config.h Makefile
148
 
                $(CC) -c $(CFLAGS) $(UTF8) pcretest.c
149
 
 
150
 
pcregrep.o:     pcregrep.c pcre.h Makefile config.h
151
 
                $(CC) -c $(CFLAGS) $(UTF8) pcregrep.c
 
119
                $(LINKLIB) -rpath $(LIBDIR) libpcre.la -version-info \
 
120
                '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
 
121
 
 
122
pcre.@OBJEXT@:  $(top_srcdir)/chartables.c $(top_srcdir)/pcre.c \
 
123
                $(top_srcdir)/internal.h $(top_srcdir)/printint.c \
 
124
                pcre.h config.h Makefile
 
125
                $(LTCOMPILE) $(UTF8) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcre.c
 
126
 
 
127
pcreposix.@OBJEXT@: $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \
 
128
                $(top_srcdir)/internal.h pcre.h config.h Makefile
 
129
                $(LTCOMPILE) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcreposix.c
 
130
 
 
131
maketables.@OBJEXT@:   $(top_srcdir)/maketables.c $(top_srcdir)/internal.h \
 
132
                pcre.h config.h Makefile
 
133
                $(LTCOMPILE) $(top_srcdir)/maketables.c
 
134
 
 
135
get.@OBJEXT@:          $(top_srcdir)/get.c $(top_srcdir)/internal.h \
 
136
                pcre.h config.h Makefile
 
137
                $(LTCOMPILE) $(top_srcdir)/get.c
 
138
 
 
139
study.@OBJEXT@:        $(top_srcdir)/study.c $(top_srcdir)/internal.h \
 
140
                pcre.h config.h Makefile
 
141
                $(LTCOMPILE) $(UTF8) $(top_srcdir)/study.c
 
142
 
 
143
pcretest.@OBJEXT@:     $(top_srcdir)/pcretest.c $(top_srcdir)/internal.h \
 
144
                $(top_srcdir)/printint.c \
 
145
                pcre.h config.h Makefile
 
146
                $(CC) -c $(CFLAGS) -I. $(UTF8) $(LINK_SIZE) $(top_srcdir)/pcretest.c
 
147
 
 
148
pcregrep.@OBJEXT@:     $(top_srcdir)/pcregrep.c pcre.h Makefile config.h
 
149
                $(CC) -c $(CFLAGS) -I. $(UTF8) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
 
150
 
 
151
# Some Windows-specific targets for MinGW. Do not use for Cygwin.
 
152
 
 
153
winshared : .libs/@WIN_PREFIX@pcre.dll .libs/@WIN_PREFIX@pcreposix.dll
 
154
 
 
155
.libs/@WIN_PREFIX@pcre.dll : libpcre.la
 
156
        $(CC) $(CFLAGS) -shared -o $@ \
 
157
        -Wl,--whole-archive .libs/libpcre.a \
 
158
        -Wl,--out-implib,.libs/libpcre.dll.a \
 
159
        -Wl,--output-def,.libs/@WIN_PREFIX@pcre.dll-def \
 
160
        -Wl,--export-all-symbols \
 
161
        -Wl,--no-whole-archive
 
162
        sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcre.dll'#" \
 
163
        -e "s#library_names=''#library_names='libpcre.dll.a'#" \
 
164
        < .libs/libpcre.lai > .libs/libpcre.lai.tmp && \
 
165
        mv .libs/libpcre.lai.tmp .libs/libpcre.lai
 
166
        sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcre.dll'#" \
 
167
        -e "s#library_names=''#library_names='libpcre.dll.a'#" \
 
168
        < libpcre.la > libpcre.la.tmp && \
 
169
        mv libpcre.la.tmp libpcre.la
 
170
 
 
171
 
 
172
.libs/@WIN_PREFIX@pcreposix.dll: libpcreposix.la libpcre.la
 
173
        $(CC) $(CFLAGS) -shared -o $@ \
 
174
        -Wl,--whole-archive .libs/libpcreposix.a \
 
175
        -Wl,--out-implib,.libs/@WIN_PREFIX@pcreposix.dll.a \
 
176
        -Wl,--output-def,.libs/@WIN_PREFIX@libpcreposix.dll-def \
 
177
        -Wl,--export-all-symbols \
 
178
        -Wl,--no-whole-archive .libs/libpcre.a
 
179
        sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcreposix.dll'#" \
 
180
        -e "s#library_names=''#library_names='libpcreposix.dll.a'#"\
 
181
        < .libs/libpcreposix.lai > .libs/libpcreposix.lai.tmp && \
 
182
        mv .libs/libpcreposix.lai.tmp .libs/libpcreposix.lai
 
183
        sed -e "s#dlname=''#dlname='../bin/@WIN_PREFIX@pcreposix.dll'#" \
 
184
        -e "s#library_names=''#library_names='libpcreposix.dll.a'#"\
 
185
        < libpcreposix.la > libpcreposix.la.tmp && \
 
186
        mv libpcreposix.la.tmp libpcreposix.la
 
187
 
 
188
 
 
189
wininstall : winshared
 
190
        $(mkinstalldirs) $(DESTDIR)$(LIBDIR)
 
191
        $(mkinstalldirs) $(DESTDIR)$(BINDIR)
 
192
        $(INSTALL) .libs/@WIN_PREFIX@pcre.dll $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcre.dll
 
193
        $(INSTALL) .libs/@WIN_PREFIX@pcreposix.dll $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcreposix.dll
 
194
        $(INSTALL) .libs/@WIN_PREFIX@libpcreposix.dll.a $(DESTDIR)$(LIBDIR)/@WIN_PREFIX@libpcreposix.dll.a
 
195
        $(INSTALL) .libs/@WIN_PREFIX@libpcre.dll.a $(DESTDIR)$(LIBDIR)/@WIN_PREFIX@libpcre.dll.a
 
196
        -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcre.dll
 
197
        -strip -g $(DESTDIR)$(BINDIR)/@WIN_PREFIX@pcreposix.dll
 
198
        -strip $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
 
199
        -strip $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
152
200
 
153
201
# An auxiliary program makes the default character table source
154
202
 
155
 
chartables.c:   dftables
156
 
                ./dftables >chartables.c
157
 
 
158
 
dftables:       dftables.c maketables.c pcre.h internal.h config.h Makefile
159
 
                $(CC) -o dftables $(CFLAGS) dftables.c
160
 
 
161
 
install:        all
162
 
                $(LIBTOOL) $(INSTALL_DATA) libpcre.$(LIBSUFFIX) $(DESTDIR)/$(LIBDIR)/libpcre.$(LIBSUFFIX)
163
 
                $(LIBTOOL) $(INSTALL_DATA) libpcreposix.$(LIBSUFFIX) $(DESTDIR)/$(LIBDIR)/libpcreposix.$(LIBSUFFIX)
164
 
                $(INSTALL_DATA) pcre.h $(DESTDIR)/$(INCDIR)/pcre.h
165
 
                $(INSTALL_DATA) pcreposix.h $(DESTDIR)/$(INCDIR)/pcreposix.h
166
 
                $(INSTALL_DATA) doc/pcre.3 $(DESTDIR)/$(MANDIR)/man3/pcre.3
167
 
                $(INSTALL_DATA) doc/pcreposix.3 $(DESTDIR)/$(MANDIR)/man3/pcreposix.3
168
 
                $(INSTALL_DATA) doc/pcregrep.1 $(DESTDIR)/$(MANDIR)/man1/pcregrep.1
169
 
                @if test "$(LIBTOOL)" = "./libtool"; then \
170
 
                  echo ' '; \
171
 
                  echo '--- Rebuilding pcregrep to use installed shared library ---'; \
172
 
                  echo $(CC) $(CFLAGS) -o pcregrep pcregrep.o -L$(DESTDIR)/$(LIBDIR) -lpcre; \
173
 
                  $(CC) $(CFLAGS) -o pcregrep pcregrep.o -L$(DESTDIR)/$(LIBDIR) -lpcre; \
174
 
                  echo '--- Rebuilding pcretest to use installed shared library ---'; \
175
 
                  echo $(CC) $(CFLAGS) -o pcretest pcretest.o -L$(DESTDIR)/$(LIBDIR) -lpcre -lpcreposix; \
176
 
                  $(CC) $(CFLAGS) -o pcretest pcretest.o -L$(DESTDIR)/$(LIBDIR) -lpcre -lpcreposix; \
177
 
                fi
178
 
                $(INSTALL)      pcregrep $(DESTDIR)/$(BINDIR)/pcregrep
179
 
                $(INSTALL)      pcre-config $(DESTDIR)/$(BINDIR)/pcre-config
 
203
$(top_srcdir)/chartables.c:   dftables
 
204
                ./dftables $(top_srcdir)/chartables.c
 
205
 
 
206
dftables.@BUILD_OBJEXT@:     $(top_srcdir)/dftables.c $(top_srcdir)/maketables.c \
 
207
                $(top_srcdir)/internal.h pcre.h config.h Makefile
 
208
                $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -I. $(top_srcdir)/dftables.c
 
209
 
 
210
dftables:       dftables.@BUILD_OBJEXT@
 
211
                $(LINK_FOR_BUILD) -o dftables dftables.@OBJEXT@
 
212
 
 
213
install:        all @ON_WINDOWS@ wininstall
 
214
@NOT_ON_WINDOWS@               $(mkinstalldirs) $(DESTDIR)$(LIBDIR)
 
215
@NOT_ON_WINDOWS@               echo "$(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la"
 
216
@NOT_ON_WINDOWS@               $(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la
 
217
@NOT_ON_WINDOWS@               echo "$(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la"
 
218
@NOT_ON_WINDOWS@               $(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la
 
219
@NOT_ON_WINDOWS@               $(LIBTOOL) --finish $(DESTDIR)$(LIBDIR)
 
220
                $(mkinstalldirs) $(DESTDIR)$(INCDIR)
 
221
                $(INSTALL_DATA) pcre.h $(DESTDIR)$(INCDIR)/pcre.h
 
222
                $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)$(INCDIR)/pcreposix.h
 
223
                $(mkinstalldirs) $(DESTDIR)$(MANDIR)/man3
 
224
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre.3 $(DESTDIR)$(MANDIR)/man3/pcre.3
 
225
                $(INSTALL_DATA) $(top_srcdir)/doc/pcreapi.3 $(DESTDIR)$(MANDIR)/man3/pcreapi.3
 
226
                $(INSTALL_DATA) $(top_srcdir)/doc/pcrebuild.3 $(DESTDIR)$(MANDIR)/man3/pcrebuild.3
 
227
                $(INSTALL_DATA) $(top_srcdir)/doc/pcrecallout.3 $(DESTDIR)$(MANDIR)/man3/pcrecallout.3
 
228
                $(INSTALL_DATA) $(top_srcdir)/doc/pcrecompat.3 $(DESTDIR)$(MANDIR)/man3/pcrecompat.3
 
229
                $(INSTALL_DATA) $(top_srcdir)/doc/pcrepattern.3 $(DESTDIR)$(MANDIR)/man3/pcrepattern.3
 
230
                $(INSTALL_DATA) $(top_srcdir)/doc/pcreperform.3 $(DESTDIR)$(MANDIR)/man3/pcreperform.3
 
231
                $(INSTALL_DATA) $(top_srcdir)/doc/pcreposix.3 $(DESTDIR)$(MANDIR)/man3/pcreposix.3
 
232
                $(INSTALL_DATA) $(top_srcdir)/doc/pcresample.3 $(DESTDIR)$(MANDIR)/man3/pcresample.3
 
233
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_compile.3 $(DESTDIR)$(MANDIR)/man3/pcre_compile.3
 
234
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_config.3 $(DESTDIR)$(MANDIR)/man3/pcre_config.3
 
235
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_named_substring.3
 
236
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_substring.3
 
237
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_exec.3 $(DESTDIR)$(MANDIR)/man3/pcre_exec.3
 
238
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring.3
 
239
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring_list.3
 
240
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_fullinfo.3 $(DESTDIR)$(MANDIR)/man3/pcre_fullinfo.3
 
241
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_named_substring.3
 
242
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_stringnumber.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_stringnumber.3
 
243
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring.3
 
244
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring_list.3
 
245
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_info.3 $(DESTDIR)$(MANDIR)/man3/pcre_info.3
 
246
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_maketables.3 $(DESTDIR)$(MANDIR)/man3/pcre_maketables.3
 
247
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_study.3 $(DESTDIR)$(MANDIR)/man3/pcre_study.3
 
248
                $(INSTALL_DATA) $(top_srcdir)/doc/pcre_version.3 $(DESTDIR)$(MANDIR)/man3/pcre_version.3
 
249
                $(mkinstalldirs) $(DESTDIR)$(MANDIR)/man1
 
250
                $(INSTALL_DATA) $(top_srcdir)/doc/pcregrep.1 $(DESTDIR)$(MANDIR)/man1/pcregrep.1
 
251
                $(INSTALL_DATA) $(top_srcdir)/doc/pcretest.1 $(DESTDIR)$(MANDIR)/man1/pcretest.1
 
252
                $(mkinstalldirs) $(DESTDIR)$(BINDIR)
 
253
                $(LIBTOOL) --mode=install $(INSTALL) pcregrep@EXEEXT@ $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
 
254
                $(LIBTOOL) --mode=install $(INSTALL) pcretest@EXEEXT@ $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
 
255
                $(INSTALL) pcre-config $(DESTDIR)$(BINDIR)/pcre-config
180
256
 
181
257
# We deliberately omit dftables and chartables.c from 'make clean'; once made
182
258
# chartables.c shouldn't change, and if people have edited the tables by hand,
183
259
# you don't want to throw them away.
184
260
 
185
 
clean:;         -rm -rf *.o *.lo *.a *.la .libs pcretest pcregrep testtry
 
261
clean:;         -rm -rf *.@OBJEXT@ *.lo *.a *.la .libs pcretest@EXEEXT@ pcregrep@EXEEXT@ testtry
186
262
 
187
263
# But "make distclean" should get back to a virgin distribution
188
264
 
192
268
 
193
269
check:          runtest
194
270
 
 
271
@WIN_PREFIX@pcre.dll : winshared
 
272
        cp .libs/@WIN_PREFIX@pcre.dll .
 
273
 
195
274
test:           runtest
196
275
 
197
 
runtest:        all
198
 
                ./RunTest
199
 
 
200
 
######## MINGW32 ############### MINGW32 ############### MINGW32 #############
201
 
 
202
 
# This addition for mingw32 was contributed by  Paul Sokolovsky
203
 
# <Paul.Sokolovsky@technologist.com>. I (PH) don't know anything about it!
204
 
 
205
 
dll:            _dll libpcre.dll.a pcregrep_d pcretest_d
206
 
 
207
 
_dll:
208
 
                $(MAKE) CFLAGS=-DSTATIC pcre.dll
209
 
 
210
 
pcre.dll:       $(OBJ) pcreposix.o pcre.def
211
 
libpcre.dll.a:  pcre.def
212
 
 
213
 
pcregrep_d:     libpcre.dll.a pcregrep.o
214
 
                $(CC) $(CFLAGS) -L. -o pcregrep pcregrep.o -lpcre.dll
215
 
 
216
 
pcretest_d:     libpcre.dll.a pcretest.o
217
 
                $(PURIFY) $(CC) $(CFLAGS) -L. -o pcretest pcretest.o -lpcre.dll
 
276
runtest:        all @ON_WINDOWS@ @WIN_PREFIX@pcre.dll
 
277
                @./RunTest
218
278
 
219
279
# End