/[pcre]/code/tags/pcre-4.0/Makefile.in
ViewVC logotype

Diff of /code/tags/pcre-4.0/Makefile.in

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

code/trunk/Makefile.in revision 45 by nigel, Sat Feb 24 21:39:25 2007 UTC code/tags/pcre-4.0/Makefile.in revision 64 by nigel, Sat Feb 24 21:40:05 2007 UTC
# Line 2  Line 2 
2  # Makefile.in for PCRE (Perl-Compatible Regular Expression) library.  # Makefile.in for PCRE (Perl-Compatible Regular Expression) library.
3    
4  #---------------------------------------------------------------------------#  #---------------------------------------------------------------------------#
5  # To build mingw32 DLL uncomment the next two lines. This addition for      #  # MinGW DLLs are built automatically with this configure.in and Makefile.in #
6  # mingw32 was contributed by <Paul.Sokolovsky@technologist.com>. I (Philip  #  # as long you are using autoconf 2.50 or higher. The Win32 static libraries #
7  # Hazel) don't know anything about it! There are some additional targets at #  # have not been tested, but appear to be generated. This functionality is   #
8  # the bottom of this Makefile.                                              #  # by courtesy of Fred Cox. I (Philip Hazel) don't know anything about it,   #
9    # as I live entirely in a non-Windows world.                                #
10  #---------------------------------------------------------------------------#  #---------------------------------------------------------------------------#
11  #  
12  # include dll.mk  
13  # DLL_LDFLAGS=-s  #############################################################################
14    
15    # PCRE is developed on a Unix system. I do not use Windows or Macs, and know
16    # nothing about building software on them. Although the code of PCRE should
17    # be very portable, the building system in this Makefile is designed for Unix
18    # systems, with the exception of the mingw32 stuff just mentioned.
19    
20    # This setting enables Unix-style directory scanning in pcregrep, triggered
21    # by the -f option. Maybe one day someone will add code for other systems.
22    
23    PCREGREP_OSTYPE=-DIS_UNIX
24    
25    #############################################################################
26    
27    
28  #---------------------------------------------------------------------------#  #---------------------------------------------------------------------------#
29  # The next few lines are modified by "configure" to insert data that it is  #  # The following lines are modified by "configure" to insert data that it is #
30  # given in its arguments, or which it finds out for itself.                 #  # given in its arguments, or which it finds out for itself.                 #
31  #---------------------------------------------------------------------------#  #---------------------------------------------------------------------------#
32    
33  # BINDIR is the directory in which the pgrep command is installed.  SHELL = @SHELL@
 # INCDIR is the directory in which the public header file pcre.h is installed.  
 # LIBDIR is the directory in which the libraries are installed.  
 # MANDIR is the directory in which the man pages are installed.  
 # The pcretest program, as it is a test program, does not get installed  
 # anywhere.  
   
34  prefix = @prefix@  prefix = @prefix@
35  exec_prefix = @exec_prefix@  exec_prefix = @exec_prefix@
36    top_srcdir = @top_srcdir@
37    
38    mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
39    
40    # NB: top_builddir is not referred to directly below, but it is used in the
41    # setting of $(LIBTOOL), so don't remove it!
42    
43    top_builddir = .
44    
45    # BINDIR is the directory in which the pcregrep, pcretest, and pcre-config
46    #          commands are installed.
47    # INCDIR is the directory in which the public header files pcre.h and
48    #          pcreposix.h are installed.
49    # LIBDIR is the directory in which the libraries are installed.
50    # MANDIR is the directory in which the man pages are installed.
51    
52  BINDIR = @bindir@  BINDIR = @bindir@
53  LIBDIR = @libdir@  LIBDIR = @libdir@
# Line 34  MANDIR = @mandir@ Line 56  MANDIR = @mandir@
56    
57  CC = @CC@  CC = @CC@
58  CFLAGS = @CFLAGS@  CFLAGS = @CFLAGS@
59  RANLIB = @RANLIB@  HOST_CC = @HOST_CC@
60    HOST_CFLAGS = @HOST_CFLAGS@
61    UTF8   = @UTF8@
62    NEWLINE = @NEWLINE@
63    POSIX_MALLOC_THRESHOLD = @POSIX_MALLOC_THRESHOLD@
64    LINK_SIZE = @LINK_SIZE@
65    MATCH_LIMIT= @MATCH_LIMIT@
66    
67    INSTALL = @INSTALL@
68    INSTALL_DATA = @INSTALL_DATA@
69    
70  # LIBTOOL defaults to "", which cuts out the building of shared libraries.  # LIBTOOL enables the building of shared and static libraries. It is set up
71  # If "configure" is called with --enable-shared-libraries, then LIBTOOL is  # to do one or the other or both by ./configure.
 # set to "libtool", which causes shared libraries to be built, and LIBSUFFIX  
 # is set to "la" instead of "a", which causes the shared libraries to be  
 # installed.  
