| 327 |
dpurdie |
1 |
###############################################################################
|
|
|
2 |
# File: TOOLSET/KeilArmV43A.def
|
|
|
3 |
# Contents: KeilArmV4 defines
|
|
|
4 |
###############################################################################
|
|
|
5 |
|
|
|
6 |
toolset = KeilArmV4
|
|
|
7 |
s = s
|
|
|
8 |
o = o
|
|
|
9 |
a = lib
|
|
|
10 |
exe =
|
|
|
11 |
|
|
|
12 |
.SUFFIXES: .asm
|
|
|
13 |
|
|
|
14 |
#
|
|
|
15 |
# Toolset global variables
|
|
|
16 |
# KEILMDK_ARM43A - Root of the Keil MDK Toolkit (From Environment)
|
|
|
17 |
# KEILMDK_ARM - Root of the Keil MDK Toolkit (Make format)
|
|
|
18 |
# KEILMDK_ARM_BIN - Root of the Arm compiler
|
|
|
19 |
#
|
|
|
20 |
KEILMDK_ARM43A ?= c:\Keil\4.03a\ARM
|
|
|
21 |
KEILMDK_ARM := $(subst \,/,$(strip $(KEILMDK_ARM43A)))
|
|
|
22 |
KEILMDK_ARM_BIN := $(KEILMDK_ARM)/bin40
|
|
|
23 |
|
|
|
24 |
#
|
|
|
25 |
# Ensure that the tools are available
|
|
|
26 |
#
|
|
|
27 |
.PHONY: KeilArm
|
|
|
28 |
KeilArmV3:
|
| 6177 |
dpurdie |
29 |
@$(echo) '[Toolset $(toolset)]'; \
|
|
|
30 |
[ -z "$KEILMDK_ARM43A" ] && echo 'KEILMDK_ARM43A env var not set' && exit 2; \
|
|
|
31 |
if [ ! -d "$(KEILMDK_ARM)" ] ; then echo "KEILMDK_ARM43A 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; \
|
| 327 |
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 |
RVCT40_ASMOPT :=
|
|
|
58 |
RVCT40INC :=
|
|
|
59 |
RVCT40LIB :=
|
|
|
60 |
RVCT40_CCOPT :=
|
|
|
61 |
RVCT40_LINKOPT :=
|
|
|
62 |
RVCT40LIB :=
|
|
|
63 |
RVCT40_FROMELFOPT :=
|
|
|
64 |
export RVCT40_ASMOPT RVCT40INC RVCT40LIB RVCT40_CCOPT RVCT40_LINKOPT RVCT40LIB RVCT40_FROMELFOPT
|
|
|
65 |
#
|