############################################################################### # File: TOOLSET/gcc # Contents: GCC defines ############################################################################### toolset = gcc s = asm o = o a = a so = so exe = .SUFFIXES: .asm # # Sanity test the compiler version and type # An attempt to ensure that developers are not mixing and matching # Not all compilers are tested, only those used to build components # that we deploy. # .PHONY: gcc gcc: @$(echo) '[Toolset GCC/$(GCC_TARGET)]' $(AA_PRE)if [ ! -f $(GCC_CC) ] ; then \ $(echo) "[$(GBE_MACHTYPE)] (E) GCC Compiler not found: $(GCC_CC)"; \ exit 1; \ fi ifdef GCC_EVERSION $(AA_PRE)if [ "$(GCC_EVERSION)" != "$(GCC_VERSION)" ] ; then \ $(echo) "[$(GBE_MACHTYPE)] (E) GCC version is not correct."; \ $(echo) "[$(GBE_MACHTYPE)] (E) Expecting: \"$(GCC_EVERSION)\". Got: \"$(GCC_VERSION)\"."; \ exit 1; \ fi endif ifdef GCC_EMACHINE $(AA_PRE)if [ "$(GCC_EMACHINE)" != "$(GCC_MACHINE)" ] ; then \ $(echo) "[$(GBE_MACHTYPE)] (E) GCC machine type is not correct.";\ $(echo) "[$(GBE_MACHTYPE)] (E) Expecting: \"$(GCC_EMACHINE)\". Got: \"$(GCC_MACHINE)\".";\ exit 1; \ fi endif #