Subversion Repositories DevTools

Rev

Rev 295 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
289 dpurdie 1
# -*- mode: mak; -*-
2
###############################################################################
3
# File:         TOOLSET/delphi7.def
4
# Contents:     Borland C++ Builder defines
5
###############################################################################
6
 
7
toolset		= delphi7
8
 
9
o		= obj
10
s		= asm
11
a		= lib
12
exe		= .exe
13
 
14
.SUFFIXES:	.asm
15
 
16
#
17
#   Setup the basic DELPHI7 environment paths
18
#   Can be overriden by environment variables
19
#
20
#   NOTE: Borland does not like paths this spaces
21
#         Use Short Filenames.
22
#         The following guess may not be correct
23
#
295 dpurdie 24
DELPHI7       ?= c:/PROGRA~1/Borland/Delphi7
25
WINDIR        ?= c:/WINDOWS
289 dpurdie 26
export DELPHI7
27
 
28
ifndef GBE_NOTOOLSTEST
29
    ifneq (,$(findstring $(space),$(DELPHI7)))
30
        $(error ERROR The path to the Borland Compiler contains spaces. This will not work)
31
    endif
32
endif
33
 
34
 
35
# Verify environment variable requirements
36
.PHONY:		delphi7
37
delphi7:
38
  ifndef GBE_NOTOOLSTEST
6177 dpurdie 39
	    @$(echo) '[Toolset Borland Delphi7]'; \
289 dpurdie 40
	    if [ ! -d "$(DELPHI7)" ]; then echo "Directory DELPHI7 does not exist: $(DELPHI7)"; exit 2; fi;
41
  endif
42
 
43
#
44
#   Setup PATH
45
#   Ensure that we can find the compiler and tools
46
#
47
DELPHI7_PATH := $(DELPHI7)\BIN
48
 
295 dpurdie 49
#
50
#   Following paths are only required for building
51
#   .DLL's with .LIB export libraries
52
#
53
BCB_IMPDEF_PATH := c:/BCB6/CBuilder6/Bin
54
MS_LINK_PATH := c:/Program Files/Microsoft Visual Studio/VC98/Bin
55
DELPHI7_PATH := $(DELPHI7_PATH);$(BCB_IMPDEF_PATH)
56
DELPHI7_PATH := $(DELPHI7_PATH);$(MS_LINK_PATH)
57
DELPHI7_PATH := $(DELPHI7_PATH);c:/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin
58
 
59
 
289 dpurdie 60
ifeq "$(findstring $(DELPHI7_PATH),$(PATH))" ""
61
PATH    := $(DELPHI7_PATH);$(PATH)
62
endif
63
Path    := $(PATH)
64
export PATH
65
 
66
#
67
#   LIB and INCLUDE are not to be used.
68
#   Remove from the environment
69
 
70
INCLUDE :=
71
unexport INCLUDE
72
 
73
LIB :=
74
unexport LIB
75
 
76
#