Skip to content
Snippets Groups Projects
Commit fc0173ae authored by rswindell's avatar rswindell
Browse files

Translate machine type 'x86_64' to 'x64'.

parent f50665b2
No related branches found
No related tags found
No related merge requests found
# build/Common.gmake # build/Common.gmake
# #
# Global build system setup file # Global build system setup file (for GNU Make and gcc)
# #
# $Id$ # $Id$
# #
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# @format.tab-size 4 (Plain Text/Source Code File Header) # # @format.tab-size 4 (Plain Text/Source Code File Header) #
# @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) # # @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 # # This program is free software; you can redistribute it and/or #
# modify it under the terms of the GNU General Public License # # 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 ' ' '_') ...@@ -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 -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) 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 CFLAGS += -fpic
ifeq ($(machine),sparc64) ifeq ($(machine),sparc64)
CFLAGS += -D__BIG_ENDIAN__ CFLAGS += -D__BIG_ENDIAN__
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment