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

Diff of /code/trunk/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 65 by nigel, Sat Feb 24 21:40:08 2007 UTC revision 73 by nigel, Sat Feb 24 21:40:30 2007 UTC
# Line 1  Line 1 
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.
# Line 54  LIBDIR = @libdir@ Line 47  LIBDIR = @libdir@
47  INCDIR = @includedir@  INCDIR = @includedir@
48  MANDIR = @mandir@  MANDIR = @mandir@
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    
63  CC = @CC@  CC = @CC@
64  CFLAGS = @CFLAGS@  CFLAGS = @CFLAGS@
65    CPPFLAGS = @CPPFLAGS@
66    
67  CC_FOR_BUILD = @CC_FOR_BUILD@  CC_FOR_BUILD = @CC_FOR_BUILD@
68  CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@  CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
69    CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
70    
71  UTF8 = @UTF8@  UTF8 = @UTF8@
72  NEWLINE = @NEWLINE@  NEWLINE = @NEWLINE@
73  POSIX_MALLOC_THRESHOLD = @POSIX_MALLOC_THRESHOLD@  POSIX_MALLOC_THRESHOLD = @POSIX_MALLOC_THRESHOLD@
74  LINK_SIZE = @LINK_SIZE@  LINK_SIZE = @LINK_SIZE@
75  MATCH_LIMIT= @MATCH_LIMIT@  MATCH_LIMIT = @MATCH_LIMIT@
76    NO_RECURSE = @NO_RECURSE@
77    EBCDIC = @EBCDIC@
78    
79  INSTALL = @INSTALL@  INSTALL = @INSTALL@
80  INSTALL_DATA = @INSTALL_DATA@  INSTALL_DATA = @INSTALL_DATA@
# Line 71  INSTALL_DATA = @INSTALL_DATA@ Line 83  INSTALL_DATA = @INSTALL_DATA@
83  # to do one or the other or both by ./configure.  # to do one or the other or both by ./configure.
84    
85  LIBTOOL = @LIBTOOL@  LIBTOOL = @LIBTOOL@
86  LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT)  LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT) $(NO_RECURSE) $(EBCDIC)
87  LINK = $(LIBTOOL) --mode=link $(CC) --no-undefined $(CFLAGS) -I. -I$(top_srcdir)  @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)
91    
92  # These are the version numbers for the shared libraries  # These are the version numbers for the shared libraries
93    
# Line 82  PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VER Line 97  PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VER
97  ##############################################################################  ##############################################################################
98    
99    
100  OBJ = maketables.o get.o study.o pcre.o @POSIX_OBJ@  OBJ = maketables.@OBJEXT@ get.@OBJEXT@ study.@OBJEXT@ pcre.@OBJEXT@ @POSIX_OBJ@
101  LOBJ = maketables.lo get.lo study.lo pcre.lo @POSIX_LOBJ@  LOBJ = maketables.lo get.lo study.lo pcre.lo @POSIX_LOBJ@
102    
103  all:            libpcre.la @POSIX_LIB@ pcretest pcregrep  all:            libpcre.la @POSIX_LIB@ pcretest@EXEEXT@ pcregrep@EXEEXT@ @ON_WINDOWS@ winshared
104    
105  pcregrep:       libpcre.la pcregrep.o  pcregrep@EXEEXT@: libpcre.la pcregrep.@OBJEXT@ @ON_WINDOWS@ winshared
106                  $(LINK) -o pcregrep pcregrep.o libpcre.la                  $(LINK) -o pcregrep@EXEEXT@ pcregrep.@OBJEXT@ libpcre.la
107    
108  pcretest:       libpcre.la @POSIX_LIB@ pcretest.o  pcretest@EXEEXT@: libpcre.la @POSIX_LIB@ pcretest.@OBJEXT@ @ON_WINDOWS@ winshared
109                  $(LINK) $(PURIFY) $(EFENCE) -o pcretest pcretest.o \                  $(LINK) $(PURIFY) $(EFENCE) -o pcretest@EXEEXT@  pcretest.@OBJEXT@ \
110                  libpcre.la @POSIX_LIB@                  libpcre.la @POSIX_LIB@
111    
112  libpcre.la:     $(OBJ)  libpcre.la:     $(OBJ)
113                  -rm -f libpcre.la                  -rm -f libpcre.la
114                  $(LINK) -rpath $(LIBDIR) -version-info \                  $(LINKLIB) -rpath $(LIBDIR) -version-info \
115                  '$(PCRELIBVERSION)' -o libpcre.la $(LOBJ)                  '$(PCRELIBVERSION)' -o libpcre.la $(LOBJ)
116    
117  libpcreposix.la: pcreposix.o  libpcreposix.la: libpcre.la pcreposix.@OBJEXT@
118                  -rm -f libpcreposix.la                  -rm -f libpcreposix.la
119                  $(LINK) -rpath $(LIBDIR) -L. -lpcre -version-info \                  $(LINKLIB) -rpath $(LIBDIR) libpcre.la -version-info \
120                  '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo                  '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
121    
122  pcre.o:         $(top_srcdir)/chartables.c $(top_srcdir)/pcre.c \  pcre.@OBJEXT@:  $(top_srcdir)/chartables.c $(top_srcdir)/pcre.c \
123                  $(top_srcdir)/internal.h $(top_srcdir)/printint.c \                  $(top_srcdir)/internal.h $(top_srcdir)/printint.c \
124                  pcre.h config.h Makefile                  pcre.h config.h Makefile
125                  $(LTCOMPILE) $(UTF8) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcre.c                  $(LTCOMPILE) $(UTF8) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcre.c
126    
127  pcreposix.o:    $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \  pcreposix.@OBJEXT@: $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \
128                  $(top_srcdir)/internal.h pcre.h config.h Makefile                  $(top_srcdir)/internal.h pcre.h config.h Makefile
129                  $(LTCOMPILE) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcreposix.c                  $(LTCOMPILE) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcreposix.c
130    
131  maketables.o:   $(top_srcdir)/maketables.c $(top_srcdir)/internal.h \  maketables.@OBJEXT@:   $(top_srcdir)/maketables.c $(top_srcdir)/internal.h \
132                  pcre.h config.h Makefile                  pcre.h config.h Makefile
133                  $(LTCOMPILE) $(top_srcdir)/maketables.c                  $(LTCOMPILE) $(top_srcdir)/maketables.c
134    
135  get.o:          $(top_srcdir)/get.c $(top_srcdir)/internal.h \  get.@OBJEXT@:          $(top_srcdir)/get.c $(top_srcdir)/internal.h \
136                  pcre.h config.h Makefile                  pcre.h config.h Makefile
137                  $(LTCOMPILE) $(top_srcdir)/get.c                  $(LTCOMPILE) $(top_srcdir)/get.c
138    
139  study.o:        $(top_srcdir)/study.c $(top_srcdir)/internal.h \  study.@OBJEXT@:        $(top_srcdir)/study.c $(top_srcdir)/internal.h \
140                  pcre.h config.h Makefile                  pcre.h config.h Makefile
141                  $(LTCOMPILE) $(UTF8) $(top_srcdir)/study.c                  $(LTCOMPILE) $(UTF8) $(top_srcdir)/study.c
142    
143  pcretest.o:     $(top_srcdir)/pcretest.c $(top_srcdir)/internal.h \  pcretest.@OBJEXT@:     $(top_srcdir)/pcretest.c $(top_srcdir)/internal.h \
144                  $(top_srcdir)/printint.c \                  $(top_srcdir)/printint.c \
145                  pcre.h config.h Makefile                  pcre.h config.h Makefile
146                  $(CC) -c $(CFLAGS) -I. $(UTF8) $(LINK_SIZE) $(top_srcdir)/pcretest.c                  $(CC) -c $(CFLAGS) -I. $(UTF8) $(LINK_SIZE) $(top_srcdir)/pcretest.c
147    
148  pcregrep.o:     $(top_srcdir)/pcregrep.c pcre.h Makefile config.h  pcregrep.@OBJEXT@:     $(top_srcdir)/pcregrep.c pcre.h Makefile config.h
149                  $(CC) -c $(CFLAGS) -I. $(UTF8) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c                  $(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@
200    
201  # An auxiliary program makes the default character table source  # An auxiliary program makes the default character table source
202    
203  $(top_srcdir)/chartables.c:   dftables  $(top_srcdir)/chartables.c:   dftables
204                  ./dftables >$(top_srcdir)/chartables.c                  ./dftables $(top_srcdir)/chartables.c
205    
206  dftables.o:     $(top_srcdir)/dftables.c $(top_srcdir)/maketables.c \  dftables.@BUILD_OBJEXT@:     $(top_srcdir)/dftables.c $(top_srcdir)/maketables.c \
207                  $(top_srcdir)/internal.h pcre.h config.h Makefile                  $(top_srcdir)/internal.h pcre.h config.h Makefile
208                  $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -I. $(top_srcdir)/dftables.c                  $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -I. $(top_srcdir)/dftables.c
209    
210  dftables:       dftables.o  dftables:       dftables.@BUILD_OBJEXT@
211                  $(LINK) -o dftables dftables.o                  $(LINK_FOR_BUILD) -o dftables dftables.@OBJEXT@
212    
213  install:        all  install:        all @ON_WINDOWS@ wininstall
214                  $(mkinstalldirs) $(DESTDIR)$(LIBDIR)  @NOT_ON_WINDOWS@               $(mkinstalldirs) $(DESTDIR)$(LIBDIR)
215                  echo "$(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la"  @NOT_ON_WINDOWS@               echo "$(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la"
216                  $(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la  @NOT_ON_WINDOWS@               $(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la
217                  echo "$(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la"  @NOT_ON_WINDOWS@               echo "$(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la"
218                  $(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la  @NOT_ON_WINDOWS@               $(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la
219                  $(LIBTOOL) --finish $(DESTDIR)$(LIBDIR)  @NOT_ON_WINDOWS@               $(LIBTOOL) --finish $(DESTDIR)$(LIBDIR)
220                  $(mkinstalldirs) $(DESTDIR)$(INCDIR)                  $(mkinstalldirs) $(DESTDIR)$(INCDIR)
221                  $(INSTALL_DATA) pcre.h $(DESTDIR)$(INCDIR)/pcre.h                  $(INSTALL_DATA) pcre.h $(DESTDIR)$(INCDIR)/pcre.h
222                  $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)$(INCDIR)/pcreposix.h                  $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)$(INCDIR)/pcreposix.h
# Line 185  install:        all Line 250  install:        all
250                  $(INSTALL_DATA) $(top_srcdir)/doc/pcregrep.1 $(DESTDIR)$(MANDIR)/man1/pcregrep.1                  $(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                  $(INSTALL_DATA) $(top_srcdir)/doc/pcretest.1 $(DESTDIR)$(MANDIR)/man1/pcretest.1
252                  $(mkinstalldirs) $(DESTDIR)$(BINDIR)                  $(mkinstalldirs) $(DESTDIR)$(BINDIR)
253                  $(LIBTOOL) --mode=install $(INSTALL) pcregrep $(DESTDIR)$(BINDIR)/pcregrep                  $(LIBTOOL) --mode=install $(INSTALL) pcregrep@EXEEXT@ $(DESTDIR)$(BINDIR)/pcregrep@EXEEXT@
254                  $(LIBTOOL) --mode=install $(INSTALL) pcretest $(DESTDIR)$(BINDIR)/pcretest                  $(LIBTOOL) --mode=install $(INSTALL) pcretest@EXEEXT@ $(DESTDIR)$(BINDIR)/pcretest@EXEEXT@
255                  $(INSTALL) pcre-config $(DESTDIR)$(BINDIR)/pcre-config                  $(INSTALL) pcre-config $(DESTDIR)$(BINDIR)/pcre-config
256    
257  # We deliberately omit dftables and chartables.c from 'make clean'; once made  # We deliberately omit dftables and chartables.c from 'make clean'; once made
258  # 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,
259  # you don't want to throw them away.  # you don't want to throw them away.
260    
261  clean:;         -rm -rf *.o *.lo *.a *.la .libs pcretest pcregrep testtry  clean:;         -rm -rf *.@OBJEXT@ *.lo *.a *.la .libs pcretest@EXEEXT@ pcregrep@EXEEXT@ testtry
262    
263  # But "make distclean" should get back to a virgin distribution  # But "make distclean" should get back to a virgin distribution
264    
# Line 203  distclean:      clean Line 268  distclean:      clean
268    
269  check:          runtest  check:          runtest
270    
271    @WIN_PREFIX@pcre.dll : winshared
272            cp .libs/@WIN_PREFIX@pcre.dll .
273    
274  test:           runtest  test:           runtest
275    
276  runtest:        all  runtest:        all @ON_WINDOWS@ @WIN_PREFIX@pcre.dll
277                  ./RunTest                  @./RunTest
278    
279  # End  # End

Legend:
Removed from v.65  
changed lines
  Added in v.73

  ViewVC Help
Powered by ViewVC 1.1.5