############################################################################### # File: TOOLSET/KeilArmV43A.def # Contents: KeilArmV4 defines ############################################################################### toolset = KeilArmV4 s = s o = o a = lib exe = .SUFFIXES: .asm # # Toolset global variables # KEILMDK_ARM43A - Root of the Keil MDK Toolkit (From Environment) # KEILMDK_ARM - Root of the Keil MDK Toolkit (Make format) # KEILMDK_ARM_BIN - Root of the Arm compiler # KEILMDK_ARM43A ?= c:\Keil\4.03a\ARM KEILMDK_ARM := $(subst \,/,$(strip $(KEILMDK_ARM43A))) KEILMDK_ARM_BIN := $(KEILMDK_ARM)/bin40 # # Ensure that the tools are available # .PHONY: KeilArm KeilArmV3: @$(echo) '[Toolset $(toolset)]'; \ [ -z "$KEILMDK_ARM43A" ] && echo 'KEILMDK_ARM43A env var not set' && exit 2; \ if [ ! -d "$(KEILMDK_ARM)" ] ; then echo "KEILMDK_ARM43A Directory not found: $(KEILMDK_ARM)"; exit 2; fi; \ if [ ! -d "$(KEILMDK_ARM_BIN)" ] ; then echo "Keil Compiler directory not found: $(KEILMDK_ARM_BIN)"; exit 2; fi; \ # # Toolset programs # assembler := $(KEILMDK_ARM_BIN)/armasm compiler := $(KEILMDK_ARM_BIN)/armcc librarian := $(KEILMDK_ARM_BIN)/armar linker := $(KEILMDK_ARM_BIN)/armlink fromelf := $(KEILMDK_ARM_BIN)/fromelf # # Compiler include search paths # KEIL_INCLUDES := $(KEILMDK_ARM)/RV31/INC # # Compiler library search paths # KEIL_LIBS := $(KEILMDK_ARM)/RV31/LIB # # Prevent the user from subverting the toolset # RVCT40_ASMOPT := RVCT40INC := RVCT40LIB := RVCT40_CCOPT := RVCT40_LINKOPT := RVCT40LIB := RVCT40_FROMELFOPT := export RVCT40_ASMOPT RVCT40INC RVCT40LIB RVCT40_CCOPT RVCT40_LINKOPT RVCT40LIB RVCT40_FROMELFOPT #