| 227 |
dpurdie |
1 |
###############################################################################
|
| 6177 |
dpurdie |
2 |
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
|
| 227 |
dpurdie |
3 |
#
|
|
|
4 |
# File: TOOLSET/AVR_IAR.rul[e]
|
|
|
5 |
# Contents: IAR rules as used for the AVR
|
|
|
6 |
# Make definitions for the IAR tools.
|
|
|
7 |
#
|
|
|
8 |
# Description:
|
|
|
9 |
# This file provides Toolset definitions for the target makefiles
|
|
|
10 |
# The file is dropped into the top of the generated platform specfic makefile
|
|
|
11 |
#
|
|
|
12 |
# Revision History:
|
|
|
13 |
# 16-Aug-04 DDP Created
|
|
|
14 |
###############################################################################
|
|
|
15 |
|
|
|
16 |
toolset = avr_iar
|
|
|
17 |
|
|
|
18 |
o = obj
|
|
|
19 |
s = asm
|
|
|
20 |
a = lib
|
|
|
21 |
exe = bin
|
|
|
22 |
|
|
|
23 |
.SUFFIXES: .asm
|
|
|
24 |
.PHONY: iar
|
|
|
25 |
|
|
|
26 |
#
|
|
|
27 |
# Ensure that the compiler can be found
|
|
|
28 |
# Use the environment varibales
|
|
|
29 |
# AVR_IAR - Root of the AVR workbench
|
|
|
30 |
#
|
|
|
31 |
ifndef GBE_AVR_IAR
|
|
|
32 |
GBE_AVR_IAR := C:/Program Files/IAR Systems/Embedded Workbench 3.2
|
|
|
33 |
export GBE_AVR_IAR
|
|
|
34 |
endif
|
|
|
35 |
|
|
|
36 |
iar:
|
| 6177 |
dpurdie |
37 |
@if [ -z "$$GBE_AVR_IAR" ]; then echo "GBE_AVR_IAR env var not set"; exit 2; fi; \
|
| 227 |
dpurdie |
38 |
if [ ! -d "$$GBE_AVR_IAR" ]; then echo "ERROR: GBE_AVR_IAR directory not found ($$GBE_AVR_IAR). Compiler not available"; exit 2; fi; \
|
| 241 |
dpurdie |
39 |
echo "[Toolset AVR - IAR Systems]";
|
| 227 |
dpurdie |
40 |
|
|
|
41 |
iar_avr = $(subst \,/,$(strip $(GBE_AVR_IAR)))
|
|
|
42 |
|
|
|
43 |
#
|
|
|
44 |
# Define the compiler specfic names and paths for the various tools
|
|
|
45 |
#
|
|
|
46 |
COMPILER_HOME=$(iar_avr)
|
|
|
47 |
COMPILER_HOME_AVR=$(iar_avr)/avr
|
|
|
48 |
|
|
|
49 |
avr_iar_assembler = $(COMPILER_HOME)/avr/bin/aavr.exe
|
|
|
50 |
avr_iar_compiler = $(COMPILER_HOME)/avr/bin/iccavr.exe
|
|
|
51 |
avr_iar_cpp_compiler = $(COMPILER_HOME)/avr/bin/iccavr.exe
|
|
|
52 |
avr_iar_linker = $(COMPILER_HOME)/common/bin/xlink.exe
|
|
|
53 |
avr_iar_librarian = $(COMPILER_HOME)/common/bin/xar.exe
|
|
|
54 |
avr_linker_lib_dir = $(COMPILER_HOME)/avr/lib/clib
|
|
|
55 |
avr_linker_lib = $(avr_linker_lib_dir)/cl6s-ec
|
|
|
56 |
|
|
|
57 |
|