72    
73  LIBTOOL = @LIBTOOL@  LIBTOOL = @LIBTOOL@
74  LIBSUFFIX = @LIBSUFFIX@  LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT)
75    LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -I. -I$(top_srcdir)
76    
77  # These are the version numbers for the shared libraries  # These are the version numbers for the shared libraries
78    
79  PCRELIBVERSION = @PCRE_LIB_VERSION@  PCRELIBVERSION = @PCRE_LIB_VERSION@
80  PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@  PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@
81    
   
 #---------------------------------------------------------------------------#  
 # A copy of install-sh is in this distribution and is used by default.      #  
 #---------------------------------------------------------------------------#  
   
 INSTALL = ./install-sh -c  
 INSTALL_DATA = ${INSTALL} -m 644  
   
   
 #---------------------------------------------------------------------------#  
 # For almost all systems, the command to create a library is "ar cq", but   #  
 # there is at least one where it is different, to make this configurable.   #  
 # However, I haven't got round to learning how to make "configure" find     #  
 # this out for itself. It is necessary to use a command such as             #  
 # "make AR='ar -rc'" if you need to vary this.                              #  
 #---------------------------------------------------------------------------#  
   
 AR = ar cq  
   
   
82  ##############################################################################  ##############################################################################
83    
84    
85  OBJ = maketables.o get.o study.o pcre.o  OBJ = maketables.o get.o study.o pcre.o @POSIX_OBJ@
86  LOBJ = maketables.lo get.lo study.lo pcre.lo  LOBJ = maketables.lo get.lo study.lo pcre.lo @POSIX_LOBJ@
87    
88    all:            libpcre.la @POSIX_LIB@ pcretest pcregrep
89    
90  all:            libtool libpcre.$(LIBSUFFIX) libpcreposix.$(LIBSUFFIX) pcretest pgrep  pcregrep:       libpcre.la pcregrep.o
91                    $(LINK) -o pcregrep pcregrep.o libpcre.la
92    
93  libtool:        config.guess config.sub ltconfig ltmain.sh  pcretest:       libpcre.la @POSIX_LIB@ pcretest.o
94                  @if test "$(LIBTOOL)" = "libtool"; then \                  $(LINK) $(PURIFY) $(EFENCE) -o pcretest pcretest.o \
95                    echo '--- Building libtool ---'; \                  libpcre.la @POSIX_LIB@
                   ./ltconfig ./ltmain.sh; \  
                   echo '--- Built libtool ---'; fi  
   
 pgrep:          libpcre.$(LIBSUFFIX) pgrep.o  
                   @echo ' '  
                   @echo '--- Building pgrep utility'  
                   @echo ' '  
                 $(LIBTOOL) $(CC) $(CFLAGS) -o pgrep pgrep.o libpcre.$(LIBSUFFIX)  
   
 pcretest:       libpcre.$(LIBSUFFIX) libpcreposix.$(LIBSUFFIX) pcretest.o  
                   @echo ' '  
                   @echo '--- Building pcretest testing program'  
                   @echo ' '  
                 $(LIBTOOL) $(PURIFY) $(CC) $(CFLAGS) -o pcretest pcretest.o \  
                   libpcre.$(LIBSUFFIX) libpcreposix.$(LIBSUFFIX)  
   
 libpcre.a:      $(OBJ)  
                 @echo ' '  
                 @echo '--- Building static library: libpcre'  
                 @echo ' '  
                 -rm -f libpcre.a  
                 $(AR) libpcre.a $(OBJ)  
                 $(RANLIB) libpcre.a  
