Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
227 dpurdie 1
# -*- mode: mak; -*-
2
###############################################################################
3
# File:         TOOLSET/KeilC51V41.def
4
# Contents:     KeilC51V41 defines
5
###############################################################################
6
 
7
toolset		= KeilC51V41
8
s		    = asm
9
o		    = o51
10
a		    = lib
11
exe		    =
12
 
13
.SUFFIXES:	.asm
14
 
15
#
16
#   Toolset global variables
17
#       KEILC51    - Root of the KeilC51V41 Toolkit (From Environment)
18
#       C51DIR     - Root of the KeilC51V41 Toolkit (Make format)
19
#       C51BIN     - Root of the C51 compiler
20
#
21
C51DIR	:= $(subst \,/,$(strip $(KEILC51)))
22
C51BIN	:= $(C51DIR)/bin
23
 
24
keil_includes  := $(C51DIR)/inc
25
 
26
#
27
#   Ensure that the tools are available
28
#
29
.PHONY:		KeilC51V41
30
KeilC51V41:
6177 dpurdie 31
	@$(echo) '[Toolset Keil C51v41::$(C51DIR)]'; \
32
	[ -z "$$KEILC51" ] && echo 'KEILC51 env var not set' && exit 2; \
33
	if [ ! -d "$(C51DIR)" ] ; then echo "KeilC51 Directory not found: $(C51DIR)";  exit 2; fi; \
34
	if [ ! -d "$(C51BIN)" ] ; then echo "Keil Compiler directory not found: $(C51BIN)"; exit 2; fi; \
227 dpurdie 35
 
36
 
37
#