/[pcre]/code/tags/pcre-2.08/Makefile
ViewVC logotype

Diff of /code/tags/pcre-2.08/Makefile

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

revision 37 by nigel, Sat Feb 24 21:39:09 2007 UTC revision 39 by nigel, Sat Feb 24 21:39:13 2007 UTC
# Line 1  Line 1 
1  # Make file for PCRE (Perl-Compatible Regular Expression) library.  # Make file for PCRE (Perl-Compatible Regular Expression) library.
2    
3  # If you are using a Unix system, see below.  # If you are using a Unix system, see below. I am a Unix person, so that is
4    # the stuff I really know about. PCRE is developed on a Unix box.
5    
6  ##############################################################################  # To build mingw32 DLL uncomment the next two lines. This addition for mingw32
7    # was contributed by  Paul Sokolovsky <Paul.Sokolovsky@technologist.com>. I
8    # (Philip Hazel) don't know anything about it! There are some additional
9    # targets at the bottom of this Makefile.
10    #
11    # include dll.mk
12    # DLL_LDFLAGS=-s
13    
14    
15    ######## NON-UNIX ############ NON-UNIX ############## NON-UNIX ##############
16  # If you want to compile PCRE for a non-Unix system, note that it consists  # If you want to compile PCRE for a non-Unix system, note that it consists
17  # entirely of code written in Standard C, and so should compile successfully  # entirely of code written in Standard C, and so should compile successfully
18  # using normal compiling commands to do the following:  # using normal compiling commands to do the following:
# Line 25  Line 35 
35  # testinput2.  # testinput2.
36    
37    
38  ##############################################################################  ######## UNIX ################## UNIX ################## UNIX ################
39  # On a Unix system:  # On a Unix system:
40  #  #
41  # Edit CC, CFLAGS, and RANLIB for your system.  # Edit CC, CFLAGS, and RANLIB for your system.
# Line 60  MANDIR = /usr/local/man Line 70  MANDIR = /usr/local/man
70    
71  ##############################################################################  ##############################################################################
72    
73    
74  OBJ = maketables.o get.o study.o pcre.o  OBJ = maketables.o get.o study.o pcre.o
75    
76  all:            libpcre.a libpcreposix.a pcretest pgrep  all:            libpcre.a libpcreposix.a pcretest pgrep
# Line 125  clean:;         -rm -f *.o *.a pcretest Line 136  clean:;         -rm -f *.o *.a pcretest
136  runtest:        all  runtest:        all
137                  ./RunTest                  ./RunTest
138    
139    ######## MINGW32 ############### MINGW32 ############### MINGW32 #############
140    
141    # This addition for mingw32 was contributed by  Paul Sokolovsky
142    # <Paul.Sokolovsky@technologist.com>. I (PH) don't know anything about it!
143    
144    dll:            _dll libpcre.dll.a pgrep_d pcretest_d
145    
146    _dll:
147                    $(MAKE) CFLAGS=-DSTATIC pcre.dll
148    
149    pcre.dll:       $(OBJ) pcreposix.o pcre.def
150    libpcre.dll.a:  pcre.def
151    
152    pgrep_d:        libpcre.dll.a pgrep.o
153                    $(CC) $(CFLAGS) -L. -o pgrep pgrep.o -lpcre.dll
154    
155    pcretest_d:     libpcre.dll.a pcretest.o
156                    $(PURIFY) $(CC) $(CFLAGS) -L. -o pcretest pcretest.o -lpcre.dll
157    
158  # End  # End

Legend:
Removed from v.37  
changed lines
  Added in v.39

  ViewVC Help
Powered by ViewVC 1.1.5