| 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 |
|
|
|
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_cpu_code = 5272
|
|
|
71 |
|
|
|
72 |
#
|
|
|
73 |
# Setup the compiler specfic environment variables based on the required version
|
|
|
74 |
# The compiler does not need to be in the users path as it will be fully pathed
|
|
|
75 |
#
|
|
|
76 |
MRI_CF_BIN=$(MRI_BIN)
|
|
|
77 |
MRI_CF_INC=$(MRI_INC)
|
|
|
78 |
MRI_CF_LIB=$(MRI_LIB)
|
|
|
79 |
|
|
|
80 |
#
|
|
|
81 |
# The ColdFire compiler has a bug. It creates temp files and does not
|
|
|
82 |
# ensure that they are unique. The result is chaos.
|
|
|
83 |
# Create temp files in the 'interface' directory.
|
|
|
84 |
#
|
|
|
85 |
MRI_CF_TMP=$(MRI_TMP)
|
|
|
86 |
TMP=$(MRI_TMP)
|
|
|
87 |
TMPDIR=$(MRI_TMP)
|
|
|
88 |
TEMP=$(MRI_TMP)
|
|
|
89 |
MRI_68K_TMP=$(MRI_TMP)
|
|
|
90 |
export COMPILER_HOME MRI_CF_BIN MRI_CF_LIB MRI_CF_TMP TMP TMPDIR TEMP MRI_68K_TMP
|
|
|
91 |
|
|
|
92 |
mri2:
|
|
|
93 |
@if [ -n "$$VISIONCLICK" ]; then \
|
|
|
94 |
echo "and VisionCLICK]"; \
|
|
|
95 |
else echo "]"; fi
|
|
|
96 |
|
|
|
97 |
ifdef VISIONCLICK
|
|
|
98 |
est32 = $(subst \,/,$(strip $(VISIONCLICK)))
|
|
|
99 |
else
|
|
|
100 |
est32 = --dummy--
|
|
|
101 |
endif
|
|
|
102 |
|
| 263 |
dpurdie |
103 |
RPCGEN_CPP := $(GBE_BIN)/rpccpp.exe
|
|
|
104 |
RPCGEN_CFLAGS := -e -c
|
| 227 |
dpurdie |
105 |
export RPCGEN_CPP RPCGEN_CFLAGS
|
|
|
106 |
|
|
|
107 |
|