Rev 295 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
# -*- mode: mak; -*-################################################################################ File: TOOLSET/delphi7.def# Contents: Borland C++ Builder defines###############################################################################toolset = delphi7o = objs = asma = libexe = .exe.SUFFIXES: .asm## Setup the basic DELPHI7 environment paths# Can be overriden by environment variables## NOTE: Borland does not like paths this spaces# Use Short Filenames.# The following guess may not be correct#DELPHI7 ?= c:\PROGRA~1\Borland\Delphi7export DELPHI7ifndef GBE_NOTOOLSTESTifneq (,$(findstring $(space),$(DELPHI7)))$(error ERROR The path to the Borland Compiler contains spaces. This will not work)endifendif# Verify environment variable requirements.PHONY: delphi7delphi7:ifndef GBE_NOTOOLSTEST@$(echo) [Toolset Borland Delphi7]; \if [ ! -d "$(DELPHI7)" ]; then echo "Directory DELPHI7 does not exist: $(DELPHI7)"; exit 2; fi;endif## Setup PATH# Ensure that we can find the compiler and tools#DELPHI7_PATH := $(DELPHI7)\BINifeq "$(findstring $(DELPHI7_PATH),$(PATH))" ""PATH := $(DELPHI7_PATH);$(PATH)endifPath := $(PATH)export PATH## LIB and INCLUDE are not to be used.# Remove from the environmentINCLUDE :=unexport INCLUDELIB :=unexport LIB#