Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
227 dpurdie 1
###############################################################################
2
# File:         TOOLSET/gcc
3
# Contents:     GCC defines
4
###############################################################################
5
 
3967 dpurdie 6
toolset = gcc
7
s       = asm
8
o       = o
9
a       = a
10
so      = so
11
exe     =
227 dpurdie 12
 
13
.SUFFIXES:	.asm
14
 
3967 dpurdie 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
 
227 dpurdie 23
.PHONY:		gcc
24
gcc:
3967 dpurdie 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
227 dpurdie 40
 
41
#