Subversion Repositories DevTools

Rev

Rev 331 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

# -*- mode: mak; -*-
###############################################################################
# File:         TOOLSET/borland.def
# Contents:     Borland C++ Builder defines
###############################################################################

toolset         = borland

o               = obj
s               = asm
a               = lib
exe             = .exe

.SUFFIXES:      .asm

#
#   Setup the basic BCB environment paths
#   Can be overriden by environment variables
#
#   NOTE: Borland does not like paths this spaces
#         Use Short Filenames such as:
#           c:\PROGRA~1\Borland\CBUILD~1
#         Ideally, install into a nice directory.
#         The VIX installation instructions say:
#           c:\BCB6\CBuilder6
#
BCB       ?= c:\BCB6\CBuilder6
export BCB

ifndef GBE_NOTOOLSTEST
    ifneq (,$(findstring $(space),$(BCB)))
        $(error ERROR The path to the Borland Compiler contains spaces. This will not work)
    endif
endif


# Verify environment variable requirements
.PHONY:         borlandc
borlandc:
  ifndef GBE_NOTOOLSTEST
            @$(echo) [Toolset Borland C++ Builder WIN32]; \
            if [ ! -d "$(BCB)" ]; then echo "Directory BCB does not exist: $(BCB)"; exit 2; fi;
  endif

#
#   Setup PATH
#   Ensure that we can find the compiler and tools
#
BCB_PATH := $(BCB)\BIN

ifeq "$(findstring $(BCB_PATH),$(PATH))" ""
PATH    := $(BCB_PATH);$(PATH)
endif
Path    := $(PATH)
export PATH

#
#   LIB and INCLUDE are not to be used.
#   Must remove from the environment. BEing empty wil crash the compiler

INCLUDE :=
unexport INCLUDE

LIB :=
unexport LIB

#