support armv71

dev
MITSUNARI Shigeo 9 years ago
parent 759b5a3e61
commit 578434d93f
  1. 26
      common.mk

@ -3,20 +3,24 @@ UNAME_S=$(shell uname -s)
ifeq ($(UNAME_S),Linux) ifeq ($(UNAME_S),Linux)
OS=Linux OS=Linux
endif endif
ifneq ($(UNAME_S),Darwin) ARCH?=$(shell arch)
LDFLAGS+=-lrt ifeq ($(ARCH),x86_64)
CPU=x64-64
BIT=64
BIT_OPT=-m64
endif endif
BIT?=64 ifeq ($(ARCH),x86)
ifeq ($(BIT),32) CPU=x86
CPU?=x86 BIT=32
BIT_OPT=-m32 BIT_OPT=-m32
else
ifeq ($(BIT),64)
CPU?=x86-64
BIT_OPT=-m64
endif
endif endif
ifeq ($(ARCH),armv71)
CPU=armv71
BIT=32
endif
ifneq ($(UNAME_S),Darwin)
LDFLAGS+=-lrt
endif
CP=cp -f CP=cp -f
AR=ar r AR=ar r

Loading…
Cancel
Save