aboutsummaryrefslogtreecommitdiffhomepage
path: root/sample/Makefile
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2017-02-26 22:15:35 +0900
committerMITSUNARI Shigeo <[email protected]>2017-02-26 22:15:35 +0900
commit570a6aae612c0d3393d804f5ef975071ad19c595 (patch)
tree7b890d6d229e18a287f41b4213d76222cb3512b0 /sample/Makefile
parent1f139f31a77775d2bf75ddc14563373e22ad1da4 (diff)
downloadxbyak-570a6aae612c0d3393d804f5ef975071ad19c595.tar.gz
xbyak-570a6aae612c0d3393d804f5ef975071ad19c595.zip
sample: accept amd64 as a 64bit patformrelease20170401
Diffstat (limited to 'sample/Makefile')
-rw-r--r--sample/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/sample/Makefile b/sample/Makefile
index 7772b1b..da21f20 100644
--- a/sample/Makefile
+++ b/sample/Makefile
@@ -2,12 +2,13 @@ TARGET = test quantize bf toyvm test_util memfunc static_buf jmp_table
XBYAK_INC=../xbyak/xbyak.h
BOOST_EXIST=$(shell echo "\#include <boost/spirit/core.hpp>" | (gcc -E - 2>/dev/null) | grep "boost/spirit/core.hpp" >/dev/null && echo "1")
+UNAME_M=$(shell uname -m)
ifeq ($(shell uname -s),Darwin)
- ifeq ($(shell uname -m),x86_64)
+ ifeq ($(UNAME_M),x86_64)
BIT=64
endif
- ifeq ($(shell uname -m),i386)
+ ifeq ($(UNAME_M),i386)
BIT=32
endif
ifeq ($(shell sw_vers -productVersion | cut -c1-4 | sed 's/\.//'),105)
@@ -17,7 +18,10 @@ ifeq ($(shell uname -s),Darwin)
endif
else
BIT=32
- ifeq ($(shell uname -m),x86_64)
+ ifeq ($(UNAME_M),x86_64)
+ BIT=64
+ endif
+ ifeq ($(UNAME_M),amd64)
BIT=64
endif
endif