File: build_w32bcc.bat

package info (click to toggle)
cccc 1:3.1.4-11
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,984 kB
  • sloc: ansic: 33,244; cpp: 10,527; java: 622; makefile: 158; sh: 11
file content (43 lines) | stat: -rwxr-xr-x 1,088 bytes parent folder | download | duplicates (8)
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
@rem build_w32bcc.bat
@echo off

rem This file builds and tests CCCC under the Borland Command line
rem C++ compiler.
rem Path to Microsoft Visual Studio standard edition release 6.0
set BCDIR=c:\Program Files\Borland\bcc55
if not exist "%BCDIR%\bin\bcc32.exe" goto no_bcc

PATH "%BCDIR%\bin";%PATH%

rem One day there I will do Borland Makefiles for ANTLR and DLG.
rem For the moment I will rely on versions precompiled under MSVC.
if not exist pccts\bin\antlr.exe goto no_pccts
if not exist pccts\bin\dlg.exe goto no_pccts

cd cccc
if exist *.obj del *.obj
if exist *.cpp del *.cpp
make -f w32bcc.mak
cd ..

cd test
make -f w32bcc.mak
cd ..

goto end

:no_bcc
echo This script expects Borland C++ command line compiler to be in 
echo %VCDIR%\bin\bcc32.exe.
echo Please modify the script if the location is different.
goto end

:no_pccts
echo This script expects precompiled versions of PCCTS binaries
echo DLG and ANTLR to be in pccts\bin.
echo The CCCC package contains makefiles to build these under
echo MSVC, otherwise you can write and contribute makefiles for 
echo BCC32.

:end