diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-03-06 15:19:44 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-03-06 15:19:44 +0000 |
commit | 1587a64618a44e327f6d3e796af9ebd589433902 (patch) | |
tree | 545a230b3240d2fdccc5c410c053332946447f62 /makevp.bat | |
parent | 7cee9fc5b01343c14c8d2b1ecc8c4252754cd896 (diff) | |
download | pcre-1587a64618a44e327f6d3e796af9ebd589433902.tar.gz |
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.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@101 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'makevp.bat')
-rw-r--r-- | makevp.bat | 30 |
1 files changed, 22 insertions, 8 deletions
@@ -1,24 +1,38 @@ @echo off +:: AH 20-12-06 modified for new PCRE-7.0 and VP/BCC + REM This file was contributed by Alexander Tokarev for building PCRE for use REM with Virtual Pascal. It has not been tested with the latest PCRE release. REM CHANGE THIS FOR YOUR BORLAND C++ COMPILER PATH -SET BORLAND=c:\usr\apps\bcc55 +SET BORLAND=F:\bcc +SET PATH=%PATH%;%BORLAND%\bin;f:\tasm\bin +SET PCRE_VER=70 -sh configure +:: sh configure -bcc32 -DDFTABLES -DSTATIC -DVPCOMPAT -I%BORLAND%\include -L%BORLAND%\lib dftables.c +bcc32 -DDFTABLES -DSTATIC -I%BORLAND%\include -L%BORLAND%\lib dftables.c +:: bcc32 -DDFTABLES -DSTATIC -DVPCOMPAT -I%BORLAND%\include -L%BORLAND%\lib dftables.c +IF ERRORLEVEL 1 EXIT -dftables > chartables.c +:: dftables > chartables.c +dftables pcre_chartables.c -bcc32 -c -RT- -y- -v- -u- -P- -O2 -5 -DSTATIC -DVPCOMPAT -UDFTABLES -I%BORLAND%\include get.c maketables.c pcre.c study.c +REM compile and link the PCRE library into lib: option -B for ASM compile works too +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 +:: bcc32 -c -RT- -y- -v- -u- -P- -O2 -5 -DSTATIC -DVPCOMPAT -UDFTABLES -I%BORLAND%\include get.c maketables.c pcre.c study.c +IF ERRORLEVEL 1 EXIT -tlib %BORLAND%\lib\cw32.lib *calloc *del *strncmp *memcpy *memmove *memset -tlib pcre.lib +get.obj +maketables.obj +pcre.obj +study.obj +calloc.obj +del.obj +strncmp.obj +memcpy.obj +memmove.obj +memset.obj +tlib %BORLAND%\lib\cw32.lib *calloc *del *strncmp *memcpy *memmove *memset *memcmp *strlen +:: tlib %BORLAND%\lib\cw32.lib *calloc *del *strncmp *memcpy *memmove *memset +IF ERRORLEVEL 1 EXIT +tlib pcre%PCRE_VER%.lib @!linklib.txt +calloc.obj +del.obj +strncmp.obj +memcpy.obj +memmove.obj +memset.obj +memcmp.obj +strlen.obj +:: tlib pcre.lib +get.obj +maketables.obj +pcre.obj +study.obj +calloc.obj +del.obj +strncmp.obj +memcpy.obj +memmove.obj +memset.obj +IF ERRORLEVEL 1 EXIT -del *.obj *.exe *.tds *.bak >nul 2>nul +del *.obj *.tds *.bak >nul 2>nul echo --- echo Now the library should be complete. Please check all messages above. |