Subversion Repositories DevTools

Rev

Go to most recent revision | Details | 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
#
24
DELPHI7       ?= c:\PROGRA~1\Borland\Delphi7
25
export DELPHI7
26
 
27
ifndef GBE_NOTOOLSTEST
28
    ifneq (,$(findstring $(space),$(DELPHI7)))
29
        $(error ERROR The path to the Borland Compiler contains spaces. This will not work)
30
    endif
31
endif
32
 
33
 
34
# Verify environment variable requirements
35
.PHONY:		delphi7
36
delphi7:
37
  ifndef GBE_NOTOOLSTEST
38
	    @$(echo) [Toolset Borland Delphi7]; \
39
	    if [ ! -d "$(DELPHI7)" ]; then echo "Directory DELPHI7 does not exist: $(DELPHI7)"; exit 2; fi;
40
  endif
41
 
42
#
43
#   Setup PATH
44
#   Ensure that we can find the compiler and tools
45
#
46
DELPHI7_PATH := $(DELPHI7)\BIN
47
 
48
ifeq "$(findstring $(DELPHI7_PATH),$(PATH))" ""
49
PATH    := $(DELPHI7_PATH);$(PATH)
50
endif
51
Path    := $(PATH)
52
export PATH
53
 
54
#
55
#   LIB and INCLUDE are not to be used.
56
#   Remove from the environment
57
 
58
INCLUDE :=
59
unexport INCLUDE
60
 
61
LIB :=
62
unexport LIB
63
 
64
#