diff --git a/src/build/Common.gmake b/src/build/Common.gmake index 7b84d6159bbdc8f89699f97463dc7f055577e9a7..e00628961669a4ecd86962ed8494893430e52d86 100644 --- a/src/build/Common.gmake +++ b/src/build/Common.gmake @@ -1,6 +1,6 @@ # build/Common.gmake # -# Global build system setup file +# Global build system setup file (for GNU Make and gcc) # # $Id$ # @@ -8,7 +8,7 @@ # @format.tab-size 4 (Plain Text/Source Code File Header) # # @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) # # # -# Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html # +# Copyright 2010 Rob Swindell - http://www.synchro.net/copyright.html # # # # This program is free software; you can redistribute it and/or # # modify it under the terms of the GNU General Public License # @@ -198,6 +198,9 @@ os := $(shell echo $(os) | tr '[A-Z]' '[a-z]' | tr ' ' '_') machine := $(shell if uname -m | egrep -v "(i[3456789]*|x)86" > /dev/null; then uname -m | tr "[A-Z]" "[a-z]" | tr " " "_" ; fi) machine := $(shell if uname -m | egrep "64" > /dev/null; then uname -m | tr "[A-Z]" "[a-z]" | tr " " "_" ; else echo $(machine) ; fi) +ifeq ($(machine),x86_64) + machine := x64 +endif CFLAGS += -fpic ifeq ($(machine),sparc64) CFLAGS += -D__BIG_ENDIAN__