/[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 62 by nigel, Sat Feb 24 21:39:58 2007 UTC revision 63 by nigel, Sat Feb 24 21:40:03 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  #---------------------------------------------------------------------------#  #---------------------------------------------------------------------------#
 #  
 # include dll.mk  
 # DLL_LDFLAGS=-s  
11    
12    
13  #############################################################################  #############################################################################
# Line 58  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@  UTF8   = @UTF8@
62  NEWLINE = @NEWLINE@  NEWLINE = @NEWLINE@
63    POSIX_MALLOC_THRESHOLD = @POSIX_MALLOC_THRESHOLD@
64    LINK_SIZE = @LINK_SIZE@
65    MATCH_LIMIT= @MATCH_LIMIT@
66    
67  INSTALL = @INSTALL@  INSTALL = @INSTALL@
68  INSTALL_DATA = @INSTALL_DATA@  INSTALL_DATA = @INSTALL_DATA@
# Line 69  INSTALL_DATA = @INSTALL_DATA@ Line 71  INSTALL_DATA = @INSTALL_DATA@
71  # to do one or the other or both by ./configure.  # to do one or the other or both by ./configure.
72    
73  LIBTOOL = @LIBTOOL@  LIBTOOL = @LIBTOOL@
74  LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. $(NEWLINE)  LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -I. -I$(top_srcdir) $(NEWLINE) $(LINK_SIZE) $(MATCH_LIMIT)
75  LINK = $(LIBTOOL) --mode=link $(CC)  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    
# Line 80  PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VER Line 82  PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VER
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 libpcreposix.la pcretest pcregrep  all:            libpcre.la @POSIX_LIB@ pcretest pcregrep
89    
90  pcregrep:       libpcre.la pcregrep.o  pcregrep:       libpcre.la pcregrep.o
91                  $(LINK) $(CFLAGS) -o pcregrep pcregrep.o libpcre.la                  $(LINK) -o pcregrep pcregrep.o libpcre.la
92    
93  pcretest:       libpcre.la libpcreposix.la pcretest.o  pcretest:       libpcre.la @POSIX_LIB@ pcretest.o
94                  $(LINK) $(PURIFY) $(CFLAGS) -o pcretest pcretest.o \                  $(LINK) $(PURIFY) $(EFENCE) -o pcretest pcretest.o \
95                  libpcre.la libpcreposix.la                  libpcre.la @POSIX_LIB@
96    
97  libpcre.la:     $(OBJ)  libpcre.la:     $(OBJ)
98                  -rm -f libpcre.la                  -rm -f libpcre.la
# Line 103  libpcreposix.la: pcreposix.o Line 105  libpcreposix.la: pcreposix.o
105                  '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo                  '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la pcreposix.lo
106    
107  pcre.o:         $(top_srcdir)/chartables.c $(top_srcdir)/pcre.c \  pcre.o:         $(top_srcdir)/chartables.c $(top_srcdir)/pcre.c \
108                  $(top_srcdir)/internal.h pcre.h config.h Makefile                  $(top_srcdir)/internal.h $(top_srcdir)/printint.c \
109                  $(LTCOMPILE) $(UTF8) $(top_srcdir)/pcre.c                  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 \  pcreposix.o:    $(top_srcdir)/pcreposix.c $(top_srcdir)/pcreposix.h \
113                  $(top_srcdir)/internal.h pcre.h config.h Makefile                  $(top_srcdir)/internal.h pcre.h config.h Makefile
114                  $(LTCOMPILE) $(top_srcdir)/pcreposix.c                  $(LTCOMPILE) $(POSIX_MALLOC_THRESHOLD) $(top_srcdir)/pcreposix.c
115    
116  maketables.o:   $(top_srcdir)/maketables.c $(top_srcdir)/internal.h \  maketables.o:   $(top_srcdir)/maketables.c $(top_srcdir)/internal.h \
117                  pcre.h config.h Makefile                  pcre.h config.h Makefile
# Line 122  study.o: $(top_srcdir)/study.c $( Line 125  study.o: $(top_srcdir)/study.c $(
125                  pcre.h config.h Makefile                  pcre.h config.h Makefile
126                  $(LTCOMPILE) $(UTF8) $(top_srcdir)/study.c                  $(LTCOMPILE) $(UTF8) $(top_srcdir)/study.c
127    
128  pcretest.o:     $(top_srcdir)/pcretest.c $(top_srcdir)/internal.h pcre.h config.h Makefile  pcretest.o:     $(top_srcdir)/pcretest.c $(top_srcdir)/internal.h \
129                  $(CC) -c $(CFLAGS) -I. $(UTF8) $(top_srcdir)/pcretest.c                  $(top_srcdir)/printint.c \
130                    pcre.h config.h Makefile
131                    $(CC) -c $(CFLAGS) -I. $(UTF8) $(LINK_SIZE) $(top_srcdir)/pcretest.c
132    
133  pcregrep.o:     $(top_srcdir)/pcregrep.c pcre.h Makefile config.h  pcregrep.o:     $(top_srcdir)/pcregrep.c pcre.h Makefile config.h
134                  $(CC) -c $(CFLAGS) -I. $(UTF8) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c                  $(CC) -c $(CFLAGS) -I. $(UTF8) $(PCREGREP_OSTYPE) $(top_srcdir)/pcregrep.c
# Line 133  pcregrep.o: $(top_srcdir)/pcregrep.c Line 138  pcregrep.o: $(top_srcdir)/pcregrep.c
138  $(top_srcdir)/chartables.c:   dftables  $(top_srcdir)/chartables.c:   dftables
139                  ./dftables >$(top_srcdir)/chartables.c                  ./dftables >$(top_srcdir)/chartables.c
140    
141  dftables:       $(top_srcdir)/dftables.c $(top_srcdir)/maketables.c \  dftables.o:     $(top_srcdir)/dftables.c $(top_srcdir)/maketables.c \
142                  $(top_srcdir)/internal.h pcre.h config.h Makefile                  $(top_srcdir)/internal.h pcre.h config.h Makefile
143                  $(LINK) -o dftables $(CFLAGS) $(top_srcdir)/dftables.c                  $(HOST_CC) -c $(HOST_CFLAGS) -I. $(top_srcdir)/dftables.c
144    
145    dftables:       dftables.o
146                    $(LINK) -o dftables dftables.o
147    
148  install:        all  install:        all
149                  $(mkinstalldirs) $(DESTDIR)/$(LIBDIR)                  $(mkinstalldirs) $(DESTDIR)$(LIBDIR)
150                  echo "$(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)/$(LIBDIR)/libpcre.la"                  echo "$(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la"
151                  $(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)/$(LIBDIR)/libpcre.la                  $(LIBTOOL) --mode=install $(INSTALL) libpcre.la $(DESTDIR)$(LIBDIR)/libpcre.la
152                  echo "$(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)/$(LIBDIR)/libpcreposix.la"                  echo "$(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la"
153                  $(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)/$(LIBDIR)/libpcreposix.la                  $(LIBTOOL) --mode=install $(INSTALL) libpcreposix.la $(DESTDIR)$(LIBDIR)/libpcreposix.la
154                  $(LIBTOOL) --finish $(DESTDIR)/$(LIBDIR)                  $(LIBTOOL) --finish $(DESTDIR)$(LIBDIR)
155                  $(mkinstalldirs) $(DESTDIR)/$(INCDIR)                  $(mkinstalldirs) $(DESTDIR)$(INCDIR)
156                  $(INSTALL_DATA) pcre.h $(DESTDIR)/$(INCDIR)/pcre.h                  $(INSTALL_DATA) pcre.h $(DESTDIR)$(INCDIR)/pcre.h
157                  $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)/$(INCDIR)/pcreposix.h                  $(INSTALL_DATA) $(top_srcdir)/pcreposix.h $(DESTDIR)$(INCDIR)/pcreposix.h
158                  $(mkinstalldirs) $(DESTDIR)/$(MANDIR)/man3                  $(mkinstalldirs) $(DESTDIR)$(MANDIR)/man3
159                  $(INSTALL_DATA) $(top_srcdir)/doc/pcre.3 $(DESTDIR)/$(MANDIR)/man3/pcre.3                  $(INSTALL_DATA) $(top_srcdir)/doc/pcre.3 $(DESTDIR)$(MANDIR)/man3/pcre.3
160                  $(INSTALL_DATA) $(top_srcdir)/doc/pcreposix.3 $(DESTDIR)/$(MANDIR)/man3/pcreposix.3                  $(INSTALL_DATA) $(top_srcdir)/doc/pcreapi.3 $(DESTDIR)$(MANDIR)/man3/pcreapi.3
161                  $(mkinstalldirs) $(DESTDIR)/$(MANDIR)/man1                  $(INSTALL_DATA) $(top_srcdir)/doc/pcrebuild.3 $(DESTDIR)$(MANDIR)/man3/pcrebuild.3
162                  $(INSTALL_DATA) $(top_srcdir)/doc/pcregrep.1 $(DESTDIR)/$(MANDIR)/man1/pcregrep.1                  $(INSTALL_DATA) $(top_srcdir)/doc/pcrecallout.3 $(DESTDIR)$(MANDIR)/man3/pcrecallout.3
163                  $(INSTALL_DATA) $(top_srcdir)/doc/pcretest.1 $(DESTDIR)/$(MANDIR)/man1/pcretest.1                  $(INSTALL_DATA) $(top_srcdir)/doc/pcrecompat.3 $(DESTDIR)$(MANDIR)/man3/pcrecompat.3
164                  $(mkinstalldirs) $(DESTDIR)/$(BINDIR)                  $(INSTALL_DATA) $(top_srcdir)/doc/pcrepattern.3 $(DESTDIR)$(MANDIR)/man3/pcrepattern.3
165                  $(LIBTOOL) --mode=install $(INSTALL) pcregrep $(DESTDIR)/$(BINDIR)/pcregrep                  $(INSTALL_DATA) $(top_srcdir)/doc/pcreperform.3 $(DESTDIR)$(MANDIR)/man3/pcreperform.3
166                  $(LIBTOOL) --mode=install $(INSTALL) pcretest $(DESTDIR)/$(BINDIR)/pcretest                  $(INSTALL_DATA) $(top_srcdir)/doc/pcreposix.3 $(DESTDIR)$(MANDIR)/man3/pcreposix.3
167                  $(INSTALL) pcre-config $(DESTDIR)/$(BINDIR)/pcre-config                  $(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,
# Line 177  test: runtest Line 208  test: runtest
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 pcregrep_d pcretest_d  
   
 _dll:  
                 $(MAKE) CFLAGS=-DSTATIC pcre.dll  
   
 pcre.dll:       $(OBJ) pcreposix.o pcre.def  
 libpcre.dll.a:  pcre.def  
   
 pcregrep_d:     libpcre.dll.a pcregrep.o  
                 $(CC) $(CFLAGS) -L. -o pcregrep pcregrep.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.62  
changed lines
  Added in v.63

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12