Rev 235 | Rev 5710 | 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 = borlando = objs = asma = libexe = .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 ERG installation instructions say:# c:\BCB6\CBuilder6#BCB ?= c:\BCB6\CBuilder6export BCBifndef GBE_NOTOOLSTESTifneq (,$(findstring $(space),$(BCB)))$(error ERROR The path to the Borland Compiler contains spaces. This will not work)endifendif# Verify environment variable requirements.PHONY: borlandcborlandc: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)\BINifeq "$(findstring $(BCB_PATH),$(PATH))" ""PATH := $(BCB_PATH);$(PATH)endifPath := $(PATH)export PATH## LIB and INCLUDE are not to be used.# Must remove from the environment. BEing empty wil crash the compilerINCLUDE :=unexport INCLUDELIB :=unexport LIB#