/[pcre]/code/trunk/NON-UNIX-USE
ViewVC logotype

Diff of /code/trunk/NON-UNIX-USE

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

revision 86 by nigel, Sat Feb 24 21:41:13 2007 UTC revision 87 by nigel, Sat Feb 24 21:41:21 2007 UTC
# Line 11  the Contrib directory on the ftp site th Line 11  the Contrib directory on the ftp site th
11    
12  If you want to compile PCRE for a non-Unix system (or perhaps, more strictly,  If you want to compile PCRE for a non-Unix system (or perhaps, more strictly,
13  for a system that does not support "configure" and "make" files), note that  for a system that does not support "configure" and "make" files), note that
14  PCRE consists entirely of code written in Standard C, and so should compile  the basic PCRE library consists entirely of code written in Standard C, and so
15  successfully on any system that has a Standard C compiler and library.  should compile successfully on any system that has a Standard C compiler and
16    library. The C++ wrapper functions are a separate issue (see below).
17    
18    
19  GENERIC INSTRUCTIONS FOR THE C LIBRARY  GENERIC INSTRUCTIONS FOR THE C LIBRARY
# Line 34  your compiler gives to '\n'. Line 35  your compiler gives to '\n'.
35    rem Use write, because notepad cannot handle UNIX files. Change values.    rem Use write, because notepad cannot handle UNIX files. Change values.
36    write config.h    write config.h
37    
38  (2) Copy or rename the file pcre.in as pcre.h, and change the macro definitions  (2) Compile dftables.c as a stand-alone program, and then run it with
 for PCRE_MAJOR, PCRE_MINOR, and PCRE_DATE near its start to the values set in  
 configure.in.  
   
   rem Mark Tetrode's commands  
   copy pcre.in pcre.h  
   rem Read values from configure.in  
   write configure.in  
   rem Change values  
   write pcre.h  
   
 (3) Compile dftables.c as a stand-alone program, and then run it with  
39  the single argument "pcre_chartables.c". This generates a set of standard  the single argument "pcre_chartables.c". This generates a set of standard
40  character tables and writes them to that file.  character tables and writes them to that file.
41    
42    rem Mark Tetrode's commands    rem Mark Tetrode's commands
43    rem Compile & run    rem Compile & run
44    cl -DSUPPORT_UTF8 -DSUPPORT_UCP dftables.c    cl -DSUPPORT_UTF8 -DSUPPORT_UCP dftables.c
45    dftables.exe chartables.c    dftables.exe pcre_chartables.c
46    
47  (4) Compile the following source files:  (3) Compile the following source files:
48    
49    pcre_chartables.c    pcre_chartables.c
50    pcre_compile.c    pcre_compile.c
# Line 67  character tables and writes them to that Line 57  character tables and writes them to that
57    pcre_info.c    pcre_info.c
58    pcre_maketables.c    pcre_maketables.c
59    pcre_ord2utf8.c    pcre_ord2utf8.c
   pcre_printint.c  
60    pcre_refcount.c    pcre_refcount.c
61    pcre_study.c    pcre_study.c
62    pcre_tables.c    pcre_tables.c
63    pcre_try_flipped.c    pcre_try_flipped.c
64    pcre_ucp_findchar.c    pcre_ucp_searchfuncs.c
65    pcre_valid_utf8.c    pcre_valid_utf8.c
66    pcre_version.c    pcre_version.c
67    pcre_xclass.c    pcre_xclass.c
# Line 88  shared libraries, you may have to do thi Line 77  shared libraries, you may have to do thi
77    cl -DSUPPORT_UTF8 -DSUPPORT_UCP -DPOSIX_MALLOC_THRESHOLD=10 /c maketables.c get.c study.c pcre.c    cl -DSUPPORT_UTF8 -DSUPPORT_UCP -DPOSIX_MALLOC_THRESHOLD=10 /c maketables.c get.c study.c pcre.c
78    lib /OUT:pcre.lib maketables.obj get.obj study.obj pcre.obj    lib /OUT:pcre.lib maketables.obj get.obj study.obj pcre.obj
79    
80  (5) Similarly, compile pcreposix.c and link it (on its own) as the pcreposix  (4) Similarly, compile pcreposix.c and link it (on its own) as the pcreposix
81  library.  library.
82    
83    rem Mark Tetrode's commands, for a static library    rem Mark Tetrode's commands, for a static library
# Line 96  library. Line 85  library.
85    cl -DSUPPORT_UTF8 -DSUPPORT_UCP -DPOSIX_MALLOC_THRESHOLD=10 /c pcreposix.c    cl -DSUPPORT_UTF8 -DSUPPORT_UCP -DPOSIX_MALLOC_THRESHOLD=10 /c pcreposix.c
86    lib /OUT:pcreposix.lib pcreposix.obj    lib /OUT:pcreposix.lib pcreposix.obj
87    
88  (6) Compile the test program pcretest.c. This needs the functions in the  (5) Compile the test program pcretest.c. This needs the functions in the
89  pcre and pcreposix libraries when linking.  pcre and pcreposix libraries when linking.
90    
91    rem Mark Tetrode's commands    rem Mark Tetrode's commands
92    rem compile & link    rem compile & link
93    cl /F0x400000 pcretest.c pcre.lib pcreposix.lib    cl /F0x400000 pcretest.c pcre.lib pcreposix.lib
94    
95  (7) Run pcretest on the testinput files in the testdata directory, and check  (6) Run pcretest on the testinput files in the testdata directory, and check
96  that the output matches the corresponding testoutput files. You must use the  that the output matches the corresponding testoutput files. You must use the
97  -i option when checking testinput2. Note that the supplied files are in Unix  -i option when checking testinput2. Note that the supplied files are in Unix
98  format, with just LF characters as line terminators. You may need to edit them  format, with just LF characters as line terminators. You may need to edit them
# Line 126  to change this if your system uses a dif Line 115  to change this if your system uses a dif
115  Note that there are now three more tests (7, 8, 9) that did not exist when Mark  Note that there are now three more tests (7, 8, 9) that did not exist when Mark
116  wrote those comments. The test the new pcre_dfa_exec() function.  wrote those comments. The test the new pcre_dfa_exec() function.
117    
118    (7) If you want to use the pcregrep command, compile and link pcregrep.c; it
119    uses only the basic PCRE library.
120    
121    
122  THE C++ WRAPPER FUNCTIONS  THE C++ WRAPPER FUNCTIONS
123    

Legend:
Removed from v.86  
changed lines
  Added in v.87

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12