Subversion Repositories DevTools

Rev

Rev 227 | Rev 5330 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 227 Rev 3967
Line 1... Line -...
1
# -*- mode: mak; -*-
-
 
2
###############################################################################
1
###############################################################################
3
# File:         TOOLSET/gcc
2
# File:         TOOLSET/gcc
4
# Contents:     GCC defines
3
# Contents:     GCC defines
5
###############################################################################
4
###############################################################################
6
 
5
 
7
toolset		= gcc
6
toolset = gcc
8
s		= asm
7
s       = asm
9
o		= o
8
o       = o
10
a		= a 
9
a       = a
11
so		= so
10
so      = so
12
exe		= 
11
exe     =
13
 
12
 
14
.SUFFIXES:	.asm
13
.SUFFIXES:	.asm
15
 
14
 
-
 
15
 
-
 
16
#
-
 
17
#   Sanity test the compiler version and type
-
 
18
#   An attempt to ensure that developers are not mixing and matching
-
 
19
#   Not all compilers are tested, only those used to build components
-
 
20
#   that we deploy.
-
 
21
#
-
 
22
 
16
.PHONY:		gcc
23
.PHONY:		gcc
17
gcc:
24
gcc:
18
	@$(echo) [Toolset GCC/$(GCC_TARGET)];
25
	@$(echo) [Toolset GCC/$(GCC_TARGET)]
-
 
26
ifdef GCC_EVERSION
-
 
27
	$(AA_PRE)if [ "$(GCC_EVERSION)" != "$(GCC_VERSION)" ] ; then \
-
 
28
	    $(echo) "[$(GBE_MACHTYPE)] (E) GCC version is not correct."; \
-
 
29
	    $(echo) "[$(GBE_MACHTYPE)] (E) Expecting:\"$(GCC_EVERSION)\". Got:\"$(GCC_VERSION)\"."; \
-
 
30
	    exit 1; \
-
 
31
	fi
-
 
32
endif
-
 
33
ifdef GCC_EMACHINE
-
 
34
	$(AA_PRE)if [ "$(GCC_EMACHINE)" != "$(GCC_MACHINE)" ] ; then \
-
 
35
	    $(echo) "[$(GBE_MACHTYPE)] (E) GCC machine type is not correct.";\
-
 
36
	    $(echo) "[$(GBE_MACHTYPE)] (E) Expecting:\"$(GCC_EMACHINE)\". Got:\"$(GCC_MACHINE)\".";\
-
 
37
	    exit 1; \
-
 
38
	fi
-
 
39
endif
19
 
40
 
20
#
41
#