/[pcre]/code/trunk/makevp.bat
ViewVC logotype

Contents of /code/trunk/makevp.bat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 101 - (show annotations) (download)
Tue Mar 6 15:19:44 2007 UTC (7 years, 1 month ago) by ph10
File MIME type: text/plain
File size: 1638 byte(s)
Updated the support (such as it is) for Virtual Pascal, thanks to Stefan 
Weber: (1) pcre_internal.h was missing some function renames; (2) updated 
makevp.bat for the current PCRE, using the additional files !compile.txt, 
!linklib.txt, and pcregexp.pas.

1 @echo off
2
3 :: AH 20-12-06 modified for new PCRE-7.0 and VP/BCC
4
5 REM This file was contributed by Alexander Tokarev for building PCRE for use
6 REM with Virtual Pascal. It has not been tested with the latest PCRE release.
7
8 REM CHANGE THIS FOR YOUR BORLAND C++ COMPILER PATH
9
10 SET BORLAND=F:\bcc
11 SET PATH=%PATH%;%BORLAND%\bin;f:\tasm\bin
12 SET PCRE_VER=70
13
14 :: sh configure
15
16 bcc32 -DDFTABLES -DSTATIC -I%BORLAND%\include -L%BORLAND%\lib dftables.c
17 :: bcc32 -DDFTABLES -DSTATIC -DVPCOMPAT -I%BORLAND%\include -L%BORLAND%\lib dftables.c
18 IF ERRORLEVEL 1 EXIT
19
20 :: dftables > chartables.c
21 dftables pcre_chartables.c
22
23 REM compile and link the PCRE library into lib: option -B for ASM compile works too
24 bcc32 -a4 -c -RT- -y- -v- -u- -R- -Q- -X -d -fp -ff -P- -O2 -Oc -Ov -3 -w-8004 -w-8064 -w-8065 -w-8012 -DSTATIC -DVPCOMPAT -UDFTABLES -I%BORLAND%\include @!compile.txt
25 :: bcc32 -c -RT- -y- -v- -u- -P- -O2 -5 -DSTATIC -DVPCOMPAT -UDFTABLES -I%BORLAND%\include get.c maketables.c pcre.c study.c
26 IF ERRORLEVEL 1 EXIT
27
28 tlib %BORLAND%\lib\cw32.lib *calloc *del *strncmp *memcpy *memmove *memset *memcmp *strlen
29 :: tlib %BORLAND%\lib\cw32.lib *calloc *del *strncmp *memcpy *memmove *memset
30 IF ERRORLEVEL 1 EXIT
31 tlib pcre%PCRE_VER%.lib @!linklib.txt +calloc.obj +del.obj +strncmp.obj +memcpy.obj +memmove.obj +memset.obj +memcmp.obj +strlen.obj
32 :: tlib pcre.lib +get.obj +maketables.obj +pcre.obj +study.obj +calloc.obj +del.obj +strncmp.obj +memcpy.obj +memmove.obj +memset.obj
33 IF ERRORLEVEL 1 EXIT
34
35 del *.obj *.tds *.bak >nul 2>nul
36
37 echo ---
38 echo Now the library should be complete. Please check all messages above.
39 echo Don't care for warnings, it's OK.

Properties

Name Value
svn:eol-style native
svn:keywords "Author Date Id Revision Url"

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12