Subversion Repositories DevTools

Rev

Rev 289 | 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         = delphi7

o               = obj
s               = asm
a               = lib
exe             = .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/Delphi7
WINDIR        ?= c:/WINDOWS
export DELPHI7

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


# Verify environment variable requirements
.PHONY:         delphi7
delphi7:
  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/Bin
MS_LINK_PATH := c:/Program Files/Microsoft Visual Studio/VC98/Bin
DELPHI7_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/Bin


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

#
#   LIB and INCLUDE are not to be used.
#   Remove from the environment

INCLUDE :=
unexport INCLUDE

LIB :=
unexport LIB

#