build_w32vc.bat 880 Bytes
Newer Older
Colin Watson's avatar
Colin Watson committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
@rem build_w32vc.bat
@echo off

rem This file builds and tests CCCC under Microsoft Visual Studio.
rem Path to Microsoft Visual Studio standard edition release 6.0
set VCDIR=c:\Program Files\Microsoft Visual Studio\vc98
if not exist "%VCDIR%\bin\vcvars32.bat" goto no_vc

call "%VCDIR%\bin\vcvars32.bat"
if not exist pccts\bin mkdir pccts\bin

cd pccts\dlg
if exist *.obj del *.obj
nmake -f DlgMS.mak
copy dlg.exe ..\bin
cd ..\..

cd pccts\antlr
if exist *.obj del *.obj
nmake -f AntlrMS.mak
copy antlr.exe ..\bin
cd ..\..

cd cccc
if exist *.obj del *.obj
if exist *.cpp del *.cpp
nmake -f w32vc.mak
cd ..

cd test
nmake -f w32vc.mak
cd ..

cd vcaddin
nmake -f CcccDevStudioAddIn.mak CFG="CcccDevStudioAddIn - Win32 Release"
cd ..


goto end

:no_vc
echo This script expects MS Visual C++ to be in %VCDIR%
echo Please modify the script if the location is different.



:end