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