Rev 295 | 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/Delphi7WINDIR ?= c:/WINDOWSexport 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)\BIN## Following paths are only required for building# .DLL's with .LIB export libraries#BCB_IMPDEF_PATH := c:/BCB6/CBuilder6/BinMS_LINK_PATH := c:/Program Files/Microsoft Visual Studio/VC98/BinDELPHI7_PATH := $(DELPHI7_PATH);$(BCB_IMPDEF_PATH)DELPHI7_PATH := $(DELPHI7_PATH);$(MS_LINK_PATH)DELPHI7_PATH := $(DELPHI7_PATH);c:/Program Files/Microsoft Visual Studio/Common/MSDev98/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#