From 578434d93f8e5e437bba44d22bfafa84a4122755 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Mon, 6 Jun 2016 03:14:16 +0000 Subject: [PATCH] support armv71 --- common.mk | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/common.mk b/common.mk index 8eeb6b6..87c9df5 100644 --- a/common.mk +++ b/common.mk @@ -3,20 +3,24 @@ UNAME_S=$(shell uname -s) ifeq ($(UNAME_S),Linux) OS=Linux endif -ifneq ($(UNAME_S),Darwin) - LDFLAGS+=-lrt +ARCH?=$(shell arch) +ifeq ($(ARCH),x86_64) + CPU=x64-64 + BIT=64 + BIT_OPT=-m64 endif -BIT?=64 -ifeq ($(BIT),32) - CPU?=x86 +ifeq ($(ARCH),x86) + CPU=x86 + BIT=32 BIT_OPT=-m32 -else - ifeq ($(BIT),64) - CPU?=x86-64 - BIT_OPT=-m64 - endif endif - +ifeq ($(ARCH),armv71) + CPU=armv71 + BIT=32 +endif +ifneq ($(UNAME_S),Darwin) + LDFLAGS+=-lrt +endif CP=cp -f AR=ar r