# -*- mode: mak; -*- ############################################################################### # File: TOOLSET/KeilC51V41.def # Contents: KeilC51V41 defines ############################################################################### toolset = KeilC51V41 s = asm o = o51 a = lib exe = .SUFFIXES: .asm # # Toolset global variables # KEILC51 - Root of the KeilC51V41 Toolkit (From Environment) # C51DIR - Root of the KeilC51V41 Toolkit (Make format) # C51BIN - Root of the C51 compiler # C51DIR := $(subst \,/,$(strip $(KEILC51))) C51BIN := $(C51DIR)/bin keil_includes := $(C51DIR)/inc # # Ensure that the tools are available # .PHONY: KeilC51V41 KeilC51V41: @$(echo) '[Toolset Keil C51v41::$(C51DIR)]'; \ [ -z "$$KEILC51" ] && echo 'KEILC51 env var not set' && exit 2; \ if [ ! -d "$(C51DIR)" ] ; then echo "KeilC51 Directory not found: $(C51DIR)"; exit 2; fi; \ if [ ! -d "$(C51BIN)" ] ; then echo "Keil Compiler directory not found: $(C51BIN)"; exit 2; fi; \ #