Subversion Repositories DevTools

Rev

Rev 5710 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
235 dpurdie 1
# -*- mode: mak; -*-
2
###############################################################################
3
# File:         TOOLSET/borland.def
4
# Contents:     Borland C++ Builder defines
5
###############################################################################
6
 
7
toolset		= borland
8
 
9
o		= obj
10
s		= asm
11
a		= lib
12
exe		= .exe
13
 
14
.SUFFIXES:	.asm
15
 
16
#
17
#   Setup the basic BCB environment paths
18
#   Can be overriden by environment variables
19
#
20
#   NOTE: Borland does not like paths this spaces
331 dpurdie 21
#         Use Short Filenames such as:
22
#           c:\PROGRA~1\Borland\CBUILD~1
23
#         Ideally, install into a nice directory.
5710 dpurdie 24
#         The VIX installation instructions say:
331 dpurdie 25
#           c:\BCB6\CBuilder6
235 dpurdie 26
#
331 dpurdie 27
BCB       ?= c:\BCB6\CBuilder6
235 dpurdie 28
export BCB
29
 
30
ifndef GBE_NOTOOLSTEST
31
    ifneq (,$(findstring $(space),$(BCB)))
32
        $(error ERROR The path to the Borland Compiler contains spaces. This will not work)
33
    endif
34
endif
35
 
36
 
37
# Verify environment variable requirements
38
.PHONY:		borlandc
39
borlandc:
40
  ifndef GBE_NOTOOLSTEST
6177 dpurdie 41
	    @$(echo) '[Toolset Borland C++ Builder WIN32]'; \
235 dpurdie 42
	    if [ ! -d "$(BCB)" ]; then echo "Directory BCB does not exist: $(BCB)"; exit 2; fi;
43
  endif
44
 
45
#
46
#   Setup PATH
47
#   Ensure that we can find the compiler and tools
48
#
49
BCB_PATH := $(BCB)\BIN
50
 
51
ifeq "$(findstring $(BCB_PATH),$(PATH))" ""
52
PATH    := $(BCB_PATH);$(PATH)
53
endif
54
Path    := $(PATH)
55
export PATH
56
 
57
#
58
#   LIB and INCLUDE are not to be used.
59
#   Must remove from the environment. BEing empty wil crash the compiler
60
 
61
INCLUDE :=
62
unexport INCLUDE
63
 
64
LIB :=
65
unexport LIB
66
 
67
#