96    
97  libpcre.la:     $(OBJ)  libpcre.la:     $(OBJ)
                 @echo ' '  
                 @echo '--- Building shared library: libpcre'  
                 @echo ' '  
98                  -rm -f libpcre.la                  -rm -f libpcre.la
99                  libtool $(CC) -version-info '$(PCRELIBVERSION)' -o libpcre.la -rpath $(LIBDIR) $(LOBJ)                  $(LINK) -rpath $(LIBDIR) -version-info \
100                    '$(PCRELIBVERSION)' -o libpcre.la $(LOBJ)
 libpcreposix.a: pcreposix.o  
                 @echo ' '  
                 @echo '--- Building static library: libpcreposix'  
                 @echo ' '  
                 -rm -f libpcreposix.a  
                 $(AR) libpcreposix.a pcreposix.o  
                 $(RANLIB) libpcreposix.a  
101    
102  libpcreposix.la: pcreposix.o  libpcreposix.la: pcreposix.o
                 @echo ' '  
                 @echo '--- Building shared library: libpcreposix'  
                 @echo ' '  
103                  -rm -f libpcreposix.la                  -rm -f libpcreposix.la
104                  libtool $(CC) -version-info '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la -rpath $(LIBDIR) pcreposix.lo                  $(LINK) -rpath $(LIBDIR) -version-info \
105                    '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
 pcre.o:         chartables.c pcre.c pcre.h internal.h config.h Makefile  
                 $(LIBTOOL) $(CC) -c $(CFLAGS) pcre.c  
   
 pcreposix.o:    pcreposix.c pcreposix.h internal.h pcre.h config.h Makefile  
                 $(LIBTOOL) $(CC) -c $(CFLAGS) pcreposix.c  
   
 maketables.o:   maketables.c pcre.h internal.h config.h Makefile  
                 $(LIBTOOL) $(CC) -c $(CFLAGS) maketables.c  
   
 get.o:          get.c pcre.h internal.h config.h Makefile  
                 $(LIBTOOL) $(CC) -c $(CFLAGS) get.c  
106    
107  study.o:        study.c pcre.h internal.h config.h Makefile  pcre.o:         $(top_srcdir)/chartables.c $(top_srcdir)/pcre.c \
108                  $(LIBTOOL) $(CC) -c $(CFLAGS) study.c                  $(top_srcdir)/internal.h $(top_srcdir)/printint.c \
109                    pcre.h config.h Makefile
110                    $(LTCOMPILE) $(UTF8) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcre.c
111    
112    pcreposix.o:    $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \
113                    $(top_srcdir)/internal.h pcre.h config.h Makefile
114                    $(LTCOMPILE) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcreposix.c
115    
116    maketables.o:   $(top_srcdir)/maketables.c $(top_srcdir)/internal.h \
117                    pcre.h config.h Makefile
118                    $(LTCOMPILE) $(top_srcdir)/maketables.c
119    
120    get.o:          $(top_srcdir)/get.c $(top_srcdir)/internal.h \
121                    pcre.h config.h Makefile
122                    $(LTCOMPILE) $(top_srcdir)/get.c
123    
124    study.o:        $(top_srcdir)/study.c $(top_srcdir)/internal.h \
125                    pcre.h config.h Makefile
126                    $(LTCOMPILE) $(UTF8) $(top_srcdir)/study.c
127    
128    pcretest.o:     $(top_srcdir)/pcretest.c $(top_srcdir)/internal.h \
129                    $(top_srcdir)/printint.c \
130                    pcre.h config.h Makefile
131                    $(CC) -c $(CFLAGS) -I. $(UTF8) $(LINK_SIZE) $(top_srcdir)/pcretest.c
132    
133  pcretest.o:     pcretest.c pcre.h config.h Makefile  pcregrep.o:     $(top_srcdir)/pcregrep.c pcre.h Makefile config.h
134                  $(CC) -c $(CFLAGS) pcretest.c                  $(CC) -c $(CFLAGS) -I. $(UTF8) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
   
 pgrep.o:        pgrep.c pcre.h Makefile config.h  
                 $(CC) -c $(CFLAGS) pgrep.c  
