From 343ba001ffb116ddadb275d23645861a60bbbdbc Mon Sep 17 00:00:00 2001 From: ennewalker Date: Sun, 27 Jul 2008 14:24:02 +0000 Subject: Added PCRE into the source tree. Updated documentation to reflect that PCRE is now on by default on Windows/DOS. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6696 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/util/pcre/makevp.bat | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 crawl-ref/source/util/pcre/makevp.bat (limited to 'crawl-ref/source/util/pcre/makevp.bat') diff --git a/crawl-ref/source/util/pcre/makevp.bat b/crawl-ref/source/util/pcre/makevp.bat new file mode 100644 index 0000000000..93ff539277 --- /dev/null +++ b/crawl-ref/source/util/pcre/makevp.bat @@ -0,0 +1,44 @@ +@echo off + +:: AH 20-12-06 modified for new PCRE-7.0 and VP/BCC +:: PH 19-03-07 renamed !compile.txt and !linklib.txt as makevp-compile.txt and +:: makevp-linklib.txt +:: PH 26-03-07 re-renamed !compile.txt and !linklib.txt as makevp-c.txt and +:: makevp-l.txt +:: PH 29-03-07 hopefully the final rename to makevp_c and makevp_l + +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=F:\bcc +SET PATH=%PATH%;%BORLAND%\bin;f:\tasm\bin +SET PCRE_VER=70 + +:: sh configure + +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 pcre_chartables.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 @makevp_c.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 *memcmp *strlen +:: tlib %BORLAND%\lib\cw32.lib *calloc *del *strncmp *memcpy *memmove *memset +IF ERRORLEVEL 1 EXIT +tlib pcre%PCRE_VER%.lib @makevp_l.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 *.tds *.bak >nul 2>nul + +echo --- +echo Now the library should be complete. Please check all messages above. +echo Don't care for warnings, it's OK. -- cgit v1.2.3-54-g00ecf