Subversion Repositories DevTools

Rev

Rev 5378 | 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:
6177 dpurdie 25
	@$(echo) '[Toolset GCC/$(GCC_TARGET)]'
5378 dpurdie 26
	$(AA_PRE)if [ ! -f $(GCC_CC) ] ; then \
5330 dpurdie 27
		$(echo) "[$(GBE_MACHTYPE)] (E) GCC Compiler not found: $(GCC_CC)"; \
28
		exit 1; \
29
	fi
3967 dpurdie 30
ifdef GCC_EVERSION
31
	$(AA_PRE)if [ "$(GCC_EVERSION)" != "$(GCC_VERSION)" ] ; then \
32
	    $(echo) "[$(GBE_MACHTYPE)] (E) GCC version is not correct."; \
5330 dpurdie 33
	    $(echo) "[$(GBE_MACHTYPE)] (E) Expecting: \"$(GCC_EVERSION)\". Got: \"$(GCC_VERSION)\"."; \
3967 dpurdie 34
	    exit 1; \
35
	fi
36
endif
37
ifdef GCC_EMACHINE
38
	$(AA_PRE)if [ "$(GCC_EMACHINE)" != "$(GCC_MACHINE)" ] ; then \
39
	    $(echo) "[$(GBE_MACHTYPE)] (E) GCC machine type is not correct.";\
5330 dpurdie 40
	    $(echo) "[$(GBE_MACHTYPE)] (E) Expecting: \"$(GCC_EMACHINE)\". Got: \"$(GCC_MACHINE)\".";\
3967 dpurdie 41
	    exit 1; \
42
	fi
43
endif
227 dpurdie 44
 
45
#