Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
227 dpurdie 1
# -*- mode: mak; -*-
2
###############################################################################
6177 dpurdie 3
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
227 dpurdie 4
#
5
# File:         TOOLSET/mos_mri_cf.def
6
# Contents:     MRI ColdFire rules as used for the MOS
7
#
8
# Description:
9
#       MRI ColdFire toolset for MOS
10
#       This file provides Toolset definitions for the target makefiles
11
#       The file is dropped into the top of the generated platform specfic makefile
12
#
13
#       This file is included to provide Colfire support to the basic MOS_MRI toolset
14
#
15
# Revision History:
16
#       13-Feb-04   DDP     Started Work
17
###############################################################################
18
 
19
toolset = mos_mricf
20
 
21
o       = obj
22
s       = asm
23
a       = lib
24
exe     =
25
 
26
.SUFFIXES:  .asm
27
.PHONY:     mri mri2
28
 
29
ifeq    "$(mri_ver)" "53"       # Need version 5.3
30
mri:
6177 dpurdie 31
	@if [ -z "$$MRI_CF53" ]; then echo "MRI_CF53 env var not set"; exit 2; fi; \
32
	if [ -z "`$(grep) 5.3 $$MRI_CF53/version`" ]; then echo "not MRI_CF 5.3"; exit 2; fi; \
33
	echo -n "[Toolset ColdFire - Microtec Research C 5.3, C++ 3.3, ASM 7.6]";
227 dpurdie 34
 
35
mri = $(subst \,/,$(strip $(MRI_CF53)))
36
endif   #. 5.3
37
 
38
ifeq   "$(mri_ver)" "0"
39
mri:
6177 dpurdie 40
	@if [ -z "$$MRI_CF" ]; then echo "MRI_CF env var not set"; exit 2; fi; \
41
	echo -n "[Toolset ColdFire - Microtec Research C X.X]";
227 dpurdie 42
 
43
mri = $(subst \,/,$(strip $(MRI_CF)))
44
endif
45
 
46
#
47
#   Unknown Version
48
#
49
ifndef mri
50
    $(error ERROR: Specfied MRI_CF compiler version ($(mri_ver)) not known to toolset.)
51
endif
52
 
53
#
54
#   Define the compiler specfic names and paths for the various tools
55
#
56
COMPILER_HOME=$(mri)/embedded
57
MRI_BIN=$(COMPILER_HOME)/bin
58
MRI_INC=$(COMPILER_HOME)/include/mcccf
59
MRI_LIB=$(COMPILER_HOME)/lib
60
MRI_TMP=$(INTERFACEDIR)/mcccf
61
 
6276 dpurdie 62
mri_assembler           = $(MRI_BIN)/asmcf
63
mri_compiler            = $(MRI_BIN)/mcccf
64
mri_cpp_compiler        = $(MRI_BIN)/ccccf
65
mri_linker              = $(MRI_BIN)/lnkcf
66
mri_librarian           = $(MRI_BIN)/libcf
67
mri_compiler_define     = _MCCCF
68
mri_linker_lib          = $(MRI_LIB)/nze/mcccfa552
69
mri_cpu_type            = 5200
70
mri_coprocessor_type    = /MAC/DIV
71
mri_cpu_code            = 5272
227 dpurdie 72
 
73
#
74
#   Setup the compiler specfic environment variables based on the required version
75
#   The compiler does not need to be in the users path as it will be fully pathed
76
#
77
MRI_CF_BIN=$(MRI_BIN)
78
MRI_CF_INC=$(MRI_INC)
79
MRI_CF_LIB=$(MRI_LIB)
80
 
81
#
82
#   The ColdFire compiler has a bug. It creates temp files and does not
83
#   ensure that they are unique. The result is chaos.
84
#   Create temp files in the 'interface' directory.
85
#
86
MRI_CF_TMP=$(MRI_TMP)
87
TMP=$(MRI_TMP)
88
TMPDIR=$(MRI_TMP)
89
TEMP=$(MRI_TMP)
90
MRI_68K_TMP=$(MRI_TMP)
91
export COMPILER_HOME MRI_CF_BIN MRI_CF_LIB MRI_CF_TMP TMP TMPDIR TEMP MRI_68K_TMP
92
 
93
mri2:
94
	@if [ -n "$$VISIONCLICK" ]; then \
95
		echo "and VisionCLICK]"; \
96
	else echo "]"; fi
97
 
98
ifdef VISIONCLICK
99
est32		= $(subst \,/,$(strip $(VISIONCLICK)))
100
else
101
est32		= --dummy--
102
endif
103
 
263 dpurdie 104
RPCGEN_CPP      := $(GBE_BIN)/rpccpp.exe
105
RPCGEN_CFLAGS   := -e -c
227 dpurdie 106
export RPCGEN_CPP RPCGEN_CFLAGS
107
 
108