/[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 52 by nigel, Sat Feb 24 21:39:33 2007 UTC revision 53 by nigel, Sat Feb 24 21:39:42 2007 UTC
# Line 12  Line 12 
12  # DLL_LDFLAGS=-s  # DLL_LDFLAGS=-s
13    
14    
15    #############################################################################
16    
17    # PCRE is developed on a Unix system. I do not use Windows or Macs, and know
18    # nothing about building software on them. Although the code of PCRE should
19    # be very portable, the building system in this Makefile is designed for Unix
20    # systems, with the exception of the mingw32 stuff just mentioned.
21    
22    # This setting enables Unix-style directory scanning in pcregrep, triggered
23    # by the -f option. Maybe one day someone will add code for other systems.
24    
25    PCREGREP_OSTYPE=-DIS_UNIX
26    
27    #############################################################################
28    
29    
30  #---------------------------------------------------------------------------#  #---------------------------------------------------------------------------#
31  # 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 #
32  # given in its arguments, or which it finds out for itself.                 #  # given in its arguments, or which it finds out for itself.                 #
33  #---------------------------------------------------------------------------#  #---------------------------------------------------------------------------#
34    
35  # BINDIR is the directory in which the pcregrep 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.  
   
36  prefix = @prefix@  prefix = @prefix@
37  exec_prefix = @exec_prefix@  exec_prefix = @exec_prefix@
38    top_srcdir = @top_srcdir@
39    
40    mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
41    
42    # NB: top_builddir is not referred to directly below, but it is used in the
43    # setting of $(LIBTOOL), so don't remove it!
44    
45    top_builddir = .
46    
47    # BINDIR is the directory in which the pcregrep, pcretest, and pcre-config
48    #          commands are installed.
49    # INCDIR is the directory in which the public header files pcre.h and
50    #          pcreposix.h are installed.
51    # LIBDIR is the directory in which the libraries are installed.
52    # MANDIR is the directory in which the man pages are installed.
53    
54  BINDIR = @bindir@  BINDIR = @bindir@
55  LIBDIR = @libdir@  LIBDIR = @libdir@
# Line 36  CC = @CC@ Line 60  CC = @CC@
60  CFLAGS = @CFLAGS@  CFLAGS = @CFLAGS@
61  RANLIB = @RANLIB@  RANLIB = @RANLIB@
62  UTF8   = @UTF8@  UTF8   = @UTF8@
63    NEWLINE = @NEWLINE@
64    
65  # LIBTOOL defaults to "./libtool", which enables the building of shared  INSTALL = @INSTALL@
66  # libraries. If "configure" is called with --disable-shared-libraries, LIBTOOL  INSTALL_DATA = @INSTALL_DATA@
67  # is set to "", which stops shared libraries from being built, and LIBSUFFIX  
68  # is set to "a" instead of "la", which causes the shared libraries not to be  # LIBTOOL enables the building of shared and static libraries. It is set up
69  # installed.  # to do one or the other or both by ./configure.
70    
71  LIBTOOL = @LIBTOOL@  LIBTOOL = @LIBTOOL@
72  LIBSUFFIX = @LIBSUFFIX@  LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. $(NEWLINE)
73    LINK = $(LIBTOOL) --mode=link $(CC)
74    
75  # These are the version numbers for the shared libraries  # These are the version numbers for the shared libraries
76    
77  PCRELIBVERSION = @PCRE_LIB_VERSION@  PCRELIBVERSION = @PCRE_LIB_VERSION@
78  PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@  PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@
79    
   
 #---------------------------------------------------------------------------#  
 # 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, so this command must be      #  
 # 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. The setting of AR is #  
 # *not* passed over to ./ltconfig, because it does its own setting up.      #  
 #---------------------------------------------------------------------------#  
   
 AR = ar cq  
   
   
80  ##############################################################################  ##############################################################################
81    
82    
83  OBJ = maketables.o get.o study.o pcre.o  OBJ = maketables.o get.o study.o pcre.o
84  LOBJ = maketables.lo get.lo study.lo pcre.lo  LOBJ = maketables.lo get.lo study.lo pcre.lo
85    
86  all:            libtool libpcre.$(LIBSUFFIX) libpcreposix.$(LIBSUFFIX) pcretest pcregrep  all:            libpcre.la libpcreposix.la pcretest pcregrep
87    
88  libtool:        config.guess config.sub ltconfig ltmain.sh  pcregrep:       libpcre.la pcregrep.o
89                  @if test "$(LIBTOOL)" = "./libtool"; then \                  $(LINK) $(CFLAGS) -o pcregrep pcregrep.o libpcre.la
90                    echo '--- Building libtool ---'; \  
91                    CC=$(CC) CFLAGS='$(CFLAGS)' RANLIB='$(RANLIB)' ./ltconfig ./ltmain.sh; \  pcretest:       libpcre.la libpcreposix.la pcretest.o
92                    echo '--- Built libtool ---'; fi                  $(LINK) $(PURIFY) $(CFLAGS) -o pcretest pcretest.o \
93                    libpcre.la libpcreposix.la
 pcregrep:       libpcre.$(LIBSUFFIX) pcregrep.o  
                   @echo ' '  
                   @echo '--- Building pcregrep utility'  
                   @echo ' '  
                 $(LIBTOOL) $(CC) $(CFLAGS) -o pcregrep pcregrep.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  
94    
95  libpcre.la:     $(OBJ)  libpcre.la:     $(OBJ)
                 @echo ' '  
                 @echo '--- Building shared library: libpcre'  
                 @echo ' '  
96                  -rm -f libpcre.la                  -rm -f libpcre.la
97                  ./libtool $(CC) -version-info '$(PCRELIBVERSION)' -o libpcre.la -rpath $(LIBDIR) $(LOBJ)                  $(LINK) -rpath $(LIBDIR) -version-info \
98                    '$(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  
99    
100  libpcreposix.la: pcreposix.o  libpcreposix.la: pcreposix.o
                 @echo ' '  
                 @echo '--- Building shared library: libpcreposix'  
                 @echo ' '  
101                  -rm -f libpcreposix.la                  -rm -f libpcreposix.la
102                  ./libtool $(CC) -version-info '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la -rpath $(LIBDIR) pcreposix.lo                  $(LINK) -rpath $(LIBDIR) -version-info \
103                    '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
 pcre.o:         chartables.c pcre.c pcre.h internal.h config.h Makefile  
                 $(LIBTOOL) $(CC) -c $(CFLAGS) $(UTF8) 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  
104    
105  study.o:        study.c pcre.h internal.h config.h Makefile  pcre.o:         $(top_srcdir)/chartables.c $(top_srcdir)/pcre.c \
106                  $(LIBTOOL) $(CC) -c $(CFLAGS) $(UTF8) study.c                  $(top_srcdir)/internal.h pcre.h config.h Makefile
107                    $(LTCOMPILE) $(UTF8) $(top_srcdir)/pcre.c
108    
109    pcreposix.o:    $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \
110                    $(top_srcdir)/internal.h pcre.h config.h Makefile
111                    $(LTCOMPILE) $(top_srcdir)/pcreposix.c
112    
113    maketables.o:   $(top_srcdir)/maketables.c $(top_srcdir)/internal.h \
114                    pcre.h config.h Makefile
115                    $(LTCOMPILE) $(top_srcdir)/maketables.c
116    
117    get.o:          $(top_srcdir)/get.c $(top_srcdir)/internal.h \
118                    pcre.h config.h Makefile
119                    $(LTCOMPILE) $(top_srcdir)/get.c
120    
121    study.o:        $(top_srcdir)/study.c $(top_srcdir)/internal.h \
122                    pcre.h config.h Makefile
123                    $(LTCOMPILE) $(UTF8) $(top_srcdir)/study.c
124    
125  pcretest.o:     pcretest.c pcre.h config.h Makefile  pcretest.o:     $(top_srcdir)/pcretest.c $(top_srcdir)/internal.h pcre.h config.h Makefile
126                  $(CC) -c $(CFLAGS) $(UTF8) pcretest.c                  $(LTCOMPILE) $(UTF8) $(top_srcdir)/pcretest.c
127    
128  pcregrep.o:     pcregrep.c pcre.h Makefile config.h  pcregrep.o:     $(top_srcdir)/pcregrep.c pcre.h Makefile config.h
129                  $(CC) -c $(CFLAGS) $(UTF8) pcregrep.c                  $(LTCOMPILE) $(UTF8) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
130    
131  # An auxiliary program makes the default character table source  # An auxiliary program makes the default character table source
132    
133  chartables.c:   dftables  chartables.c:   dftables
134                  ./dftables >chartables.c                  ./dftables >chartables.c
135    
136  dftables:       dftables.c maketables.c pcre.h internal.h config.h Makefile  dftables:       $(top_srcdir)/dftables.c $(top_srcdir)/maketables.c \
137                  $(CC) -o dftables $(CFLAGS) dftables.c                  $(top_srcdir)/internal.h pcre.h config.h Makefile
138                    $(LINK) -o dftables $(CFLAGS) $(top_srcdir)/dftables.c
139    
140  install:        all  install:        all
141                  $(LIBTOOL) $(INSTALL_DATA) libpcre.$(LIBSUFFIX) $(DESTDIR)/$(LIBDIR)/libpcre.$(LIBSUFFIX)                  $(mkinstalldirs) $(DESTDIR)/$(LIBDIR)
142                  $(LIBTOOL) $(INSTALL_DATA) libpcreposix.$(LIBSUFFIX) $(DESTDIR)/$(LIBDIR)/libpcreposix.$(LIBSUFFIX)                  echo "$(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)/$(LIBDIR)/libpcre.la"
143                    $(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)/$(LIBDIR)/libpcre.la
144                    echo "$(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)/$(LIBDIR)/libpcreposix.la"
145                    $(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)/$(LIBDIR)/libpcreposix.la
146                    $(LIBTOOL) --finish $(DESTDIR)/$(LIBDIR)
147                    $(mkinstalldirs) $(DESTDIR)/$(INCDIR)
148                  $(INSTALL_DATA) pcre.h $(DESTDIR)/$(INCDIR)/pcre.h                  $(INSTALL_DATA) pcre.h $(DESTDIR)/$(INCDIR)/pcre.h
149                  $(INSTALL_DATA) pcreposix.h $(DESTDIR)/$(INCDIR)/pcreposix.h                  $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)/$(INCDIR)/pcreposix.h
150                  $(INSTALL_DATA) doc/pcre.3 $(DESTDIR)/$(MANDIR)/man3/pcre.3                  $(mkinstalldirs) $(DESTDIR)/$(MANDIR)/man3
151                  $(INSTALL_DATA) doc/pcreposix.3 $(DESTDIR)/$(MANDIR)/man3/pcreposix.3                  $(INSTALL_DATA) $(top_srcdir)/doc/pcre.3 $(DESTDIR)/$(MANDIR)/man3/pcre.3
152                  $(INSTALL_DATA) doc/pcregrep.1 $(DESTDIR)/$(MANDIR)/man1/pcregrep.1                  $(INSTALL_DATA) $(top_srcdir)/doc/pcreposix.3 $(DESTDIR)/$(MANDIR)/man3/pcreposix.3
153                  @if test "$(LIBTOOL)" = "./libtool"; then \                  $(mkinstalldirs) $(DESTDIR)/$(MANDIR)/man1
154                    echo ' '; \                  $(INSTALL_DATA) $(top_srcdir)/doc/pcregrep.1 $(DESTDIR)/$(MANDIR)/man1/pcregrep.1
155                    echo '--- Rebuilding pcregrep to use installed shared library ---'; \                  $(INSTALL_DATA) $(top_srcdir)/doc/pcretest.1 $(DESTDIR)/$(MANDIR)/man1/pcretest.1
156                    echo $(CC) $(CFLAGS) -o pcregrep pcregrep.o -L$(DESTDIR)/$(LIBDIR) -lpcre; \                  $(mkinstalldirs) $(DESTDIR)/$(BINDIR)
157                    $(CC) $(CFLAGS) -o pcregrep pcregrep.o -L$(DESTDIR)/$(LIBDIR) -lpcre; \                  $(LIBTOOL) --mode=install $(INSTALL) pcregrep $(DESTDIR)/$(BINDIR)/pcregrep
158                    echo '--- Rebuilding pcretest to use installed shared library ---'; \                  $(LIBTOOL) --mode=install $(INSTALL) pcretest $(DESTDIR)/$(BINDIR)/pcretest
159                    echo $(CC) $(CFLAGS) -o pcretest pcretest.o -L$(DESTDIR)/$(LIBDIR) -lpcre -lpcreposix; \                  $(INSTALL) pcre-config $(DESTDIR)/$(BINDIR)/pcre-config
                   $(CC) $(CFLAGS) -o pcretest pcretest.o -L$(DESTDIR)/$(LIBDIR) -lpcre -lpcreposix; \  
                 fi  
                 $(INSTALL)      pcregrep $(DESTDIR)/$(BINDIR)/pcregrep  
                 $(INSTALL)      pcre-config $(DESTDIR)/$(BINDIR)/pcre-config  
160    
161  # We deliberately omit dftables and chartables.c from 'make clean'; once made  # We deliberately omit dftables and chartables.c from 'make clean'; once made
162  # 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,

Legend:
Removed from v.52  
changed lines
  Added in v.53

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12