Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
283 dpurdie 1
###############################################################################
2
# File:         TOOLSET/KeilArmV3.def
3
# Contents:     KeilArmV3 defines
4
###############################################################################
5
 
6
toolset		= KeilArmV3
7
s		    = s
8
o		    = o
9
a		    = lib
10
exe		    =
11
 
12
.SUFFIXES:	.asm
13
 
14
#
15
#   Toolset global variables
16
#       KEILMDK_ARM340     - Root of the Keil MDK 340 Toolkit (From Environment)
17
#       KEILMDK_ARM        - Root of the Keil MDK 340 Toolkit (Make format)
18
#       KEILMDK_ARM_BIN    - Root of the Arm compiler
19
#
20
KEILMDK_ARM340  ?= C:\Keil\ARM
21
KEILMDK_ARM	    := $(subst \,/,$(strip $(KEILMDK_ARM340)))
22
KEILMDK_ARM_BIN	:= $(KEILMDK_ARM)/bin31
23
 
24
#
25
#   Ensure that the tools are available
26
#
327 dpurdie 27
.PHONY:		KeilArm
283 dpurdie 28
KeilArmV3:
6177 dpurdie 29
	@$(echo) '[Toolset $(toolset)]'; \
30
	[ -z "$KEILMDK_ARM340" ] && echo "KEILMDK_ARM340 env var not set" && exit 2; \
31
	if [ ! -d "$(KEILMDK_ARM)" ] ; then echo "KEILMDK_ARM340 Directory not found: $(KEILMDK_ARM)";  exit 2; fi; \
32
	if [ ! -d "$(KEILMDK_ARM_BIN)" ] ; then echo "Keil Compiler directory not found: $(KEILMDK_ARM_BIN)"; exit 2; fi; \
283 dpurdie 33
 
34
 
35
#
36
#   Toolset programs
37
#
38
assembler   := $(KEILMDK_ARM_BIN)/armasm
39
compiler    := $(KEILMDK_ARM_BIN)/armcc
40
librarian   := $(KEILMDK_ARM_BIN)/armar
41
linker      := $(KEILMDK_ARM_BIN)/armlink
42
fromelf     := $(KEILMDK_ARM_BIN)/fromelf
43
 
44
#
45
#   Compiler include search paths
46
#
47
KEIL_INCLUDES  := $(KEILMDK_ARM)/RV31/INC
48
 
49
#
50
#   Compiler library search paths
51
#
52
KEIL_LIBS  := $(KEILMDK_ARM)/RV31/LIB
53
 
54
#
55
#   Prevent the user from subverting the toolset
56
#
57
RVCT31_CCOPT :=
58
RVCT31_ASMOPT :=
59
RVCT31_LINKOPT :=
60
export RVCT31_CCOPT RVCT31_ASMOPT RVCT31_LINKOPT
61
 
62
#