135    
136  # An auxiliary program makes the default character table source  # An auxiliary program makes the default character table source
137    
138  chartables.c:   dftables  $(top_srcdir)/chartables.c:   dftables
139                  ./dftables >chartables.c                  ./dftables >$(top_srcdir)/chartables.c
140    
141    dftables.o:     $(top_srcdir)/dftables.c $(top_srcdir)/maketables.c \
142                    $(top_srcdir)/internal.h pcre.h config.h Makefile
143                    $(HOST_CC) -c $(HOST_CFLAGS) -I. $(top_srcdir)/dftables.c
144    
145  dftables:       dftables.c maketables.c pcre.h internal.h config.h Makefile  dftables:       dftables.o
146                  $(CC) -o dftables $(CFLAGS) dftables.c                  $(LINK) -o dftables dftables.o
147    
148  install:        all  install:        all
149                  $(LIBTOOL) $(INSTALL_DATA) libpcre.$(LIBSUFFIX) $(LIBDIR)/libpcre.$(LIBSUFFIX)                  $(mkinstalldirs) $(DESTDIR)$(LIBDIR)
150                  $(LIBTOOL) $(INSTALL_DATA) libpcreposix.$(LIBSUFFIX) $(LIBDIR)/libpcreposix.$(LIBSUFFIX)                  echo "$(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la"
151                  $(INSTALL_DATA) pcre.h $(INCDIR)/pcre.h                  $(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la
152                  $(INSTALL_DATA) pcreposix.h $(INCDIR)/pcreposix.h                  echo "$(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la"
153                  $(INSTALL_DATA) doc/pcre.3 $(MANDIR)/man3/pcre.3                  $(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la
154                  $(INSTALL_DATA) doc/pcreposix.3 $(MANDIR)/man3/pcreposix.3                  $(LIBTOOL) --finish $(DESTDIR)$(LIBDIR)
155                  $(INSTALL_DATA) doc/pgrep.1 $(MANDIR)/man1/pgrep.1                  $(mkinstalldirs) $(DESTDIR)$(INCDIR)
156                  @if test "$(LIBTOOL)" = "libtool"; then \                  $(INSTALL_DATA) pcre.h $(DESTDIR)$(INCDIR)/pcre.h
157                    echo ' '; \                  $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)$(INCDIR)/pcreposix.h
158                    echo '--- Rebuilding pgrep to use installed shared library ---'; \                  $(mkinstalldirs) $(DESTDIR)$(MANDIR)/man3
159                    echo $(CC) $(CFLAGS) -o pgrep pgrep.o -L$(LIBDIR) -lpcre; \                  $(INSTALL_DATA) $(top_srcdir)/doc/pcre.3 $(DESTDIR)$(MANDIR)/man3/pcre.3
160                    $(CC) $(CFLAGS) -o pgrep pgrep.o -L$(LIBDIR) -lpcre; \                  $(INSTALL_DATA) $(top_srcdir)/doc/pcreapi.3 $(DESTDIR)$(MANDIR)/man3/pcreapi.3
161                    echo '--- Rebuilding pcretest to use installed shared library ---'; \                  $(INSTALL_DATA) $(top_srcdir)/doc/pcrebuild.3 $(DESTDIR)$(MANDIR)/man3/pcrebuild.3
162                    echo $(CC) $(CFLAGS) -o pcretest pcretest.o -L$(LIBDIR) -lpcre -lpcreposix; \                  $(INSTALL_DATA) $(top_srcdir)/doc/pcrecallout.3 $(DESTDIR)$(MANDIR)/man3/pcrecallout.3
163                    $(CC) $(CFLAGS) -o pcretest pcretest.o -L$(LIBDIR) -lpcre -lpcreposix; \                  $(INSTALL_DATA) $(top_srcdir)/doc/pcrecompat.3 $(DESTDIR)$(MANDIR)/man3/pcrecompat.3
164                  fi                  $(INSTALL_DATA) $(top_srcdir)/doc/pcrepattern.3 $(DESTDIR)$(MANDIR)/man3/pcrepattern.3
165                  $(INSTALL)      pgrep $(BINDIR)/pgrep                  $(INSTALL_DATA) $(top_srcdir)/doc/pcreperform.3 $(DESTDIR)$(MANDIR)/man3/pcreperform.3
166                  $(INSTALL)      pcre-config $(BINDIR)/pcre-config                  $(INSTALL_DATA) $(top_srcdir)/doc/pcreposix.3 $(DESTDIR)$(MANDIR)/man3/pcreposix.3
167                    $(INSTALL_DATA) $(top_srcdir)/doc/pcresample.3 $(DESTDIR)$(MANDIR)/man3/pcresample.3
168                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_compile.3 $(DESTDIR)$(MANDIR)/man3/pcre_compile.3
169                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_config.3 $(DESTDIR)$(MANDIR)/man3/pcre_config.3
170                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_named_substring.3
171                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_copy_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_copy_substring.3
172                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_exec.3 $(DESTDIR)$(MANDIR)/man3/pcre_exec.3
173                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring.3
174                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_free_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_free_substring_list.3
175                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_fullinfo.3 $(DESTDIR)$(MANDIR)/man3/pcre_fullinfo.3
176                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_named_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_named_substring.3
177                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_stringnumber.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_stringnumber.3
178                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring.3
179                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_get_substring_list.3 $(DESTDIR)$(MANDIR)/man3/pcre_get_substring_list.3
180                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_info.3 $(DESTDIR)$(MANDIR)/man3/pcre_info.3
181                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_maketables.3 $(DESTDIR)$(MANDIR)/man3/pcre_maketables.3
182                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_study.3 $(DESTDIR)$(MANDIR)/man3/pcre_study.3
183                    $(INSTALL_DATA) $(top_srcdir)/doc/pcre_version.3 $(DESTDIR)$(MANDIR)/man3/pcre_version.3
184                    $(mkinstalldirs) $(DESTDIR)$(MANDIR)/man1
185                    $(INSTALL_DATA) $(top_srcdir)/doc/pcregrep.1 $(DESTDIR)$(MANDIR)/man1/pcregrep.1
186                    $(INSTALL_DATA) $(top_srcdir)/doc/pcretest.1 $(DESTDIR)$(MANDIR)/man1/pcretest.1
187                    $(mkinstalldirs) $(DESTDIR)$(BINDIR)
188                    $(LIBTOOL) --mode=install $(INSTALL) pcregrep $(DESTDIR)$(BINDIR)/pcregrep
189                    $(LIBTOOL) --mode=install $(INSTALL) pcretest $(DESTDIR)$(BINDIR)/pcretest
190                    $(INSTALL) pcre-config $(DESTDIR)$(BINDIR)/pcre-config
191    
192  # We deliberately omit dftables and chartables.c from 'make clean'; once made  # We deliberately omit dftables and chartables.c from 'make clean'; once made
193  # 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,
194  # you don't want to throw them away.  # you don't want to throw them away.
195    
196  clean:;         -rm -rf *.o *.lo *.a *.la .libs pcretest pgrep testtry  clean:;         -rm -rf *.o *.lo *.a *.la .libs pcretest pcregrep testtry
197    
198  # But "make distclean" should get back to a virgin distribution  # But "make distclean" should get back to a virgin distribution
199    
# Line 190  distclean:      clean Line 203  distclean:      clean
203    
204  check:          runtest  check:          runtest
205    
206    test:           runtest
207    
208  runtest:        all  runtest:        all
209                  ./RunTest                  ./RunTest
210    
 ######## MINGW32 ############### MINGW32 ############### MINGW32 #############  
   
 # This addition for mingw32 was contributed by  Paul Sokolovsky  
 # <Paul.Sokolovsky@technologist.com>. I (PH) don't know anything about it!  
   
 dll:            _dll libpcre.dll.a pgrep_d pcretest_d  
   
 _dll:  
                 $(MAKE) CFLAGS=-DSTATIC pcre.dll  
   
 pcre.dll:       $(OBJ) pcreposix.o pcre.def  
 libpcre.dll.a:  pcre.def  
   
 pgrep_d:        libpcre.dll.a pgrep.o  
                 $(CC) $(CFLAGS) -L. -o pgrep pgrep.o -lpcre.dll  
   
 pcretest_d:     libpcre.dll.a pcretest.o  
                 $(PURIFY) $(CC) $(CFLAGS) -L. -o pcretest pcretest.o -lpcre.dll  
   
211  # End  # End

Legend:
Removed from v.45  
changed lines
  Added in v.64

  ViewVC Help
Powered by ViewVC 1.1.5